/* AtaxiaVoice – Webseite. Keine externen Schriften oder Dienste. */
:root {
  --blue: #164E9C;
  --blue-dark: #0F3A78;
  --mid: #2A74DC;
  --sky: #C9DFF4;
  --bg: #EDF4FC;
  --ink: #141E3A;
  --muted: #4E5D7C;
  --amber: #FFD8A8;
  --amber-ink: #7A4100;
  --line: #D5E3F3;
  --white: #fff;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(16, 45, 100, .10);
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1875rem; /* 19px */
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--mid); }
:focus-visible { outline: 3px solid var(--mid); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 12px 18px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* Kopf */
.site-head { background: var(--blue); color: var(--white); position: sticky; top: 0; z-index: 50; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font-weight: 800; font-size: 1.45rem; }
.brand:hover { color: var(--white); }
.brand .mark { width: 48px; height: 48px; border-radius: 50%; background: var(--white); display: grid; place-items: center; flex: none; }
.brand .mark img { width: 36px; }
.brand span span { color: var(--sky); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--white); text-decoration: none; font-weight: 600; padding: 10px 16px; border-radius: 999px; font-size: 1.02rem; }
.nav a:hover { background: rgba(255,255,255,.14); color: var(--white); }
.nav a[aria-current="page"] { background: var(--white); color: var(--blue); }
@media (max-width: 760px) {
  .site-head { position: static; }
  .site-head .wrap { padding-top: 12px; padding-bottom: 12px; }
  .nav { width: 100%; }
  .nav a { padding: 8px 12px; background: rgba(255,255,255,.1); }
}

/* Hinweisleiste „kein Medizinprodukt“ */
.notice-bar { background: var(--amber); color: var(--amber-ink); font-size: .98rem; }
.notice-bar .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; }
.notice-bar strong { color: #5A2F00; }

/* Bühne */
.hero { background: linear-gradient(160deg, #1B5FB8 0%, var(--blue) 55%, var(--blue-dark) 100%); color: var(--white); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero .kicker { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--sky); font-size: .95rem; margin-bottom: 12px; }
.hero p.lead { font-size: 1.3rem; color: #E4EEFA; max-width: 34em; }
.hero .slogan { font-weight: 700; font-size: 1.25rem; margin-top: 8px; }
.hero .phone { max-width: 300px; margin: 0 auto; transform: rotate(3deg); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero .phone { max-width: 240px; } }
.hero.small .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 44px; }
.hero.small p.lead { max-width: 44em; }
.hero.logo-area { background: linear-gradient(160deg, #234C7A 0%, #183A63 60%, #0E2746 100%); }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 16px; font-weight: 700; text-decoration: none; font-size: 1.1rem; border: 2px solid transparent; min-height: 56px; }
.btn-light { background: var(--white); color: var(--blue); }
.btn-light:hover { background: var(--sky); color: var(--blue); }
.btn-outline { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--mid); color: var(--white); }
.btn-ghost { border-color: var(--blue); color: var(--blue); background: var(--white); }
.btn-ghost:hover { background: var(--bg); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Abschnitte */
section { padding: 64px 0; }
section.alt { background: var(--bg); }
.intro { max-width: 46em; margin-bottom: 32px; }
.intro p { color: var(--muted); font-size: 1.15rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
section.alt .card { border-color: transparent; }
.card h3 { color: var(--blue); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.icon { width: 52px; height: 52px; border-radius: 14px; background: var(--sky); color: var(--blue); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px; }

/* Bereichs-Kacheln auf der Startseite */
.area-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .area-tiles { grid-template-columns: 1fr; } }
.area-tile { display: flex; flex-direction: column; border-radius: 24px; padding: 34px; text-decoration: none; color: var(--white); min-height: 280px; box-shadow: var(--shadow); }
.area-tile:hover { color: var(--white); transform: translateY(-2px); }
.area-tile.a { background: linear-gradient(150deg, #2A74DC, #164E9C); }
.area-tile.b { background: linear-gradient(150deg, #2D5E92, #183A63); }
.area-tile h2 { font-size: 1.9rem; }
.area-tile p { color: #E4EEFA; flex: 1; }
.area-tile .go { font-weight: 700; font-size: 1.15rem; }

/* Telefon-Rahmen für Bildschirmfotos */
.phone { background: var(--ink); border-radius: 34px; padding: 9px; box-shadow: 0 18px 40px rgba(10,30,70,.28); }
.phone img { border-radius: 26px; width: 100%; }
.phone.sm { max-width: 250px; }
.phone.md { max-width: 290px; }
figure { margin: 0; }
figcaption { font-size: .95rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* Schritte mit Bild */
.step { display: grid; grid-template-columns: 290px 1fr; gap: 48px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); }
.step:first-of-type { border-top: 0; }
.step.flip { grid-template-columns: 1fr 290px; }
.step.flip figure { order: 2; }
.step .num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 800; font-size: 1.2rem; margin-bottom: 12px; }
@media (max-width: 760px) {
  .step, .step.flip { grid-template-columns: 1fr; gap: 20px; }
  .step.flip figure { order: 0; }
  .step figure .phone { max-width: 240px; margin: 0 auto; }
}
.tip { background: var(--bg); border-left: 5px solid var(--mid); border-radius: 12px; padding: 14px 18px; margin-top: 14px; }
section.alt .tip { background: var(--white); }
.tip strong { color: var(--blue); }

/* Hinweis-Kasten Medizinprodukt */
.mdr { display: flex; gap: 18px; align-items: flex-start; background: #FFF4E6; border: 2px solid var(--amber); border-radius: var(--radius); padding: 22px 26px; color: #3D2A10; }
.mdr .sym { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--amber); color: #5A2F00; display: grid; place-items: center; font-weight: 900; font-size: 1.4rem; }
.mdr h3 { color: #5A2F00; margin-bottom: .3em; }
.mdr p:last-child { margin-bottom: 0; }

/* Tabellen */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 1.02rem; background: var(--white); border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--blue); color: var(--white); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* Download */
.download { background: var(--white); border-radius: 24px; box-shadow: var(--shadow); padding: 34px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; border: 2px solid var(--sky); }
@media (max-width: 760px) { .download { grid-template-columns: 1fr; } }
.download .meta { color: var(--muted); font-size: 1rem; }
.badge { display: inline-block; background: var(--sky); color: var(--blue); font-weight: 700; border-radius: 999px; padding: 4px 14px; font-size: .9rem; margin-bottom: 10px; }
ol.install { counter-reset: s; list-style: none; padding: 0; }
ol.install li { counter-increment: s; position: relative; padding-left: 52px; margin-bottom: 16px; }
ol.install li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--sky); color: var(--blue); font-weight: 800; display: grid; place-items: center; }

/* Unternavigation in Bereichen */
.subnav { background: var(--white); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.subnav a { text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 999px; font-size: 1rem; }
.subnav a:hover { background: var(--bg); }
.subnav a[aria-current="page"] { background: var(--bg); color: var(--ink); }

/* Häufige Fragen */
details { background: var(--white); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; border: 1px solid var(--line); }
summary { font-weight: 700; cursor: pointer; font-size: 1.12rem; }
details[open] summary { margin-bottom: 10px; color: var(--blue); }

/* Rechtstexte */
.legal { max-width: 46em; }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.2em; }

/* Fuß */
.site-foot { background: var(--ink); color: #C6D2E8; padding: 44px 0 30px; font-size: 1rem; }
.site-foot a { color: var(--white); }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr; } }
.site-foot h3 { color: var(--white); font-size: 1.05rem; }
.site-foot ul { list-style: none; padding: 0; }
.site-foot .mdr-foot { border-top: 1px solid #2E3A5C; margin-top: 26px; padding-top: 20px; font-size: .95rem; }

/* Kleinigkeiten */
.lead-muted { color: var(--muted); }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.figs { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.figs figure { flex: 0 1 230px; }
.check li { list-style: none; position: relative; padding-left: 34px; }
.check { padding-left: 0; }
.check li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--mid); font-weight: 900; }
.toc { columns: 2; column-gap: 30px; }
@media (max-width: 680px) { .toc { columns: 1; } }
.portrait { width: 160px; height: 160px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; }
.portrait img { width: 110px; }
@media print { .site-head, .notice-bar, .site-foot, .subnav { display: none; } section { padding: 20px 0; } }

/* Ausschnitte aus dem Dashboard */
.shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg); }
.shot img { width: 100%; }
.split { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: start; padding: 32px 0; border-top: 1px solid var(--line); }
.split:first-of-type { border-top: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split .shot { max-width: 420px; } }
.example { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.anchor-list a { display: block; padding: 6px 0; }
