/* ==========================================================================
   DentalNow.digital Vertriebs und Consulting GmbH — "Zahnschema"
   The navigation is an upper dental arch (FDI numbers), the hero a panoramic
   X-ray with software layers, the FAQ an Anamnesebogen, the form an
   Überweisungsschein and the footer a smile line carrying the legal links.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --white: #fbfcfe;
  --ivory: #f6f0e4;
  --ivory-deep: #ece3d1;
  --ultra: #2134a6;
  --ultra-deep: #141f6b;
  --ultra-soft: #dfe3fa;
  --ultra-faint: #f1f3fd;
  --ink: #0f1540;
  --ink-soft: #4a5072;
  --coral: #ff7a63;
  --coral-text: #b53d2a;
  --coral-soft: #ffe3dc;
  --slip: #fff7f4;
  --bone: #c9d0f2;
  --error: #a3271f;
  --line: rgba(15, 21, 64, 0.14);
  --line-strong: rgba(15, 21, 64, 0.38);

  --display: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Literata', Georgia, 'Times New Roman', serif;

  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.12rem, 1.05rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.9rem, 1.35rem + 2.3vw, 3rem);
  --step-4: clamp(2.3rem, 1.3rem + 4.2vw, 4.4rem);

  --wrap: 75rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 4.5rem;
  --radius: 1rem;
  --radius-s: 0.4rem;
  --shadow: 0 1px 2px rgba(15, 21, 64, 0.08), 0 16px 36px -18px rgba(15, 21, 64, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Fonts (self-hosted, latin + latin-ext) ---------- */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/outfit-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/outfit-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: 'Literata';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/literata-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/literata-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: 'Literata';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/literata-italic-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/literata-italic-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;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
img,
svg { max-width: 100%; }

a { color: var(--ultra); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ultra-deep); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--ultra); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }

[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Components: buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.65rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn svg { width: 1.1rem; height: 1.1rem; flex: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-ultra { background: var(--ultra); color: #fff; }
.btn-ultra:hover { background: var(--ultra-deep); color: #fff; }
.btn-line { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-coral { border-color: var(--ink); background: var(--coral); color: var(--ink); }
.btn-coral:hover { background: var(--ink); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* ---------- Components: brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark { width: 2.5rem; height: 2.5rem; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.brand-tld { color: var(--coral-text); }
.brand-sub { margin-top: 0.15rem; color: var(--ink-soft); font-family: var(--display); font-size: 0.72rem; white-space: nowrap; }

/* ---------- Components: section label (FDI tooth number) ---------- */
.fdi {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
  color: var(--ultra);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
}
.fdi-num {
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.6rem;
  padding: 0 0.3rem;
  border: 2px solid currentColor;
  border-radius: 0.45rem 0.45rem 1.15rem 1.15rem;
  background: var(--white);
  font-size: 1.02rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-head { max-width: 47rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2,
.koop-main h2 { margin-bottom: 1rem; font-size: var(--step-3); }
.section-lead { margin: 0; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.6; }

/* ---------- Header: the arch ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.masthead-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: var(--wrap);
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 0.5rem var(--gutter);
}
.masthead-cta { min-height: 2.75rem; margin-left: auto; padding-inline: 1.1rem; }

.arch-teeth { margin: 0; padding: 0; list-style: none; }
.tooth a {
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.tooth-glyph {
  flex: none;
  width: 1.6rem;
  height: 2rem;
  fill: var(--white);
  stroke: var(--ultra);
  stroke-width: 1.7px;
  stroke-linejoin: round;
  transition: fill 0.2s var(--ease), transform 0.2s var(--ease);
}
.tooth-molar .tooth-glyph { width: 2rem; }
.tooth-num { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
.tooth-name { font-family: var(--display); }

.tooth a:hover .tooth-glyph { fill: var(--coral-soft); }
.tooth a.is-treated .tooth-glyph { fill: var(--ultra-soft); }
.tooth a[aria-current] .tooth-glyph { fill: var(--coral); stroke: var(--ink); }
.tooth a[aria-current] .tooth-num { color: var(--coral-text); }

.arch-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 2.9rem;
  min-height: 2.9rem;
  padding: 0 0.7rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.arch-toggle:hover { background: var(--ultra-soft); }
.arch-toggle-icon { width: 1.4rem; height: 1.4rem; flex: none; }

/* Desktop: eight teeth on a smile curve, labels in the readout below. */
@media (min-width: 1100px) {
  :root { --header-h: 6.4rem; }
  .masthead-inner { gap: 1.5rem; }
  .arch { display: flex; flex-direction: column; align-items: center; margin-inline: auto; }
  .arch-teeth { display: flex; align-items: flex-start; gap: 0.1rem; }
  .tooth { transform: translateY(var(--lift, 0)); }
  .tooth:nth-child(1),
  .tooth:nth-child(8) { --lift: 0; }
  .tooth:nth-child(2),
  .tooth:nth-child(7) { --lift: 5px; }
  .tooth:nth-child(3),
  .tooth:nth-child(6) { --lift: 9px; }
  .tooth:nth-child(4),
  .tooth:nth-child(5) { --lift: 11px; }
  .tooth:nth-child(1) { --tilt: 12deg; }
  .tooth:nth-child(2) { --tilt: 8deg; }
  .tooth:nth-child(3) { --tilt: 5deg; }
  .tooth:nth-child(4) { --tilt: 2deg; }
  .tooth:nth-child(5) { --tilt: -2deg; }
  .tooth:nth-child(6) { --tilt: -5deg; }
  .tooth:nth-child(7) { --tilt: -8deg; }
  .tooth:nth-child(8) { --tilt: -12deg; }
  /* Midline between quadrant 1 and 2. */
  .tooth:nth-child(5) { position: relative; margin-left: 0.9rem; }
  .tooth:nth-child(5)::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -0.55rem;
    height: 3rem;
    border-left: 2px dotted var(--line-strong);
  }
  .tooth a {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.1rem;
    min-width: 44px;
    min-height: 44px;
    padding: 0.2rem 0.15rem 0.1rem;
    border-radius: 0.6rem;
  }
  .tooth-glyph { transform: rotate(var(--tilt, 0deg)); }
  .tooth a:hover .tooth-glyph,
  .tooth a:focus-visible .tooth-glyph { transform: rotate(var(--tilt, 0deg)) translateY(-3px); }
  .tooth-num { color: var(--ink-soft); font-size: 0.74rem; line-height: 1; }
  .tooth-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .arch-readout {
    min-height: 1.2em;
    margin: calc(11px + 0.3rem) 0 0;
    color: var(--ink-soft);
    font-family: var(--display);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
  }
  .masthead-cta { margin-left: 0; }
  .sheet-head,
  .arch-full,
  .sheet-cta,
  .arch-toggle,
  .scrim { display: none; }
}

/* Below 1100 px: the full arch opens as a bottom sheet. */
@media (max-width: 1099.98px) {
  .arch {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    max-height: min(88dvh, 40rem);
    padding: 0.9rem var(--gutter) 1.5rem;
    overflow-y: auto;
    border-radius: 1.4rem 1.4rem 0 0;
    background: var(--white);
    box-shadow: 0 -18px 40px -16px rgba(15, 21, 64, 0.45);
    visibility: hidden;
    transform: translateY(105%);
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .arch.is-open { visibility: visible; transform: none; transition: transform 0.35s var(--ease); }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 40rem; margin: 0 auto; }
  .sheet-title { margin: 0; font-family: var(--display); font-size: 1.25rem; font-weight: 600; }
  .sheet-close {
    min-height: 44px;
    padding: 0 1rem;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--display);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
  }
  .sheet-close:hover { background: var(--ultra-soft); }
  .arch-full {
    display: block;
    width: min(100%, 28rem);
    height: auto;
    margin: 0.75rem auto 0.5rem;
    fill: var(--white);
    stroke: var(--line-strong);
    stroke-width: 1.4px;
  }
  .arch-full .arch-full-linked { fill: var(--ultra-soft); stroke: var(--ultra); }
  .arch-teeth {
    display: grid;
    grid-template-rows: repeat(4, auto);
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    column-gap: 1.5rem;
    max-width: 40rem;
    margin: 0 auto;
    background: linear-gradient(var(--line-strong), var(--line-strong)) center / 2px 100% no-repeat;
  }
  .tooth a {
    gap: 0.6rem;
    min-height: 3rem;
    padding: 0.35rem 0.4rem;
    border-bottom: 1px solid var(--line);
  }
  .tooth a:hover { background: var(--ultra-faint); }
  .tooth-glyph { width: 1.3rem; height: 1.6rem; }
  .tooth-molar .tooth-glyph { width: 1.6rem; }
  .tooth-num { min-width: 1.4rem; color: var(--ultra); font-size: 0.9rem; }
  .tooth-name { font-size: 1.02rem; font-weight: 500; }
  .arch-readout { display: none; }
  .sheet-cta { display: none; }
  .scrim {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(15, 21, 64, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }
  .nav-open .scrim { opacity: 1; pointer-events: auto; }
}

@media (max-width: 699.98px) {
  .arch-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (max-width: 479.98px) {
  h1,
  h2,
  h3 { overflow-wrap: break-word; hyphens: auto; }
  .masthead-cta { display: none; }
  .arch-toggle { margin-left: auto; }
  .sheet-cta { display: flex; width: 100%; max-width: 40rem; margin: 1.25rem auto 0; }
  .arch-teeth { grid-template-rows: none; grid-auto-flow: row; background: none; }
  .brand-name { font-size: 1.08rem; }
  .brand-mark { width: 2.25rem; height: 2.25rem; }
}

/* ---------- Hero: panoramic X-ray ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  background: linear-gradient(var(--white), var(--ivory));
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: 2rem 3.5rem;
  align-items: end;
}
.hero-copy h1 { margin-bottom: 1.25rem; font-size: var(--step-4); line-height: 1.03; letter-spacing: -0.03em; }
.hero-lead { max-width: 40rem; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Recall appointment card lying on the X-ray. */
.recall {
  position: relative;
  z-index: 2;
  margin-bottom: -5rem;
  padding: 1rem 1.25rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-top: 6px solid var(--coral);
  border-radius: 0.5rem 0.5rem 0.9rem 0.9rem;
  background: #fffdf8;
  box-shadow: var(--shadow);
  transform: rotate(2.2deg);
}
.recall-top { display: flex; align-items: center; gap: 0.6rem; padding-bottom: 0.6rem; border-bottom: 1.5px dashed var(--line-strong); }
.recall-mark { width: 1.9rem; height: 1.9rem; flex: none; }
.recall-kicker { margin: 0; color: var(--coral-text); font-family: var(--display); font-size: 0.85rem; font-weight: 600; }
.recall-title { margin: 0.7rem 0 0.35rem; font-size: 1.35rem; }
.recall-lines { margin: 0; }
.recall-lines div { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: 0.5rem; padding: 0.38rem 0; border-bottom: 1px dotted var(--line-strong); }
.recall-lines dt { color: var(--ink-soft); font-family: var(--display); font-size: 0.82rem; line-height: 1.6; }
.recall-lines dd { margin: 0; color: var(--ultra-deep); font-size: 0.95rem; font-style: italic; line-height: 1.45; }
.recall-hand {
  display: inline-block;
  margin: 0.8rem 0 0.4rem;
  color: var(--coral-text);
  font-size: 1rem;
  font-style: italic;
  font-weight: 600;
  text-decoration: underline wavy var(--coral);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
}
.recall-note { margin: 0; color: var(--ink-soft); font-family: var(--display); font-size: 0.85rem; line-height: 1.45; }

.opg { grid-column: 1 / -1; margin: 0; }
.opg-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #05081c;
  box-shadow: var(--shadow);
}
.opg-svg { display: block; width: 100%; height: auto; }

.opg-pins { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.pin {
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transform: translate(-0.8rem, -50%);
}
.pin-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
}
.pin-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid var(--coral);
  border-radius: 50%;
  opacity: 0.6;
}
.pin-tag {
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(10, 15, 46, 0.86);
  color: #fff;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

/* The bus: sockets line up with the leader lines at 12.5 / 37.5 / 62.5 / 87.5 %. */
.opg-bus {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 1.6rem 0 0;
  list-style: none;
}
.opg-bus::before {
  content: '';
  position: absolute;
  top: 0.55rem;
  right: 12.5%;
  left: 12.5%;
  height: 4px;
  border-radius: 2px;
  background: var(--ultra-deep);
}
.opg-bus li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.4;
}
.opg-bus li::before {
  content: '';
  position: absolute;
  top: -1.6rem;
  left: calc(50% - 1px);
  width: 2px;
  height: 1rem;
  background: var(--coral);
}
.opg-bus li::after {
  content: '';
  position: absolute;
  top: -1.3rem;
  left: calc(50% - 0.5rem);
  width: 1rem;
  height: 1rem;
  border: 3px solid var(--ultra-deep);
  border-radius: 50%;
  background: var(--white);
}
.bus-num {
  display: none;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
}
.opg-bus strong { margin-top: 0.3rem; font-family: var(--display); font-size: 1.05rem; font-weight: 600; }
.opg-bus span:last-child { color: var(--ink-soft); font-size: 0.9rem; }
.opg figcaption { max-width: 46rem; margin-top: 1.5rem; color: var(--ink-soft); font-family: var(--display); font-size: 0.9rem; line-height: 1.5; }

@media (max-width: 899.98px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .recall { justify-self: end; width: min(100%, 22rem); margin: 0.5rem 0.5rem -2.5rem 0; }
}
@media (max-width: 759.98px) {
  .pin-tag { display: none; }
  .pin { transform: translate(-50%, -50%); }
  .pin-dot { width: 1.3rem; height: 1.3rem; font-size: 0.72rem; }
  .pin-dot::after { inset: -4px; }
  .opg-bus { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; padding-top: 1.25rem; }
  .opg-bus::before,
  .opg-bus li::before,
  .opg-bus li::after { display: none; }
  .opg-bus li { display: grid; grid-template-columns: auto 1fr; gap: 0 0.6rem; align-items: start; text-align: left; }
  .bus-num { display: grid; grid-row: span 2; margin-top: 0.1rem; }
  .opg-bus strong { margin: 0; }
}
@media (max-width: 419.98px) {
  .opg-bus { grid-template-columns: minmax(0, 1fr); }
  .recall { transform: rotate(1.2deg); }
}

/* ---------- Section 16: Befund chart ---------- */
.chart-table {
  width: 100%;
  border: 2px solid var(--ultra);
  border-radius: 0.75rem;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--white);
  table-layout: fixed;
}
.chart-table caption {
  padding-bottom: 0.75rem;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
}
.chart-table thead th,
.chart-corner {
  padding: 0.85rem 1rem;
  background: var(--ultra);
  color: #fff;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}
.chart-corner { width: 9.5rem; }
.chart-table thead th { border-left: 1px solid rgba(255, 255, 255, 0.28); }
.chart-table tbody th {
  padding: 1rem;
  border-top: 1px solid var(--line-strong);
  font-family: var(--display);
  font-weight: 600;
  text-align: left;
  vertical-align: top;
}
.chart-table tbody th abbr {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  height: 2.2rem;
  padding: 0 0.3rem;
  border: 2px solid currentColor;
  border-radius: 0.3rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}
.chart-row-name { display: block; margin-top: 0.35rem; font-size: 0.9rem; }
.chart-table td {
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.5;
  vertical-align: top;
}
.chart-b th { color: var(--coral-text); box-shadow: inset 5px 0 0 var(--coral); }
.chart-b td { background: #fffaf8; color: var(--ink); }
.chart-tp th { color: var(--ultra); box-shadow: inset 5px 0 0 var(--ultra); }
.chart-tp td { background: var(--ultra-faint); color: var(--ultra-deep); }

@media (max-width: 759.98px) {
  .chart-table { position: relative; border: 0; border-radius: 0; background: none; table-layout: auto; }
  .chart-table thead {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .chart-table tbody,
  .chart-table tr,
  .chart-table tbody th,
  .chart-table td { display: block; }
  .chart-table tr { margin-bottom: 1.25rem; overflow: hidden; border: 2px solid currentColor; border-radius: 0.75rem; }
  .chart-b { color: var(--coral-text); }
  .chart-tp { color: var(--ultra); }
  .chart-table tbody th { display: flex; align-items: center; gap: 0.75rem; border-top: 0; background: var(--white); box-shadow: none; }
  .chart-row-name { margin: 0; font-size: 1.05rem; }
  .chart-table td { border-left: 0; }
  .chart-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
    color: var(--ink);
    font-family: var(--display);
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 600;
  }
}

/* ---------- Section 14: Komponenten hub ---------- */
.komponenten { background: var(--ivory); }
.hub { position: relative; --stub: 2.75rem; }
.hub-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.part {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.35rem 1.1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(15, 21, 64, 0.06);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.part:hover { border-color: var(--ultra); box-shadow: var(--shadow); }
.part::before,
.part::after { content: ''; position: absolute; }
/* Connector line … */
.part::after {
  left: calc(50% - 1px);
  width: 2px;
  height: var(--stub);
  background: repeating-linear-gradient(var(--ultra) 0 6px, transparent 6px 10px);
}
/* … and the plug where it meets the bus. */
.part::before {
  left: calc(50% - 0.5rem);
  z-index: 2;
  width: 1rem;
  height: 1rem;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--coral);
}
.hub-row-top .part { margin-bottom: var(--stub); }
.hub-row-top .part::after { top: 100%; }
.hub-row-top .part::before { top: calc(100% + var(--stub) - 0.5rem); }
.hub-row-bottom .part { margin-top: var(--stub); }
.hub-row-bottom .part::after { bottom: 100%; }
.hub-row-bottom .part::before { bottom: calc(100% + var(--stub) - 0.5rem); }
.part:hover::after { background: repeating-linear-gradient(var(--coral-text) 0 6px, transparent 6px 10px); }

.part-kind { margin: 0 0 0.3rem; color: var(--coral-text); font-family: var(--display); font-size: 0.85rem; font-weight: 600; }
.part h3 { margin-bottom: 0.6rem; font-size: 1.28rem; hyphens: manual; }
.part p { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.55; }
.part .part-std {
  margin: auto 0 0;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line-strong);
  color: var(--ultra);
  font-family: var(--display);
  font-size: 0.86rem;
  font-weight: 500;
}

.hub-bus {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.85rem 1.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ultra-deep);
  color: #fff;
}
/* Data packets travelling along the bus. */
.hub-bus::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 122, 99, 0.85) 0 3px, transparent 4px) 0 50% / 56px 100% repeat-x;
  opacity: 0.55;
  pointer-events: none;
}
.hub-bus p { position: relative; z-index: 1; margin: 0; padding: 0 0.4rem; background: var(--ultra-deep); font-family: var(--display); }
.hub-bus-name { font-size: 1.15rem; font-weight: 700; }
.hub-bus-text { color: var(--bone); font-size: 0.92rem; }
.hub-note { max-width: 47rem; margin: 2rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }

@media (max-width: 899.98px) {
  .hub { --stub: 1.1rem; padding-left: 1.6rem; }
  .hub::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 0.45rem;
    width: 4px;
    border-radius: 2px;
    background: var(--ultra-deep);
  }
  .hub-row { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .hub-row-top .part,
  .hub-row-bottom .part { margin: 0; }
  .hub-row-top .part::after,
  .hub-row-bottom .part::after {
    top: 1.6rem;
    bottom: auto;
    left: calc(var(--stub) * -1);
    width: var(--stub);
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--ultra) 0 5px, transparent 5px 8px);
  }
  .hub-row-top .part::before,
  .hub-row-bottom .part::before { top: calc(1.6rem - 0.5rem + 1px); bottom: auto; left: calc(var(--stub) * -1 - 0.9rem); }
  .hub-bus { margin: 1rem 0 1rem -1.6rem; border-radius: 0.9rem; }
}

/* ---------- Section 13: Einrichtungen (Zahnkreuz) ---------- */
.cross {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "q1 q2" "q4 q3";
}
.cross::before,
.cross::after { content: ''; position: absolute; background: var(--ultra); }
.cross::before { top: calc(50% - 1.5px); right: 0; left: 0; height: 3px; }
.cross::after { top: 0; bottom: 0; left: calc(50% - 1.5px); width: 3px; }
.quad { position: relative; padding: 2.5rem 2.5rem 2.75rem; }
.quad-1 { grid-area: q1; padding-right: 5rem; }
.quad-2 { grid-area: q2; padding-left: 5rem; }
.quad-3 { grid-area: q3; padding-left: 5rem; }
.quad-4 { grid-area: q4; padding-right: 5rem; }
.quad-num {
  margin: 0 0 0.5rem;
  color: var(--ultra-soft);
  font-family: var(--display);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1;
  -webkit-text-stroke: 1.5px var(--ultra);
}
.quad h3 { margin-bottom: 0.8rem; font-size: var(--step-2); }
.quad ul { margin: 0; padding: 0; list-style: none; }
.quad li { position: relative; margin-bottom: 0.45rem; padding-left: 1.4rem; color: var(--ink-soft); }
.quad li::before {
  content: '';
  position: absolute;
  top: 0.62em;
  left: 0.15rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--coral);
  border-radius: 2px 2px 50% 50%;
}
.cross-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-content: center;
  width: 7.5rem;
  height: 7.5rem;
  margin: 0;
  border: 6px solid var(--white);
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  transform: translate(-50%, -50%);
}
.cross-center span { display: block; font-weight: 400; }

@media (max-width: 759.98px) {
  .cross { grid-template-columns: minmax(0, 1fr); grid-template-areas: "q1" "q2" "q3" "q4"; gap: 1.25rem; }
  .cross::before,
  .cross::after,
  .cross-center { display: none; }
  .quad,
  .quad-1,
  .quad-2,
  .quad-3,
  .quad-4 { padding: 0.25rem 0 0.5rem 1.25rem; border-left: 3px solid var(--ultra); }
  .quad-num { font-size: 2.6rem; }
}

/* ---------- Section 11: Behandlungsplan ---------- */
.plan { background: var(--ivory); }
.plan-sheet {
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-s);
  background: var(--white);
  box-shadow: var(--shadow);
}
.plan-sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: 1rem 1.4rem;
  border-bottom: 2px solid var(--ink);
  background: var(--ivory);
}
.plan-sheet-title { margin: 0; font-family: var(--display); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.01em; }
.plan-sheet-meta { margin: 0; color: var(--ink-soft); font-style: italic; }
.plan-table { position: relative; width: 100%; border-collapse: collapse; }
.plan-table th,
.plan-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.plan-table thead th { border-bottom: 2px solid var(--ink); color: var(--ink-soft); font-family: var(--display); font-size: 0.88rem; font-weight: 600; }
.plan-group th { padding: 0.55rem 1rem; background: var(--ultra-soft); color: var(--ultra-deep); font-family: var(--display); font-size: 1rem; font-weight: 700; }
.plan-table td:first-child { width: 4.5rem; color: var(--ultra); font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-table tbody th[scope="row"] { width: 15rem; font-family: var(--display); font-size: 1.05rem; font-weight: 600; }
.plan-table td:nth-child(3) { font-size: 0.97rem; line-height: 1.55; }
.plan-table td:nth-child(4),
.plan-table td:nth-child(5) { color: var(--ink-soft); font-family: var(--display); font-size: 0.92rem; }
.plan-table td:nth-child(5) { white-space: nowrap; }
.plan-sheet-foot { margin: 0; padding: 1rem 1.4rem; border-top: 2px solid var(--ink); background: var(--ivory); color: var(--ink-soft); font-size: 0.95rem; font-style: italic; }

@media (max-width: 859.98px) {
  .plan-table thead {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .plan-table tbody,
  .plan-table th,
  .plan-table td { display: block; }
  .plan-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); }
  .plan-table tr.plan-group { display: block; padding: 0; }
  .plan-table th,
  .plan-table td,
  .plan-table td:first-child,
  .plan-table tbody th[scope="row"] { width: auto; padding: 0; border: 0; }
  .plan-group th { padding: 0.55rem 1rem; }
  .plan-table td:first-child { padding-right: 0.75rem; }
  .plan-table td:nth-child(n + 3) { grid-column: 1 / -1; margin-top: 0.35rem; white-space: normal; }
  .plan-table td:nth-child(n + 4)::before { content: attr(data-label) ": "; color: var(--ink); font-weight: 600; }
}

/* ---------- Section 21: Einführung (appointment book) ---------- */
.ablauf-grid { display: grid; grid-template-columns: minmax(0, 25rem) minmax(0, 1fr); gap: 2rem 4rem; align-items: start; }
.ablauf-grid .section-head { position: sticky; top: calc(var(--header-h) + 2rem); margin: 0; }
.ablauf-grid h2 { font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem); }
.book {
  position: relative;
  margin: 0;
  padding: 0.5rem 0;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-s);
  background:
    repeating-linear-gradient(transparent 0 calc(1.9rem - 1px), rgba(33, 52, 166, 0.1) calc(1.9rem - 1px) 1.9rem),
    var(--white);
  list-style: none;
  box-shadow: var(--shadow);
}
/* Punched holes on the binding edge. */
.book::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1.75rem;
  border-right: 1px solid var(--line);
  background: radial-gradient(circle, var(--ivory-deep) 0 5px, transparent 6px) 50% 0.75rem / 100% 3rem repeat-y;
}
/* Red margin line of the ruled page. */
.book::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 11.6rem;
  width: 2px;
  background: rgba(255, 122, 99, 0.55);
}
.book-entry {
  position: relative;
  display: grid;
  grid-template-columns: 8.4rem minmax(0, 1fr);
  gap: 0.25rem 2rem;
  padding: 1.1rem 1.5rem 1.1rem 3rem;
}
.book-slot { display: flex; flex-direction: column; margin: 0; font-family: var(--display); line-height: 1.35; }
.book-session { color: var(--ultra); font-weight: 700; }
.book-time { color: var(--ink-soft); font-size: 0.88rem; }
.book-body {
  padding: 0.75rem 1rem 0.8rem;
  border-left: 4px solid var(--coral);
  border-radius: 0 0.45rem 0.45rem 0;
  background: rgba(255, 227, 220, 0.55);
}
.book-body h3 { margin-bottom: 0.3rem; font-size: 1.15rem; }
.book-body p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.55; }

@media (max-width: 899.98px) {
  .ablauf-grid { grid-template-columns: minmax(0, 1fr); }
  .ablauf-grid .section-head { position: static; }
}
@media (max-width: 599.98px) {
  .book::after { display: none; }
  .book-entry { grid-template-columns: minmax(0, 1fr); padding: 1rem 1rem 1rem 2.6rem; }
  .book-slot { flex-direction: row; flex-wrap: wrap; gap: 0 0.6rem; align-items: baseline; margin-bottom: 0.4rem; }
}

/* ---------- Section 23: Kooperation ---------- */
.kooperation { background: var(--ultra-deep); color: var(--bone); }
.kooperation .fdi { color: var(--bone); }
.kooperation .fdi-num { background: transparent; }
.kooperation h2 { color: #fff; }
.kooperation .section-lead { color: var(--bone); }
.koop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 3rem 4rem; align-items: start; }
.koop-main { max-width: 46rem; }
.koop-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.koop-list li { padding-top: 0.9rem; border-top: 2px solid var(--coral); }
.koop-list h3 { margin-bottom: 0.4rem; color: #fff; font-size: 1.15rem; }
.koop-list p { margin: 0; font-size: 0.97rem; line-height: 1.55; }

.leads {
  position: relative;
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}
.leads::before {
  content: '';
  position: absolute;
  top: -0.75rem;
  left: 1.5rem;
  width: 3rem;
  height: 1.5rem;
  border-radius: 0.3rem 0.3rem 1rem 1rem;
  background: var(--coral);
}
.leads-title { margin-bottom: 0.9rem; color: var(--coral-text); font-size: 1rem; }
.leads-list { margin: 0 0 1.1rem; padding: 0; list-style: none; }
.leads-list li { display: flex; flex-direction: column; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.leads-list strong { font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
.leads-list span { color: var(--ink-soft); font-size: 0.95rem; font-style: italic; }
.leads-facts { margin: 0; }
.leads-facts div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.5rem; padding: 0.3rem 0; font-size: 0.92rem; }
.leads-facts dt { color: var(--ink-soft); font-family: var(--display); }
.leads-facts dd { margin: 0; }

@media (max-width: 959.98px) {
  .koop-grid { grid-template-columns: minmax(0, 1fr); }
  .leads { max-width: 28rem; }
}
@media (max-width: 599.98px) {
  .koop-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Section 24: Anamnesebogen ---------- */
.anamnese { background: var(--ivory); }
.anamnesis {
  max-width: 60rem;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-s);
  background: var(--white);
  box-shadow: var(--shadow);
}
.anamnesis-label { margin: 0; padding: 0.95rem 1.4rem; border-bottom: 2px solid var(--ink); background: var(--ultra-faint); font-family: var(--display); font-size: 1.15rem; font-weight: 700; }
.anq-list { margin: 0; padding: 0; list-style: none; }
.anq + .anq { border-top: 1px solid var(--line-strong); }
.anq fieldset { min-width: 0; margin: 0; padding: 1.1rem 1.4rem 1.2rem; border: 0; }
.anq legend {
  display: flex;
  float: left;
  gap: 0.75rem;
  width: 100%;
  padding: 0;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.4;
  text-wrap: pretty;
}
.anq-num {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid var(--ultra);
  border-radius: 50%;
  color: var(--ultra);
  font-size: 0.85rem;
  font-weight: 700;
}
.anq-body { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; clear: both; padding: 0.4rem 0 0 2.5rem; }
.anq-body input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.anq-body label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 600;
  cursor: pointer;
}
.anq-body label::before {
  content: '';
  width: 1.4rem;
  height: 1.4rem;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--white) no-repeat center / 90%;
  transition: border-color 0.15s var(--ease);
}
.anq-body label:hover::before { border-color: var(--ultra); background-color: var(--ultra-faint); }
.anq-body input:checked + label::before {
  border-color: var(--ultra);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.5 3.8c4.6 3.9 8.4 8.2 13 12.6M16.2 3.2C11.8 7.6 8 11.6 3.9 16.6' fill='none' stroke='%23b53d2a' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.anq-body input:focus-visible + label::before { outline: 3px solid var(--ultra); outline-offset: 3px; }
.anq-answer {
  display: none;
  flex-basis: 100%;
  margin-top: 0.3rem;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--ultra);
  border-radius: 0 0.45rem 0.45rem 0;
  background: var(--ultra-faint);
}
.anq-answer p { margin: 0; font-size: 0.98rem; line-height: 1.6; }
.anq-yes:checked ~ .anq-answer-yes,
.anq-no:checked ~ .anq-answer-no { display: block; }

@media (max-width: 519.98px) {
  .anq fieldset { padding-inline: 1rem; }
  .anq-body { padding-left: 0; }
}

/* ---------- Section 26: Überweisungsschein ---------- */
.slip {
  max-width: 62rem;
  padding-bottom: 1.5rem;
  border: 1.5px solid var(--coral-text);
  border-radius: var(--radius-s);
  background: var(--slip);
  box-shadow: var(--shadow);
}
.slip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding: 1rem 1.5rem;
  border-bottom: 2px solid var(--coral-text);
  background: var(--coral-soft);
}
.slip-title { margin: 0; color: var(--coral-text); font-family: var(--display); font-size: 1.55rem; font-weight: 700; }
.slip-to { margin: 0; font-family: var(--display); font-size: 0.92rem; }
.slip-required { margin: 1rem 1.5rem 0; color: var(--ink-soft); font-family: var(--display); font-size: 0.88rem; }
.req { color: var(--coral-text); }

.slip-order { margin: 0.75rem 1.5rem 0; padding: 0.4rem 1rem 0.75rem; border: 1.5px solid var(--coral-text); border-radius: 0.3rem; background: #fff; }
.slip-order legend { padding: 0 0.4rem; color: var(--coral-text); font-family: var(--display); font-size: 0.9rem; font-weight: 600; }
.slip-checks { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.check { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; font-family: var(--display); font-weight: 500; cursor: pointer; }
.check input { width: 1.3rem; height: 1.3rem; margin: 0; accent-color: var(--coral-text); cursor: pointer; }

.slip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5px;
  margin: 1rem 1.5rem 0;
  overflow: hidden;
  border: 1.5px solid var(--coral-text);
  border-radius: 0.3rem;
  background: rgba(181, 61, 42, 0.55);
}
.field { padding: 0.55rem 0.85rem 0.7rem; background: #fff; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 0.15rem; color: var(--coral-text); font-family: var(--display); font-size: 0.85rem; font-weight: 600; }
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.35rem 0.1rem;
  border: 0;
  border-bottom: 1.5px dotted var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
}
.field select {
  appearance: none;
  padding-right: 2rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%230f1540' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.2rem center / 1.1rem;
  cursor: pointer;
}
.field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.55; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { border-bottom: 2px solid var(--ultra); outline: 2px solid var(--ultra); outline-offset: 2px; border-radius: 2px; }
.field [aria-invalid="true"] { border-bottom: 2px solid var(--error); background-color: #fff2f0; }
.field-hint { margin: 0.4rem 0 0; color: var(--ink-soft); font-family: var(--display); font-size: 0.85rem; }
.field-error { margin: 0; color: var(--error); font-family: var(--display); font-size: 0.88rem; font-weight: 600; }
.field-error:not(:empty) { margin-top: 0.35rem; }

.slip-warning { margin: 1rem 1.5rem 0; padding: 0.85rem 1rem; border: 2px dashed var(--coral-text); border-radius: 0.3rem; background: #fff; font-size: 0.95rem; line-height: 1.55; }
.slip-warning strong { color: var(--coral-text); font-family: var(--display); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.slip-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 1.25rem 1.5rem 0; }
.slip-privacy { flex: 1 1 18rem; margin: 0; color: var(--ink-soft); font-family: var(--display); font-size: 0.9rem; line-height: 1.5; }
.form-status { margin: 0 1.5rem; }
.form-status.is-success,
.form-status.is-error { margin-top: 1.25rem; padding: 0.85rem 1rem; border-left: 4px solid var(--ultra); background: var(--ultra-faint); font-family: var(--display); }
.form-status.is-error { border-left-color: var(--error); background: #fff; }

@media (max-width: 639.98px) {
  .slip-grid { grid-template-columns: minmax(0, 1fr); }
  .slip-head,
  .slip-required,
  .slip-order,
  .slip-grid,
  .slip-warning,
  .slip-foot,
  .form-status { margin-inline: 1rem; }
  .slip-head { margin: 0; padding-inline: 1rem; }
}

/* ---------- Footer: the smile line ---------- */
.smile { padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; border-top: 1px solid var(--line); background: var(--ivory); }
.smile-stage { position: relative; --arc-h: 7.5rem; height: calc(var(--arc-h) + 2.5rem); }
.smile-arc { position: absolute; top: 0; left: 0; width: 100%; height: var(--arc-h); overflow: visible; }
.smile-lip { fill: none; stroke: var(--coral-soft); stroke-width: 20px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.smile-line { fill: none; stroke: var(--coral); stroke-width: 4px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.smile-links { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.smile-links li { display: flex; justify-content: center; transform: translateY(calc(var(--arc-h) * var(--k) - 1.4rem)); }
/* Position on the curve: y = 6/120 + 4t(1-t) * 114/120 at t = .1, .3, .5, .7, .9. */
.smile-links li:nth-child(1),
.smile-links li:nth-child(5) { --k: 0.392; }
.smile-links li:nth-child(2),
.smile-links li:nth-child(4) { --k: 0.848; }
.smile-links li:nth-child(3) { --k: 1; }
.smile-links a,
.smile-links button {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.4rem 1.05rem;
  border: 2px solid var(--coral-text);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.smile-links a:hover,
.smile-links button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.smile-links a[aria-current="page"] { background: var(--coral); border-color: var(--ink); }

.smile-firm { display: grid; justify-items: center; gap: 0.5rem; margin-top: 2.5rem; text-align: center; }
.brand-foot { margin-bottom: 0.25rem; }
.smile-address { margin: 0; font-family: var(--display); line-height: 1.6; }
.smile-note { max-width: 40rem; margin: 0.5rem 0 0; color: var(--ink-soft); font-size: 0.9rem; }
.smile-legal { margin: 0; color: var(--ink-soft); font-family: var(--display); font-size: 0.85rem; }

@media (max-width: 1023.98px) {
  .smile-stage { --arc-h: 3.5rem; height: auto; padding-top: calc(var(--arc-h) + 0.5rem); }
  .smile-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
  .smile-links li { transform: none; }
}

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed;
  bottom: 1.25rem;
  left: var(--gutter);
  z-index: 70;
  width: min(34rem, calc(100% - 2 * var(--gutter)));
  max-height: calc(100dvh - 2.5rem);
  padding: 1.2rem 1.35rem 1.1rem;
  overflow-y: auto;
  border: 1.5px solid var(--ink);
  border-top: 6px solid var(--ultra);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.nav-open .consent { display: none; }
.consent-title { margin-bottom: 0.5rem; font-size: var(--step-1); }
.consent-text { margin-bottom: 1rem; font-size: 0.93rem; line-height: 1.55; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.consent-btn {
  flex: 1 1 10.5rem;
  min-height: 3rem;
  padding: 0.6rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.consent-btn:hover { border-color: var(--ultra); background: var(--ultra); }
.consent-btn-save { border-color: var(--ultra); background: var(--ultra); }
.consent-btn-save:hover { border-color: var(--ultra-deep); background: var(--ultra-deep); }
.consent-link {
  min-height: 44px;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--ultra);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.consent-link:hover { color: var(--ink); }

.consent-dialog {
  width: min(36rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1.5px solid var(--ink);
  border-top: 6px solid var(--ultra);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.consent-dialog::backdrop { background: rgba(15, 21, 64, 0.55); }
.consent-dialog-inner { padding: 1.5rem; }
.consent-categories { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.consent-category { padding: 0.9rem 0; border-top: 1px solid var(--line-strong); }
.consent-category:last-child { border-bottom: 1px solid var(--line-strong); }
.consent-category-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.consent-category h3 { font-size: 1.05rem; }
.consent-category p { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; }
.consent-always { color: var(--ultra); font-family: var(--display); font-size: 0.85rem; font-weight: 700; white-space: nowrap; }

.consent-switch { position: relative; display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; cursor: pointer; }
.consent-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.consent-switch-track {
  position: relative;
  width: 3rem;
  height: 1.65rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ivory-deep);
  transition: background-color 0.2s var(--ease);
}
.consent-switch-track::after {
  content: '';
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.consent-switch input:checked + .consent-switch-track { border-color: var(--ultra); background: var(--ultra); }
.consent-switch input:checked + .consent-switch-track::after { background: #fff; transform: translateX(1.35rem); }
.consent-switch input:focus-visible + .consent-switch-track { outline: 3px solid var(--ultra); outline-offset: 3px; }

@media (max-width: 599.98px) {
  .consent { right: 0.75rem; bottom: 0.75rem; left: 0.75rem; width: auto; }
  .consent-btn { flex-basis: 100%; }
  .consent-link { margin-inline: auto; }
}

/* ---------- Pages: legal documents (Karteikarten) ---------- */
.doc { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); background: var(--ivory); }
.doc-wrap { max-width: 57rem; }
.doc-card p,
.doc-card li,
.doc-card address { overflow-wrap: break-word; hyphens: auto; }
.doc-card {
  position: relative;
  margin-top: 2.3rem;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) clamp(2.25rem, 6vw, 4.25rem);
  border: 1.5px solid var(--line-strong);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
/* Margin line of the record card. */
.doc-card::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(1.1rem, 3.5vw, 2.4rem);
  width: 2px;
  background: rgba(255, 122, 99, 0.55);
}
.doc-tab {
  position: absolute;
  bottom: 100%;
  left: -1.5px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  height: 2.3rem;
  margin: 0;
  padding: 0 1rem;
  border: 1.5px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 0.6rem 0.6rem 0 0;
  background: var(--white);
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
}
.doc-tab-code { color: var(--ultra); font-weight: 700; }
.doc h1 { margin-bottom: 0.5rem; font-size: var(--step-3); hyphens: manual; }
.doc-stand { margin-bottom: 1.75rem; color: var(--ink-soft); font-family: var(--display); font-size: 0.92rem; }
.doc-lead { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.55; }
.doc h2 {
  margin: 2.4rem 0 0.75rem;
  padding-top: 0.9rem;
  border-top: 1.5px solid var(--line-strong);
  font-size: var(--step-2);
  hyphens: auto;
  overflow-wrap: break-word;
}
.doc h3 { margin: 1.6rem 0 0.45rem; font-size: 1.12rem; }
.doc ul,
.doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: 0.4rem; }
.doc address { margin-bottom: 1em; font-style: normal; }

.doc-toc { margin: 0 0 1rem; padding: 1.1rem 1.25rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); background: var(--ultra-faint); }
.doc-toc h2 { margin: 0 0 0.5rem; padding: 0; border: 0; font-size: 1.05rem; }
.doc-toc ol { margin: 0; columns: 2 14rem; column-gap: 2rem; }
.doc-toc li { margin-bottom: 0.25rem; break-inside: avoid; }

.facts { margin: 0 0 1.25rem; }
.facts > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.15rem 1.5rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--display); font-weight: 600; }
.facts dd { margin: 0; }

.cookie-table { position: relative; width: 100%; margin: 1rem 0 1.5rem; border-collapse: collapse; font-size: 0.9rem; line-height: 1.45; }
.cookie-table caption { padding-bottom: 0.5rem; font-family: var(--display); font-weight: 600; text-align: left; }
.cookie-table th,
.cookie-table td { padding: 0.6rem 0.7rem; border: 1px solid var(--line-strong); text-align: left; vertical-align: top; }
.cookie-table thead th { background: var(--ultra-faint); font-family: var(--display); }
.cookie-table tbody th { font-weight: 400; }
.cookie-table code { font-size: 0.92em; overflow-wrap: anywhere; }

/* Narrow screens: each row becomes a block of "label: value" lines. */
@media (max-width: 47.99rem) {
  .cookie-table thead {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .cookie-table tbody,
  .cookie-table tr,
  .cookie-table th,
  .cookie-table td { display: block; }
  .cookie-table tr { margin-bottom: 0.75rem; border: 1px solid var(--line-strong); }
  .cookie-table tbody th,
  .cookie-table td { border: 0; border-top: 1px solid var(--line); }
  .cookie-table tbody th { border-top: 0; background: var(--ultra-faint); font-weight: 600; }
  .cookie-table td::before { content: attr(data-label) ": "; font-family: var(--display); font-weight: 600; }
  .facts > div { grid-template-columns: minmax(0, 1fr); }
}

.callout { margin: 1.5rem 0; padding: 1.1rem 1.25rem; border: 2px solid var(--ink); border-left-width: 8px; border-radius: var(--radius-s); background: var(--ivory); }
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.lost-chart {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  max-width: 40rem;
  margin: 0 0 2rem;
  padding: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-s);
  list-style: none;
  font-family: var(--display);
  font-size: 0.85rem;
  text-align: center;
}
.lost-chart li { display: flex; flex-direction: column; justify-content: flex-end; min-height: 3.6rem; padding: 0.3rem 0; color: var(--ink-soft); }
.lost-chart li + li { border-left: 1px solid var(--line); }
.lost-chart li:nth-child(9) { border-left: 2px solid var(--ink); }
.lost-chart span { color: var(--coral-text); font-size: 1.35rem; font-style: italic; font-weight: 700; line-height: 1; }
.lost-gap { background: var(--coral-soft); }
.lost-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

@media (max-width: 519.98px) {
  .lost-chart { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .lost-chart li:nth-child(9) { border-left: 0; }
  .lost-chart li:nth-child(n + 9) { border-top: 2px solid var(--ink); }
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-s);
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { color: #fff; transform: none; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .opg-scan { animation: scan 7s linear infinite; }
  .pin-dot::after { animation: ping 2.6s ease-out infinite; }
  .pin:nth-child(2) .pin-dot::after { animation-delay: 0.65s; }
  .pin:nth-child(3) .pin-dot::after { animation-delay: 1.3s; }
  .pin:nth-child(4) .pin-dot::after { animation-delay: 1.95s; }
  .hub-bus::after { animation: packets 2.4s linear infinite; }
  .anq-yes:checked ~ .anq-answer-yes,
  .anq-no:checked ~ .anq-answer-no { animation: open-answer 0.35s var(--ease); }
  .part:hover { transform: translateY(-2px); }

  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .opg-scan { display: none; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  /* The sheet must be visible the moment it opens so focus can move into it. */
  .arch.is-open,
  .arch.is-open * { transition: none !important; }
}

@keyframes scan { to { transform: translateX(1340px); } }
@keyframes ping {
  0% { opacity: 0.8; transform: scale(0.7); }
  100% { opacity: 0; transform: scale(1.6); }
}
@keyframes packets { to { background-position: 56px 50%; } }
@keyframes open-answer {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .masthead,
  .consent,
  .consent-dialog,
  .smile-stage,
  .skip-link,
  .hero-actions { display: none; }
  .kooperation { background: none; color: var(--ink); }
  .kooperation h2,
  .koop-list h3 { color: var(--ink); }
  .anq-answer { display: block; }
}
