/*
  Joachimszentrum – Relaunch
  Alle Maße sind bewusst um den Faktor 1.35 (35 %) gegenüber dem
  Ursprungsdesign (700px-Layout, 12px-Grundschrift) vergrößert.
*/

:root {
  --color-bg-outer: #e8ddc9;
  --color-bg-panel: #fcf8ef;
  --color-navy: #23396e;
  --color-navy-dark: #1a2c56;
  --color-accent: #b35662;
  --color-taupe: #8a7c67;
  --color-white: #ffffff;

  --container-width: 945px; /* 700px x 1.35 */
  --font-base: 16.2px;      /* 12px  x 1.35 */
  --line-base: 21.6px;      /* 16px  x 1.35 */
  --space-unit: 13.5px;     /* 10px  x 1.35 */
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg-outer);
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--font-base);
  line-height: var(--line-base);
  color: #3a3630;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  max-width: var(--container-width);
  margin: 0 auto;
  background-color: var(--color-bg-panel);
  box-shadow: 0 0 0 15px var(--color-bg-outer), 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* HEADER */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 128px; /* 95px x 1.35 */
  padding: 0 35px;
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: var(--color-taupe);
  text-transform: uppercase;
}

.wordmark span {
  font-weight: 300;
}

.tagline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px; /* 14px x 1.35 */
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* NAVIGATION */
.site-nav {
  background-color: var(--color-bg-panel);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(35, 57, 110, 0.15);
  border-bottom: 1px solid rgba(35, 57, 110, 0.15);
}

.site-nav li {
  flex: 1;
  text-align: center;
  border-right: 1px solid rgba(35, 57, 110, 0.15);
}

.site-nav li:last-child {
  border-right: none;
}

.site-nav a {
  display: block;
  padding: 12px 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px; /* 11px x 1.35 */
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-taupe);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.site-nav li.active a {
  color: var(--color-accent);
}

.site-nav-photo {
  height: 49px;
  background-image: url("../img/hero-navigation.jpg?v=2");
  background-size: cover;
  background-position: center;
}

/* CONTENT */
.site-content {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 35px 40px 47px; /* ~26/30/35 x 1.35 */
  min-height: 512px; /* 379px x 1.35 */
}

.site-content a {
  color: var(--color-white);
}

.site-content a.download {
  text-decoration: underline;
}

.headline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: normal;
  margin: 0 0 var(--space-unit) 0;
  color: var(--color-bg-outer);
}

.site-content p {
  margin: 0 0 var(--space-unit) 0;
  max-width: 640px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.content-grid .col-image {
  flex: 0 0 auto;
  max-width: 405px;
}

.content-grid .col-text {
  flex: 1 1 320px;
}

.content-grid img {
  border-radius: 2px;
}

/* HOME */
.home-content {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 512px;
  padding: 47px 40px;
  background-color: var(--color-navy);
}

.home-content .headline-block {
  font-family: Georgia, "Times New Roman", serif;
}

.home-content .eyebrow {
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-bg-outer);
  margin: 0 0 8px 0;
}

.home-content .subline {
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-bg-outer);
  margin: 0;
}

/* LOGO / PARTNER ROWS */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 27px;
  background-color: var(--color-white);
  padding: 20px;
  margin-top: var(--space-unit);
}

.logo-row img {
  width: 135px;
  height: 68px;
  object-fit: contain;
}

/* SHOP SLIDESHOW (Laeden) */
.slideshow {
  position: relative;
  width: 405px;
  max-width: 100%;
  aspect-ratio: 405 / 304;
  overflow: hidden;
  border-radius: 2px;
}

.slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slideshow-fade 16s infinite;
}

.slideshow img:nth-child(1) { animation-delay: 0s; }
.slideshow img:nth-child(2) { animation-delay: 4s; }
.slideshow img:nth-child(3) { animation-delay: 8s; }
.slideshow img:nth-child(4) { animation-delay: 12s; }

@keyframes slideshow-fade {
  0%    { opacity: 0; }
  3%    { opacity: 1; }
  22%   { opacity: 1; }
  28%   { opacity: 0; }
  100%  { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .slideshow img {
    animation: none;
    opacity: 0;
  }
  .slideshow img:first-child {
    opacity: 1;
  }
}

/* CONTACT BLOCK */
.contact-block {
  margin-top: 27px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.contact-block a {
  text-decoration: underline;
}

/* LAGEPLAN LIGHTBOX */
.lageplan-thumb {
  width: 280px;
  height: auto;
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}

.lageplan-link:hover .lageplan-thumb {
  opacity: 0.85;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 47px;
  background-color: rgba(20, 26, 46, 0.9);
  cursor: zoom-out;
  z-index: 1000;
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-radius: 2px;
}

/* FOOTER */
.site-footer {
  background-color: var(--color-bg-outer);
  padding: 16px 40px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: var(--color-accent);
}

.site-footer .footer-inner {
  text-align: center;
}

.site-footer a {
  color: var(--color-accent);
}

/* IMPRESSUM */
.legal-page {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 47px 40px;
}

.legal-page h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  margin: 0 0 27px 0;
}

.legal-page h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  margin: 27px 0 8px 0;
}

.legal-page p {
  max-width: 700px;
  margin: 0 0 14px 0;
}

.back-link {
  display: inline-block;
  margin-top: 27px;
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 720px) {
  .page {
    box-shadow: none;
  }

  .site-header {
    justify-content: center;
    text-align: center;
    padding: 20px;
  }

  .wordmark {
    font-size: 24px;
  }

  .tagline {
    font-size: 15px;
  }

  .site-nav li {
    flex: 1 1 33.333%;
    border-bottom: 1px solid rgba(35, 57, 110, 0.15);
  }

  .site-nav a {
    font-size: 12px;
    padding: 12px 4px;
    letter-spacing: 0.5px;
  }

  .site-content,
  .home-content,
  .legal-page {
    padding: 27px 20px;
  }

  .content-grid .col-image {
    width: 100%;
    max-width: 100%;
  }

  .logo-row {
    gap: 16px;
    justify-content: center;
    padding: 16px;
  }

  .logo-row img {
    width: 110px;
    height: 56px;
  }
}
