/* =========================================================
   Sülzer Weihnachtsdorf – Stylesheet
   Farben aus dem Styleguide (Colorswatches)
   ========================================================= */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --wolle:     #dfd3b7;  /* Beige  */
  --gluehwein: #79301c;  /* Dunkelrot */
  --huette:    #bd552b;  /* Orange */
  --tanne:     #4e5124;  /* Oliv  */
  --nacht:     #3a160c;  /* abgeleitet: sehr dunkles Rot */
  --glut:      #6a2817;  /* abgeleitet: Rot, eine Stufe dunkler */
  --peach:     #f0a77f;  /* abgeleitet: Orange hell, für Fokus/Hover auf Rot */

  --font: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --wrap: 72rem;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8rem);

}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(5rem + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--wolle);
  background: var(--gluehwein);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

a, button, [role="button"], label, summary { cursor: pointer; }

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

p { margin: 0 0 1em; max-width: 62ch; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--wolle); color: var(--gluehwein);
  padding: .6rem 1rem; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: calc(1rem + env(safe-area-inset-top, 0px)); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Typo ---------- */
.h-xl {
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.025em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
.h-l  { font-size: clamp(1.75rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.05; margin: 0 0 .4em; letter-spacing: -.015em; }
.h-m  { font-size: 1.3rem; font-weight: 600; line-height: 1.25; margin: 0 0 .5em; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.5; font-weight: 400; }
.muted { opacity: .78; }
.muted-light { opacity: .75; margin-bottom: .25em; }

/* ---------- Sternenhimmel (Hintergrund aus der Präsentation) ---------- */
.sky {
  background-color: var(--gluehwein);
  /* Sterne gedämpft, damit der Text im Vordergrund klar führt */
  background-image: linear-gradient(rgba(121,48,28,.55), rgba(121,48,28,.55)), url("../img/hintergrund.svg");
  background-size: cover;
  background-position: center top;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--light { background: var(--wolle); color: var(--gluehwein); }
.btn--light:hover { background: var(--peach); }
.btn--dark  { background: var(--gluehwein); color: var(--wolle); }
.btn--dark:hover { background: var(--huette); }

.link-light {
  color: var(--wolle);
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
  font-weight: 600;
}
.link-light:hover { color: var(--peach); }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: calc(.9rem + env(safe-area-inset-top, 0px)) var(--pad) .9rem;
  transition: background-color .3s, box-shadow .3s;
}
.topbar.is-solid { background: var(--gluehwein); box-shadow: 0 1px 0 rgba(223,211,183,.18); }
.topbar__logo img { width: 128px; opacity: 0; transition: opacity .3s; }
.topbar.is-solid .topbar__logo img { opacity: 1; }

.topbar__nav { display: flex; gap: clamp(1rem, 2.5vw, 2rem); }
.topbar__nav a {
  text-decoration: none; font-weight: 500; font-size: 1.02rem;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.topbar__nav a:hover { border-bottom-color: var(--wolle); }

.topbar__toggle { display: none; }

@media (max-width: 760px) {
  .topbar__logo img { opacity: 1; width: 112px; }
  .topbar__toggle {
    display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--wolle); border: 0; padding: 0;
  }
  .burger, .burger::before, .burger::after {
    display: block; width: 20px; height: 2px; background: var(--gluehwein);
    border-radius: 2px; position: relative; transition: transform .25s;
  }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -6px; }
  .burger::after  { top: 6px; }
  [aria-expanded="true"] .burger { background: transparent; }
  [aria-expanded="true"] .burger::before { transform: translateY(6px) rotate(45deg); }
  [aria-expanded="true"] .burger::after  { transform: translateY(-6px) rotate(-45deg); }

  .topbar__nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--gluehwein);
    padding: .5rem var(--pad) 1.5rem;
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
    display: none;
  }
  .topbar__nav.is-open { display: flex; }
  .topbar__nav a { font-size: 1.35rem; padding: .7rem 0; border-bottom: 1px solid rgba(223,211,183,.2); }
  .topbar.menu-open { background: var(--gluehwein); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  text-align: center;
  padding: calc(6rem + env(safe-area-inset-top, 0px)) var(--pad) 4rem;
  overflow: hidden;
}
.snow { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 40; }
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero__logo { margin: 0 0 1.75rem; }
.hero__logo img {
  width: min(520px, 76vw);
  animation: arrive 1.1s cubic-bezier(.2,.7,.2,1) both;
}
.hero__date {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 600; line-height: 1.2; margin: 0 0 .25rem; max-width: none;
  animation: arrive 1.1s .25s cubic-bezier(.2,.7,.2,1) both;
}
.hero__place {
  font-size: clamp(1.05rem, 2vw, 1.3rem); margin: 0 0 1.75rem; opacity: .85; max-width: none;
  animation: arrive 1.1s .35s cubic-bezier(.2,.7,.2,1) both;
}
.status {
  display: inline-flex; align-items: center; gap: .6rem;
  border: 2px solid rgba(223,211,183,.5);
  border-radius: 999px; padding: .45rem 1.1rem;
  font-weight: 500; margin: 0 0 1.5rem; max-width: none;
  animation: arrive 1.1s .45s cubic-bezier(.2,.7,.2,1) both;
}
.status::before {
  content: ""; width: .6rem; height: .6rem; border-radius: 50%;
  background: var(--wolle); opacity: .6;
}
.status.is-open::before { background: #9bd17a; opacity: 1; box-shadow: 0 0 0 4px rgba(155,209,122,.25); }
.hero__actions { animation: arrive 1.1s .55s cubic-bezier(.2,.7,.2,1) both; }

@keyframes arrive {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Intro ---------- */
.intro {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  background: var(--glut);
}
.intro__text { padding: var(--section) var(--pad); align-self: center; max-width: 40rem; justify-self: end; }
.intro__photo { margin: 0; min-height: 22rem; }
.intro__photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; }
  .intro__text { justify-self: start; padding-bottom: 3rem; }
  .intro__photo { min-height: 0; aspect-ratio: 3 / 2; }
}

/* ---------- Besuch ---------- */
.visit { background: var(--wolle); color: var(--gluehwein); padding: var(--section) 0; }
.visit__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4.5rem);
}
.visit__block { border-top: 3px solid var(--gluehwein); padding-top: 1.25rem; }
.visit__block--wide { grid-column: 1 / -1; }
.visit address { font-style: normal; font-size: 1.2rem; line-height: 1.5; margin-bottom: 1.5rem; }

.hours { border-collapse: collapse; width: 100%; font-size: 1.15rem; }
.hours th, .hours td { text-align: left; padding: .7rem .75rem; border-bottom: 1px solid rgba(121,48,28,.25); }
.hours th { font-weight: 500; padding-left: 0; }
.hours td { font-weight: 700; text-align: right; padding-right: 0; white-space: nowrap; }
.hours tr.is-today th::after {
  content: "heute"; margin-left: .6rem;
  font-size: .8rem; font-weight: 600; vertical-align: .15em;
  background: var(--gluehwein); color: var(--wolle);
  padding: .15rem .55rem; border-radius: 999px;
}

.stops { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.stops li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
  padding: .85rem 0; border-bottom: 1px solid rgba(121,48,28,.25);
}
.stops__name { font-size: 1.2rem; font-weight: 600; }
.lines { display: flex; flex-wrap: wrap; gap: .4rem; }
.line {
  min-width: 2.6rem; text-align: center;
  font-weight: 700; font-size: .95rem; line-height: 1;
  padding: .45rem .55rem; border-radius: 8px;
}
.line--tram { background: var(--gluehwein); color: var(--wolle); }
.line--bus  { background: var(--tanne); color: var(--wolle); border-radius: 999px; }

@media (max-width: 760px) {
  .visit__grid { grid-template-columns: 1fr; }
}

/* ---------- Das Dorf ---------- */
.village { padding: var(--section) 0; }
.huts {
  list-style: none; margin: 0 0 clamp(3rem, 6vw, 5rem); padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 0 2rem;
}
.huts li {
  display: flex; align-items: baseline; gap: .9rem;
  padding: 1rem 0; border-bottom: 1px solid rgba(223,211,183,.3);
}
.huts__n { font-size: 2.6rem; font-weight: 300; line-height: 1; min-width: 1.6ch; font-variant-numeric: tabular-nums; }
.huts__t { font-size: 1.15rem; font-weight: 500; line-height: 1.3; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.feature { border-top: 3px solid var(--wolle); padding-top: 1.25rem; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* ---------- Galerie ---------- */
.gallery { background: var(--nacht); }
.gallery__grid {
  display: grid; grid-auto-flow: dense; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(12rem, 24vw, 20rem);
  gap: 6px; padding: 6px;
}
.g { margin: 0; overflow: hidden; }
.g img { width: 100%; height: 100%; object-fit: cover; }
.g--wide img { object-position: center 35%; }
.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 2; }
.gallery__credit {
  margin: 0; padding: 0 .75rem .9rem;
  font-size: .85rem; opacity: .65; max-width: none;
}
@media (max-width: 760px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
  .g--wide { grid-column: span 2; }
  .g--tall { grid-row: span 2; grid-column: span 1; }
}

/* ---------- Spendenhütte ---------- */
.donate { background: var(--tanne); padding: var(--section) 0; }
.donate__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.donate__sum { font-size: 1.25rem; margin: 1.75rem 0; }
.donate__sum strong {
  display: block; font-size: clamp(3rem, 7vw, 5rem); font-weight: 700;
  letter-spacing: -.03em; line-height: 1;
}
.donate .btn { margin-top: .25rem; }
.donate__partner {
  border: 2px solid var(--wolle); border-radius: 28px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.donate__sheep { width: 96px; margin-bottom: 1.5rem; }
.donate__logo { display: block; border-radius: 14px; overflow: hidden; margin: .75rem 0 1.25rem; }
.donate__logo img { width: 100%; }
.donate__with { font-size: clamp(1.2rem, 2vw, 1.45rem); margin: -.4rem 0 1.5rem; }
.donate__with strong { font-weight: 600; }
@media (max-width: 860px) { .donate__grid { grid-template-columns: 1fr; } }

/* ---------- Partner ---------- */
.partners { background: var(--wolle); color: var(--gluehwein); padding: var(--section) 0; }
.logos {
  list-style: none; margin: 2.5rem 0 3.5rem; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.logos li {
  height: 7.5rem; border-radius: 18px;
  display: grid; place-items: center; text-align: center;
  background: #e9e0ca;
}
.logos a { display: grid; place-items: center; width: 100%; height: 100%; padding: 1.25rem; border-radius: inherit; }
.logos img { max-height: 4.5rem; max-width: 78%; width: auto; height: auto; object-fit: contain; }
.logos > li > img { max-height: 3.6rem; }
.logos > li > img.logo--tall { max-height: 5.2rem; }
.logos__text { font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.logos__wide a { display: flex; align-items: center; justify-content: center; padding: .4rem; overflow: hidden; }
.logos li.logos__wide { background: #ec1c26; }
.logos__wide img { max-height: 100%; max-width: 100%; width: auto; height: auto; }
@media (max-width: 640px) { .logos { grid-template-columns: repeat(2, 1fr); } .logos li { height: 6.5rem; } }
.logos__empty {
  background: transparent !important;
  border: 2px dashed rgba(121,48,28,.3);
  color: rgba(121,48,28,.55); font-size: .95rem;
}
.partners__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
  border-top: 3px solid var(--gluehwein); padding-top: 1.5rem;
}
.partners__cta p { margin: 0; font-size: 1.2rem; }

/* ---------- Mitmachen ---------- */
.contact { padding: var(--section) 0; }
.contact__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.contact__card { border-top: 3px solid var(--wolle); padding-top: 1.25rem; font-size: 1.15rem; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer {
  background: var(--nacht);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
  padding: 2.5rem var(--pad) calc(2.5rem + env(safe-area-inset-bottom, 0px));
  font-size: .95rem;
}
.footer img { width: 150px; }
.footer nav { display: flex; gap: 1.5rem; }
.footer p { margin: 0; opacity: .7; }

/* ---------- Schneeflocken-Klick ---------- */
.puff {
  position: fixed; pointer-events: none; z-index: 200;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M16 16L16.0 3.0M16.0 8.0L13.0 4.7M16.0 8.0L19.0 4.7M16 16L27.3 9.5M22.9 12.0L24.3 7.7M22.9 12.0L27.3 12.9M16 16L27.3 22.5M22.9 20.0L27.3 19.1M22.9 20.0L24.3 24.3M16 16L16.0 29.0M16.0 24.0L19.0 27.3M16.0 24.0L13.0 27.3M16 16L4.7 22.5M9.1 20.0L7.7 24.3M9.1 20.0L4.7 19.1M16 16L4.7 9.5M9.1 12.0L4.7 12.9M9.1 12.0L7.7 7.7' stroke='%234a1c10' stroke-width='4.2'/%3E%3Cpath d='M16 16L16.0 3.0M16.0 8.0L13.0 4.7M16.0 8.0L19.0 4.7M16 16L27.3 9.5M22.9 12.0L24.3 7.7M22.9 12.0L27.3 12.9M16 16L27.3 22.5M22.9 20.0L27.3 19.1M22.9 20.0L24.3 24.3M16 16L16.0 29.0M16.0 24.0L19.0 27.3M16.0 24.0L13.0 27.3M16 16L4.7 22.5M9.1 20.0L7.7 24.3M9.1 20.0L4.7 19.1M16 16L4.7 9.5M9.1 12.0L4.7 12.9M9.1 12.0L7.7 7.7' stroke='%23ffffff' stroke-width='1.8'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  animation: puff .9s ease-out forwards;
}
@keyframes puff {
  from { opacity: 1; transform: translate(0,0) scale(1) rotate(0); }
  to   { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4) rotate(140deg); }
}

/* ---------- Unterseiten (Impressum/Datenschutz) ---------- */
.legal-hero { padding: calc(8rem + env(safe-area-inset-top, 0px)) 0 clamp(3rem, 7vw, 5rem); }
.legal-hero .h-xl { margin: 0; }
.legal-hero__sheep { width: 84px; margin-bottom: 1.5rem; }
.legal { background: var(--wolle); color: var(--gluehwein); padding: clamp(3rem, 7vw, 5rem) 0 var(--section); }
.legal .wrap > p, .legal .wrap > h2 { max-width: 46rem; }
.legal h2 { border-top: 3px solid var(--gluehwein); padding-top: 1rem; }
.legal .wrap > p:first-child + h2, .legal .wrap > .lead + h2 { margin-top: 2.5rem; }
.btn--small { font-size: .95rem; padding: .6em 1.2em; }
.legal h2 { font-size: 1.3rem; margin: 2.5rem 0 .6rem; }
.legal .todo { background: #f3d9a9; padding: 0 .3em; border-radius: 4px; }
.legal a { font-weight: 600; }
.topbar--legal { background: var(--gluehwein); }
.topbar--legal .topbar__logo img { opacity: 1; }

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
