@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/Manrope-VariableFont_wght.woff2') format('woff2'); }

:root {
  /* Gleiche Farben wie die Startseite (Theme der Live-Seite) */
  --orange: #ff9900;
  --orange-ink: #9c5300;
  --petal: #f3a712;
  --petal-pale: #f6eda5;
  --cream: #fffeed;
  --paper: #fbfaf3;
  --band: #f2f2f2;
  --base: #ffffff;
  --grey: #686868;
  --ink: #2f2c28;
  --button-ink: #382110;
  --pink: #e52574;
  --pink-ink: #b0135a;
  --pink-pale: #fde3ee;
  --line: #e4e0d2;
  --line-strong: #8b8274;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem);
  --step-3: clamp(2rem, 1.55rem + 2.1vw, 3.4rem);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --header-h: 68px;
  --bar-h: 72px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (min-width: 900px) { :root { --header-h: 92px; } }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--base); color: var(--grey);
  font-family: var(--font); font-size: var(--step-0); line-height: 1.65;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: var(--step-3); font-weight: 800; }
h2 { font-size: var(--step-2); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--orange-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--button-ink); }
::selection { background: var(--petal-pale); color: var(--ink); }
:focus-visible { outline: 3px solid var(--button-ink); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1160px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
.skip:hover { color: #fff; }

/* Buttons wie auf der Startseite */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.4em; border-radius: 999px; border: 0;
  font: 800 1rem/1.1 var(--font); white-space: nowrap; text-decoration: none !important; cursor: pointer;
  transition: transform 160ms cubic-bezier(.2,.8,.2,1), box-shadow 160ms, background-color 160ms;
}
.btn-primary { background: var(--orange); color: var(--button-ink); box-shadow: 0 6px 16px -8px rgba(156, 83, 0, 0.7); }
.btn-primary:hover { background: #ffa826; color: var(--button-ink); transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(156, 83, 0, 0.75); }
.btn-ghost { background: var(--base); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--cream); color: var(--ink); }
.btn-primary:active, .btn-ghost:active { transform: scale(.97); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-lg { min-height: 58px; padding: 0.8em 1.7em; font-size: 1.1rem; }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--band); padding-top: env(safe-area-inset-top, 0px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.logo { display: block; padding-block: 8px; }
.logo img { width: 132px; height: auto; }
@media (min-width: 900px) { .logo img { width: 172px; } }
.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; gap: 28px; font-weight: 700; font-size: 0.95rem; }
  .nav a { color: var(--ink); text-decoration: none; padding-block: 8px; border-bottom: 2px solid transparent; }
  .nav a:hover { border-bottom-color: var(--orange); }
  .nav a[aria-current="page"] { border-bottom-color: var(--pink); }
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: none; }
@media (min-width: 900px) { .header-phone { display: inline-flex; } }
.header-actions .btn { min-height: 44px; padding: 0.6em 1.1em; font-size: 0.95rem; }

/* Fußzeile */
.site-footer { background: var(--band); padding-block: 48px; font-size: var(--step--1); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.site-footer li a { display: inline-block; padding-block: 10px; }
address { font-style: normal; color: var(--ink); font-weight: 700; line-height: 1.45; }
.copyright { margin-top: 32px; padding-top: 20px; border-top: 1px solid #dcdcdc; }


/* Rechtstexte: eine Lesespalte */
.doc-head { background: var(--cream); }
.doc-head h1 { hyphens: auto; overflow-wrap: break-word; }
.doc-head .wrap { grid-template-columns: minmax(0, 1fr); padding-block: clamp(28px, 5vw, 56px) clamp(24px, 4vw, 40px); display: grid; gap: 12px; }
.doc-head .meta { font-size: var(--step--1); color: var(--ink); font-weight: 700; }
.draft { background: var(--pink-pale); color: var(--pink-ink); border-radius: 16px; padding: 12px 16px; font-size: var(--step--1); font-weight: 700; max-width: 70ch; }
.doc { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 96px); }
.doc .wrap { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .doc .wrap { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; } }
.toc { font-size: var(--step--1); }
@media (min-width: 1000px) { .toc { position: sticky; top: calc(var(--header-h) + 24px); } }
.toc h2 { font-size: 1rem; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.toc a { text-underline-offset: 3px; text-decoration-skip-ink: auto;  color: var(--ink); }
.toc li::marker { color: var(--orange-ink); font-weight: 800; }
.prose { max-width: 70ch; color: var(--ink); overflow-wrap: break-word; hyphens: auto; }
.prose a { overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--step-1); margin-top: 2.2em; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--orange-ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 800; }
.table-scroll { overflow-x: auto; }
.prose address { font-weight: 400; }
.tbd { color: #b33a3a; border-bottom: 1.5px dashed currentColor; font-weight: 700; }
.note-lawyer { background: var(--paper); border-radius: 12px; padding: 10px 14px; font-size: var(--step--1); color: var(--grey); }

/* Kinderzahnheilkunde (Inhaltsseite im Rechtstexte-Layout) */
.kids-lead { font-size: 1.15rem; color: var(--ink); }
.prose .kids-figure { margin: 32px 0 12px; }
.kids-figure img { border-radius: 24px; width: 100%; height: auto; }
.kids-figure figcaption, .kids-quote cite, .prose .source { font-size: 0.9rem; color: var(--grey); }
.kids-figure figcaption { margin-top: 8px; }
.prose .kids-quote { margin: 28px 0 8px; position: relative; padding: 22px 24px 20px 3.4rem; background: var(--cream); border-radius: 20px; }
.kids-quote::before { content: "„"; position: absolute; left: 1rem; top: -0.12em; font-size: 3.4rem; font-weight: 800; line-height: 1; color: var(--pink); }
.kids-quote > p { color: var(--ink); font-weight: 600; }
.kids-quote cite { display: block; margin-top: 8px; font-style: normal; }
.kids-cta { padding: 24px; border-radius: 24px; background: var(--cream); box-shadow: 0 14px 32px -20px rgba(56, 33, 16, 0.45); display: grid; gap: 14px; justify-items: start; }
.kids-cta .actions, .kids-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.prose .kids-cta h2 { margin: 0; }
.kids-table th[scope="row"] { width: 11rem; white-space: nowrap; vertical-align: top; }
.kids-table td ul { margin: 0; padding-left: 1.1em; }
.kids-table td li + li { margin-top: 0.5em; }
@media (max-width: 599px) { .kids-table th[scope="row"] { width: auto; white-space: normal; min-width: 7.5rem; } }

.prose { hyphenate-limit-chars: 7 3 3; }

/* Kinderseite: Startbereich */
.kids-hero { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .kids-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; } }
.kids-hero .lead { font-size: 1.15rem; color: var(--ink); max-width: 46ch; margin: 0; }
.kids-hero .squiggle { position: relative; display: inline-block; white-space: nowrap; }
.kids-hero .squiggle svg { position: absolute; left: 0; right: 0; bottom: -0.18em; width: 100%; height: 0.32em; color: var(--pink); overflow: visible; }
.kids-hero figure { margin: 0; position: relative; justify-self: center; width: min(100%, 440px); }
.kids-hero figure img { border-radius: 28px; width: 100%; height: auto; rotate: 1.5deg; box-shadow: 0 0 0 8px var(--base), 0 18px 40px -24px rgba(56, 33, 16, 0.5); }
.kids-hero .petal { position: absolute; width: 74px; aspect-ratio: 1; border-radius: 0 100% 0 100%; background: var(--orange); left: -22px; top: -18px; rotate: -25deg; z-index: -1; }
.kids-hero .text { display: grid; gap: 18px; justify-items: start; }
.doc-head .kids-hero h1 { margin: 0; }

/* Schnellkontakt-Leiste unten (nur Handy) */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line); padding: 10px var(--gutter-r, 16px) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l, 16px); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; box-shadow: 0 -8px 24px -18px rgba(56, 33, 16, 0.5); }
.action-bar .btn { width: 100%; min-height: 52px; }
@media (min-width: 900px) { .action-bar { display: none; } }
@media (max-width: 899px) { body:has(.action-bar) { padding-bottom: calc(var(--bar-h, 72px) + env(safe-area-inset-bottom, 0px)); } html:has(.action-bar) { scroll-padding-bottom: calc(var(--bar-h, 72px) + 8px); } }
