/* =========================================================================
   City Weihnachtsmarkt Zürich – Stylesheet
   -------------------------------------------------------------------------
   Farbpalette und Typografie sind als CSS-Variablen definiert (siehe :root).
   Platzhalter-Bilder: Jede .media-Fläche zeigt eine Taupe-Fläche mit dem
   Häuschen-Icon, solange das Bild fehlt oder noch lädt.
   ========================================================================= */

:root {
  --brown: #2B2320;        /* Hintergrund */
  --brown-2: #352b27;      /* leicht hellere Flächen */
  --brown-3: #41352f;      /* Karten, Tabellenzeilen */
  --cream: #F5F1EB;        /* Text, helle Flächen */
  --cream-2: #e6dfd5;      /* gedämpfter Text */
  --taupe: #8A7F76;        /* Logo, Sekundärelemente */
  --taupe-2: #b3a89e;      /* helleres Taupe für Text auf Dunkel (≥4.5:1 auch auf --brown-3) */
  --red: #7A3B2E;          /* Akzent, Buttons */
  --red-2: #8f4638;        /* Hover */
  --gold: #C9A96E;         /* Sterne, Highlights, aktive Zustände */
  --gold-2: #dcc08a;

  --font-title: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .35);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, .25);
  --header-h: 84px;
  --container: 1180px;

  /* Häuschen-Icon in Creme/Gold als Platzhalter-Hintergrund */
  --hut-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23F5F1EB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 30 32 12l20 18'/%3E%3Cpath d='M16 28v26h32V28'/%3E%3Cpath d='M26 54V40h12v14'/%3E%3Cpath d='M42 18v-6h5v11'/%3E%3C/g%3E%3Crect x='20' y='34' width='6' height='6' fill='%23C9A96E'/%3E%3Crect x='38' y='34' width='6' height='6' fill='%23C9A96E'/%3E%3Cpath d='M32 3l1.3 2.7 3 .4-2.2 2.1.5 3-2.6-1.4-2.6 1.4.5-3-2.2-2.1 3-.4z' fill='%23C9A96E'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ Reset */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cream);
  background: var(--brown);
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--cream);
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
ul, ol { padding-left: 1.2em; }
button { font: inherit; cursor: pointer; }
select { font: inherit; }
a, button, select, summary, label[for], [role="button"] { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 1000;
  background: var(--gold); color: var(--brown); padding: .6rem 1rem; border-radius: 0 0 8px 8px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 2.5rem); margin-inline: auto; }

/* ------------------------------------------------------------ Typografie */
.eyebrow {
  font-family: var(--font-body); font-size: .8rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .8rem; font-weight: 700;
}
.lead { font-size: 1.2rem; color: var(--cream-2); font-weight: 300; }
.muted { color: var(--taupe-2); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--cream-2); }

/* Ornament / Trennelement */
.ornament {
  display: block; width: 220px; max-width: 60%; height: 26px; margin: .6rem auto 1.4rem; color: var(--gold);
}
.ornament--left { margin-left: 0; }

/* ------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.5rem; border-radius: 999px;
  font-weight: 700; letter-spacing: .04em; text-decoration: none; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  line-height: 1.2; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: var(--cream); }
.btn--primary:hover { background: var(--red-2); color: var(--cream); }
.btn--outline { background: transparent; color: var(--cream); border-color: var(--taupe); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--gold { background: var(--gold); color: var(--brown); }
.btn--gold:hover { background: var(--gold-2); color: var(--brown); }
.btn--sm { min-height: 44px; padding: .45rem 1.1rem; font-size: .95rem; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(43, 35, 32, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 169, 110, .18);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--cream); }
.brand-mark {
  width: 112px; height: 54px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-mark img {
  width: 100%; height: 100%; object-fit: contain;
  /* Logo hell einfärben, damit es auf dunklem Grund sichtbar ist */
  filter: brightness(0) invert(97%) sepia(8%) saturate(255%) hue-rotate(357deg);
}
.brand-text {
  font-family: var(--font-title); font-size: 1.05rem; line-height: 1.15; letter-spacing: .04em;
}
.brand-text small { display: block; font-family: var(--font-body); font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
.site-nav a {
  display: flex; align-items: center; min-height: 44px; padding: .55rem .8rem; color: var(--cream); text-decoration: none;
  font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; border-radius: 8px;
  position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .2s; transform-origin: left;
}
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--gold); }

.header-tools { display: flex; align-items: center; gap: .8rem; }
.lang-switch { display: inline-flex; border: 1px solid var(--taupe); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  background: transparent; color: var(--cream-2); border: 0; padding: .35rem .8rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  min-height: 44px; min-width: 44px;
}
.lang-switch button[aria-pressed="true"] { background: var(--gold); color: var(--brown); }
.nav-toggle {
  display: none; align-items: center; gap: .5rem; background: transparent; border: 1px solid var(--taupe);
  color: var(--cream); border-radius: 999px; padding: .45rem .9rem; min-height: 44px;
}
.nav-toggle .bars { position: relative; width: 20px; height: 14px; display: inline-block; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars span {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .25s, opacity .25s;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars span { top: 6px; }
.nav-toggle .bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .brand-text { display: none; }
  .site-nav a { padding: .55rem .6rem; font-size: .85rem; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand-text { display: block; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--brown-2); border-bottom: 1px solid rgba(201, 169, 110, .2);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav.is-open { max-height: 80vh; box-shadow: var(--shadow); }
  .site-nav ul { flex-direction: column; padding: .8rem 1.25rem 1.2rem; gap: .1rem; }
  .site-nav a { padding: .8rem .6rem; font-size: 1rem; }
  .site-nav a::after { display: none; }
}
@media (max-width: 420px) { .brand-text { display: none; } }

/* --------------------------------------------------------------- Hero */
.hero {
  position: relative; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  display: grid; place-items: center; text-align: center; padding: 4rem 1rem 6rem; overflow: hidden; isolation: isolate;
  /* TODO: img/hero.jpg (1920×1080) ersetzen. Fällt das Bild aus, bleibt der warme Verlauf sichtbar. */
  background:
    linear-gradient(180deg, rgba(43, 35, 32, .45) 0%, rgba(43, 35, 32, .7) 60%, var(--brown) 100%),
    url("../img/hero.jpg") center / cover no-repeat,
    radial-gradient(ellipse at 50% 30%, #5a4a41 0%, var(--brown) 70%);
}
/* dezente "Lichter" als Stimmung, auch ohne Foto */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background:
    radial-gradient(circle at 12% 28%, rgba(201, 169, 110, .35) 0 2px, transparent 40px),
    radial-gradient(circle at 24% 62%, rgba(201, 169, 110, .28) 0 3px, transparent 55px),
    radial-gradient(circle at 78% 30%, rgba(201, 169, 110, .33) 0 2px, transparent 45px),
    radial-gradient(circle at 88% 66%, rgba(201, 169, 110, .28) 0 3px, transparent 60px),
    radial-gradient(circle at 60% 14%, rgba(245, 241, 235, .3) 0 1px, transparent 30px),
    radial-gradient(circle at 40% 80%, rgba(201, 169, 110, .22) 0 2px, transparent 50px);
}
.hero-inner { max-width: 760px; }
.hero-logo {
  display: inline-block;
  width: clamp(290px, 48vw, 500px);
  margin-bottom: 1.6rem;
}
.hero-logo img {
  display: block; width: 100%; height: auto;
  /* Logo hell einfärben und leicht abheben – ohne weisse Box */
  filter: brightness(0) invert(97%) sepia(8%) saturate(255%) hue-rotate(357deg)
          drop-shadow(0 2px 18px rgba(0, 0, 0, .45));
}
.hero h1 { text-shadow: 0 2px 14px rgba(0, 0, 0, .5); margin-bottom: .4rem; }
.hero-dates {
  display: inline-flex; align-items: center; gap: .8rem; font-family: var(--font-title); font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--gold); margin: .4rem 0 1.2rem; letter-spacing: .04em;
}
.hero-dates svg { width: 1em; height: 1em; }
.hero p.lead { margin-bottom: 1.8rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.hero-scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); color: var(--taupe-2); font-size: .75rem;
  letter-spacing: .3em; text-transform: uppercase; text-decoration: none;
}
.hero-scroll::after {
  content: ""; display: block; width: 1px; height: 34px; margin: .4rem auto 0; background: linear-gradient(var(--gold), transparent);
}
@media (max-width: 700px), (max-height: 640px) { .hero-scroll { display: none; } .hero { padding-bottom: 4rem; } }

/* ---------------------------------------------------------- Abschnitte */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--brown-2); }
.section--cream { background: var(--cream); color: var(--brown); }
.section--cream h2, .section--cream h3 { color: var(--brown); }
.section--cream .section-head p, .section--cream .lead { color: #4b4038; }
.section--cream a { color: var(--red); }
.section--cream .eyebrow { color: var(--red); }
.section--cream .ornament { color: var(--taupe); }

.grid { display: grid; gap: 1.6rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Über den Markt */
.about { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1.1fr .9fr; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.fact {
  text-align: center; padding: 1.4rem .6rem; border: 1px solid rgba(201, 169, 110, .3); border-radius: var(--radius-sm);
  background: rgba(245, 241, 235, .03);
}
.fact strong { display: block; font-family: var(--font-title); font-size: 2.2rem; color: var(--gold); line-height: 1; margin-bottom: .3rem; }
.fact span { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe-2); }
.fact svg { width: 30px; height: 30px; margin: 0 auto .5rem; color: var(--taupe-2); display: block; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .about-facts { grid-template-columns: 1fr 1fr; } .about-facts .fact:last-child { grid-column: 1 / -1; } }

/* ------------------------------------------------ Bild-Platzhalter */
.media {
  position: relative; overflow: hidden; background: var(--taupe) var(--hut-icon) center / 34% no-repeat;
  border-radius: var(--radius-sm); aspect-ratio: 4 / 3;
}
.media--3x2 { aspect-ratio: 3 / 2; }
.media--wide { aspect-ratio: 16 / 9; }
.media--logo { aspect-ratio: 2 / 1; background-size: 26%; background-color: rgba(245, 241, 235, .06); }
.media--square { aspect-ratio: 1; }
.media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.media--logo img { object-fit: contain; padding: 1.2rem; }
.media img.is-missing { visibility: hidden; }   /* fehlendes Bild → Taupe-Fläche mit Häuschen bleibt sichtbar */
.media img[alt]::before { content: ""; }        /* "kaputtes Bild"-Symbol unterdrücken (Chromium) */

/* ---------------------------------------------------------- Standorte */
.standorte-intro { text-align: center; max-width: 760px; margin: 0 auto 2rem; }

/* Karte: hell und ruhig (Stil wie weihnachten-zuerich.ch/mitglieder) */
.map-frame {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid rgba(201, 169, 110, .35); background: #f2f0ec;
  margin-bottom: 2rem;
}
.map { height: 640px; width: 100%; background: #f2f0ec; z-index: 1; }
@media (max-width: 720px) { .map { height: 480px; } }
.map-fallback, .map-notice {
  position: absolute; inset: 0; z-index: 450; display: grid; place-items: center; text-align: center; padding: 2rem;
  background: rgba(43, 35, 32, .88) var(--hut-icon) center 28% / 90px no-repeat;
}
.map-fallback p { max-width: 420px; margin: 0; padding-top: 60px; }
.map-notice { inset: auto 1rem 1rem 1rem; padding: .9rem 1.2rem; background: rgba(43, 35, 32, .92); border: 1px solid var(--gold);
  border-radius: var(--radius-sm); font-size: .95rem; }

/* Leaflet-Anpassungen */
.leaflet-container { font-family: var(--font-body); background: #f2f0ec; }
.leaflet-tile-pane { filter: grayscale(1) brightness(1.06) contrast(.92); }
.leaflet-control-zoom { border: 0 !important; box-shadow: 0 2px 8px rgba(0, 0, 0, .25) !important; border-radius: 0 !important; overflow: hidden; margin: 0 14px 22px 0 !important; }
.leaflet-bar a, .leaflet-bar a:hover {
  width: 46px !important; height: 46px !important; line-height: 46px !important; font-size: 24px !important; font-weight: 300;
  background: #fff !important; color: #444 !important; border-bottom: 1px solid #e6e6e6 !important; border-radius: 0 !important;
}
.leaflet-bar a:hover { color: var(--red) !important; }
.leaflet-bar a.leaflet-disabled { opacity: .4; }
.leaflet-control-attribution {
  background: rgba(255, 255, 255, .85) !important; color: #555 !important; font-size: 11px !important; padding: 2px 8px !important;
}
.leaflet-control-attribution a { color: #444 !important; }

/* Pin-Marker im Google-Maps-Stil */
.cwm-marker { background: none !important; border: 0 !important; }
.cwm-marker__icon {
  width: 40px; height: 56px; display: block; overflow: visible; transform-origin: 50% 100%;
  transition: transform .18s ease; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}
.cwm-marker__icon .pin { fill: var(--red); stroke: rgba(255, 255, 255, .9); stroke-width: 1.2; }
.cwm-marker__icon .dot { fill: #fff; }
.cwm-marker:hover .cwm-marker__icon, .cwm-marker:focus .cwm-marker__icon { transform: translateY(-3px) scale(1.06); }
.cwm-marker.is-active .cwm-marker__icon { transform: scale(1.4); }
.cwm-marker.is-active .cwm-marker__icon .pin { fill: var(--gold); }
.leaflet-marker-icon:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Einzelne Häuschen (ab Zoomstufe 17): nummerierte Punkte */
.cwm-unit { background: none !important; border: 0 !important; }
.cwm-unit__dot {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); color: var(--brown); border: 2px solid #fff; font: 700 .8rem/1 var(--font-body);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transition: transform .15s ease;
}
.cwm-unit__dot--maroni { background: var(--red); color: var(--cream); }
.cwm-unit__dot svg { width: 14px; height: 14px; fill: currentColor; }
.cwm-unit:hover .cwm-unit__dot, .cwm-unit:focus .cwm-unit__dot { transform: scale(1.2); }
.map-frame.is-detail .cwm-marker__icon { opacity: .55; }
.map-frame.is-detail .cwm-marker.is-active .cwm-marker__icon { opacity: .8; }
.cwm-tooltip { background: #fff; color: #222; border: 0; border-radius: 3px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); font-size: .85rem; padding: .3rem .55rem; }
.cwm-tooltip::before { border-top-color: #fff; }

/* Popup: weiss, schlicht (Name, Weitere Infos, Route) */
.cwm-popup .leaflet-popup-content-wrapper {
  background: #fff; color: #333; border-radius: 4px; box-shadow: 0 2px 12px rgba(0, 0, 0, .3); padding: 0;
}
.cwm-popup .leaflet-popup-content { margin: 0; width: 240px !important; max-width: calc(100vw - 60px); line-height: 1.45; font-size: .95rem; }
.cwm-popup .leaflet-popup-tip { background: #fff; }
.cwm-popup .leaflet-popup-close-button {
  top: 10px !important; right: 10px !important; width: 28px !important; height: 28px !important; font-size: 26px !important; line-height: 28px !important;
  color: #333 !important; font-weight: 300;
}
.cwm-popup .leaflet-popup-close-button:hover { color: var(--red) !important; background: transparent !important; }
.popup { display: flex; flex-direction: column; align-items: flex-start; padding: 2.4rem 1.2rem 1.1rem; gap: .15rem; }
.popup__title { font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: #222; padding-right: 1rem; }
.popup__address { font-size: .85rem; color: #666; margin-bottom: .15rem; }
.popup__loc { font-size: .8rem; color: #6a6a6a; margin-bottom: .3rem; }
.popup__link {
  background: none; border: 0; padding: .35rem 0; margin: 0; font: inherit; font-size: .95rem; color: var(--red); cursor: pointer;
  text-decoration: none; line-height: 1.7; text-align: left;
}
.popup__link:hover, .popup__link:focus-visible { text-decoration: underline; color: var(--red-2); }
.popup__link + .popup__link { margin-top: .1rem; }
.leaflet-container a.popup__link { color: var(--red); }
.leaflet-container a.popup__link:hover { color: var(--red-2); }

/* Hinweis + «Anzeigen als» + Liste */
.standort-hint { font-family: var(--font-title); font-size: 1.35rem; color: var(--gold); margin: 0 0 1.2rem; }
.standort-hint__sub { display: block; font-family: var(--font-body); font-size: .95rem; color: var(--cream-2); margin-top: .3rem; }
.standort-toolbar { margin-bottom: 0; }
.standort-view { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 2px solid var(--gold); padding: .4rem 1.2rem; cursor: pointer; background: transparent; }
.standort-view__label { font-family: var(--font-title); text-transform: uppercase; letter-spacing: .08em; font-size: 1.15rem; color: var(--gold); }
.standort-view__select {
  appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: var(--gold); font: inherit; font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; cursor: pointer; padding: .5rem 1.6rem .5rem .4rem; min-height: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C9A96E' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .2rem center; background-size: 12px 8px;
}
.standort-view__select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.standort-view__select option { color: #222; background: #fff; }

.standort-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(201, 169, 110, .35); }
.standort-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.2rem; border-bottom: 1px solid rgba(201, 169, 110, .25); transition: background .15s ease;
}
.standort-item:hover { background: rgba(255, 255, 255, .03); }
.standort-item.is-active { background: rgba(201, 169, 110, .12); box-shadow: inset 4px 0 0 var(--gold); }
.standort-item__main {
  display: flex; align-items: center; gap: 1rem; flex: 1 1 320px; text-align: left; background: none; border: 0; padding: 0; margin: 0;
  color: inherit; font: inherit; cursor: pointer;
}
.standort-item__main:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.standort-item__pin { flex: none; width: 26px; height: 36px; }
.standort-item__pin .cwm-marker__icon { width: 26px; height: 36px; filter: none; }
.standort-item.is-active .standort-item__pin .cwm-marker__icon .pin { fill: var(--gold); }
.standort-item__text { display: flex; flex-direction: column; }
.standort-item__name { font-family: var(--font-title); font-size: 1.15rem; color: var(--cream); }
.standort-item__address { color: var(--cream-2); font-size: .95rem; }
.standort-item__huts { color: var(--gold); font-size: .85rem; font-weight: 700; }
.standort-item__links { display: flex; gap: 1.4rem; flex: none; }
.standort-item__link {
  background: none; border: 0; padding: .6rem 0; margin: 0; font: inherit; font-size: .95rem; color: var(--gold); cursor: pointer; text-decoration: none; min-height: 44px;
}
.standort-item__link:hover, .standort-item__link:focus-visible { text-decoration: underline; color: var(--gold-2); }
@media (max-width: 560px) { .standort-item__links { flex-basis: 100%; padding-left: calc(26px + 1rem); } }

.standort-grid { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1.6rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .standort-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .standort-grid { grid-template-columns: 1fr; } }
.standort-card {
  background: var(--brown-2); border: 1px solid rgba(201, 169, 110, .18); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.standort-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.standort-card.is-active { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 169, 110, .35), var(--shadow); }
.standort-card .media { border-radius: 0; }
.standort-card__num {
  position: absolute; left: .9rem; top: .9rem; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  background: var(--cream); color: var(--brown); font-family: var(--font-title); font-weight: 700; display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.standort-card.is-active .standort-card__num { background: var(--gold); }
.standort-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.standort-card__body h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.standort-card__huts { display: flex; align-items: center; gap: .5rem; color: var(--gold); font-weight: 700; font-size: .95rem; margin: 0 0 .7rem; }
.standort-card__huts svg { width: 26px; height: 26px; flex: none; }
.standort-card__desc { color: var(--cream-2); margin-bottom: .4rem; }
.standort-card__transport { font-size: .9rem; color: var(--taupe-2); margin-bottom: 1.2rem; }
.standort-card__actions { margin-top: auto; display: flex; gap: .6rem; flex-wrap: wrap; }
.standort-card__actions .btn { flex: 1 1 auto; }

/* Plan-Modal & generisches Modal */
.modal {
  position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 1rem;
  background: rgba(20, 15, 13, .82); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal[hidden] { display: none; }
.modal__dialog {
  width: min(1040px, 100%); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow: auto;
  background: var(--brown); color: var(--cream); border-radius: var(--radius); border: 1px solid rgba(201, 169, 110, .4);
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.modal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.5rem .6rem; }
.modal__header h2 { font-size: 1.6rem; margin: 0; }
.modal__close {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--taupe); background: transparent; color: var(--cream);
  font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
}
.modal__close:hover { border-color: var(--gold); color: var(--gold); }
.modal__body { padding: 0 1.5rem 1.5rem; }
.modal__body--text h3 { margin-top: 1.4rem; font-size: 1.2rem; }
.modal__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--cream-2); margin: 0 0 1rem; font-size: .95rem; }
.modal__meta strong { color: var(--gold); }
.modal__meta svg { width: 1.2em; height: 1.2em; vertical-align: -3px; margin-right: .3em; }
.modal__actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.unit-list__title { font-size: 1.15rem; margin: 1.4rem 0 .6rem; }
.unit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.unit-list__item { display: flex; align-items: center; gap: .7rem; padding: .55rem .8rem; background: rgba(255, 255, 255, .04); border: 1px solid rgba(201, 169, 110, .2); border-radius: var(--radius-sm); font-size: .92rem; }
.unit-list__item .cwm-unit__dot { flex: none; }
.unit-list__text { display: flex; flex-direction: column; flex: 1; line-height: 1.3; }
.unit-list__text strong { color: var(--cream); }
.unit-list__text span { color: var(--cream-2); font-size: .85rem; }
.unit-list__size { color: var(--gold); font-weight: 700; white-space: nowrap; }

.plan-viewer {
  position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--taupe) var(--hut-icon) center / 120px no-repeat;
  height: min(62vh, 640px); min-height: 300px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
.plan-viewer.is-dragging { cursor: grabbing; }
.plan-viewer img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; transform-origin: 0 0; will-change: transform; pointer-events: none; }
.plan-viewer img.is-missing { visibility: hidden; }
.plan-viewer__hint {
  position: absolute; left: 50%; bottom: .8rem; transform: translateX(-50%); background: rgba(43, 35, 32, .85); color: var(--cream-2);
  font-size: .8rem; padding: .3rem .8rem; border-radius: 999px; pointer-events: none; white-space: nowrap;
}
.plan-viewer__controls { position: absolute; right: .8rem; top: .8rem; display: flex; flex-direction: column; gap: .4rem; z-index: 2; }
.plan-viewer__controls button {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(201, 169, 110, .4); background: var(--brown); color: var(--cream);
  font-size: 1.2rem; font-weight: 700; display: grid; place-items: center;
}
.plan-viewer__controls button:hover { color: var(--gold); }

/* ------------------------------------------------------- Öffnungszeiten */
.hours-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: var(--radius-sm); background: var(--brown-2); }
.hours-table th, .hours-table td { padding: .9rem 1.2rem; text-align: left; border-bottom: 1px solid rgba(201, 169, 110, .15); }
.hours-table th { font-family: var(--font-title); font-weight: 600; color: var(--gold); font-size: 1rem; letter-spacing: .05em; }
.hours-table tbody tr:last-child td { border-bottom: 0; }
.hours-table tr.is-special td { background: rgba(201, 169, 110, .13); color: var(--gold); font-weight: 700; }
.hours-table tr.is-special td:first-child::before { content: "★ "; font-size: .8em; }
.hours-table td:last-child { white-space: nowrap; }
.hours-note { font-size: .92rem; color: var(--taupe-2); margin-top: 1rem; }
.table-wrap { overflow-x: auto; }

/* ------------------------------------------------------ Stände-Kacheln */
.tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--brown-3); min-height: 280px; }
/* Dunklerer Platzhalter, damit der Kachel-Text WCAG-Kontrast erreicht (≥ 4.5:1) */
.tile .media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; background-color: #4a3d34; }
.tile::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43, 35, 32, .15) 0%, rgba(43, 35, 32, .55) 45%, rgba(43, 35, 32, .96) 100%); pointer-events: none;
}
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem; z-index: 2; }
.tile__icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--cream); color: var(--red); display: grid; place-items: center;
  margin-bottom: .7rem; box-shadow: var(--shadow-sm);
}
.tile__icon svg { width: 26px; height: 26px; }
.tile h3 { margin-bottom: .2rem; }
.tile p { margin: 0; color: var(--cream-2); font-size: .95rem; }

/* ------------------------------------------------------------ Programm */
.event { display: grid; grid-template-columns: 92px 1fr; gap: 1.2rem; align-items: center;
  background: var(--brown-2); border: 1px solid rgba(201, 169, 110, .18); border-radius: var(--radius-sm); padding: 1.2rem; }
.event__date { text-align: center; border-right: 1px solid rgba(201, 169, 110, .3); padding-right: 1rem; }
.event__date strong { display: block; font-family: var(--font-title); font-size: 2rem; line-height: 1; color: var(--gold); }
.event__date span { display: block; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--taupe-2); margin-top: .2rem; }
.event__time { font-size: .85rem; color: var(--gold); font-weight: 700; letter-spacing: .05em; }
.event h3 { font-size: 1.2rem; margin: .15rem 0 .2rem; }
.event__where { margin: 0; font-size: .92rem; color: var(--taupe-2); }
.event__where svg { width: 1.1em; height: 1.1em; vertical-align: -2px; margin-right: .3em; }
.event__tag { display: inline-block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding: .15rem .6rem; border-radius: 999px;
  border: 1px solid var(--taupe); color: var(--cream-2); margin-left: .5rem; vertical-align: middle; }

/* ------------------------------------------------------------- Mitmachen */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.size-list { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.size-list li { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border: 1px solid rgba(201, 169, 110, .3); border-radius: var(--radius-sm); font-size: .95rem; }
.size-list svg { width: 26px; height: 26px; color: var(--gold); flex: none; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.check-list li { padding-left: 1.8rem; position: relative; margin-bottom: .5rem; }
.check-list li::before { content: "★"; color: var(--gold); position: absolute; left: .2rem; top: .05rem; font-size: .85em; }

/* ------------------------------------------------------------- Formulare */
.form { background: var(--brown-2); border: 1px solid rgba(201, 169, 110, .2); border-radius: var(--radius); padding: 1.8rem; }
.section--cream .form { background: #fff; border-color: rgba(138, 127, 118, .35); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .88rem; font-weight: 700; letter-spacing: .04em; }
.field label .req { color: var(--gold); }
.section--cream .field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  font: inherit; width: 100%; min-height: 48px; padding: .65rem .9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--taupe); background: rgba(245, 241, 235, .06); color: var(--cream); transition: border-color .2s, box-shadow .2s;
}
.section--cream .field input, .section--cream .field select, .section--cream .field textarea { background: var(--cream); color: var(--brown); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23C9A96E' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 14px; }
.field select option { color: var(--brown); background: var(--cream); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 169, 110, .3); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #d2685a; }
.field .error { font-size: .82rem; color: #e39a8f; min-height: 1em; }
.section--cream .field .error { color: #9c2f1f; }
.field--check { flex-direction: row; align-items: flex-start; gap: .7rem; }
.field--check input { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: .2rem; accent-color: var(--red); }
.field--check label { font-weight: 400; font-size: .92rem; }
.form-footer { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; }
.form-status { border-radius: var(--radius-sm); padding: .8rem 1rem; margin-top: 1rem; font-weight: 700; }
.form-status[hidden] { display: none; }
.form-status.is-success { background: rgba(201, 169, 110, .18); color: var(--gold); border: 1px solid var(--gold); }
.form-status.is-error { background: rgba(122, 59, 46, .25); color: #f0b8ae; border: 1px solid var(--red); }
.section--cream .form-status.is-success { color: #6d5320; }
.section--cream .form-status.is-error { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* Honeypot */

/* ------------------------------------------------------------ Sponsoren */
.sponsor-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.2rem; margin-bottom: 2.5rem; }
.sponsor-row .media { border: 1px solid rgba(201, 169, 110, .2); }
.sponsor-cta { text-align: center; max-width: 620px; margin: 0 auto; }

/* -------------------------------------------------------------- Galerie */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; gap: .6rem; } }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.gallery a:focus-visible { outline-offset: 2px; }
.gallery .media { transition: transform .3s; aspect-ratio: 3 / 2; }
.gallery a:hover .media { transform: scale(1.03); }
.photo-credit { margin-top: 1rem; font-size: .82rem; color: var(--taupe-2); text-align: right; }
.photo-credit a { color: var(--taupe-2); text-decoration: underline; text-underline-offset: 3px; }
.photo-credit a:hover { color: var(--gold); }

.lightbox {
  position: fixed; inset: 0; z-index: 950; background: rgba(20, 15, 13, .94); display: grid; place-items: center; padding: 3.5rem 1rem 4rem;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.lightbox__img.is-missing { display: none; }
.lightbox__placeholder { width: min(900px, 100%); aspect-ratio: 3 / 2; border-radius: var(--radius-sm); background: var(--taupe) var(--hut-icon) center / 120px no-repeat; }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 1rem; text-align: center; color: var(--cream-2); font-size: .95rem; padding: 0 5rem; }
.lightbox__btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--taupe); background: rgba(43, 35, 32, .8); color: var(--cream);
  font-size: 1.6rem; display: grid; place-items: center; line-height: 1;
}
.lightbox__btn:hover { border-color: var(--gold); color: var(--gold); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__counter { position: absolute; top: 1.6rem; left: 1.4rem; color: var(--taupe-2); font-size: .9rem; letter-spacing: .1em; }

/* ---------------------------------------------------------------- Infos */
.info-card { background: var(--brown-2); border: 1px solid rgba(201, 169, 110, .18); border-radius: var(--radius); padding: 1.6rem; height: 100%; }
.info-card__icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(201, 169, 110, .12); color: var(--gold); display: grid; place-items: center; margin-bottom: 1rem; }
.info-card__icon svg { width: 28px; height: 28px; }
.info-card ul { padding-left: 1.1em; margin: 0; color: var(--cream-2); }
.info-card li { margin-bottom: .35rem; }
.info-card li strong { color: var(--cream); }

.accordion { border-top: 1px solid rgba(201, 169, 110, .25); }
.accordion__item { border-bottom: 1px solid rgba(201, 169, 110, .25); }
.accordion__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left;
  background: transparent; border: 0; color: var(--cream); padding: 1.1rem .4rem; font-family: var(--font-title); font-size: 1.15rem; font-weight: 600;
}
.accordion__btn:hover { color: var(--gold); }
.accordion__btn .chev { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--taupe); display: grid; place-items: center; transition: transform .25s, border-color .25s; }
.accordion__btn .chev svg { width: 14px; height: 14px; }
.accordion__btn[aria-expanded="true"] .chev { transform: rotate(180deg); border-color: var(--gold); color: var(--gold); }
.accordion__panel { padding: 0 .4rem 1.2rem; color: var(--cream-2); }
.accordion__panel[hidden] { display: none; }

/* -------------------------------------------------------------- Kontakt */
.contact-details { display: grid; gap: 1.2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item svg { width: 26px; height: 26px; color: var(--gold); flex: none; margin-top: .15rem; }
.contact-item strong { display: block; font-family: var(--font-title); font-size: 1.05rem; margin-bottom: .1rem; }
.contact-item p { margin: 0; color: var(--cream-2); }

/* --------------------------------------------------------------- Footer */
.site-footer { background: #1e1815; border-top: 1px solid rgba(201, 169, 110, .18); padding: 3.5rem 0 2rem; color: var(--cream-2); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { font-size: 1.15rem; color: var(--cream); }
.footer-brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.footer-brand .brand-mark { width: 128px; height: 64px; }
.social { display: flex; gap: .7rem; margin-top: 1rem; }
.social a {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--taupe); display: grid; place-items: center; color: var(--cream);
  transition: border-color .2s, color .2s, transform .2s;
}
.social a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.social svg { width: 22px; height: 22px; }
.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.insta-grid .media { aspect-ratio: 1; background-size: 40%; border-radius: 8px; }
.newsletter-form { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .6rem; }
.newsletter-form input { flex: 1 1 200px; min-height: 48px; padding: .6rem .9rem; border-radius: 999px; border: 1px solid var(--taupe);
  background: rgba(245, 241, 235, .06); color: var(--cream); font: inherit; }
.newsletter-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 169, 110, .3); }
.footer-bottom { border-top: 1px solid rgba(201, 169, 110, .15); padding-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 1.5rem; font-size: .85rem; color: var(--taupe-2); }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links button, .footer-links a { background: none; border: 0; padding: .6rem 0; min-height: 44px; display: inline-flex; align-items: center; color: var(--cream-2); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.footer-links button:hover, .footer-links a:hover { color: var(--gold); }

/* ------------------------------------------------- Scroll-Animationen */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ------------------------------------------------------------- Druck */
@media print {
  .site-header, .hero-scroll, .nav-toggle, .lightbox, .modal, .map-frame { display: none !important; }
  body { background: #fff; color: #000; }
}
