/* Chalet Heureka – Stylesheet
   Mobile first. Schriften lokal gehostet (keine Verbindung zu Google). */

@font-face {
  font-family: "Young Serif";
  src: url("../fonts/young-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --schnee: #f7fafb;
  --weiss: #ffffff;
  --tinte: #22313b;
  --tinte-weich: #475963;
  --gletscher: #1d6a93;
  --gletscher-dunkel: #14506f;
  --laden: #c23b2e;
  --laden-dunkel: #a32e23;
  --weide: #e4eedd;
  --nebel: #d6e1e8;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --kopf-h: 4.25rem;
  --breite: 70rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--kopf-h) + 1rem);
}

body {
  margin: 0;
  background: var(--schnee);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
body.menu-offen { overflow: hidden; }

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

a { color: var(--gletscher); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--gletscher-dunkel); }

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

h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--serif); line-height: 1.12; letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; line-height: 1.3; margin-bottom: .35rem; }

p { margin: 0 0 1em; }
.text { max-width: 62ch; }
.text > :last-child { margin-bottom: 0; }
.klein { font-size: .95rem; color: var(--tinte-weich); }

.wrap { width: min(100% - 2.5rem, var(--breite)); margin-inline: auto; }

.skip {
  position: absolute; left: .75rem; top: -4rem; z-index: 100;
  background: var(--weiss); color: var(--tinte);
  padding: .6rem 1rem; border-radius: .4rem;
}
.skip:focus { top: .75rem; }

/* ---------- Kopf und Navigation ---------- */

.kopf {
  position: sticky; top: 0; z-index: 60;
  background: var(--weiss);
  border-bottom: 1px solid var(--nebel);
}
.kopf-innen {
  height: var(--kopf-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.marke {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--serif); font-size: 1.4rem; line-height: 1;
  color: var(--tinte); text-decoration: none;
}
.marke:hover { color: var(--tinte); }
.marke svg { width: 1.7rem; height: 1.7rem; flex: none; }

.menu-knopf {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 2.9rem; padding: 0 1rem;
  font: inherit; font-weight: 700; color: var(--tinte);
  background: var(--schnee); border: 1px solid var(--nebel); border-radius: 999px;
  cursor: pointer;
}
.menu-knopf:hover { border-color: var(--gletscher); }
.striche { position: relative; width: 1.25rem; height: .9rem; }
.striche i {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.striche i:nth-child(1) { top: 0; }
.striche i:nth-child(2) { top: calc(50% - 1px); }
.striche i:nth-child(3) { top: calc(100% - 2px); }
.menu-knopf[aria-expanded="true"] .striche i:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
.menu-knopf[aria-expanded="true"] .striche i:nth-child(2) { opacity: 0; }
.menu-knopf[aria-expanded="true"] .striche i:nth-child(3) { top: calc(50% - 1px); transform: rotate(-45deg); }

/* Ohne JavaScript: Navigation einfach unter dem Kopf anzeigen */
.nav { background: var(--weiss); border-bottom: 1px solid var(--nebel); }
.nav ul { list-style: none; margin: 0; padding: .5rem 0 1rem; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.nav a { color: var(--tinte); text-decoration: none; padding: .35rem 0; display: inline-block; font-weight: 700; }
.nav a[aria-current="page"] { color: var(--gletscher-dunkel); box-shadow: inset 0 -3px 0 var(--laden); }
.nav-kontakt { display: none; }

/* Mit JavaScript: Vollbild-Menü auf dem Handy */
.js .nav {
  display: none;
  position: fixed; inset: var(--kopf-h) 0 0 0; z-index: 55;
  background: var(--schnee); border: 0;
  overflow-y: auto;
  padding: 1.5rem 0 2.5rem;
}
.js .nav.offen { display: block; }
.js .nav ul { flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 0; width: min(100% - 2.5rem, 40rem); margin-inline: auto; }
.js .nav li { border-bottom: 1px solid var(--nebel); }
.js .nav a {
  display: block; padding: 1rem 0;
  font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.2;
}
.js .nav a[aria-current="page"] { box-shadow: none; color: var(--laden-dunkel); }
.js .nav-kontakt {
  display: flex; flex-direction: column; gap: .75rem;
  width: min(100% - 2.5rem, 40rem); margin: 2rem auto 0;
}

@media (min-width: 60rem) {
  .menu-knopf { display: none; }
  .js .nav, .nav {
    display: block; position: static; inset: auto; padding: 0; background: transparent; border: 0; overflow: visible;
  }
  .js .nav ul, .nav ul { flex-direction: row; flex-wrap: nowrap; gap: .25rem 1.75rem; padding: 0; width: auto; margin: 0; }
  .js .nav li { border: 0; }
  .js .nav a, .nav a { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; padding: .5rem 0; display: inline-block; }
  .js .nav a[aria-current="page"], .nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--laden); color: var(--tinte); }
  .nav-kontakt, .js .nav-kontakt { display: none; }
  .kopf-innen { gap: 2rem; }
}

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.1rem; padding: .5rem 1.5rem;
  font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-rot { background: var(--laden); color: #fff; }
.btn-rot:hover { background: var(--laden-dunkel); color: #fff; }
.btn-linie { background: transparent; color: var(--gletscher-dunkel); border-color: var(--gletscher); }
.btn-linie:hover { background: var(--gletscher); color: #fff; }
.btn-gruppe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Hero und Hausschild ---------- */

.hero {
  position: relative; overflow: hidden; background: #cddbe3;
  height: clamp(21rem, 60svh, 40rem);
}
.folie { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.folie.aktiv { opacity: 1; }
.folie img { width: 100%; height: 100%; object-fit: cover; }
.folie-1 img { object-position: 50% 62%; }
.folie-2 img { object-position: 50% 55%; }
.folie-3 img { object-position: 50% 50%; }

.hero-steuerung {
  position: absolute; right: 1rem; top: 1rem; z-index: 3;
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.9); border-radius: 999px; padding: .3rem .4rem .3rem .9rem;
}
.hero-punkte { display: flex; gap: .15rem; }
.punkt {
  width: 1.7rem; height: 1.7rem; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; border-radius: 50%;
}
.punkt::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--nebel); box-shadow: inset 0 0 0 1px #9db3c0; }
.punkt[aria-current="true"]::before { background: var(--laden); box-shadow: none; }
.hero-pause {
  width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--tinte); color: #fff; display: grid; place-items: center;
}
.hero-pause svg { width: .85rem; height: .85rem; fill: currentColor; }
.hero-pause .ico-play { display: none; }
.hero-pause[aria-pressed="true"] .ico-play { display: block; }
.hero-pause[aria-pressed="true"] .ico-pause { display: none; }
.hero-steuerung { display: none; }
.js .hero-steuerung { display: flex; }

.schild {
  position: relative; z-index: 2;
  background: var(--weiss);
  width: min(100% - 2rem, 40rem);
  margin: -3.25rem auto 0 1rem;
  padding: 1.5rem 1.4rem 1.75rem;
  border-radius: .5rem;
  box-shadow: 0 14px 34px -14px rgba(34, 49, 59, .35);
}
.schild h1 + p { margin: .6rem 0 0; font-size: 1.2rem; color: var(--tinte-weich); max-width: 36ch; }
.schild .fakten { margin: .9rem 0 0; font-weight: 700; font-size: 1.05rem; max-width: none; color: var(--tinte); }
.schild .btn-gruppe { margin-top: 1.25rem; }

@media (min-width: 48rem) {
  .schild {
    margin-left: max(1.25rem, calc((100vw - var(--breite)) / 2));
    margin-top: -5.5rem;
    padding: 2.25rem 2.5rem 2.5rem;
  }
}

/* Seitenkopf der Unterseiten: breites Titelbild + kleines Schild */
.banner { position: relative; height: clamp(11rem, 32svh, 20rem); overflow: hidden; background: #cddbe3; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner-herbst img { object-position: 50% 70%; }
.banner-winter1 img { object-position: 50% 60%; }
.banner-winter2 img { object-position: 50% 50%; }
.schild-klein { margin-top: -2.5rem; padding-block: 1.25rem 1.4rem; }
.schild-klein h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.schild-klein h1 + p { margin-top: .4rem; font-size: 1.1rem; }

/* ---------- Abschnitte ---------- */

.sektion { padding-block: clamp(3rem, 8vw, 6rem); }
.sektion-weide { background: var(--weide); }
.sektion-eng { padding-block: clamp(2rem, 5vw, 3.5rem); }

.zwei { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) {
  .zwei { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
  .zwei-gleich { grid-template-columns: 1fr 1fr; }
  .zwei-umgekehrt { grid-template-columns: .85fr 1.15fr; }
  .zwei-umgekehrt > :first-child { order: 2; }
  .zwei-oben { align-items: start; }
}

.foto { border-radius: .4rem; overflow: hidden; background: #cddbe3; }
.foto img { width: 100%; height: auto; }
.foto-unterschrift { margin: .55rem 0 0; font-size: .95rem; color: var(--tinte-weich); }

.sprachen { margin-top: 1.5rem; }
.sprach-tabs { display: flex; gap: 1.25rem; border-bottom: 1px solid var(--nebel); margin-bottom: 1.25rem; }
.sprach-tabs button {
  font: inherit; font-weight: 700; color: var(--tinte-weich);
  background: none; border: 0; padding: .4rem 0 .5rem; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.sprach-tabs button[aria-selected="true"] { color: var(--tinte); border-bottom-color: var(--laden); }
.sprach-panel > strong { display: block; font-size: 1.15rem; }
.sprach-panel .masse { font-style: italic; color: var(--tinte-weich); margin: 0 0 .75rem; }
.sprach-panel h3 { margin-top: 1.25rem; }
.sprach-panel[hidden] { display: none; }
.js .sprach-panel-nojs { display: block; }

.liste { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.liste li { position: relative; padding: .2rem 0 .2rem 1.5rem; }
.liste li::before {
  content: ""; position: absolute; left: .1rem; top: .95em; width: .5rem; height: .5rem;
  border-radius: 50%; background: var(--laden);
}

.collage { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.collage .foto:first-child { grid-column: 1 / -1; }
.collage .foto { border-radius: .3rem; }

.jahreszeiten { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 40rem) {
  .jahreszeiten { grid-template-columns: 1.2fr 1fr; align-items: end; }
}

.lage-fakten { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.lage-fakten li { display: grid; grid-template-columns: 5.5rem 1fr; gap: .75rem; align-items: baseline; border-top: 1px solid var(--nebel); padding-top: .6rem; }
.lage-fakten b { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--gletscher-dunkel); line-height: 1.1; }

/* Kontaktband */
.kontakt { display: grid; gap: 2rem; }
.kontakt h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: .6rem; }
.kontakt address { font-style: normal; }
.kontakt p { margin-bottom: .6rem; }
.kontakt .tel { font-weight: 700; font-size: 1.2rem; }
@media (min-width: 52rem) { .kontakt { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

/* ---------- Galerie ---------- */

.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.filter button {
  font: inherit; font-weight: 700; color: var(--gletscher-dunkel);
  background: transparent; border: 2px solid var(--nebel); border-radius: 999px;
  padding: .35rem 1.1rem; min-height: 2.75rem; cursor: pointer;
}
.filter button:hover { border-color: var(--gletscher); }
.filter button[aria-pressed="true"] { background: var(--gletscher); border-color: var(--gletscher); color: #fff; }

.reihen { --rh: 9.5rem; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.reihen::after { content: ""; flex-grow: 1000; }
.reihen li { flex-grow: calc(var(--ar) * 100); flex-basis: calc(var(--ar) * var(--rh)); aspect-ratio: var(--ar); position: relative; min-width: 0; }
.reihen li[hidden] { display: none; }
.reihen a { display: block; width: 100%; height: 100%; border-radius: .3rem; overflow: hidden; background: #cddbe3; }
.reihen img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.reihen a:hover img { transform: scale(1.03); }
@media (min-width: 40rem) { .reihen { --rh: 12rem; } }
@media (min-width: 64rem) { .reihen { --rh: 14.5rem; } }

.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100vw; height: 100dvh; background: rgba(15, 26, 33, .96); color: #fff;
}
.lightbox::backdrop { background: rgba(15, 26, 33, .96); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lb-bild { display: grid; place-items: center; padding: 3.5rem 1rem 0; min-height: 0; }
.lb-bild img { max-width: 100%; max-height: calc(100dvh - 9.5rem); width: auto; height: auto; border-radius: .3rem; touch-action: pan-y; user-select: none; }
.lb-leiste { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem 1.2rem; }
.lb-text { min-width: 0; flex: 1; text-align: center; }
.lb-text p { margin: 0; }
.lb-unter { font-weight: 700; }
.lb-zahl { font-size: .9rem; color: #b9cad4; }
.lb-knopf {
  width: 3rem; height: 3rem; flex: none; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center;
}
.lb-knopf:hover { background: rgba(255,255,255,.28); }
.lb-knopf svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-zu { position: absolute; top: .75rem; right: .75rem; }
@media (min-width: 52rem) {
  .lb-bild { padding-inline: 6rem; }
  .lb-leiste { padding-inline: 2rem; }
  .lb-bild img { max-height: calc(100dvh - 10rem); }
}

/* ---------- Umgebung ---------- */

.erlebnis { display: grid; gap: 1.25rem; padding-block: clamp(1.75rem, 4vw, 3rem); border-top: 1px solid var(--nebel); }
.erlebnis:first-child { border-top: 0; }
.erlebnis h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .25rem; }
.erlebnis .zusatz { font-style: italic; color: var(--tinte-weich); margin-bottom: .75rem; }
@media (min-width: 52rem) {
  .erlebnis { grid-template-columns: 7fr 5fr; gap: 3.5rem; align-items: center; }
  .erlebnis-links { grid-template-columns: 5fr 7fr; }
  .erlebnis-links > :first-child { order: 2; }
  .erlebnis-text { grid-template-columns: 1fr; }
}
.erlebnis-text .text { max-width: 70ch; }

/* ---------- Karte ---------- */

.karte {
  position: relative; border-radius: .5rem; overflow: hidden; background: var(--weide);
  min-height: 18rem; display: grid; place-items: center; text-align: center; padding: 2rem 1.5rem;
}
.karte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.karte p { max-width: 42ch; margin-inline: auto; }

/* ---------- Fliesstext-Seiten ---------- */

.prose { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin: 2.25rem 0 .5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { padding-block: .1rem; }

/* ---------- Fuss ---------- */

.fuss { background: var(--tinte); color: #d9e5ec; padding-block: 3rem 2.5rem; }
.fuss a { color: #fff; }
.fuss a:hover { color: #fff; text-decoration-thickness: .15em; }
.fuss-innen { display: grid; gap: 2rem; }
.fuss .marke { color: #fff; }
.fuss address { font-style: normal; margin-top: .75rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { padding-block: .2rem; }
.fuss-klein { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .95rem; color: #b9cad4; }
@media (min-width: 52rem) { .fuss-innen { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .kopf, .nav, .hero-steuerung, .fuss, .btn-gruppe { display: none !important; }
  body { background: #fff; font-size: 11pt; }
}

/* Knöpfe im Handy-Menü */
.js .nav .nav-kontakt a.btn { font-family: var(--sans); font-size: 1.1rem; padding: .5rem 1.5rem; display: inline-flex; }
.js .nav .nav-kontakt a.btn-rot { color: #fff; }
.js .nav .nav-kontakt a.btn-linie { color: var(--gletscher-dunkel); }
