/* schmerz-verstehen.com v2 – Aufbau angelehnt an Zukunft-KI und Zahnästhetik, ohne externe Ressourcen */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f8f8;
  --text: #16232a;
  --muted: #56666d;
  --accent: #0e8f86;
  --accent-2: #12a7c9;
  --accent-soft: #e4f4f2;
  --line: #e3ebec;
  --warm: #c2703d;
  --radius: 1rem;
  --max: 72rem;
  --grad: linear-gradient(90deg, var(--accent-2), var(--accent));
  --shadow: 0 10px 30px rgba(14, 60, 70, .08);
}
* { box-sizing: border-box; }
html { font-size: 106.25%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); background: var(--bg); line-height: 1.65;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 50; }

/* Kopfzeile */
header.site { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.2rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font-weight: 700; }
.brand svg { width: 2.2rem; height: 2.2rem; flex: none; }
.brand small { display: block; font-weight: 400; font-size: .75rem; color: var(--muted); }
nav.main > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem 1.6rem; align-items: center; }
nav.main a { color: var(--text); text-decoration: none; font-size: .92rem; }
nav.main a:hover { color: var(--accent); }
nav.main li { position: relative; }
nav.main .has-sub > a::after { content: "▾"; font-size: .7rem; margin-left: .3rem; color: var(--muted); }
nav.main .sub { display: none; position: absolute; top: 100%; left: -1rem; min-width: 17rem; list-style: none; margin: 0; padding: .6rem; background: #fff; border: 1px solid var(--line); border-radius: .8rem; box-shadow: var(--shadow); }
nav.main .sub a { display: block; padding: .45rem .7rem; border-radius: .5rem; }
nav.main .sub a:hover { background: var(--bg-soft); }
nav.main .has-sub:hover .sub, nav.main .has-sub:focus-within .sub { display: block; }
nav.main .has-sub::before { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: .6rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .75rem 1.35rem; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: .95rem; border: 1px solid transparent; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(18,167,201,.25); }
.btn-primary:hover { color: #fff; filter: brightness(1.05); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-pill { padding: .5rem 1rem; font-size: .85rem; background: var(--accent-soft); color: var(--accent); border-color: #bfe5e0; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(60rem 30rem at 85% -10%, #dff3f6 0%, transparent 60%), radial-gradient(40rem 25rem at -10% 110%, #e6f5ef 0%, transparent 60%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--accent); background: var(--accent-soft); border: 1px solid #c4e8e3; padding: .3rem .8rem; border-radius: 999px; }
.eyebrow::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; margin: 1rem 0 1.1rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 1.8rem; max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero figure { margin: 0; position: relative; }
.hero figure img { border-radius: 1.4rem; box-shadow: 0 25px 60px rgba(14,60,70,.18); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero figure figcaption { position: absolute; left: 1rem; bottom: 1rem; background: rgba(255,255,255,.94); border-radius: .8rem; padding: .6rem .9rem; font-size: .82rem; box-shadow: var(--shadow); }
.hero figure figcaption strong { display: block; font-size: .9rem; }

/* Abschnitte */
section.block { padding: 5rem 0; }
section.soft { background: var(--bg-soft); }
.head { text-align: center; max-width: 42rem; margin: 0 auto 2.75rem; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.2; margin: .4rem 0 .7rem; letter-spacing: -.01em; }
.head p { color: var(--muted); margin: 0; }

/* Themenkarten */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); }
a.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9e3e1; }
a.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; height: auto; }
a.card .body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }
a.card h3 { margin: 0 0 .35rem; font-size: 1.08rem; line-height: 1.3; }
a.card p { margin: 0 0 .9rem; color: var(--muted); font-size: .93rem; flex: 1; }
a.card .more { color: var(--accent); font-weight: 600; font-size: .9rem; }
.credit { font-size: .8rem; color: var(--muted); margin-top: 1.25rem; text-align: center; }

/* Schritte */
.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.step .num { font-size: 2rem; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin: .6rem 0 .4rem; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Über mich */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.about img { border-radius: 1.2rem; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: .4rem 0 .8rem; line-height: 1.2; }
.about ul { padding-left: 1.1rem; color: var(--muted); }
.about li { margin: .25rem 0; }

/* Hinweis- und CTA-Boxen */
.note { background: #fff; border: 1px solid #f0d9c9; border-left: 4px solid var(--warm); border-radius: .7rem; padding: 1rem 1.25rem; font-size: .95rem; }
.note strong { display: block; margin-bottom: .2rem; }
.cta { background: linear-gradient(135deg, #0e8f86, #127fa0); color: #fff; border-radius: 1.4rem; padding: 3rem 2rem; text-align: center; }
.cta h2 { margin: 0 0 .6rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta p { margin: 0 auto 1.5rem; max-width: 38rem; opacity: .92; }
.cta .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.cta .btn-white { background: #fff; color: var(--accent); }
.material { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.material .item { background: #fff; border: 1px dashed #c9dadb; border-radius: var(--radius); padding: 1.3rem; }
.material h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.material p { margin: 0; color: var(--muted); font-size: .93rem; }
.soon { display: inline-block; margin-top: .6rem; font-size: .78rem; font-weight: 600; color: var(--warm); }

/* Artikelseiten */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 1.5rem; }
.crumbs a { color: var(--muted); }
article.topic { max-width: 46rem; margin: 0 auto; padding: 1rem 0 4rem; }
article.topic h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.15; margin: .8rem 0 1rem; letter-spacing: -.01em; }
article.topic .intro { font-size: 1.12rem; color: var(--muted); }
article.topic img.lead { border-radius: 1.2rem; margin: 1.5rem 0 2rem; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
article.topic h2 { font-size: 1.35rem; margin: 2.2rem 0 .6rem; }
article.topic ul { padding-left: 1.2rem; }
article.topic li { margin: .35rem 0; }
.alarm { background: #fff5f2; border: 1px solid #f3cfc2; border-radius: .8rem; padding: 1.1rem 1.3rem; margin: 2rem 0; }
.alarm strong { color: #a2401f; }
.sources { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1rem; }
.next { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* Rechtstexte */
article.doc { max-width: 46rem; margin: 2.5rem auto 4rem; }
article.doc h1 { font-size: 2rem; }
article.doc h2 { font-size: 1.2rem; margin-top: 1.8rem; }
.ph { background: #fff4d6; padding: 0 .25rem; border-radius: .2rem; }

/* Fußzeile */
footer.site { background: #0f1f26; color: #b9c7cb; font-size: .9rem; margin-top: 0; }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-top: 3rem; padding-bottom: 2rem; }
footer.site h4 { color: #fff; margin: 0 0 .7rem; font-size: .95rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin: .3rem 0; }
footer.site a { color: #b9c7cb; text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site .bottom { grid-column: 1 / -1; border-top: 1px solid #23363e; padding-top: 1.2rem; font-size: .82rem; }

/* Tablet und Smartphone */
@media (max-width: 56rem) {
  .hero .wrap, .about { grid-template-columns: 1fr; gap: 2rem; }
  .steps { grid-template-columns: 1fr; }
  footer.site .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 44rem) {
  html { font-size: 112.5%; }
  header.site { position: static; }
  header.site .wrap { flex-direction: column; align-items: flex-start; padding-top: .8rem; padding-bottom: .8rem; gap: .5rem; }
  nav.main > ul { flex-wrap: wrap; gap: .3rem 1.1rem; }
  nav.main a { font-size: 1rem; }
  nav.main .has-sub > a::after { content: ""; }
  nav.main .sub { display: none !important; }
  .header-cta { display: none; }
  .hero .wrap { padding-top: 2.25rem; padding-bottom: 2.5rem; }
  section.block { padding: 3rem 0; }
  .grid { grid-template-columns: 1fr; }
  .cta { padding: 2.2rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.actions[data-center] { justify-content: center; }
.hero figure img, .about img, article.topic img.lead { height: auto; }
@media (min-width: 64rem) { .grid { grid-template-columns: repeat(3, 1fr); } }
.ks-group { max-width: 72rem; margin: 2.5rem auto 0; }
.ks-group h2 { font-size: 1.5rem; margin: 0 0 .4rem; }
.ks-group > p { color: var(--muted); max-width: 46rem; margin: 0 0 1.2rem; }
@media (min-width: 64rem) { .ks-grid { grid-template-columns: repeat(3, 1fr); } }
/* v6: größere Schrift, flachere Bilder (Rückmeldung 06.12.2026) */
html { font-size: 118.75%; }
article.topic { max-width: 44rem; }
article.topic p, article.topic li { line-height: 1.7; }
article.topic img.lead { aspect-ratio: 16 / 9; max-width: 36rem; margin: 1.5rem auto 2rem; }
a.card img { aspect-ratio: 16 / 9; }
a.card p, .material p, .step p, .note { font-size: 1rem; }
a.card h3 { font-size: 1.15rem; }
.sources, .crumbs { font-size: .9rem; }
.hero figure img, .about img { aspect-ratio: 3 / 2; }
.hero .wrap { align-items: center; }
@media (max-width: 44rem) {
  html { font-size: 125%; }
  article.topic img.lead { aspect-ratio: 2 / 1; max-width: 100%; }
  a.card img { aspect-ratio: 2 / 1; }
  .hero figure img, .about img { aspect-ratio: 2 / 1; }
}
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 44rem) {
  html { font-size: 118.75%; }
  article.topic h1 { font-size: 1.75rem; }
  .hero h1 { font-size: 2rem; }
  .head h2 { font-size: 1.6rem; }
}
/* Sprachumschalter */
.header-right { display: flex; align-items: center; gap: .6rem; }
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.2rem; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 700; letter-spacing: .04em; color: var(--accent); text-decoration: none; background: #fff; }
.lang-switch:hover { border-color: var(--accent); }
@media (max-width: 44rem) {
  header.site .wrap { position: relative; }
  .header-right { position: absolute; top: .8rem; right: 1.25rem; }
}
@media (max-width: 44rem) { header.site .brand { padding-right: 3.4rem; } }
/* v7: Gliederung in Bereiche */
.cat { margin-top: 2.5rem; scroll-margin-top: 6rem; }
.cat:first-child { margin-top: 0; }
.cat-title { font-size: 1.45rem; margin: 0 0 .3rem; padding-bottom: .4rem; border-bottom: 2px solid var(--line); }
.cat-intro { color: var(--muted); margin: 0 0 1.2rem; max-width: 46rem; }
@media (min-width: 44rem) { .grid.n2, .grid.n4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid.n4 { grid-template-columns: repeat(4, 1fr); } }
.material { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
a.item { display: block; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.item:hover, a.item:focus-visible { border-color: var(--accent); border-style: solid; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
a.item h3 { color: var(--accent); }
.material-page section { margin-top: 2.2rem; scroll-margin-top: 6rem; }
.material-page section h2 { font-size: 1.4rem; margin-bottom: .5rem; }
ul.check { list-style: none; padding-left: 0; }
ul.check li { position: relative; padding-left: 2rem; margin: .45rem 0; }
ul.check li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.05rem; height: 1.05rem; border: 2px solid var(--accent); border-radius: 4px; }
@media (max-width: 44rem) { .grid.n2, .grid.n4 { grid-template-columns: 1fr; } }
@media (min-width: 64rem) { .grid.n2 { grid-template-columns: repeat(3, 1fr); } }
