/* Adventszauber Bad Hönningen – Website-Styles (CI nach Plakat 2023) */

:root {
  --navy-950: #011e30;
  --navy-900: #012940;
  --navy-800: #013457;
  --navy-700: #0a3a58;
  --blue-500: #155884;
  --gold-400: #f9c059;
  --gold-300: #fbd38a;
  --white: #ffffff;
  --text: #e8eef4;
  --text-muted: #a9bccd;
  --line: rgba(255, 255, 255, .16);
  --card: rgba(255, 255, 255, .045);
  --card-border: rgba(249, 192, 89, .22);

  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Italiana", "Didot", "Bodoni 72", Georgia, serif;

  --radius: 14px;
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-400); text-underline-offset: .18em; }
a:hover { color: var(--gold-300); }

:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--white); }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--gold-400); color: var(--navy-900); padding: .6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(1, 41, 64, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.page-home .site-header:not(.is-scrolled) {
  background: linear-gradient(to bottom, rgba(1, 30, 48, .7), rgba(1, 30, 48, 0));
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.page-home .site-header { position: fixed; left: 0; right: 0; }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
}

.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand__title {
  font-family: var(--font-display); font-size: 1.65rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-400);
}
.brand__place {
  font-size: .62rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase;
  color: var(--white); margin-top: .35rem;
}

.site-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .55rem .85rem; border-radius: 999px;
  color: var(--white); text-decoration: none;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.site-nav a:hover { color: var(--gold-400); }
.site-nav a[aria-current="page"] { color: var(--gold-400); }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line); color: var(--white);
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }
.nav-toggle__open { display: inline-flex; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy-950);
    border-bottom: 2px solid var(--gold-400);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .35);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem var(--gutter) 1rem; }
  .site-nav a { padding: .9rem .5rem; font-size: .95rem; border-radius: 8px; border-bottom: 1px solid var(--line); }
  .site-nav li:last-child a { border-bottom: 0; }
  .page-home .site-header.nav-open { background: var(--navy-950); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 980px);
  display: flex; align-items: stretch;
  overflow: hidden;
  background: var(--navy-900);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(1, 30, 48, .55) 0%, rgba(1, 41, 64, 0) 28%),
    linear-gradient(to bottom, rgba(1, 41, 64, 0) 45%, rgba(1, 41, 64, .85) 78%, var(--navy-900) 100%);
}

.hero__content {
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--header-h) + clamp(1.5rem, 6vh, 4rem));
  padding-bottom: clamp(2rem, 6vh, 4rem);
}

.hero__date {
  font-weight: 800; color: var(--gold-400);
  font-size: clamp(2.1rem, 6.2vw, 4.4rem); line-height: 1.02; letter-spacing: -.01em;
  max-width: 9ch; margin: 0 0 .9rem;
  text-shadow: 0 2px 18px rgba(1, 30, 48, .55);
}
.hero__meta {
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  font-size: clamp(.95rem, 1.6vw, 1.2rem); color: var(--gold-400); line-height: 1.4;
  text-shadow: 0 1px 10px rgba(1, 30, 48, .7);
}
.hero__meta span { color: var(--white); font-size: .72em; letter-spacing: .1em; }

.hero__title-wrap { text-align: center; margin-top: 3rem; }
.hero__title { margin: 0; display: flex; flex-direction: column; align-items: center; }
.display {
  font-family: var(--font-display); font-weight: 400;
  color: var(--gold-400);
  font-size: clamp(2.3rem, 8.6vw, 6.4rem);
  letter-spacing: .2em; margin-right: -.2em; /* optische Zentrierung trotz Sperrung */
  text-transform: uppercase; line-height: 1;
}
.hero__place {
  font-family: var(--font-sans); font-weight: 700; color: var(--white);
  font-size: clamp(.85rem, 2vw, 1.35rem); letter-spacing: .3em; margin-right: -.3em;
  text-transform: uppercase; margin-top: .9rem;
}

/* ---------- Infoleiste (wie Plakat: feine Linien) ---------- */

.infobar { border-block: 1px solid var(--line); background: var(--navy-900); }
.infobar__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.infobar p {
  display: flex; gap: .85rem; align-items: flex-start; margin: 0;
  padding: 1.4rem 1.25rem; font-size: .9rem; color: var(--text-muted);
}
.infobar p + p { border-left: 1px solid var(--line); }
.infobar strong { color: var(--white); font-weight: 700; letter-spacing: .02em; }
.infobar .icon { color: var(--gold-400); margin-top: .15rem; }

@media (max-width: 760px) {
  .infobar__grid { grid-template-columns: 1fr; }
  .infobar p { padding-inline: 0; }
  .infobar p + p { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Sektionen ---------- */

.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section--alt { background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); }

.section__head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: .6rem;
}
.section__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .14em; font-size: clamp(2rem, 5vw, 3.2rem); color: var(--white);
}
.section__head .section__title { margin-right: -.14em; }

.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}

/* Programm */
.program { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.5rem); align-items: start; }
@media (max-width: 980px) { .program { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; } }
.program__dayname {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .12em;
  font-size: 1.9rem; color: var(--gold-400); margin-bottom: .1em;
}
.program__date { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; color: var(--white); line-height: 1.5; }
.program__hours { color: var(--text-muted); letter-spacing: .06em; }
.program__note {
  font-size: .85rem; color: var(--navy-900); background: var(--gold-400);
  border-radius: 8px; padding: .45rem .75rem; margin: .25rem 0 0; font-weight: 600;
}
.program__tba { color: var(--text-muted); margin: 1.25rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.program__list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.program__list li { display: flex; flex-direction: column; gap: .2rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.program__title { color: var(--white); font-weight: 700; line-height: 1.4; }
.program__text { color: var(--text); font-size: .92rem; }
.program__meta { display: flex; gap: .45rem; align-items: flex-start; color: var(--text-muted); font-size: .85rem; line-height: 1.45; }
.program__meta .icon { color: var(--gold-400); width: 1.05em; height: 1.05em; margin-top: .15em; }
.program__list li.is-highlight {
  margin: .25rem -.75rem; padding: .85rem .75rem; border: 1px solid var(--gold-400);
  border-radius: 10px; background: rgba(249, 192, 89, .08);
}
.program__list li.is-highlight + li { border-top-color: transparent; }
.program__badge {
  align-self: flex-start; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy-900); background: var(--gold-400); border-radius: 999px; padding: .15rem .6rem;
}

/* Split-Layout */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split .section__title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.split__actions { display: flex; flex-direction: column; gap: .75rem; align-items: stretch; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.4rem; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--gold-400); transition: background-color .15s, color .15s;
}
.btn--primary { background: var(--gold-400); color: var(--navy-900); }
.btn--primary:hover { background: var(--gold-300); color: var(--navy-900); }
.btn--ghost { color: var(--gold-400); background: transparent; }
.btn--ghost:hover { background: rgba(249, 192, 89, .1); }

/* Lageplan */
.map { margin: 0 auto; max-width: 980px; }
.map__link { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-border); }
.map__legend {
  list-style: none; padding: 0; margin: 1.25rem 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.5rem;
}
.map__legend li { display: flex; align-items: center; gap: .55rem; font-weight: 600; }
.map__num {
  display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--gold-400); color: var(--navy-900); font-weight: 800; font-size: .85rem;
}

/* ---------- Inhaltsseiten ---------- */

.page-hero {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3rem);
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(1, 41, 64, .55), var(--navy-900)),
    url("/assets/img/visual-1280.webp") center 35% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.page-hero .section__title { margin: 0 -.14em 0 0; }
.page-hero p { color: var(--text); max-width: 680px; margin: 1rem auto 0; }

.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.25rem; margin-top: 2.2em; color: var(--gold-400); letter-spacing: .02em; }
.prose h2:first-child { margin-top: 0; }
.prose address { font-style: normal; margin-bottom: 1em; }
.prose a { word-break: break-word; }

/* Aussteller */
.category { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.category__title { font-size: 1.2rem; color: var(--gold-400); letter-spacing: .04em; margin-bottom: 1.1rem; }
.exhibitors { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.exhibitor {
  display: flex; flex-direction: column; height: 100%;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--text); transition: transform .15s, border-color .15s;
}
.exhibitor:hover { transform: translateY(-2px); border-color: var(--gold-400); color: var(--text); }
.exhibitor__img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--navy-800); }
.exhibitor__body { padding: 1rem 1.1rem 1.2rem; }
.exhibitor__name { font-size: 1.05rem; margin: 0 0 .25rem; }
.exhibitor__headline { font-size: .88rem; color: var(--text-muted); margin: 0; }

.notice {
  text-align: center; color: var(--text-muted);
  border: 1px dashed var(--card-border); border-radius: var(--radius); padding: 1.5rem;
}

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.data-table th {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-400); background: rgba(255, 255, 255, .04);
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child { font-weight: 600; color: var(--white); }
.data-table .nowrap { white-space: nowrap; }

@media (max-width: 640px) {
  .table-wrap { border: 0; overflow: visible; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; }
  .data-table thead { display: none; }
  .data-table tr { border: 1px solid var(--line); border-radius: 12px; padding: .4rem .9rem; margin-bottom: .75rem; }
  .data-table td { border: 0; padding: .3rem 0; }
  .data-table td[data-label]:not(:first-child)::before {
    content: attr(data-label) ": "; color: var(--text-muted); font-size: .8rem;
  }
}

/* Eintrag */
.entry { max-width: 860px; margin-inline: auto; }
.entry__back { display: inline-flex; gap: .4rem; align-items: center; margin-bottom: 1.5rem; font-weight: 600; }
.entry__back .icon { transform: rotate(180deg); }
.gallery { display: grid; gap: .75rem; margin-bottom: 1.75rem; }
.gallery--multi { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gallery img { border-radius: var(--radius); width: 100%; object-fit: cover; max-height: 560px; }
.entry__desc { font-size: 1.02rem; }
.entry__desc img { border-radius: 10px; }

/* Einleitung */
.prose--center { text-align: center; }
.prose .section__title { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--white); letter-spacing: .14em; margin-top: 0; }
.prose--center .section__title { margin-right: -.14em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--white); line-height: 1.7; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .75rem; }
.faq details { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.25rem; position: relative;
  font-weight: 700; color: var(--white);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; translate: 0 -50%;
  color: var(--gold-400); font-size: 1.4rem; font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.25rem 1.2rem; margin: 0; color: var(--text); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-950); border-top: 1px solid var(--line); padding-top: clamp(3rem, 7vw, 4.5rem); font-size: .92rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr; } }

.footer-brand { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); margin: 0; line-height: 1; }
.footer-place { font-size: .7rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; margin: .5rem 0 1rem; color: var(--white); }
.footer-text { color: var(--text-muted); }
.footer-heading { font-size: .75rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 1rem; }

.contact-list, .social, .sponsors, .legal { list-style: none; margin: 0; padding: 0; }
.contact-list li + li { margin-top: .5rem; }
.contact-list a, .social a { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; }
.contact-list a:hover, .social a:hover { color: var(--gold-400); }
.contact-list .icon, .social .icon { color: var(--gold-400); }
.social { display: flex; gap: 1.25rem; margin-top: 1.25rem; }
.sponsors img { background: #fff; border-radius: 10px; padding: .5rem; max-width: 200px; }

.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
  border-top: 1px solid var(--line); padding-block: 1.25rem 1.75rem; color: var(--text-muted); font-size: .82rem;
}
.site-footer__bottom p { margin: 0; }
.legal { display: flex; gap: 1.5rem; }
.legal a { color: var(--text-muted); }
.legal a:hover { color: var(--gold-400); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
