/* =========================
   1) RESET + TOKENS
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --footer-h: 56px;

  --color-bg: #f4f1ea;
  --color-text: #2b2b2b;
  --color-text-soft: #3a3a3a;
  --color-dark: #1f1f1f;
  --color-dark-2: #2e2e2e;
  --color-light: #e8dcc5;
  --color-accent: #c9b37e;
  --color-accent-strong: #e6c46b;
  --color-accent-soft: #f7d982;
  --color-box: #e9dfc7;
  --color-box-strong: #efe3bf;

  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.16);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);

  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 14px;
}

/* FONTS */

/* cormorant-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/cormorant-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* cormorant-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/cormorant-v24-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* cormorant-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/cormorant-v24-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* cinzel-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/cinzel-v26-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* cinzel-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/cinzel-v26-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* cinzel-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/cinzel-v26-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* =========================
   2) BASE
========================= */
body {
  font-family: 'Cormorant Garamond', serif;
  background: var(--color-bg);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding: 60px 10%;
  padding-bottom: calc(var(--footer-h) + 24px);
}

section {
  margin-bottom: 80px;
}

section h2 {
  font-family: 'Cinzel', serif;
  column-span: all;
  margin-bottom: 20px;
  font-size: 2rem;
  color: var(--color-text-soft);
}

section p {
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 1.1rem;
}

.columns {
  column-count: 2;
  column-gap: 50px;
}

/* =========================
   3) HEADER + NAV + FOOTER
========================= */
header {
  background: linear-gradient(135deg, var(--color-dark), var(--color-text-soft));
  color: var(--color-light);
  padding: 60px 20px;
  text-align: center;
  animation: fadeIn 1.2s ease-out;
}

header h1 {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  letter-spacing: 2px;
}

header p {
  margin-top: 10px;
  font-size: 1.2rem;
  opacity: 0.85;
}

.header-inner {
  max-width: 1200px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.header-logo {
  width: 800px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.header-text p {
  margin-top: 10px;
  font-size: 1.2rem;
  color: var(--color-light);
  opacity: 0.9;
}

/* NAV */
.site-nav {
  background: var(--color-dark-2);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.nav-desktop {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 20px;
}

.nav-desktop a,
.nav-mobile-list a {
  position: relative;
  font-family: 'Cinzel', serif;
  color: var(--color-light);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.nav-desktop a {
  margin: 0 20px;
}

.nav-desktop a:hover,
.nav-mobile-list a:hover {
  color: var(--color-accent);
  letter-spacing: 1px;
}

.nav-desktop a.active::after,
.nav-mobile-list a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--color-accent);
}

.nav-mobile {
  display: none;
}

.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  color: var(--color-light);
  padding: 15px 20px;
  text-align: center;
  font-size: 1.15rem;
  user-select: none;
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.nav-mobile summary::after {
  content: "▾";
  margin-left: 10px;
  transition: transform 0.2s ease;
}

.nav-mobile[open] summary::after {
  display: inline-block;
  transform: rotate(180deg);
}

.nav-mobile-list {
  display: flex;
  flex-direction: column;
  padding: 0 0 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-mobile-list a {
  display: block;
  text-align: center;
  padding: 14px 20px;
}

.nav-mobile-list a.active::after {
  bottom: 8px;
}

footer {
  background: var(--color-dark);
  color: var(--color-light);
  text-align: center;
  padding: 15px;
  position: fixed;
  bottom: 0;
  width: 100%;
  height: var(--footer-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 1001;
  font-size: 0.95rem;
}

footer a {
  color: inherit;              /* same color as footer text */
  text-decoration: none;
}

footer a:hover {
  color: inherit;
  text-decoration: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   4) REUSABLE COMPONENTS
========================= */
.clear {
  clear: both;
  height: 28px;
}

.cta-button {
  display: block;
  width: fit-content;
  max-width: 90%;
  margin: 60px auto;
  padding: 20px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-accent-strong), var(--color-accent-soft));
  color: #1a1a1a;
  text-decoration: none;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.mail-button {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-dark);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mail-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.info-box {
  background: var(--color-box);
  padding: 30px;
  border-radius: var(--radius-lg);
  margin: 40px 0;
  box-shadow: var(--shadow-sm);
}

.info-box-strong {
  background: var(--color-box-strong);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.info-box-strong p {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 14px;
}

.info-box-strong a {
  font-weight: 700;
}

/* =========================
   5) STARTSEITE
========================= */
.programm-float {
  float: right;
  width: min(40vw, 700px);
  max-width: 700px;
  margin: 0 0 20px 30px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* =========================
   6) MAW 2027
========================= */
.maw-image {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* =========================
   7) FAQ + ARCHIV
========================= */
.maw-drop {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin: 18px 0;
}

.maw-drop summary {
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1.15rem;
  list-style: none;
}

.maw-drop summary::-webkit-details-marker {
  display: none;
}

.maw-drop summary::after {
  content: "▾";
  float: right;
  transition: transform 0.2s ease;
  opacity: 0.8;
}

.maw-drop[open] summary::after {
  transform: rotate(180deg);
}

.maw-drop-content {
  padding-top: 14px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.image-grid img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

/* =========================
   8) ANMELDUNG
========================= */
.anmeldung-layout {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.anmeldung-text {
  flex: 1.2;
}

.anmeldung-image {
  flex: 0 0 280px;
  display: flex;
  justify-content: center;
}

.anmeldung-image img {
  width: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* =========================
   9) GALLERY + LIGHTBOX
========================= */
#gallery {
  scroll-margin-top: 90px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.gallery-grid a {
  display: block;
  cursor: zoom-in;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  z-index: 2000;
}

.lightbox:target {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: zoom-out;
  max-width: 100%;
  max-height: 100%;
}

.lightbox img {
  display: block;
  max-width: min(82vw, 1000px);
  max-height: 72vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  transform: scale(0.96);
  transition: transform 0.2s ease;
}

.lightbox:target img {
  transform: scale(1);
}

.lightbox span {
  display: block;
  margin-top: 14px;
  color: var(--color-light);
  font-size: 1.15rem;
  text-align: center;
}

.lightbox::after {
  content: "✕ schließen";
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--color-light);
  font-size: 1rem;
  opacity: 0.75;
  pointer-events: none;
}

/* =========================
   10) RESPONSIVE
========================= */
@media (max-width: 900px) {
  .columns {
    column-count: 1;
  }

  .image-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-desktop {
    display: none;
  }

  .nav-mobile {
    display: block;
  }

  .anmeldung-layout {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .anmeldung-image {
    flex: none;
  }

  .anmeldung-image img {
    width: min(100%, 320px);
    height: auto;
    max-height: none;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .programm-float {
    float: none;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 18px 0;
  }
}

/* =========================
   PREISE
========================= */

.price-box {
  background: #e9dfc7;
  padding: 28px;
  border-radius: 12px;
  margin: 30px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.price-box h3 {
  font-family: 'Cinzel', serif;
  margin-bottom: 18px;
  color: #3a3a3a;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table td {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  font-size: 1.1rem;
}

.price-table td:last-child {
  text-align: right;
  font-weight: 700;
}

.discount td:last-child {
  color: #2f6b2f;
}

.surcharge td:last-child {
  color: #8b3b2e;
}

.price-note {
  margin-top: 16px;
  font-style: italic;
  opacity: 0.85;
}