/* Smart Medics – Gestaltung
   Reizarm: keine Animationen, keine Bewegung, gedämpfte Kontraste im Dunkelmodus.
   Schriften: Lexend (Überschriften) + Atkinson Hyperlegible Next (Text), lokal eingebunden.
   Fehlen die Dateien in assets/fonts/, greift die Systemschrift. */

@font-face { font-family: "Lexend"; src: url("fonts/lexend-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }

/* ---------- Farben ---------- */
:root {
  --navy: #0b3a66;
  --teal: #138f95;
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-2: #eef3f6;
  --line: #d8e1e8;
  --text: #17263a;
  --muted: #4d5d6e;
  --accent: #0d7c82;       /* Türkis, auf Weiß ausreichend kontrastreich */
  --accent-soft: #e3f2f2;
  --on-accent: #ffffff;
  --danger: #a3342b;
  --focus: #0b3a66;
  --logo-dark: none; --logo-light: block;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #12171d;
  --surface: #181f27;
  --surface-2: #1e2731;
  --line: #2a3542;
  --text: #d6dce2;         /* bewusst kein reines Weiß */
  --muted: #9aa7b4;
  --accent: #6bb7ba;       /* gedämpftes Türkis */
  --accent-soft: #1c2f33;
  --on-accent: #0f1a1d;
  --danger: #e09a91;
  --focus: #9fd3d5;
  --logo-dark: block; --logo-light: none;
  color-scheme: dark;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Atkinson Next", "Atkinson Hyperlegible", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.125rem; line-height: 1.65;
}
h1, h2, h3, h4 { font-family: "Lexend", "Atkinson Next", -apple-system, "Segoe UI", Arial, sans-serif; color: var(--text); line-height: 1.25; font-weight: 500; letter-spacing: -0.005em; margin: 0 0 .6em; }
:root:not([data-theme="dark"]) h1, :root:not([data-theme="dark"]) h2 { color: var(--navy); }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
ul { padding-left: 1.2em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.schmal { width: min(760px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--text); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Kopf ---------- */
.kopf { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.kopf .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; margin-right: auto; }
.logo img { height: 40px; width: auto; }
.logo .l-hell { display: var(--logo-dark); }
.logo .l-dunkel { display: var(--logo-light); }
.nav { display: none; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; white-space: nowrap; padding: 8px 10px; border-radius: 8px; font-size: 1rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); }
.modus { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .95rem; cursor: pointer; }
.modus svg { width: 18px; height: 18px; }
.menu-btn { display: inline-flex; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: .95rem; cursor: pointer; }
.menu { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.menu.offen { display: block; }
.menu a { display: block; padding: 14px 16px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
@media (min-width: 1180px) {
  .nav { display: flex; }
  .menu-btn, .menu, .menu.offen { display: none; }
}
@media (max-width: 420px) { .modus .txt { display: none; } .logo img { height: 34px; } }

/* Kontaktleiste: Telefon + WhatsApp auf jeder Seite gleich prominent */
.kontaktleiste { background: var(--accent-soft); border-bottom: 1px solid var(--line); font-size: 1rem; }
.kontaktleiste .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding-block: 8px; }
.kontaktleiste a { color: var(--text); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.kontaktleiste a:hover { text-decoration: underline; }
.kontaktleiste .hinweis { color: var(--muted); margin-left: auto; }
.kontaktleiste svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 640px) { .kontaktleiste .hinweis { display: none; } }

/* ---------- Bausteine ---------- */
section { padding-block: clamp(48px, 7vw, 88px); }
section.flaeche { background: var(--surface); border-block: 1px solid var(--line); }
.kicker { font-size: .95rem; font-weight: 600; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; margin-bottom: .5em; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 46ch; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid var(--accent); }
.knopf.voll { background: var(--accent); color: var(--on-accent); }
.knopf.rand { color: var(--text); background: transparent; }
.knopf svg { width: 20px; height: 20px; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.hero { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 56px); }
.hero h1 { max-width: 20ch; }
.hero .lead { margin-bottom: 0; }

.raster { display: grid; gap: 18px; }
@media (min-width: 720px) { .raster.zwei { grid-template-columns: repeat(2, 1fr); } .raster.drei { grid-template-columns: repeat(3, 1fr); } }
.karte { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
section.flaeche .karte { background: var(--bg); }
.karte h3 { margin-bottom: .4em; }
.karte p:last-child { margin-bottom: 0; }

/* Die drei Geschäftsfelder – auf den ersten Blick sichtbar */
.felder { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 860px) { .felder { grid-template-columns: repeat(3, 1fr); } }
.feld { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 16px; padding: 24px; color: var(--text); text-decoration: none; }
.feld:hover { border-color: var(--accent); }
.feld .titel { font-family: "Lexend", sans-serif; font-size: 1.35rem; font-weight: 500; }
.feld .fuer { color: var(--muted); font-size: 1rem; }
.feld .weiter { margin-top: auto; color: var(--accent); font-weight: 700; }

.liste-haken { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.liste-haken li { padding-left: 34px; position: relative; }
.liste-haken li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); border: 2px solid var(--accent); }
.liste-haken li::after { content: ""; position: absolute; left: 7px; top: calc(.35em + 4px); width: 5px; height: 10px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.schritte { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 860px) { .schritte.vier { grid-template-columns: repeat(4, 1fr); } .schritte.drei { grid-template-columns: repeat(3, 1fr); } }
.schritte li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
section.flaeche .schritte li { background: var(--bg); }
.schritte li::before { content: counter(s); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; margin-bottom: 12px; }
.schritte .preis { display: block; margin-top: 8px; font-weight: 700; color: var(--accent); }

/* Pakete / Preise */
.pakete { display: grid; gap: 18px; }
@media (min-width: 860px) { .pakete { grid-template-columns: repeat(3, 1fr); } }
.paket { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.paket.hervor { border: 2px solid var(--accent); }
.paket .betrag { font-family: "Lexend", sans-serif; font-size: 2rem; font-weight: 500; color: var(--text); margin: 4px 0 2px; }
.paket .einheit { color: var(--muted); font-size: 1rem; margin-bottom: 16px; }
.paket ul { margin: 0 0 20px; }
.paket .knopf { margin-top: auto; }
table.tarif { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tarif th, .tarif td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tarif th { background: var(--surface-2); font-weight: 700; }
.tarif td:last-child { white-space: nowrap; font-weight: 700; }
.klein { font-size: 1rem; color: var(--muted); }

/* Team */
.person { display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: start; }
.person .bild { width: 88px; height: 88px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-family: "Lexend", sans-serif; font-size: 1.6rem; color: var(--accent); overflow: hidden; }
.person .bild img { width: 100%; height: 100%; object-fit: cover; }
.person .rolle { color: var(--accent); font-weight: 700; margin-bottom: .4em; }

/* Bewertungen */
.bewertung-platz { border: 2px dashed var(--line); border-radius: 16px; padding: 28px; text-align: center; color: var(--muted); }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
details + details { margin-top: 12px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
details[open] summary::after { content: "–"; }
details > div { padding-bottom: 16px; }
.faq-gruppe { margin-top: 40px; }

/* Hinweise */
.hinweis-box { border-left: 5px solid var(--accent); background: var(--accent-soft); padding: 18px 20px; border-radius: 0 12px 12px 0; }
.notruf { border-left-color: var(--danger); }
.notruf strong { color: var(--danger); }
.offen-markiert { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(200,150,0,.10) 8px 16px); border: 1px dashed #c89600; border-radius: 10px; padding: 12px 16px; font-size: 1rem; }

/* Fuß */
.fuss { background: var(--surface); border-top: 1px solid var(--line); padding-block: 48px 28px; font-size: 1rem; }
.fuss .spalten { display: grid; gap: 28px; }
@media (min-width: 800px) { .fuss .spalten { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.fuss h4 { font-size: 1rem; margin-bottom: .6em; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fuss a { color: var(--text); }
.fuss .unten { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; }
.fuss .l-hell { display: var(--logo-dark); } .fuss .l-dunkel { display: var(--logo-light); }
.fuss .fuss-logo img { height: 44px; width: auto; margin-bottom: 14px; }

/* Schwebeknopf WhatsApp/Anruf am Handy */
.schwebe { position: fixed; right: 14px; bottom: 14px; display: flex; gap: 10px; z-index: 30; }
.schwebe a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.schwebe svg { width: 26px; height: 26px; }
@media (min-width: 1180px) { .schwebe { display: none; } }

/* Vorschau-Banner (nur Vorschau) */
.vorschau { background: #c89600; color: #1d1600; text-align: center; font-size: .95rem; padding: 6px 12px; font-weight: 700; }

/* Reizarm-Modus ME/CFS: noch ruhiger */
body.reizarm { line-height: 1.75; }
body.reizarm .feld, body.reizarm .karte, body.reizarm .paket, body.reizarm .schritte li { border-top-width: 1px; }
body.reizarm .feld { border-top: 1px solid var(--line); }
:root[data-theme="dark"] body.reizarm { --text: #cdd3d9; --accent: #7fb3b5; }
body.reizarm .schwebe a { box-shadow: none; }

/* Handy: alle drei Geschäftsfelder ohne Scrollen sichtbar */
@media (max-width: 859px) {
  .hero { padding-top: 28px; }
  .hero .lead { font-size: 1.1rem; }
  .felder { gap: 10px; margin-top: 22px; }
  .feld { flex-direction: row; align-items: center; justify-content: space-between; padding: 16px 18px; border-top-width: 1px; border-left: 5px solid var(--accent); }
  .feld .fuer { display: none; }
  .feld .titel { font-size: 1.15rem; }
  .feld .weiter { margin-top: 0; font-size: 0; }
  .feld .weiter::after { content: "→"; font-size: 1.4rem; }
  body { padding-bottom: 84px; }
}
@media (max-width: 640px) {
  .tarif td:last-child { white-space: normal; }
  .tarif th, .tarif td { padding: 12px; }
}

/* Presse-Hinweis (Kronen Zeitung) */
.presse { display: grid; gap: 6px; color: var(--text); text-decoration: none; border-left: 5px solid var(--accent); }
.presse:hover { border-color: var(--accent); }
.presse .kicker { margin: 0; }
.presse-titel { font-family: "Lexend", sans-serif; font-size: 1.4rem; }
.presse .weiter { color: var(--accent); font-weight: 700; }

/* Wissen & Ratgeber: übernommene Texte */
.text h2 { margin-top: 1.8em; font-size: 1.5rem; }
.text h3 { margin-top: 1.4em; }
.text ul, .text ol { margin: 0 0 1.2em; display: grid; gap: 6px; }
.text table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; background: var(--surface); border: 1px solid var(--line); }
.text th, .text td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.text blockquote { margin: 0 0 1.2em; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--surface); }
.text .zurueck { margin-top: 2.4em; }
.hero .kicker a { color: inherit; text-decoration: none; }
.hero .kicker a:hover { text-decoration: underline; }
.artikel-liste { display: grid; gap: 16px; }
.artikel-link { display: block; color: var(--text); text-decoration: none; }
.artikel-link:hover { border-color: var(--accent); }
.artikel-link .weiter { color: var(--accent); font-weight: 700; }
.wissen-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.wissen-links a { font-weight: 600; }
@media (max-width: 640px) { .text table { display: block; overflow-x: auto; } }

/* Kontaktformular */
.formular { margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 8px; }
section.flaeche .formular { background: var(--bg); }
.formular h2 { margin-bottom: .2em; }
.formular label { font-weight: 600; margin-top: 8px; }
.formular input:not([type=radio]), .formular textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
section.flaeche .formular input:not([type=radio]), section.flaeche .formular textarea { background: var(--surface); }
.formular fieldset { border: 0; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.formular legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.formular .wahl { font-weight: 400; margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.formular .wahl input { width: 20px; height: 20px; accent-color: var(--accent); }
.formular button { margin-top: 14px; justify-self: start; cursor: pointer; font: inherit; font-weight: 700; }
.formular .falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Kleine Länderflaggen bei Telefonnummern (Österreich / Deutschland) */
.flagge { display: inline-block; width: 20px; height: 13px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.flagge.at { background: linear-gradient(#c8102e 0 33.3%, #fff 33.3% 66.6%, #c8102e 66.6%); }
.flagge.de { background: linear-gradient(#000 0 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }
.knopf .land { font-weight: 400; }
@media (max-width: 640px) {
  .knoepfe .knopf { width: 100%; justify-content: flex-start; padding-inline: 16px; }
  .knopf .land + * , .knopf span { white-space: nowrap; }
}
.knopf svg { flex: none; }
@media (max-width: 380px) { .knoepfe .knopf { font-size: 1rem; gap: 8px; } }

/* Zitat-Karten (AKI: „Das hören wir von Pflegediensten“, Ralph Moser) */
.zitat { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.zitat blockquote { margin: 0; font-family: "Lexend", sans-serif; font-size: 1.1rem; line-height: 1.5; }
.zitat figcaption { color: var(--muted); font-size: .95rem; margin-top: auto; }

/* ---------- Blog ---------- */
.blog-box[hidden] { display: none; }
.blog-karten { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 8px 0 18px; }
.blog-karte { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--text); text-decoration: none; }
.flaeche .blog-karte { background: var(--bg); }
.blog-karte:hover { border-color: var(--accent); }
.blog-karte:hover .blog-titel { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.blog-karte img, .blog-ohne-bild { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--accent-soft); }
.blog-ohne-bild { display: block; }
.blog-karte-text { display: grid; gap: 6px; padding: 16px 18px 20px; }
.blog-datum { font-size: .9rem; color: var(--muted); }
.blog-titel { font-family: "Lexend", "Atkinson Next", sans-serif; font-weight: 500; font-size: 1.2rem; line-height: 1.3; color: var(--text); }
:root:not([data-theme="dark"]) .blog-titel { color: var(--navy); }
.blog-anriss { color: var(--muted); font-size: 1rem; }
.blog-alle { margin: 0; font-weight: 700; }
.blog-meta { color: var(--muted); margin: 0; }
.blog-titelbild { margin: 0 0 1.6em; }
.blog-titelbild img { max-height: 520px; object-fit: cover; }
.blog-titelbild img, .blog-bild img { border-radius: 14px; width: 100%; }
.blog-bild { margin: 1.4em 0 1.6em; }
.blog-bild figcaption { font-size: .95rem; color: var(--muted); margin-top: 8px; }
.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.blog-filter a, .blog-seiten a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); background: var(--surface); }
.blog-filter a[aria-current], .blog-seiten a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.blog-seiten { display: flex; gap: 8px; margin-top: 24px; }
.blog-vorschau-hinweis { background: #fff3d6; color: #4a3500; padding: 12px 16px; text-align: center; font-weight: 700; }
.blog-vorschau-hinweis a { color: inherit; }
