/* Partnerschaft für interdisziplinäre ZahnMedizin
   Konzept: Grönland-Eis (kühl, klar) + eine Polarsonne (warm). Siehe AUDIT.md, Abschnitt 4. */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ice: #f3f7f8;
  --frost: #e2ebee;
  --glacier: #9db6c1;
  --fjord: #2b5367;
  --night: #0d2331;
  --sun: #f2a541;
  --sun-deep: #e08c1e;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;

  /* Major Third, Basis 18 px */
  --step--1: 0.9rem;
  --step-0: 1.125rem;
  --step-1: 1.4rem;
  --step-2: clamp(1.55rem, 1.2rem + 1.2vw, 1.95rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.05rem);
  --step-4: clamp(2.4rem, 1.4rem + 4vw, 4.25rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 4.5rem;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ice);
  color: var(--night);
  font: 400 var(--step-0)/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 420;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 380; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }
p { margin: 0 0 1em; max-width: 66ch; text-wrap: pretty; }
a { color: var(--fjord); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--night); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fjord); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--sun); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--night); color: var(--ice); padding: 0.6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; color: var(--ice); }

.wrap { width: min(100% - 2 * var(--gutter), 74rem); margin-inline: auto; }
.section { padding-block: var(--section); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--fjord); max-width: 40ch; }
.muted { color: var(--fjord); }
.dark { background: var(--night); color: var(--ice); }
.dark a { color: var(--ice); }
.dark .muted, .dark .lead { color: var(--glacier); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 3rem; padding: 0.7em 1.35em;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 600 1rem/1.1 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  background: var(--sun); color: var(--night);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { background: var(--sun-deep); color: var(--night); text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgb(224 140 30 / 0.7); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--line { background: transparent; border-color: currentColor; color: var(--night); }
.btn--line:hover { background: var(--night); color: var(--ice); box-shadow: none; }
.dark .btn--line { color: var(--ice); }
.dark .btn--line:hover { background: var(--ice); color: var(--night); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-more { font-weight: 600; text-decoration: none; background: linear-gradient(currentColor 0 0) 0 100% / 0 1.5px no-repeat; transition: background-size 0.3s var(--ease); padding-bottom: 2px; }
.link-more:hover { background-size: 100% 1.5px; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(243 247 248 / 0.86);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: rgb(157 182 193 / 0.45); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--night); margin-right: auto; }
.brand:hover { color: var(--night); }
.brand svg { width: 2.4rem; height: 2.4rem; flex: none; }
.brand strong { display: block; font: 450 1.15rem/1.1 var(--serif); letter-spacing: -0.01em; }
.brand span { display: block; font-size: 0.8rem; color: var(--fjord); line-height: 1.3; }

.nav-list { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 0.5rem 0.8rem; border-radius: 999px; color: var(--night); text-decoration: none; font-weight: 500; transition: background-color 0.2s; }
.nav-list a:hover, .nav-list a[aria-current="page"] { background: var(--frost); }
.header-phone { font-weight: 600; text-decoration: none; color: var(--night); white-space: nowrap; }
.menu-btn { display: none; }

@media (max-width: 40rem) {
  .brand span span { display: none; }
  .hero .lead { font-size: 1.1rem; }
}
@media (max-width: 60rem) {
  .header-phone, .site-header .btn { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    min-height: 2.75rem; padding: 0 1rem; border-radius: 999px;
    border: 1.5px solid var(--night); background: transparent; color: var(--night);
    font: 600 1rem var(--sans); cursor: pointer;
  }
  .site-nav[popover] {
    inset: var(--header-h) 0 auto 0; margin: 0; width: 100%; border: 0; padding: 1rem var(--gutter) 2rem;
    background: var(--ice); box-shadow: 0 24px 40px -24px rgb(13 35 49 / 0.35);
    opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), display 0.25s allow-discrete, overlay 0.25s allow-discrete;
  }
  .site-nav[popover]:popover-open { opacity: 1; transform: none; }
  @starting-style { .site-nav[popover]:popover-open { opacity: 0; transform: translateY(-8px); } }
  .site-nav .nav-list { flex-direction: column; }
  .site-nav .nav-list a { font: 420 var(--step-2) var(--serif); padding: 0.6rem 0; border-radius: 0; border-bottom: 1px solid var(--frost); }
  .site-nav .nav-list a:hover { background: none; }
}
@media (min-width: 60.01rem) {
  .site-nav[popover] { display: block; position: static; inset: auto; margin: 0; padding: 0; border: 0; background: none; overflow: visible; width: auto; height: auto; color: inherit; }
}

/* ---------- Hero: Polarsonne am Horizont ---------- */
.hero {
  position: relative; display: grid; grid-template-rows: 1fr auto; min-height: calc(100svh - var(--header-h)); overflow: hidden; isolation: isolate;
  /* Himmel liegt auf .hero, damit die Sonne (z-index -1) darüber und hinter dem Wasser liegt */
  background: linear-gradient(180deg, var(--ice) 0%, #e9f0f2 45%, #f6e7d2 80%);
}
.hero__sky { padding-block: clamp(2rem, 5vh, 4.5rem) clamp(4.5rem, 10vh, 7rem); align-content: center; }
.hero__sky .wrap { display: grid; gap: 1.5rem; }
.hero h1 { max-width: 19ch; margin: 0; }
.hero .lead { max-width: 44ch; margin: 0; }

.hero__water { position: relative; background: linear-gradient(180deg, #1a3a4c 0%, var(--night) 70%); color: var(--ice); }
.sun {
  position: absolute; z-index: -1; right: clamp(1rem, 12vw, 12rem); bottom: 100%;
  width: clamp(7rem, 20vw, 17rem); aspect-ratio: 1; border-radius: 50%;
  translate: 0 38%;
  background: radial-gradient(circle at 50% 55%, #fff6e6 0%, #fbd79c 30%, #f6b65c 62%, var(--sun) 100%);
}
/* Glow als Verlauf statt animiertem box-shadow: keine Repaints, keine harten Kanten */
.sun::before {
  content: ""; position: absolute; inset: -55%; border-radius: 50%;
  background: radial-gradient(circle, rgb(246 182 92 / 0.5) 0%, rgb(246 182 92 / 0.18) 38%, transparent 68%);
  animation: sun-breathe 9s ease-in-out infinite alternate;
}
.glint {
  position: absolute; top: 0; right: clamp(1rem, 12vw, 12rem);
  width: clamp(7rem, 20vw, 17rem); height: min(100%, 10rem);
  background: repeating-linear-gradient(180deg, rgb(249 196 117 / 0.55) 0 3px, transparent 3px 11px);
  mask: radial-gradient(ellipse 50% 100% at 50% 0, #000 20%, transparent 75%);
  transform-origin: 50% 0;
  animation: glint 6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes sun-breathe { from { opacity: 0.75; transform: scale(0.96); } to { opacity: 1; transform: scale(1.04); } }
@keyframes glint { 0% { transform: scaleX(0.82); opacity: 0.8; } 50% { opacity: 1; } 100% { transform: scaleX(1.12); opacity: 0.65; } }

/* Beim Scrollen sinkt die Sonne leicht (Scroll-Driven Animation, ohne JS; ältere Browser: statisch) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .sun { animation: sun-sink linear both; animation-timeline: scroll(); animation-range: 0 90vh; }
    @keyframes sun-sink { to { translate: 0 75%; } }
  }
}

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.25rem 2.5rem; padding-block: 2rem 2.25rem; position: relative; }
.fact { display: grid; gap: 0.2rem; font-size: 1rem; }
.fact b { font-weight: 600; }
.fact span, .fact a { color: var(--glacier); }
.fact a:hover { color: var(--ice); }

.status { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; }
.status::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--glacier); flex: none; }
.status.is-open::before { background: var(--sun); box-shadow: 0 0 0 0 rgb(242 165 65 / 0.6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 0.6rem rgb(242 165 65 / 0); } }

/* Seitenkopf für Unterseiten: nur der Horizont mit kleiner Sonne */
.page-head { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4rem); overflow: hidden; border-bottom: 1px solid var(--glacier); }
.page-head::after {
  content: ""; position: absolute; right: max(var(--gutter), calc((100% - 74rem) / 2)); bottom: -2.2rem; width: 4.4rem; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff3dc, var(--sun) 65%); box-shadow: 0 0 3rem 0.5rem rgb(242 165 65 / 0.35);
}
.page-head h1 { font-size: var(--step-4); max-width: 18ch; }

/* ---------- Leistungen (Startseite) ---------- */
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { margin: 0; }
@media (min-width: 60rem) { .section-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 4rem; } }

.focus-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--glacier); }
.focus-item { border-bottom: 1px solid var(--glacier); }
.focus-item a {
  display: grid; gap: 0.5rem 3rem; padding: clamp(1.5rem, 3vw, 2.5rem) 0; color: var(--night); text-decoration: none;
  transition: padding 0.35s var(--ease), background-color 0.35s var(--ease);
}
.focus-item h3 { font-size: var(--step-3); font-weight: 380; margin: 0; }
.focus-item p { margin: 0; color: var(--fjord); }
.focus-item .link-more { color: var(--night); justify-self: start; }
.focus-item a:hover { background: var(--frost); padding-inline: 1.25rem; }
.focus-item a:hover .link-more { background-size: 100% 1.5px; }
@media (min-width: 60rem) { .focus-item a { grid-template-columns: 5fr 6fr 13rem; align-items: baseline; } }

.register { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 2.5rem 2rem; margin-top: clamp(3rem, 6vw, 5rem); }
.register h3 { font-size: var(--step-0); font-family: var(--sans); font-weight: 650; letter-spacing: 0; margin-bottom: 0.75rem; }
.register ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.register a { text-decoration: none; color: var(--fjord); }
.register a:hover { color: var(--night); text-decoration: underline; }

/* ---------- Haltung: Polarnacht mit Sternenhimmel ---------- */
.stance { position: relative; overflow: hidden; }
.stance::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 47% 12%, #cfe3ea 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 44%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 81% 22%, #f9c475 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 70%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 84%, #cfe3ea 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 88%, #fff 50%, transparent 51%);
}
.stance .wrap { position: relative; display: grid; gap: 3rem; }
.stance blockquote { margin: 0; }
.stance blockquote p { font: 360 var(--step-3)/1.2 var(--serif); max-width: 24ch; margin: 0 0 1rem; }
.stance cite { font-style: normal; color: var(--glacier); }
.stance dl { display: grid; gap: 1.75rem; margin: 0; }
.stance dt { font: 420 var(--step-2) var(--serif); }
.stance dd { margin: 0.2rem 0 0; color: var(--glacier); max-width: 34ch; }
@media (min-width: 60rem) { .stance .wrap { grid-template-columns: 7fr 5fr; gap: 6rem; align-items: start; } .stance dl { padding-top: 0.75rem; } }

/* ---------- Team ---------- */
.team { display: grid; gap: 3rem 2rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 48rem) { .team { grid-template-columns: repeat(3, 1fr); } .team li:nth-child(2) { margin-top: 4rem; } }
.team h3 { margin: 1.25rem 0 0.25rem; }
.team .role { color: var(--fjord); font-weight: 600; font-size: 1rem; margin-bottom: 0.6rem; }
.team p { font-size: 1rem; }

/* Bildplatzhalter: wird durch echte Praxisfotos ersetzt (siehe Kommentare im HTML) */
.ph {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--frost), #cfdde3 60%, #c3d4db);
  display: grid; place-items: end start;
}
.ph::before { content: ""; position: absolute; inset: auto -10% -30% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(242 165 65 / 0.35), transparent 70%); }
.ph figcaption { position: relative; margin: 1rem; padding: 0.35rem 0.7rem; border-radius: 6px; font-size: 0.8rem; line-height: 1.35; background: rgb(243 247 248 / 0.85); color: var(--fjord); }
.ph--wide { aspect-ratio: 16 / 10; }

/* ---------- Erstbesuch: echte Abfolge, darum nummeriert ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; position: relative; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 0 1.25rem; }
.steps li::before {
  content: counter(step); grid-row: span 2; width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center; border: 1.5px solid var(--night); background: var(--ice);
  font: 450 1.35rem/1 var(--serif); position: relative; z-index: 1;
}
.steps h3 { margin: 0.55rem 0 0.4rem; }
.steps p { margin: 0; font-size: 1rem; color: var(--fjord); }
.steps::before { content: ""; position: absolute; left: 1.5rem; top: 1.5rem; bottom: 1.5rem; border-left: 1.5px solid var(--glacier); }
@media (min-width: 60rem) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
  .steps li { grid-template-columns: 1fr; }
  .steps li::before { grid-row: auto; margin-bottom: 1rem; }
  .steps::before { left: 1.5rem; right: 1.5rem; top: 1.5rem; bottom: auto; border-left: 0; border-top: 1.5px solid var(--glacier); }
}
.note { margin-top: 3rem; padding: 1.25rem 1.5rem; border-left: 3px solid var(--sun); background: var(--frost); border-radius: 0 var(--radius) var(--radius) 0; max-width: 60ch; }
.note p { margin: 0; }

.band { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; padding-block: 2.5rem; border-block: 1px solid var(--glacier); }
.band p { margin: 0; font: 400 var(--step-2)/1.3 var(--serif); max-width: 34ch; }

/* ---------- Kontakt ---------- */
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.way { display: grid; align-content: start; gap: 0.35rem; padding: 1.5rem; border-radius: var(--radius); background: var(--frost); text-decoration: none; color: var(--night); transition: background-color 0.25s var(--ease), transform 0.25s var(--ease); }
.way:hover { background: #d5e2e7; color: var(--night); text-decoration: none; transform: translateY(-2px); }
.way b { font: 420 var(--step-2) var(--serif); }
.way span { color: var(--fjord); font-size: 1rem; }
.way--primary { background: var(--night); color: var(--ice); }
.way--primary:hover { background: #17394d; color: var(--ice); }
.way--primary span { color: var(--glacier); }

.contact { display: grid; gap: 4rem; }
@media (min-width: 60rem) { .contact { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.contact + .contact { margin-top: clamp(4rem, 8vw, 6rem); padding-top: clamp(3rem, 6vw, 4rem); border-top: 1px solid var(--glacier); }
.contact h3 { font-size: var(--step-2); }
.contact .map { margin-top: 0; }

.hours { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--frost); font-weight: 400; }
.hours th { font-weight: 600; width: 40%; }
.hours tr.is-today { background: var(--frost); }
.hours tr.is-today th::after { content: " (heute)"; font-weight: 400; color: var(--fjord); }

.emergency { margin: 2rem 0; padding: 1.5rem; border-radius: var(--radius); background: var(--night); color: var(--ice); }
.emergency h3 { margin-bottom: 0.3rem; }
.emergency p { margin: 0 0 0.75rem; color: var(--glacier); }
.emergency a { font: 450 var(--step-2) var(--serif); color: var(--sun); text-decoration: none; }
.emergency a:hover { color: #ffd08f; }

.route { display: grid; gap: 1rem; margin: 1.5rem 0; }
.route dt { font-weight: 600; }
.route dd { margin: 0.15rem 0 0; color: var(--fjord); }

.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--frost); margin-top: 1.5rem; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map__consent { position: absolute; inset: 0; display: grid; align-content: center; justify-items: start; gap: 0.75rem; padding: 1.5rem;
  background:
    linear-gradient(0deg, rgb(226 235 238 / 0.92), rgb(226 235 238 / 0.92)),
    repeating-linear-gradient(35deg, var(--glacier) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(-55deg, var(--glacier) 0 1px, transparent 1px 52px); }
.map__consent p { margin: 0; font-size: 0.95rem; color: var(--fjord); max-width: 36ch; }

/* ---------- Formular ---------- */
.form { display: grid; gap: 1.35rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 1rem; }
.field .hint { font-size: 0.9rem; color: var(--fjord); margin: 0; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1.05rem; color: var(--night);
  width: 100%; padding: 0.85rem 1rem; border-radius: 10px;
  border: 1.5px solid transparent; background: var(--frost) linear-gradient(var(--sun), var(--sun)) 0 100% / 0 2px no-repeat;
  transition: border-color 0.2s, background-color 0.2s, background-size 0.35s var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--glacier); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--fjord); background-color: #fff; background-size: 100% 2px; }
.field .error { display: none; margin: 0; font-size: 0.9rem; color: #a3321c; font-weight: 600; }
.field:has(:user-invalid) .error, .form.was-validated .field:has(:invalid) .error { display: block; animation: nudge 0.3s var(--ease); }
.field:has(:user-invalid) :is(input, select, textarea), .form.was-validated .field:has(:invalid) :is(input, select, textarea) { border-color: #a3321c; }
.field:has(:user-valid) :is(input, textarea):not(:placeholder-shown) { border-color: #3c7a62; }
@keyframes nudge { from { transform: translateX(-4px); opacity: 0; } }

.check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-size: 0.95rem; }
.check input { width: 1.35rem; height: 1.35rem; margin: 0.15rem 0 0; accent-color: var(--night); }
.check .error { grid-column: 2; }

.form-done { padding: 2rem; border-radius: var(--radius); background: var(--frost); }
.form-done svg { width: 3rem; height: 3rem; margin-bottom: 1rem; }
.form-done path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.6s 0.15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Unterseiten ---------- */
.with-index { display: grid; gap: 3rem; }
@media (min-width: 60rem) { .with-index { grid-template-columns: 15rem 1fr; gap: 5rem; } }
.index { font-size: 0.98rem; }
.index ol { list-style: none; margin: 0; padding: 0; }
.index li + li { margin-top: 0.1rem; }
.index a { display: block; padding: 0.3rem 0 0.3rem 0.9rem; border-left: 2px solid var(--frost); color: var(--fjord); text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.index a:hover, .index a.is-active { border-left-color: var(--sun); color: var(--night); }
.index b { display: block; margin: 1.25rem 0 0.4rem; font-weight: 650; }
.index b:first-child { margin-top: 0; }
@media (min-width: 60rem) { .index nav { position: sticky; top: calc(var(--header-h) + 2rem); } }
@media (max-width: 60rem) { .index { display: none; } }

.topic { padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--frost); }
.topic:first-child { padding-top: 0; }
.topic > h2 { font-size: var(--step-3); font-weight: 400; }
.topic > h3 { font-size: var(--step-2); }
.topic :is(ul, ol):not([class]) { padding-left: 1.2rem; max-width: 62ch; margin: 0 0 1em; }
.topic :is(ul, ol):not([class]) li { margin-bottom: 0.4rem; padding-left: 0.2rem; }
.topic :is(ul, ol):not([class]) li::marker { color: var(--sun-deep); font-weight: 600; }
.group-title { font-size: var(--step-3); font-weight: 380; margin: 4rem 0 0; padding-top: 2.5rem; border-top: 2px solid var(--night); }
.group-title:first-child { margin-top: 0; }
.group-title + .topic { padding-top: 1.5rem; }

.media-split { display: grid; gap: 2rem; align-items: center; margin-block: 2rem; }
@media (min-width: 48rem) { .media-split { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); margin-block: 2rem; }

.timeline { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 7rem 1fr; gap: 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--glacier); }
.timeline time { font: 420 var(--step-1) var(--serif); }
.timeline p { margin: 0; }
@media (max-width: 30rem) { .timeline li { grid-template-columns: 1fr; gap: 0.25rem; } }

.jobs { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.jobs li { padding: 1.25rem 1.5rem; border: 1px solid var(--glacier); border-radius: var(--radius); }
.jobs h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.jobs p { margin: 0; font-size: 1rem; color: var(--fjord); }

.legal { max-width: 46rem; }
.legal h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.legal address { font-style: normal; }
.placeholder-note { padding: 1rem 1.25rem; border-radius: var(--radius); background: #fbeed9; border: 1px solid var(--sun); margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(4rem, 8vw, 6rem) 2rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.site-footer h2 { font: 650 1rem var(--sans); letter-spacing: 0; margin-bottom: 0.75rem; }
.site-footer p, .site-footer ul { font-size: 1rem; color: var(--glacier); margin: 0; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.3rem; }
.site-footer a { color: var(--ice); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .footer-claim { font: 380 var(--step-3)/1.15 var(--serif); max-width: 20ch; margin-bottom: 3.5rem; }
.footer-base { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid rgb(157 182 193 / 0.3); font-size: 0.9rem; color: var(--glacier); }

/* ---------- Mobile Aktionsleiste ---------- */
.action-bar { display: none; }
@media (max-width: 48rem) {
  .action-bar {
    position: fixed; z-index: 60; inset: auto 0.5rem calc(0.5rem + env(safe-area-inset-bottom)) 0.5rem;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem; padding: 0.3rem;
    background: rgb(13 35 49 / 0.94); backdrop-filter: blur(10px); border-radius: 999px;
    box-shadow: 0 10px 30px -10px rgb(13 35 49 / 0.6);
  }
  .action-bar a { display: grid; justify-items: center; gap: 0.1rem; padding: 0.45rem 0.25rem; border-radius: 999px; color: var(--ice); text-decoration: none; font-size: 0.8rem; font-weight: 600; }
  .action-bar a:first-child { background: var(--sun); color: var(--night); }
  .action-bar svg { width: 1.25rem; height: 1.25rem; }
  .site-footer { padding-bottom: 7rem; }
}

/* ---------- Reveal: einmalig, klein; ohne JS sofort sichtbar ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; } }

/* Hero-Auftritt: der eine orchestrierte Moment beim Laden */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lead, .hero .btn-row { animation: rise 0.9s var(--ease) both; }
  .hero .lead { animation-delay: 0.12s; }
  .hero .btn-row { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
}

@media print {
  .site-header, .action-bar, .map, .form, .sun, .glint { display: none !important; }
  body { background: #fff; }
}
