/* =========================================================
   schule-hundwil.ch – Stylesheet
   1  Schriften
   2  Design-Tokens
   3  Basis & Typografie
   4  Buttons & Utilities
   5  Kopfbereich / Navigation
   6  Hero
   7  Sektionen, Karten, Raster
   8  Bausteine (News, Agenda, Personen, Dateien, Links)
   9  Formular
   10 Fussbereich
   11 Popup / Banner / Nach-oben
   12 Animationen & Reduced Motion
   13 Galerie & Videos
   14 Interner Bereich
   ========================================================= */

/* 1 ── Schriften (selbst gehostet, kein externer Request) ── */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(../fonts/jost-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(../fonts/jost-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/open-sans-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/open-sans-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2 ── Design-Tokens ────────────────────────────────────── */
:root {
  /* Bärenrot aus dem Logo (#e21c31). Für Schrift und Flächen mit weisser
     Schrift eine Nuance dunkler, damit die Lesbarkeit stimmt (6,2:1). */
  --red:        #c0152a;
  --red-dark:   #99101f;
  --red-bright: #e21c31;   /* nur dekorativ: Linien, Plaketten, Grafik */
  --red-tint:   #fdf1f2;
  --red-tint-2: #f8dee1;

  --ink:    #241f1f;
  --ink-2:  #453b3c;
  --muted:  #6b5f60;
  --line:   #e6dedf;
  --bg:     #ffffff;
  --bg-2:   #faf7f7;

  --amber:  #9a6b06;
  --amber-tint: #fdf6e3;
  --moss:   #3f6b45;
  --moss-tint: #eef4ef;

  --font-head: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;

  --radius:   14px;
  --radius-s: 9px;
  --shadow:   0 12px 32px rgba(40, 20, 24, .10);
  --shadow-s: 0 3px 12px rgba(40, 20, 24, .07);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

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

/* display:flex/grid auf Komponenten darf das hidden-Attribut nie aushebeln */
[hidden] { display: none !important; }

/* 3 ── Basis & Typografie ───────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

.lead {
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 65ch;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 .7rem;
}
.hero .eyebrow { color: #ffc9cf; }
.hero--plain .eyebrow { color: var(--red); }

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

.icon { width: 1.5em; height: 1.5em; fill: currentColor; vertical-align: middle; flex: none; }
.icon--sm { width: 1.15em; height: 1.15em; }
.icon--xs { width: .95em; height: .95em; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: .6rem 1rem;
  background: var(--red);
  color: #fff;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* 4 ── Buttons & Utilities ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius-s);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn--outline { background: transparent; border-color: var(--red); color: var(--red); }
.btn--outline:hover { background: var(--red); color: #fff; }

.btn--ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--red-dark); border-color: #fff; }

.btn--sm { padding: .45rem .9rem; font-size: .92rem; }
.btn--block { display: flex; justify-content: center; width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  color: var(--red);
}
.text-link:hover { color: var(--red-dark); }

/* 5 ── Kopfbereich / Navigation ─────────────────────────── */
.site-top {
  position: sticky;
  top: 0;
  /* Muss über dem Menü-Vorhang liegen, damit der Schliessen-Knopf sichtbar bleibt. */
  z-index: 100;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
}

.topbar { background: var(--red); color: #fff; font-size: .93rem; }
.topbar--red   { background: var(--red); }
.topbar--amber { background: var(--amber); }
.topbar--moss  { background: var(--moss); }
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem 1rem;
  padding: .55rem 0;
  text-align: center;
}
.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.utilitybar {
  background: #2c2626;
  color: #d8cdce;
  font-size: .84rem;
}
.utilitybar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .3rem 1.2rem;
  padding: .4rem 0;
}
.utilitybar__claim { margin: 0; letter-spacing: .02em; }
.utilitybar__links { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; margin: 0; padding: 0; list-style: none; }
.utilitybar__links a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #fff;
  font-weight: 600;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.brand { display: flex; align-items: center; flex: none; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 190px; height: auto; }

.nav__list {
  display: flex;
  flex-wrap: nowrap;
  gap: .1rem .2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  display: block;
  padding: .45rem .6rem;
  border-radius: var(--radius-s);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-2);
}
.nav__link:hover { background: var(--red-tint); color: var(--red-dark); text-decoration: none; }
.nav__link.is-current { color: var(--red); box-shadow: inset 0 -2px 0 var(--red-bright); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow-y: auto;
  /* Der Abstand oben lässt die Kopfzeile frei – mit Banner ist sie höher. */
  padding: 7.5rem 1.5rem 2.5rem;
  background: var(--bg);
}
.has-banner .mobile-nav { padding-top: 10.5rem; }
.mobile-nav__list, .mobile-nav__areas { margin: 0; padding: 0; list-style: none; }
.mobile-nav__link {
  display: block;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--ink);
}
.mobile-nav__link.is-current { color: var(--red); font-weight: 600; }
.mobile-nav__foot { margin-top: 2rem; }
.mobile-nav__label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-nav__areas a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem 0;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .brand__mark { width: 150px; }
  .nav__link { font-size: .9rem; padding: .45rem .45rem; }
}
@media (max-width: 950px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .brand__mark { width: 170px; }
}
@media (max-width: 620px) {
  .utilitybar__claim { display: none; }
  .utilitybar__inner { justify-content: center; }
  .brand__mark { width: 140px; }
}

/* 6 ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  background: #2c2626;
  color: #fff;
}
.hero--full { min-height: min(62vh, 540px); }
.hero--page { min-height: 240px; }
.hero__media, .hero__scrim { position: absolute; inset: 0; }
.hero__media { z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  z-index: 1;
  background: linear-gradient(180deg, rgba(30, 18, 20, .45) 0%, rgba(30, 18, 20, .82) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}
.hero__title { color: #fff; max-width: 20ch; }
.hero__title em { font-style: normal; color: #ff8e9c; }
.hero__text { max-width: 56ch; font-size: 1.1rem; color: #efe4e5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

.hero--plain {
  background: var(--red-tint);
  color: var(--ink);
  border-bottom: 1px solid var(--red-tint-2);
}
.hero--plain .hero__title { color: var(--ink); }
.hero--plain .hero__text { color: var(--ink-2); }

/* 7 ── Sektionen, Karten, Raster ────────────────────────── */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--tint { background: var(--bg-2); }
.section--red { background: var(--red); color: #fff; }
.section--red h2, .section--red h3 { color: #fff; }
.section--red a:not(.btn) { color: #fff; text-decoration: underline; }
.section--red .eyebrow { color: #ffc9cf; }

.section__head { max-width: 68ch; margin-bottom: 2.2rem; }
.section__head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: none;
}
.section__head--split h2 { margin-bottom: 0; }

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

.card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}
.card__icon {
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  margin-bottom: .4rem;
  border-radius: 50%;
  background: var(--red-tint);
  color: var(--red);
}
.card__icon .icon { width: 1.3rem; height: 1.3rem; }
.card h3 { margin-bottom: .2rem; }
.card p { color: var(--ink-2); }
.card__foot { margin-top: auto; padding-top: .8rem; }

/* Zwei Spalten Text + Bild */
.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.split__media img { border-radius: var(--radius); }

/* Sprungmarken-Leiste */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.chips a {
  display: block;
  padding: .4rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-2);
}
.chips a:hover { border-color: var(--red); background: var(--red-tint); color: var(--red-dark); text-decoration: none; }

.group-block { margin-bottom: 3rem; scroll-margin-top: 100px; }
.group-block:last-child { margin-bottom: 0; }
.group-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem .9rem;
  padding-bottom: .6rem;
  margin-bottom: 1.4rem;
  border-bottom: 2px solid var(--red-bright);
}
.group-block__head h2, .group-block__head h3 { margin: 0; }
.group-block__note { color: var(--muted); font-size: .95rem; margin: 0; }

/* 8 ── Bausteine ────────────────────────────────────────── */

/* Personen */
.person-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  padding: 1.4rem 1.2rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.person__photo {
  width: 132px;
  height: 132px;
  margin-bottom: .9rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--red-tint);
  box-shadow: 0 0 0 4px var(--red-tint);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__photo--leer {
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--red);
}
.person__name { margin: 0; font-family: var(--font-head); font-size: 1.12rem; font-weight: 500; }
.person__role { margin: 0; color: var(--muted); font-size: .93rem; }
.person__mail {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .6rem;
  font-size: .92rem;
  font-weight: 600;
}

/* Agenda */
.agenda-list { margin: 0; padding: 0; list-style: none; }
.agenda-item {
  display: flex;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.agenda-item:first-child { border-top: 1px solid var(--line); }
.date-badge {
  flex: none;
  width: 66px;
  padding: .45rem 0 .5rem;
  border-radius: var(--radius-s);
  background: var(--red-tint);
  color: var(--red-dark);
  text-align: center;
  line-height: 1.1;
}
.date-badge__day { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; }
.date-badge__month { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.date-badge__year { display: block; font-size: .72rem; color: var(--muted); }
.agenda-item__body { min-width: 0; }
.agenda-item__title { margin: 0 0 .25rem; font-size: 1.15rem; }
.agenda-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1rem;
  margin: 0 0 .4rem;
  color: var(--muted);
  font-size: .92rem;
}
.agenda-item__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.agenda-item__text { color: var(--ink-2); }
.badge-soon {
  display: inline-block;
  padding: .1rem .55rem;
  border-radius: 999px;
  background: var(--amber-tint);
  color: var(--amber);
  font-size: .78rem;
  font-weight: 700;
}

/* News */
.news-list { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  transition: box-shadow .2s, transform .2s;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-card__media { aspect-ratio: 3 / 2; background: var(--bg-2); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 1.4rem; }
.news-card__date {
  margin: 0 0 .4rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}
.news-card__title { margin: 0 0 .5rem; font-size: 1.25rem; }
.news-card__title a { color: inherit; }
.news-card__text { color: var(--ink-2); }
.news-card__foot { margin-top: auto; padding-top: 1rem; display: flex; flex-wrap: wrap; gap: .8rem; }

.article { max-width: 72ch; }
.article h2 { margin-top: 2rem; font-size: 1.5rem; }
.article h3 { margin-top: 1.6rem; }
.article ul { padding-left: 1.2rem; }
.article li { margin-bottom: .35rem; }
.article__meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 1.6rem;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem;
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

/* Dateien */
.file-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.file-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.file-item__icon {
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  flex: none;
  border-radius: var(--radius-s);
  background: var(--red-tint);
  color: var(--red);
}
.file-item__body { min-width: 0; flex: 1 1 auto; }
.file-item__title { margin: 0; font-family: var(--font-head); font-size: 1.1rem; font-weight: 500; }
.file-item__meta { margin: 0; color: var(--muted); font-size: .9rem; }
.file-item__action { flex: none; }

/* Links */
.link-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.link-list a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-weight: 600;
  color: var(--ink);
}
.link-list a:hover { border-color: var(--red); background: var(--red-tint); text-decoration: none; }
.link-list small { display: block; font-weight: 400; color: var(--muted); }

/* Leerer Zustand */
.empty-state {
  padding: 2.5rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  background: var(--bg-2);
}

/* Aufruf-Streifen */
.split-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
}
.split-cta h2 { color: #fff; margin: 0 0 .3rem; }
.split-cta p { color: #fff; margin: 0; }
.split-cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Kontaktangaben */
.contact-facts { margin: 0; padding: 0; list-style: none; display: grid; gap: .9rem; }
.contact-facts li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-facts .icon { color: var(--red); margin-top: .2rem; }
.contact-facts strong { display: block; font-family: var(--font-head); font-weight: 500; }

/* 9 ── Formular ─────────────────────────────────────────── */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--red);
  outline: 2px solid var(--red-tint-2);
  outline-offset: 0;
}
.field--check { display: flex; align-items: flex-start; gap: .6rem; }
.field--check input { width: auto; margin-top: .35rem; }
.field--check label { font-weight: 400; font-size: .93rem; }
.field--honey { position: absolute; left: -9999px; }
.field__hint { color: var(--muted); font-size: .88rem; }
.req { color: var(--red); }

.form__status { padding: .9rem 1.1rem; border-radius: var(--radius-s); font-weight: 600; }
.form__status--ok    { background: var(--moss-tint); color: var(--moss); }
.form__status--error { background: var(--red-tint); color: var(--red); }

/* 10 ── Fussbereich ─────────────────────────────────────── */
.site-footer { margin-top: 4rem; background: #241f1f; color: #d3c9ca; }
.site-footer a { color: #fff; }
.site-footer__main {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2.5rem;
}
.site-footer__mark { width: 176px; }
.site-footer__claim { margin-top: 1rem; font-size: .93rem; max-width: 26ch; }
.site-footer__label {
  margin: 0 0 .7rem;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ff8e9c;
}
.site-footer__nav ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.site-footer__nav a { font-size: .95rem; }
.site-footer__contact p { display: flex; align-items: flex-start; gap: .45rem; margin-bottom: .5rem; font-size: .95rem; }
.site-footer__contact .icon { margin-top: .25rem; }
.site-footer__contact .btn--outline { border-color: rgba(255, 255, 255, .5); color: #fff; margin-top: .4rem; }
.site-footer__contact .btn--outline:hover { background: #fff; color: #241f1f; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .3rem 1.5rem;
  padding: 1.2rem 0 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: .88rem;
}
.site-footer__bottom p { margin: 0; }

/* 11 ── Popup / Nach-oben ───────────────────────────────── */
.notice-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 1.5rem; }
.notice-modal__backdrop { position: absolute; inset: 0; background: rgba(25, 15, 17, .6); }
.notice-modal__panel {
  position: relative;
  width: min(100%, 520px);
  max-height: 85vh;
  overflow-y: auto;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border-radius: var(--radius);
  border-top: 5px solid var(--red-bright);
  background: #fff;
  box-shadow: var(--shadow);
}
.notice-modal--amber .notice-modal__panel { border-top-color: var(--amber); }
.notice-modal--moss  .notice-modal__panel { border-top-color: var(--moss); }
.notice-modal__close {
  position: absolute;
  top: .8rem; right: .8rem;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--bg-2);
  color: var(--ink);
  cursor: pointer;
}
.notice-modal__close:hover { background: var(--red-tint); }
.notice-modal__meta { color: var(--muted); font-size: .9rem; }
.notice-modal__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.notice-modal__actions .btn--ghost { background: var(--bg-2); border-color: var(--line); color: var(--ink); }
.notice-modal__actions .btn--ghost:hover { background: var(--line); color: var(--ink); }

.to-top {
  position: fixed;
  right: 1.2rem; bottom: 1.2rem;
  z-index: 70;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.to-top .icon { transform: rotate(-90deg); width: 1.3rem; height: 1.3rem; }
.to-top:hover { background: var(--red-dark); }

/* Rechtsseiten */
.section--legal h2 { margin-top: 2.2rem; font-size: 1.4rem; }
.section--legal ul { padding-left: 1.2rem; }
.section--legal li { margin-bottom: .35rem; }

/* 12 ── Animationen ─────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* 13 ── Galerie & Videos ────────────────────────────────── */
.gallery {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}
.gallery li { margin: 0; }
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--bg-2);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.04); }

/* Grossansicht */
.lightbox { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 1.5rem; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(15, 10, 11, .92); }
.lightbox__figure { position: relative; z-index: 1; max-width: min(100%, 1200px); margin: 0; }
.lightbox__figure img { max-height: 82vh; width: auto; margin-inline: auto; border-radius: var(--radius-s); }
.lightbox__caption { margin-top: .7rem; color: #e8dedf; font-size: .9rem; text-align: center; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  z-index: 2;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  cursor: pointer;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255, 255, 255, .3); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev  { left: 1rem;  top: 50%; transform: translateY(-50%) rotate(180deg); }
.lightbox__next  { right: 1rem; top: 50%; transform: translateY(-50%); }

/*
 * Videos werden erst auf Klick geladen. Vorher besteht keine Verbindung zu
 * YouTube – deshalb braucht die Website kein Einwilligungsbanner.
 */
.video { margin: 1.6rem 0; }
.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #241f1f;
}
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .6rem;
  width: 100%;
  padding: 1.5rem;
  border: 0;
  background: #241f1f;
  color: #fff;
  cursor: pointer;
  text-align: center;
}
.video__start:hover .video__play { background: var(--red); transform: scale(1.06); }
.video__play {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  transition: background-color .2s, transform .2s;
}
.video__play .icon { width: 1.8rem; height: 1.8rem; }
.video__hint { font-size: .88rem; color: #cbbfc0; max-width: 40ch; margin: 0; }
.video__title { font-family: var(--font-head); font-size: 1.05rem; margin: 0; }

/* 14 ── Interner Bereich ────────────────────────────────── */
.intern-login { max-width: 420px; margin-inline: auto; }
.intern-login__box {
  padding: clamp(1.6rem, 4vw, 2.2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red-bright);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}

.intern-layout { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 250px 1fr; align-items: start; }
.intern-nav {
  position: sticky;
  top: 100px;
  padding: 1.2rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .95rem;
}
.intern-nav ul { margin: 0; padding: 0; list-style: none; }
.intern-nav ul ul { margin-left: .8rem; padding-left: .7rem; border-left: 1px solid var(--line); }
.intern-nav a { display: block; padding: .3rem .4rem; border-radius: var(--radius-s); color: var(--ink-2); }
.intern-nav a:hover { background: var(--red-tint); color: var(--red-dark); text-decoration: none; }
.intern-nav a.is-current { background: var(--red); color: #fff; font-weight: 600; }
.intern-nav__label {
  margin: 0 0 .6rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin-bottom: .8rem;
  font-size: .9rem;
  color: var(--muted);
}
.crumbs a { font-weight: 600; }

.subpages { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 1.8rem 0 0; padding: 0; list-style: none; }
.subpages a {
  display: flex;
  align-items: center;
  gap: .6rem;
  height: 100%;
  padding: 1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
}
.subpages a:hover { border-color: var(--red); background: var(--red-tint); text-decoration: none; }
.subpages .icon { color: var(--red); }

@media (max-width: 860px) {
  .intern-layout { grid-template-columns: 1fr; }
  .intern-nav { position: static; }
}
