/* =========================================================================
   Praxis für Ergotherapie Mathias Grubert – Design-System
   ========================================================================= */

/* --- 1. Design-Tokens --------------------------------------------------- */
:root {
  /* Warme Basis – abgeleitet vom Apricot der bisherigen Website (#fcd5a5) */
  --sand-50:  #fffaf3;
  --sand-100: #fdf1e2;
  --sand-200: #fce4c8;
  --sand-300: #f5cfa2;
  --weiss:    #ffffff;

  /* Text – warmes Dunkelbraun statt Kaltgrau */
  --ink:      #241a14;
  --ink-70:   #59463c;
  --ink-50:   #7a6455;

  /* Primärfarbe: das Orangerot der bisherigen Website (#e7512f) */
  --rost:       #e7512f;  /* Marken-Akzent, dekorative Flächen */
  --rost-satt:  #c94320;  /* Flächen mit weißer Schrift (Buttons) */
  --rost-tief:  #a8351b;  /* Links, Hover, Text auf Hell */
  --rost-hell:  #fdeadf;  /* zarte Tönung */
  --rost-glanz: #f0714f;  /* Fokus, Akzent auf Dunkel */

  /* Dunkle Flächen (bisherige Fußzeile: #1D1D1D, hier leicht erwärmt) */
  --dunkel:      #241c18;
  --dunkel-warm: #8a2a14;

  /* Akzente aus dem Praxislogo (Auge/Hand/Mensch/Fuß/Ohr) */
  --gold:   #f0b323;
  --orange: #ea5b0c;
  --rot:    #e2001a;
  --lgruen: #3aaa35;
  --blau:   #1d3a8f;

  /* Radien & Schatten */
  --r-s:  10px;
  --r-m:  18px;
  --r-l:  26px;
  --r-xl: 38px;
  --r-pille: 999px;

  --schatten-s: 0 2px 8px rgba(28, 43, 38, .06);
  --schatten-m: 0 10px 30px -12px rgba(28, 43, 38, .18);
  --schatten-l: 0 28px 60px -24px rgba(28, 43, 38, .30);

  /* Maße */
  --wrap: 1200px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --sek: clamp(3.5rem, 8vw, 7rem);

  --font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* --- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  /* Das ausgeblendete Mobilmenü liegt rechts außerhalb – niemals horizontal scrollen */
  overflow-x: clip;
}

body {
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.7;
  color: var(--ink-70);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--rost-satt); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--rost-tief); }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { padding: 0; }

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

/* --- 3. Typografie ------------------------------------------------------ */
h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.015em;
  text-wrap: balance;
  /* Deutsche Bandwurmwoerter ("Hilfsmittelherstellung") duerfen umbrechen,
     kurze Woerter bleiben unangetastet. break-word ist die Rueckfallebene
     fuer Browser ohne Trennmuster. */
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
          hyphens: auto;
  -webkit-hyphenate-limit-before: 6;
  -webkit-hyphenate-limit-after: 4;
  hyphenate-limit-chars: 14 6 4;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.1rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.1vw, 2.85rem); font-weight: 800; letter-spacing: -.025em; }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); }
h4 { font-size: 1.075rem; }
p  { text-wrap: pretty; }

.augen-brauen {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rost-satt);
  margin-bottom: .9rem;
}
.augen-brauen::before {
  content: "";
  width: 1.9rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.cta-band .augen-brauen,
.dunkel .augen-brauen { color: var(--gold); }

.lead {
  font-size: clamp(1.075rem, 1rem + .5vw, 1.3rem);
  line-height: 1.65;
  color: var(--ink-70);
}

.ico { width: 1.15em; height: 1.15em; flex: none; }

/* --- 4. Layout-Bausteine ------------------------------------------------ */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap--schmal { width: min(100% - 2.5rem, 860px); }

.sek { padding-block: var(--sek); }
.sek--creme { background: var(--sand-100); }
.sek--weiss { background: var(--weiss); }
.sek--sand  { background: var(--sand-200); }

.sek-kopf { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sek-kopf--mitte { margin-inline: auto; text-align: center; }
.sek-kopf--mitte .augen-brauen::before { display: none; }
.sek-kopf p { margin-top: 1rem; }

.raster { display: grid; gap: var(--gap); }
@media (min-width: 640px)  { .raster--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .raster--3 { grid-template-columns: repeat(3, 1fr); }
                             .raster--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .raster--4 { grid-template-columns: repeat(4, 1fr); } }

.skiplink {
  position: absolute; left: 1rem; top: -5rem; z-index: 200;
  background: var(--rost-satt); color: #fff; padding: .8rem 1.4rem;
  border-radius: var(--r-s); text-decoration: none; font-weight: 700;
  transition: top .2s var(--ease);
}
.skiplink:focus { top: 1rem; color: #fff; }

/* --- 5. Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--r-pille);
  background: var(--rost-satt);
  color: #fff;
  font-weight: 700;
  font-size: .975rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s;
  box-shadow: 0 10px 24px -14px rgba(168, 53, 27, .85);
}
.btn:hover { background: var(--rost-tief); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(168, 53, 27, .8); }
.btn:active { transform: translateY(0); }

.btn--rand { background: transparent; border-color: currentColor; color: var(--rost-satt); box-shadow: none; }
.btn--rand:hover { background: var(--rost-satt); border-color: var(--rost-satt); color: #fff; }

.btn--hell { background: var(--weiss); color: var(--rost-tief); box-shadow: var(--schatten-m); }
.btn--hell:hover { background: var(--gold); color: var(--ink); }

.cta-band .btn--rand { color: #fff; }
.cta-band .btn--rand:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }

.btn--klein { padding: .7rem 1.3rem; font-size: .9rem; }
.nav__cta { white-space: nowrap; }

.knopfreihe { display: flex; flex-wrap: wrap; gap: .85rem; }

/* --- 6. Infozeile & Kopf ------------------------------------------------ */
.infozeile {
  background: var(--dunkel);
  color: rgba(255,255,255,.86);
  font-size: .85rem;
}
.infozeile__in {
  display: flex; flex-wrap: wrap; gap: .35rem 1.5rem;
  align-items: center; justify-content: space-between;
  padding-block: .55rem;
}
.infozeile__kontakt { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; }
.infozeile a {
  color: inherit; text-decoration: none; font-weight: 600;
  display: inline-flex; align-items: center; gap: .45rem;
}
.infozeile a:hover { color: var(--gold); }
@media (max-width: 767px) { .infozeile__text { display: none; } .infozeile__in { justify-content: center; } }

.kopf {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 250, 243, .93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background-color .3s;
}
.kopf.ist-gescrollt { box-shadow: var(--schatten-s); border-color: var(--sand-300); }
.kopf__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }

/* Logo und Wortmarke gestapelt: schmal genug, damit die Navigation Platz hat */
.marke {
  display: flex; flex-direction: column; align-items: flex-start; gap: .3rem;
  text-decoration: none; color: var(--ink);
}
.marke__zeichen { width: clamp(122px, 15vw, 168px); height: auto; }
.marke__text {
  display: none;
  font-size: .92rem; font-weight: 700; line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ink); white-space: nowrap;
}
/* Ab Tablet-Breite sichtbar – bisher erst ab 1300 px */
@media (min-width: 700px) { .marke__text { display: block; } }

/* Navigation */
.nav { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.marke { flex: none; }
.nav__liste { display: flex; align-items: center; gap: .15rem; list-style: none; }
.nav__punkt { position: relative; }
.nav__punkt > a {
  display: block; padding: .6rem .85rem; border-radius: var(--r-pille);
  color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.nav__punkt > a:hover { background: var(--rost-hell); color: var(--rost-tief); }
.nav__punkt > a.ist-aktiv { color: var(--rost-satt); background: var(--rost-hell); }
.nav__auf { display: none; }

.nav__unter {
  position: absolute; top: calc(100% + .5rem); left: 0;
  min-width: 17rem; list-style: none;
  background: var(--weiss); border: 1px solid var(--sand-200);
  border-radius: var(--r-m); padding: .5rem;
  box-shadow: var(--schatten-m);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.hat-untermenu:hover > .nav__unter,
.hat-untermenu:focus-within > .nav__unter { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__unter a {
  display: block; padding: .6rem .85rem; border-radius: var(--r-s);
  color: var(--ink-70); font-size: .93rem; text-decoration: none;
}
.nav__unter a:hover, .nav__unter a.ist-aktiv { background: var(--rost-hell); color: var(--rost-tief); }

.burger {
  display: none; width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--sand-300); border-radius: var(--r-s);
  background: var(--weiss); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Die waagerechte Navigation braucht rund 1160 px. Darunter wird auf das
   Schubladenmenü umgeschaltet – vorher lag die Grenze bei 980 px, dort war
   die Leiste zwischen 980 und 1160 px zu eng. */
@media (max-width: 1179px) {
  /* backdrop-filter macht ein Element zum Bezugsrahmen für fest positionierte
     Kindelemente. Die Schublade würde sich dann an der Kopfzeile ausrichten
     statt am Bildschirm und nur wenige Pixel hoch sein. Auf Mobilgeräten und
     Tablets deshalb ohne Weichzeichner und mit deckendem Hintergrund. */
  .kopf {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--sand-50);
  }
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(88vw, 400px);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 1rem; padding: 6rem 1.5rem 2.5rem;
    background: var(--sand-50); box-shadow: var(--schatten-l);
    transform: translateX(102%); transition: transform .4s var(--ease);
    overflow-y: auto; z-index: 120;
  }
  .nav.ist-offen { transform: translateX(0); }
  .nav__liste { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav__punkt > a { padding: .85rem 1rem; font-size: 1.05rem; }
  .hat-untermenu { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .nav__auf {
    display: grid; place-items: center; width: 42px; height: 42px;
    border: 0; background: transparent; border-radius: var(--r-s); cursor: pointer;
  }
  .nav__auf .ico { transform: rotate(180deg); transition: transform .3s var(--ease); }
  .nav__auf[aria-expanded="true"] .ico { transform: rotate(0deg); }
  .nav__unter {
    position: static; grid-column: 1 / -1;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent;
    padding: 0 0 .5rem 1rem; margin: 0;
    display: none;
  }
  .nav__unter.ist-offen { display: block; }
  .nav__cta { margin-top: .75rem; align-self: flex-start; }
  /* Der Kopf bildet mit z-index 100 einen eigenen Stapelkontext. Die
     Schublade steckt darin, ist also nach außen hin auf Ebene 100. Läge die
     Verdunklung darüber, finge sie jeden Fingertipp ab. Sie muss darunter
     liegen – die Kopfzeile bleibt dadurch bedienbar, was gewollt ist. */
  .nav-overlay {
    position: fixed; inset: 0; z-index: 95;
    background: rgba(36, 28, 24, .5);
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav-overlay.ist-sichtbar { opacity: 1; pointer-events: auto; }
  html.menu-offen, body.menu-offen { overflow: hidden; }
}

/* --- 7. Held (Hero) ----------------------------------------------------- */
.held {
  position: relative;
  padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(231, 81, 47, .12) 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 25%, rgba(240, 179, 35, .20) 0%, transparent 55%),
    linear-gradient(180deg, var(--sand-100) 0%, var(--sand-50) 100%);
  overflow: hidden;
}
.held__in { display: grid; gap: clamp(2.25rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .held__in { grid-template-columns: 1.05fr .95fr; } }

.held h1 { margin-bottom: 1.15rem; }
.held h1 em { font-style: normal; color: var(--rost-satt); position: relative; white-space: nowrap; }
.held h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .28em;
  background: rgba(240, 179, 35, .45); border-radius: .2em; z-index: -1;
}
.held__text { max-width: 34rem; margin-bottom: 1.9rem; }
.held .knopfreihe { margin-bottom: 2.25rem; }

.held__merkmale { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; list-style: none; font-size: .93rem; font-weight: 600; color: var(--ink-70); }
.held__merkmale li { display: flex; align-items: center; gap: .5rem; }
.held__merkmale .ico { color: var(--rost); }

.held__bild { position: relative; }
.held__bild a { display: block; cursor: zoom-in; }
.held__bild img {
  width: 100%; border-radius: var(--r-xl);
  box-shadow: var(--schatten-l);
  object-fit: cover; aspect-ratio: 4 / 3;
}
.held__karte {
  position: absolute; left: clamp(-1rem, -2vw, -2.5rem); bottom: clamp(-1.25rem, -2vw, -2rem);
  display: flex; align-items: center; gap: .9rem;
  background: var(--weiss); padding: 1rem 1.35rem;
  border-radius: var(--r-m); box-shadow: var(--schatten-m);
  max-width: 16.5rem;
}
.held__karte::before {
  content: ""; width: 4px; align-self: stretch; border-radius: 4px;
  background: var(--gold);
}
.held__karte strong { display: block; font-size: 1.6rem; color: var(--rost-satt); line-height: 1; }
.held__karte > div > span { display: block; font-size: .82rem; line-height: 1.35; color: var(--ink-50); margin-top: .25rem; }
@media (max-width: 999px) { .held__karte { position: static; margin-top: 1.25rem; max-width: none; } }

/* Kennzahlen-Leiste */
.kennzahlen {
  display: grid; gap: 1px;
  background: var(--sand-300);
  border-radius: var(--r-l); overflow: hidden;
  box-shadow: var(--schatten-s);
}
@media (min-width: 560px) { .kennzahlen { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .kennzahlen { grid-template-columns: repeat(4, 1fr); } }
.kennzahl { background: var(--weiss); padding: 1.75rem 1.5rem; text-align: center; }
.kennzahl strong { display: block; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); color: var(--rost-satt); line-height: 1.05; letter-spacing: -.03em; }
.kennzahl > span { font-size: .88rem; color: var(--ink-50); }
.kennzahl strong span, .held__karte strong span { font-size: inherit; color: inherit; letter-spacing: inherit; }

/* --- 8. Sinne-Streifen (Logo-Motiv) ------------------------------------- */
.sinne { display: grid; gap: 1.25rem; }
@media (min-width: 620px)  { .sinne { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .sinne { grid-template-columns: repeat(5, 1fr); } }

.sinn {
  position: relative;
  background: var(--weiss);
  border-radius: var(--r-l);
  padding: 1.75rem 1.4rem;
  border: 1px solid var(--sand-200);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.sinn:hover { transform: translateY(-6px); box-shadow: var(--schatten-m); }
.sinn::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  border-radius: var(--r-l) var(--r-l) 0 0;
  background: var(--akzent, var(--rost-satt));
}
.sinn img { width: 60px; height: 60px; margin-bottom: 1rem; }
.sinn h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.sinn p { font-size: .93rem; line-height: 1.6; }

.f-gold   { --akzent: var(--gold); }
.f-orange { --akzent: var(--orange); }
.f-rot    { --akzent: var(--rot); }
.f-gruen  { --akzent: var(--lgruen); }
.f-blau   { --akzent: var(--blau); }

/* --- 9. Karten ---------------------------------------------------------- */
.karte {
  display: flex; flex-direction: column;
  background: var(--weiss);
  border: 1px solid var(--sand-200);
  border-radius: var(--r-l);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.karte:hover { transform: translateY(-5px); box-shadow: var(--schatten-m); border-color: transparent; }
.karte h3 { margin-bottom: .6rem; }
.karte p { font-size: .96rem; }
.karte__mehr {
  margin-top: auto; padding-top: 1.15rem;
  font-weight: 700; font-size: .92rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: .45rem;
}
.karte__mehr::after { content: "→"; transition: transform .25s var(--ease); }
.karte:hover .karte__mehr::after { transform: translateX(4px); }

.karte__symbol {
  width: 3.4rem; height: 3.4rem; margin-bottom: 1.15rem;
  display: grid; place-items: center;
  border-radius: var(--r-m);
  background: color-mix(in srgb, var(--akzent, var(--rost-satt)) 13%, white);
  color: var(--akzent, var(--rost-satt));
}
.karte__symbol .ico { width: 1.7rem; height: 1.7rem; }

/* Bereichs-Karte mit Farbkante */
.bereich { position: relative; overflow: hidden; }
.bereich::after {
  content: ""; position: absolute; right: -2.5rem; top: -2.5rem;
  width: 8rem; height: 8rem; border-radius: 50%;
  background: color-mix(in srgb, var(--akzent) 10%, transparent);
  transition: transform .5s var(--ease);
}
.bereich:hover::after { transform: scale(1.35); }
.bereich > * { position: relative; z-index: 1; }
.bereich__kurz { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--akzent); margin-bottom: .4rem; }

/* --- 10. Text-Bild-Blöcke ----------------------------------------------- */
.duo { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) {
  .duo { grid-template-columns: 1fr 1fr; }
  .duo--gedreht .duo__bild { order: -1; }
}
.duo__bild a { display: block; border-radius: var(--r-l); cursor: zoom-in; }
.duo__bild img {
  width: 100%; border-radius: var(--r-l);
  box-shadow: var(--schatten-m); object-fit: cover;
  aspect-ratio: 4 / 3;
}
.duo__bild--hoch img { aspect-ratio: 4 / 5; }
.duo h2 { margin-bottom: 1rem; }
.duo p + p { margin-top: .9rem; }
.duo .knopfreihe { margin-top: 1.9rem; }

.bildrahmen { position: relative; isolation: isolate; }
.bildrahmen::before {
  content: ""; position: absolute; inset: auto -1.25rem -1.25rem auto;
  width: 62%; height: 62%; border: 3px solid var(--gold);
  border-radius: var(--r-l); z-index: 0;
}
.bildrahmen img { position: relative; z-index: 1; }
@media (max-width: 640px) { .bildrahmen::before { display: none; } }

/* --- 11. Fließtext (Unterseiten) ---------------------------------------- */
.prosa > * + * { margin-top: 1.15rem; }
.prosa h2 { font-size: clamp(1.35rem, 1.15rem + .95vw, 1.9rem); }
.prosa h3 { font-size: clamp(1.1rem, 1.02rem + .4vw, 1.3rem); }
.prosa h2 { margin-top: 2.75rem; }
.prosa h3 { margin-top: 2rem; }
.prosa h2:first-child, .prosa h3:first-child { margin-top: 0; }
.prosa ul, .prosa ol { padding-left: 1.35rem; }
.prosa li + li { margin-top: .45rem; }
.prosa strong { color: var(--ink); }

.hakenliste { list-style: none; padding: 0; display: grid; gap: .7rem; }
.hakenliste li { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; }
.hakenliste .ico { width: 1.15rem; height: 1.15rem; margin-top: .32rem; color: var(--rost); }
@media (min-width: 720px) { .hakenliste--2 { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; } }

/* Seitenkopf der Unterseiten */
.seitenkopf {
  position: relative;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(231, 81, 47, .14) 0%, transparent 60%),
    linear-gradient(180deg, var(--sand-100), var(--sand-50));
  border-bottom: 1px solid var(--sand-200);
}
.seitenkopf h1 { max-width: 22ch; }
.seitenkopf .lead { max-width: 48ch; margin-top: 1.1rem; }
.krumen { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .84rem; color: var(--ink-50); margin-bottom: 1rem; list-style: none; }
.krumen a { color: var(--ink-50); text-decoration: none; }
.krumen a:hover { color: var(--rost-satt); }
.krumen li + li::before { content: "/"; margin-right: .4rem; color: var(--sand-300); }

/* Inhaltsverzeichnis */
.inhalt-nav {
  position: sticky; top: 6.5rem;
  background: var(--weiss); border: 1px solid var(--sand-200);
  border-radius: var(--r-l); padding: 1.5rem;
}
.inhalt-nav h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-50); margin-bottom: .9rem; }
.inhalt-nav ul { list-style: none; display: grid; gap: .2rem; }
.inhalt-nav a {
  display: block; padding: .5rem .75rem; border-radius: var(--r-s);
  font-size: .93rem; font-weight: 600; text-decoration: none; color: var(--ink-70);
  border-left: 3px solid transparent;
}
.inhalt-nav a:hover { background: var(--rost-hell); color: var(--rost-tief); }
.inhalt-nav a.ist-aktiv { border-left-color: var(--rost-satt); color: var(--rost-satt); background: var(--rost-hell); }

.mit-seitenleiste { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 960px) { .mit-seitenleiste { grid-template-columns: minmax(0, 1fr) 19rem; } }

/* Kontakt-Widget in der Seitenleiste */
.kontaktbox {
  background: linear-gradient(155deg, var(--rost-tief), var(--dunkel-warm));
  color: rgba(255,255,255,.88);
  border-radius: var(--r-l); padding: 1.75rem; margin-top: 1.5rem;
}
.kontaktbox h2, .kontaktbox h3 { color: #fff; font-size: 1.15rem; margin-bottom: .8rem; }
.kontaktbox a { color: #fff; font-weight: 600; }
.kontaktbox a:hover { color: var(--gold); }
.kontaktbox ul { list-style: none; display: grid; gap: .8rem; font-size: .93rem; margin-bottom: 1.4rem; }
.kontaktbox .btn { width: 100%; }
.kontaktbox .btn--hell { color: var(--rost-tief); }
.kontaktbox .btn--hell:hover { color: var(--ink); background: var(--gold); }

/* --- 12. Team ----------------------------------------------------------- */
.team-raster { display: grid; gap: clamp(1rem, 2vw, 1.75rem); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px)  { .team-raster { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .team-raster { grid-template-columns: repeat(4, 1fr); } }

.person {
  position: relative; display: block; border-radius: var(--r-l); overflow: hidden;
  background: var(--sand-200); box-shadow: var(--schatten-s);
  margin: 0; cursor: zoom-in;
}
.person img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s var(--ease); filter: saturate(.96); }
.person:hover img, .person:focus-visible img { transform: scale(1.05); }
.person::after {
  content: ""; position: absolute; inset: auto .75rem auto auto; top: .75rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: rgba(255,255,255,.9) center / 55% no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23241a14' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E");
  opacity: 0; transform: scale(.85);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.person:hover::after, .person:focus-visible::after { opacity: 1; transform: scale(1); }
.person__text {
  position: absolute; inset: auto 0 0 0; padding: 2.75rem 1.1rem .95rem;
  background: linear-gradient(180deg, transparent, rgba(30, 20, 15, .9) 55%);
  color: #fff;
}
.person__text strong { display: block; font-size: 1rem; line-height: 1.25; }
.person__text span { font-size: .8rem; color: rgba(255,255,255,.78); }

/* --- 13. Galerie & Lightbox --------------------------------------------- */
.galerie { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.galerie a { display: block; border-radius: var(--r-m); overflow: hidden; box-shadow: var(--schatten-s); cursor: zoom-in; }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.galerie a:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: rgba(24, 17, 13, .97);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden; transition: opacity .3s;
}
.lightbox.ist-offen { opacity: 1; visibility: visible; }
.lightbox__buehne {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  max-width: min(100%, 1100px); margin: 0;
}
.lightbox img {
  max-width: 100%; max-height: 74vh; width: auto;
  border-radius: var(--r-m); box-shadow: var(--schatten-l);
  background: var(--sand-200);
}
.lightbox__text { text-align: center; color: #fff; max-width: 46ch; }
.lightbox__text strong { display: block; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; }
.lightbox__text span { display: block; margin-top: .2rem; font-size: .95rem; color: rgba(255,255,255,.72); }
.lightbox__zaehler {
  display: block; margin-top: .7rem; font-style: normal;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
}
.lightbox__text[hidden], .lightbox__nav[hidden] { display: none; }
.lightbox__zu, .lightbox__nav {
  position: absolute; display: grid; place-items: center;
  width: 3rem; height: 3rem; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
  transition: background-color .2s;
}
.lightbox__zu:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__zu { top: 1.25rem; right: 1.25rem; }
.lightbox__nav--vor { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--zurueck { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav .ico { width: 1.5rem; height: 1.5rem; }
.lightbox__nav--vor .ico { transform: rotate(90deg); }
.lightbox__nav--zurueck .ico { transform: rotate(-90deg); }
.lightbox__zu .ico { width: 1.4rem; height: 1.4rem; }

/* --- 14. Akkordeon ------------------------------------------------------ */
.akkordeon { display: grid; gap: .75rem; }
.faltung { background: var(--weiss); border: 1px solid var(--sand-200); border-radius: var(--r-m); overflow: hidden; }
.faltung summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem; cursor: pointer; list-style: none;
  font-weight: 700; color: var(--ink);
}
.faltung summary::-webkit-details-marker { display: none; }
.faltung summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--rost-satt);
  transition: transform .3s var(--ease);
}
.faltung[open] summary::after { transform: rotate(45deg); }
.faltung__inhalt { padding: 0 1.4rem 1.4rem; font-size: .96rem; }

/* --- 15. Zitat ---------------------------------------------------------- */
.zitat {
  position: relative; max-width: 44rem; margin-inline: auto; text-align: center;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.85rem); line-height: 1.45;
  color: var(--ink); font-weight: 600; letter-spacing: -.015em;
}
.zitat::before {
  content: "„"; display: block; font-size: 4.5rem; line-height: 1;
  color: var(--gold); margin-bottom: .35rem; font-weight: 800;
}
.zitat cite { display: block; margin-top: 1.4rem; font-size: .92rem; font-style: normal; font-weight: 600; color: var(--ink-50); }

/* --- 16. CTA-Band & Fuß ------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(70% 120% at 85% 15%, rgba(231, 81, 47, .45) 0%, transparent 62%),
    var(--dunkel);
  color: rgba(255,255,255,.85);
}
.cta-band__in {
  display: grid; gap: 2rem; align-items: center;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
@media (min-width: 880px) { .cta-band__in { grid-template-columns: 1.3fr .7fr; } }
.cta-band h2 { color: #fff; margin-bottom: .85rem; }
.cta-band__text { max-width: 44ch; }
.cta-band__knoepfe { display: flex; flex-wrap: wrap; gap: .85rem; }
@media (min-width: 880px) { .cta-band__knoepfe { justify-content: flex-end; } }

.fuss { background: var(--dunkel); color: rgba(255,255,255,.68); font-size: .93rem; padding-top: clamp(3rem, 6vw, 4.5rem); }
.fuss__raster { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 640px)  { .fuss__raster { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .fuss__raster { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.fuss h3 { color: #fff; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.fuss a { color: rgba(255,255,255,.82); text-decoration: none; }
.fuss a:hover { color: var(--gold); text-decoration: underline; }
.fuss__marke img { width: 190px; margin-bottom: 1.15rem; background: #fff; padding: .55rem .7rem; border-radius: var(--r-s); }
.fuss__marke p { max-width: 34ch; }
.fuss address { font-style: normal; line-height: 1.75; }
.fuss address strong { color: #fff; }
.fuss__zweig { display: inline-block; margin-top: .6rem; color: rgba(255,255,255,.55); font-size: .88rem; }
.fuss__liste { list-style: none; display: grid; gap: .5rem; }
.fuss__zeiten { color: rgba(255,255,255,.5); font-size: .85rem; margin-top: .4rem; line-height: 1.5; }
.fuss__urheber { display: inline-block; margin-top: .3rem; color: rgba(255,255,255,.42); }
.fuss__urheber a { color: rgba(255,255,255,.62); }
.fuss__urheber a:hover { color: var(--gold); }
.fuss__unten {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  padding-block: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; color: rgba(255,255,255,.5);
}

.nach-oben {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 3rem; height: 3rem; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--rost-satt); color: #fff; box-shadow: var(--schatten-m);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .3s, transform .3s var(--ease), background-color .2s;
}
.nach-oben.ist-sichtbar { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nach-oben:hover { background: var(--rost-tief); }
.nach-oben .ico { width: 1.35rem; height: 1.35rem; }

/* --- 17. Kontaktseite --------------------------------------------------- */
.karte-box { border-radius: var(--r-l); overflow: hidden; box-shadow: var(--schatten-m); border: 1px solid var(--sand-200); }
#karte { width: 100%; height: clamp(340px, 45vh, 480px); z-index: 1; background: var(--sand-200); }
#karte img { max-width: none; }
.karten-schalter { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.25rem; }
.karten-schalter .btn--rand[aria-pressed="true"] { background: var(--rost-satt); border-color: var(--rost-satt); color: #fff; }

.info-kachel { background: var(--weiss); border: 1px solid var(--sand-200); border-radius: var(--r-l); padding: 1.75rem; }
.info-kachel h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.info-kachel h3 .ico { color: var(--rost-satt); }
.info-kachel dl { display: grid; gap: .75rem; }
.info-kachel dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-50); }
.info-kachel dd { margin: 0; font-weight: 600; color: var(--ink); }

.hinweis {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem;
  background: color-mix(in srgb, var(--gold) 15%, var(--weiss));
  border-left: 4px solid var(--gold);
  border-radius: var(--r-m); padding: 1.25rem 1.5rem;
  font-size: .96rem;
}
.hinweis strong { color: var(--ink); display: block; margin-bottom: .25rem; }

/* --- 18. Animationen ---------------------------------------------------- */
.zeig { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.zeig.ist-da { opacity: 1; transform: none; }
.zeig:nth-child(2) { transition-delay: .08s; }
.zeig:nth-child(3) { transition-delay: .16s; }
.zeig:nth-child(4) { transition-delay: .24s; }
.zeig:nth-child(5) { transition-delay: .32s; }

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

/* --- 19. Hilfsklassen --------------------------------------------------- */
.nur-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.text-mitte { text-align: center; }
