/* Schrift Poppins (SIL Open Font License) – vom eigenen Server, ohne Google */
@font-face { font-family: Poppins; font-style: normal; font-weight: 300; font-display: swap; src: url(/public/fonts/poppins-300.woff) format('woff'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(/public/fonts/poppins-400.woff) format('woff'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url(/public/fonts/poppins-500.woff) format('woff'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(/public/fonts/poppins-600.woff) format('woff'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(/public/fonts/poppins-700.woff) format('woff'); }
/* praxis markt – Farben und Schrift aus dem Logo */
:root {
  --blue: #0383FE;        /* Logo-Blau (Flächen, Akzente) */
  --blue-text: #0270DD;   /* etwas dunkler: weisse Schrift bleibt gut lesbar */
  --blue-link: #0262C2;
  --blue-dark: #014A93;
  --ink: #0F2238;
  --ink-2: #3A4E66;
  --ink-3: #4A5D74;
  --line: #E3EAF3;
  --field: #C9D6E5;
  --soft: #F5F9FE;
  --soft-2: #E6F1FF;
  --ok-bg: #E9F7EF; --ok: #14532D;
  --err-bg: #FDECEC; --err: #8A1C1C;
  --radius: 14px;
  --bg: #fff;             /* Seitenhintergrund */
  --surface: #fff;        /* Karten, Felder, Kästen */
  --chip: #F1F5FA;
  --shadow: rgba(15, 34, 56, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--blue-link); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: 30px; margin: 0 0 12px; }
h3 { font-size: 19px; margin: 0; font-weight: 600; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding-top: 64px; padding-bottom: 64px; }
.narrow { max-width: 760px; }
.muted { color: var(--ink-3); margin: 0 0 24px; }
.muted-lg { color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; flex: none; }
.inline { display: inline; margin: 0; }
.stack { display: flex; flex-direction: column; gap: 48px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 24px; letter-spacing: -0.02em; font-weight: 300; }
.logo b { font-weight: 700; }
.logo:hover { color: var(--ink); }
.logo-sm { font-size: 20px; }
.heart { width: 40px; height: 36px; }
.heart path { fill: var(--blue); }
.heart polyline { fill: none; stroke: #fff; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.logo-sm .heart { width: 32px; height: 29px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 15px; font-weight: 500; }
.main-nav a:not(.btn), .linklike { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.main-nav a[aria-current="page"] { color: var(--blue-link); box-shadow: inset 0 -2px 0 var(--blue); }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.linklike:hover, .main-nav a:not(.btn):hover { color: var(--blue-link); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--blue-text); color: #fff; }
.btn-primary:hover { background: var(--blue-link); color: #fff; }
.btn-outline { border-color: var(--blue-text); color: var(--blue-link); background: var(--surface); }
.btn-outline:hover { background: var(--soft); }
.btn-white { background: #fff; color: #0262C2; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-danger { background: var(--surface); color: var(--err); border-color: var(--err); }
.btn-block { width: 100%; }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: 14px; }

/* Meldungen */
.flash { border-radius: 12px; padding: 14px 18px; margin: 20px 0 0; font-size: 15px; }
.flash ul { margin: 0; padding-left: 18px; }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--err-bg); color: var(--err); }
.flash-info { background: var(--soft-2); color: var(--ink); }

/* Hero & Suche */
.hero { background: var(--blue-text); color: #fff; }
.hero-inner { padding-top: 80px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); margin: 0; max-width: 880px; letter-spacing: -0.03em; }
/* Puls im Kopfbereich: ein ruhiger Herzschlag mit einer Frage zu den Instrumenten (nur ab Tablet quer / Desktop) */
.hero-pulse { display: none; }
@media (min-width: 1024px) {
  .hero-inner { position: relative; }
  .hero h1 { max-width: min(880px, calc(100% - 330px)); }
  .hero .lead { max-width: min(680px, calc(100% - 330px)); }
  .hero-pulse { display: block; position: absolute; top: 34px; right: 24px; width: 300px; height: 210px; }
  .hero-pulse svg { position: absolute; left: 0; bottom: 0; width: 300px; height: 110px; overflow: visible; }
  .hp-base { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 2; }
  .hp-line { fill: none; stroke: #fff; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
  .hp-line.go { animation: hp-draw 2.6s linear forwards; }
  .hp-card { position: absolute; top: 0; left: 150px; transform: translate(-50%, 10px); opacity: 0; visibility: hidden; transition: opacity .6s ease, transform .6s ease, visibility .6s; display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; white-space: nowrap; box-shadow: 0 14px 32px rgba(1, 30, 70, .25); }
  .hp-card:hover { color: var(--ink); }
  .hp-card b { font-size: 17px; }
  .hp-card span { font-size: 13px; font-weight: 600; color: #0262C2; }
  .hp-card::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: #fff; }
  .hp-card.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  html.dark-on .hp-card { background: #fff; color: #0F2238; }
}
@keyframes hp-draw { to { stroke-dashoffset: 0; } }
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .hp-card { transition: none; }
}
.kicker { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.kicker-blue { color: var(--blue-link); margin-bottom: 10px; }
.lead { margin: 0; font-size: 19px; line-height: 1.6; max-width: 720px; }
.lead-dark { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin: 0 0 8px; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; font-weight: 500; }
.trust li { display: inline-flex; gap: 8px; align-items: center; }
.search { background: var(--surface); color: var(--ink); border-radius: 16px; padding: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; align-items: end; box-shadow: 0 20px 48px rgba(1, 40, 90, .25); }
.search-compact { box-shadow: none; border: 1px solid var(--line); margin-top: 20px; }
.search .span-2 { grid-column: span 2; }
@media (max-width: 560px) { .search .span-2 { grid-column: auto; } }

/* Formulare */
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
input, select, textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); padding: 11px 12px; border: 1px solid var(--field); border-radius: 10px; background: var(--surface); min-height: 46px; width: 100%; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 2px solid var(--soft-2); }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.5; }
label.check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--blue-text); }
.hint { font-weight: 400; font-size: 13px; color: var(--ink-3); }
.form { display: flex; flex-direction: column; gap: 16px; }
.auth { max-width: 520px; }
.form-page { max-width: 980px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0; display: flex; flex-direction: column; gap: 16px; }
legend { font-weight: 600; font-size: 17px; padding: 0 6px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.radios { display: flex; flex-direction: column; gap: 10px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.danger-zone { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* Kategorien */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 20px; }
.cat { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); text-decoration: none; color: var(--ink); }
.cat:hover { border-color: var(--blue); color: var(--ink); }
.cat-name { font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.cat-hint { font-size: 14px; color: var(--ink-3); }

/* Karten */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.section-head .muted { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
@media (max-width: 400px) { .cards { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; background: var(--surface); transition: box-shadow .15s; }
.card:hover { box-shadow: 0 12px 32px var(--shadow); }
.card-link { position: relative; display: block; }
.card-badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--blue-link); }
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; color: var(--blue-link); }
.card-summary { margin: 0; font-size: 15px; color: var(--ink-2); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-2); }
.chips li { background: var(--chip); padding: 5px 10px; border-radius: 8px; }
.card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.price { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.more { font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 4px; }
.empty { text-align: center; padding: 48px; border: 1px dashed var(--field); border-radius: 16px; }
.result-count { margin-bottom: 20px; }

/* Platzhalter-Fotos */
.photo { height: 190px; display: flex; align-items: center; justify-content: center; position: relative; background: var(--soft-2); }
.photo .heart { width: 64px; height: 58px; }
.photo .heart path { fill: #B9D8FB; }
.photo .heart polyline { stroke: var(--soft-2); }
.photo-teilhaberschaft { background: #EAF0FF; }
.photo-raeume { background: #E8F6F3; }
.photo-raeume .heart path { fill: #A9DCD0; }
.photo-raeume .heart polyline { stroke: #E8F6F3; }
.photo-einrichtung { background: #F2EEFB; }
.photo-big { height: 380px; border-radius: 18px; margin: 20px 0 32px; }
.photo-big .heart { width: 110px; height: 100px; }
.photo-label { position: absolute; bottom: 14px; right: 16px; font-size: 13px; color: var(--ink-3); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 8px; }
.badge .ico { width: 14px; height: 14px; vertical-align: -2px; }
.badge-dark { background: var(--ink); color: #fff; }
.badge-soft { background: var(--soft-2); }
.badge-test { background: #FFF4D6; color: #5C4300; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.detail-badges .badge { border: 1px solid var(--line); }

/* Bänder */
.band { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.split > * { flex: 1 1 420px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.tile h3 { display: flex; gap: 8px; align-items: center; }
.tile p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.step { border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.step-n { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-text); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cta { background: var(--blue-text); color: #fff; border-radius: 24px; padding: 48px; display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; font-size: 17px; }
.cta > div:first-child { flex: 1 1 380px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: 44px 0; }
.page-head h1 { margin: 0 0 8px; font-size: 38px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 32px; }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.plan .muted { margin: 0; }
.plans-two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 900px; }
.plan .small.muted { margin: 0 0 16px; }
.plan-hl { border: 2px solid var(--blue-text); }
.plan-price { font-size: 28px; font-weight: 700; margin: 12px 0 0; }
.plan ul { padding-left: 20px; line-height: 1.9; color: var(--ink-2); }

/* Detail */
.crumbs { font-size: 14px; color: var(--ink-3); margin: 0 0 16px; }
.detail-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.detail-title { font-size: clamp(28px, 4vw, 40px); margin: 14px 0 0; max-width: 900px; }
.detail-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.detail-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.detail-main h2 { font-size: 23px; margin-bottom: 14px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.facts div { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.facts dt { font-size: 13px; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.prose { font-size: 16px; line-height: 1.75; color: var(--ink-2); margin: 0 0 14px; white-space: pre-line; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 24px; color: var(--ink-2); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { color: var(--blue-text); margin-top: 3px; }
.map { background: var(--soft); border: 1px dashed var(--field); border-radius: 16px; padding: 48px 24px; text-align: center; color: var(--ink-3); }
.contact { flex: 1 1 340px; position: sticky; top: 20px; border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 12px 32px var(--shadow); }
@media (max-width: 960px) { .contact { position: static; } }
.contact > p { margin: 0; }
.contact .flash { margin: 0; }
.contact-price { font-size: 28px; font-weight: 700; }
.contact-foot { border-top: 1px solid var(--line); padding-top: 14px; }
.fav { color: var(--blue-link); font-weight: 600; gap: 6px; }
.fav[aria-pressed="true"] .ico { fill: currentColor; }
.locked { text-align: center; border: 1px solid var(--line); border-radius: 20px; padding: 48px 28px; background: var(--soft); }
.locked > .ico { width: 44px; height: 44px; color: var(--blue-text); }
.locked h1 { font-size: 30px; }
.locked .cta-actions { justify-content: center; }

/* Konto & Tabellen */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; color: var(--ink-3); font-weight: 600; background: var(--soft); }
.table th, .table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.actions { text-align: right; white-space: nowrap; }
.plain-list { padding-left: 20px; line-height: 2; }
.inquiry { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.inquiry .prose { margin: 10px 0; }
.inquiry .small { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 32px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-top: 40px; padding-bottom: 40px; font-size: 15px; color: var(--ink-2); }
.footer-brand p { margin: 6px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: flex-start; }
.footer-nav a { color: var(--ink-2); min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 640px) {
  .section { padding-top: 44px; padding-bottom: 44px; }
  .cta { padding: 32px 24px; }
  .hero-inner { padding-top: 48px; padding-bottom: 56px; }
  .photo-big { height: 240px; }
}

/* Zwei-Faktor */
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
a.badge { text-decoration: none; color: var(--ink); }
a.badge:hover { color: var(--blue-link); }
.panel { border: 1px solid var(--line); border-radius: 18px; padding: 28px; margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.panel h2 { font-size: 23px; margin: 0 0 4px; }
.panel > p { margin: 0; }
.form-inline-row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 8px; }
.form-inline-row label { flex: 1 1 200px; }
.danger-details { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.danger-details summary, .setup-steps summary { cursor: pointer; color: var(--blue-link); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.danger-details form { margin-top: 12px; max-width: 420px; }
.setup-steps { list-style: none; counter-reset: s; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.setup-steps > li { counter-increment: s; position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 24px 24px 24px 76px; }
.setup-steps > li::before { content: counter(s); position: absolute; left: 22px; top: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--blue-text); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.setup-steps h2 { font-size: 19px; margin: 4px 0 8px; }
.setup-steps p { margin: 0 0 10px; color: var(--ink-2); }
.qr-box { display: inline-block; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin: 6px 0 12px; line-height: 0; }
.qr-box svg { width: 220px; height: 220px; }
code.secret { font-size: 17px; letter-spacing: .04em; background: var(--soft); padding: 4px 8px; border-radius: 6px; word-break: break-all; }
.codes { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.codes code { display: block; text-align: center; font-size: 18px; letter-spacing: .06em; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.stack-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 560px) { .setup-steps > li { padding: 70px 18px 18px; } .setup-steps > li::before { left: 18px; top: 18px; } }
@media print { .site-header, .site-footer, .btn, .flash { display: none !important; } }

/* Impressum & Datenschutz */
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal h3 { font-size: 17px; margin: 20px 0 6px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal p { margin: 0 0 12px; }
.legal ul { padding-left: 22px; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }

/* Eckbanner «Bald verfügbar» */
.plan-soon { position: relative; overflow: hidden; }
.ribbon { position: absolute; top: 34px; right: -52px; width: 210px; transform: rotate(45deg); background: #C62828; color: #fff; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .02em; padding: 7px 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }

/* Admin-Reiter & Infomail */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.admin-tabs a { padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-tabs a[aria-current="page"] { color: var(--blue-link); border-bottom-color: var(--blue); }
.checklist { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.checklist li { display: flex; gap: 8px; align-items: center; }
.checklist .ok { color: var(--ok); }
.checklist .todo { color: var(--err); font-weight: 600; }
.section-tight { margin-top: 40px; }
.infomail-state { margin: 0; flex: 1 1 200px; align-self: center; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Zahlen-Band auf der Startseite */
.stats-band { position: relative; z-index: 2; margin-top: -46px; padding-bottom: 8px; }
.hero:has(+ .stats-band) .hero-inner { padding-bottom: 104px; }
.sb-bar { list-style: none; margin: 0; padding: 18px 20px; display: flex; align-items: stretch; background: var(--surface); border-radius: 20px; box-shadow: 0 16px 40px rgba(15, 34, 56, .14); border: 1px solid var(--line); }
.sb-bar > li { flex: 1 1 0; min-width: 0; display: flex; }
.sb-bar > li + li { border-left: 1px solid var(--line); }
.sb-item { flex: 1; display: flex; align-items: center; gap: 14px; padding: 6px 16px; border-radius: 14px; color: var(--ink); text-decoration: none; transition: background .15s; }
.sb-item:hover { background: var(--soft); }
.sb-item:focus-visible { outline: 3px solid rgba(3, 131, 254, .35); outline-offset: 2px; }
.sb-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--soft-2); display: flex; align-items: center; justify-content: center; }
.sb-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--blue-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sb-ico-heart svg { width: 26px; height: 24px; }
.sb-ico .sb-heart { fill: var(--blue); stroke: none; }
.sb-ico .sb-ekg { fill: none; stroke: #fff; stroke-width: 7; }
.sb-text { display: flex; flex-direction: column; min-width: 0; }
.sb-n { font-size: 30px; font-weight: 700; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; display: inline-block; transform-origin: 0 70%; align-self: flex-start; }
.sb-label { font-size: 13px; line-height: 1.35; color: var(--ink-2); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .sb-item:hover .sb-n, .sb-item:focus-visible .sb-n { animation: num-beat 1.1s ease-in-out infinite; } }
@media (max-width: 900px) {
  .sb-bar { flex-wrap: wrap; padding: 8px 14px; }
  .sb-bar > li { flex: 1 1 45%; }
  .sb-bar > li + li { border-left: 0; }
}
@media (max-width: 600px) {
  .stats-band { margin-top: -36px; }
  .hero:has(+ .stats-band) .hero-inner { padding-bottom: 84px; }
  .sb-bar { flex-direction: column; padding: 4px 12px; border-radius: 16px; }
  .sb-bar > li + li { border-top: 1px solid var(--line); }
  .sb-item { padding: 10px 2px; gap: 12px; }
  .sb-ico { width: 40px; height: 40px; border-radius: 12px; }
  .sb-n { font-size: 24px; }
}
.stats { display: flex; flex-wrap: wrap; gap: 16px 64px; padding-top: 28px; padding-bottom: 28px; }
.stat { min-width: 200px; max-width: 320px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 8px 4px; }
.stat-n { font-size: 40px; font-weight: 700; color: var(--blue-text); line-height: 1.1; letter-spacing: -0.02em; }
.stat-label { font-size: 15px; color: var(--ink-2); }

/* Instagram im Footer */
.social { margin-top: 12px !important; }
.social-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-link); text-decoration: none; font-size: 14px; min-height: 44px; }
.social-link:hover { color: var(--blue-dark); }
.ico-insta { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ico-insta .dot { fill: currentColor; stroke: none; }

/* E-Mails zu neuen Inseraten im Konto */
.listing-mail-form { margin-top: 16px; }
.infomail-state .hint { display: block; margin-top: 4px; }
/* Mehrfachauswahl Fachrichtungen */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); min-width: 0; }
.multi { position: relative; }
.multi details { position: relative; }
.multi summary { list-style: none; cursor: pointer; font-size: 16px; font-weight: 400; color: var(--ink); padding: 11px 40px 11px 12px; border: 1px solid var(--field); border-radius: 10px; background: var(--surface); min-height: 46px; box-sizing: border-box; display: flex; align-items: center; position: relative; }
.multi summary::-webkit-details-marker { display: none; }
.multi summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); }
.multi details[open] summary { border-color: var(--blue); outline: 2px solid var(--soft-2); }
.multi details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.multi-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.multi-panel { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: max(100%, 320px); max-width: calc(100vw - 32px); max-height: 380px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(15, 34, 56, .16); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; font-weight: 400; }
.multi-group { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.multi-group legend { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 6px 0 4px; }
.multi-panel label.check { font-size: 15px; color: var(--ink); min-height: 36px; align-items: center; }
.multi-panel label.check input { margin-top: 0; }
.multi-all { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.multi-actions { position: sticky; bottom: -12px; background: var(--surface); padding: 8px 0 2px; display: flex; justify-content: flex-end; }
.multi-invalid summary { border-color: var(--err); outline: 2px solid var(--err-bg); }
@media (max-width: 560px) { .multi-panel { position: static; width: 100%; max-width: none; margin-top: 6px; box-shadow: none; } }

/* Konto löschen */
.account-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.danger-link { color: var(--err); }
.danger-link:hover { color: #6b1515; }

/* Hinweis: E-Mail-Adresse noch nicht bestätigt */
.confirm-box { margin: 14px 0 6px; padding: 14px 16px; border-radius: 12px; background: #fff7e6; border: 1px solid #f0d49a; color: #5a4300; max-width: 720px; }
.confirm-box p { margin: 0 0 10px; }
.confirm-box form { margin: 0; }

/* Hinweis «Praxis im Auftrag von Angehörigen abgeben» */
.note-box { margin-top: 32px; padding: 20px 24px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); max-width: 760px; }
.note-box h3 { margin: 0 0 6px; font-size: 1.05rem; }
.note-box p { margin: 0; }

/* Bilder in Inseraten */
.photo-has-img { background: var(--soft-2); padding: 0; }
.photo-has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery { margin: 20px 0 32px; display: grid; gap: 10px; }
.gallery-main img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 18px; display: block; background: var(--soft-2); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.gallery-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.gallery a:focus-visible img { outline: 3px solid var(--blue, #0270DD); outline-offset: 2px; }
.img-manager { border: 2px dashed var(--field); border-radius: 14px; padding: 14px; display: grid; gap: 12px; transition: background .15s, border-color .15s; }
.img-manager.is-drop { background: var(--soft-2); border-color: #0383FE; }
.img-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.img-list:empty { display: none; }
.img-item { position: relative; border-radius: 12px; overflow: hidden; background: var(--soft-2); aspect-ratio: 4 / 3; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; outline-offset: 3px; }
.img-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.img-item:focus-visible { outline: 3px solid #0270DD; }
.img-item.is-dragging { opacity: .55; cursor: grabbing; box-shadow: 0 6px 18px rgba(15, 34, 56, .25); }
.img-badge { display: none; position: absolute; left: 8px; bottom: 8px; background: #0270DD; color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.img-item.is-first .img-badge { display: inline-block; }
.img-remove { display: none; position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(15, 34, 56, .78); color: #fff; font-size: 22px; line-height: 34px; padding: 0; cursor: pointer; }
.img-remove:hover, .img-remove:focus-visible { background: #C0392B; }
.img-js .img-remove { display: block; }
.img-js .img-nojs { display: none; }
.img-nojs { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .9); padding: 4px 8px; font-size: 13px; }
.img-add { justify-self: start; position: relative; overflow: hidden; display: inline-flex; flex-direction: row; align-items: center; gap: 8px; }
.img-add .ico { width: 18px; height: 18px; }
.img-add input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.img-manager:not(.img-js) .img-add input[type=file] { position: static; opacity: 1; }
.img-status:empty { display: none; }
@media (max-width: 640px) { .gallery-main img { max-height: 300px; border-radius: 14px; } }

/* ================================================================ Nachtdienst-Modus (dunkle Ansicht)
   Folgt der Einstellung des Geräts; der Mond-Schalter oben überschreibt sie (Cookie pm_theme). */
:root[data-theme="dark"] {
  --blue-link: #6CB4FF; --blue-dark: #A3D0FF;
  --ink: #E8EFF7; --ink-2: #BAC8D8; --ink-3: #97A9BD;
  --line: #22374D; --field: #3A5673;
  --soft: #0F1E2E; --soft-2: #16304B;
  --ok-bg: #12331F; --ok: #A6E8BD; --err-bg: #3B1818; --err: #FFB4B4;
  --bg: #0A1520; --surface: #112233; --chip: #1A3047; --shadow: rgba(0, 0, 0, .45);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue-link: #6CB4FF; --blue-dark: #A3D0FF;
    --ink: #E8EFF7; --ink-2: #BAC8D8; --ink-3: #97A9BD;
    --line: #22374D; --field: #3A5673;
    --soft: #0F1E2E; --soft-2: #16304B;
    --ok-bg: #12331F; --ok: #A6E8BD; --err-bg: #3B1818; --err: #FFB4B4;
    --bg: #0A1520; --surface: #112233; --chip: #1A3047; --shadow: rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
/* Einzelne Stellen mit festen Farben – im Dunkeln angepasst. «.dark-on» wird per Klasse auf <html> gesetzt */
html.dark-on .hero, html.dark-on .cta { background: #0A4F96; }
html.dark-on .btn-primary { background: #0A6BD0; }
html.dark-on .btn-primary:hover { background: #2B86E6; }
html.dark-on .photo .heart path { fill: #2C5179; }
html.dark-on .photo .heart polyline { stroke: var(--soft-2); }
html.dark-on .photo-teilhaberschaft { background: #1A2A52; }
html.dark-on .photo-raeume { background: #123A35; }
html.dark-on .photo-raeume .heart path { fill: #2A6B5F; }
html.dark-on .photo-raeume .heart polyline { stroke: #123A35; }
html.dark-on .photo-einrichtung { background: #2A2347; }
html.dark-on .badge-test { background: #4A3A0A; color: #FFE08A; }
html.dark-on .badge-dark { background: #E8EFF7; color: #0A1520; }
html.dark-on .confirm-box { background: #3A2E0C; border-color: #6B5518; color: #FFE6A8; }
html.dark-on .img-nojs { background: rgba(10, 21, 32, .9); }
html.dark-on .search { box-shadow: 0 20px 48px rgba(0, 0, 0, .45); }
html.dark-on img { opacity: .94; }

/* Schalter Nachtdienst-Modus */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink-2); text-decoration: none; }
.theme-toggle:hover { background: var(--soft-2); color: var(--blue-link); }
.theme-toggle .ico { width: 21px; height: 21px; }
.theme-toggle .sun { display: none; }
html.dark-on .theme-toggle .sun { display: block; }
html.dark-on .theme-toggle .moon { display: none; }

/* ================================================================ Herzschlag
   Die EKG-Linie im Logo zeichnet sich beim Laden einmal nach; beim Überfahren schlägt das Herz. */
.site-header .logo .heart polyline { stroke-dasharray: 100; animation: ekg-draw 1.2s cubic-bezier(.6, 0, .3, 1) .2s both; }
.site-header .logo .heart { transform-origin: 50% 55%; animation: heart-beat .5s ease-out 1.35s both; }
.logo:hover .heart { animation: heart-beat .7s ease-out both; }
.site-header .logo.pulse .heart polyline { animation: ekg-sweep .55s cubic-bezier(.5, 0, .3, 1) both; }
.site-header .logo.pulse:not(.tachy) .heart { animation: heart-beat .4s ease-out both; }
@keyframes ekg-sweep { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes ekg-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes heart-beat { 0% { transform: scale(1); } 25% { transform: scale(1.14); } 45% { transform: scale(.97); } 65% { transform: scale(1.07); } 100% { transform: scale(1); } }

/* Ladeanzeige beim Absenden: kleine laufende EKG-Linie im Knopf */
.ekg-load { width: 44px; height: 20px; flex: none; }
.ekg-load polyline { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 45 55; animation: ekg-run 1.1s linear infinite; }
@keyframes ekg-run { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.btn.is-loading { pointer-events: none; opacity: .9; }

@media (prefers-reduced-motion: reduce) {
  .site-header .logo .heart, .site-header .logo .heart polyline, .logo:hover .heart, .site-header .logo.pulse .heart, .site-header .logo.pulse .heart polyline { animation: none; }
  .ekg-load polyline { animation-duration: 3s; }
}

/* ================================================================ Fehlerseite als Befund */
.befund { max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 16px 40px var(--shadow); overflow: hidden; }
.befund-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 28px; background: var(--blue-text); color: #fff; }
.befund-head .kicker { font-size: 13px; }
.befund-head span:last-child { font-size: 14px; opacity: .9; }
.befund-body { padding: 26px 28px 30px; }
.befund h1 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 18px; }
.befund dl { margin: 0; display: grid; grid-template-columns: 130px 1fr; gap: 12px 18px; }
.befund dt { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.befund dd { margin: 0; color: var(--ink-2); line-height: 1.6; }
.befund .rx { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; color: var(--blue-link); margin-right: 4px; }
.befund .cta-actions { margin-top: 26px; }
.befund-sign { margin: 22px 0 0; padding-top: 14px; border-top: 1px dashed var(--field); font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 10px; }
.befund-sign .heart { width: 26px; height: 24px; }
@media (max-width: 520px) { .befund dl { grid-template-columns: 1fr; gap: 2px; } .befund dd { margin-bottom: 12px; } .befund-head, .befund-body { padding-left: 20px; padding-right: 20px; } }

/* ================================================================ Wartezimmer */
.waiting { border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; background: var(--soft); display: flex; flex-direction: column; gap: 12px; }
.waiting h2 { display: flex; align-items: center; gap: 10px; margin: 0; }
.waiting h2 .ico { width: 26px; height: 26px; color: var(--blue-text); }
.waiting p { margin: 0; color: var(--ink-2); }
.waiting .form-inline-row { margin-top: 4px; }
.empty .cta-actions { justify-content: center; margin-top: 8px; }
.empty-title { font-size: 21px; font-weight: 600; margin: 0 0 6px; }

/* ================================================================ Nachfolge-Fahrplan */
.plan-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 22px; max-width: 620px; }
.plan-form label { flex: 1 1 220px; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-left: 64px; }
.tl-dot { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 2px solid var(--blue-text); color: var(--blue-link); display: flex; align-items: center; justify-content: center; }
.tl-dot .ico { width: 20px; height: 20px; }
.tl-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; background: var(--surface); }
.tl-when { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--blue-link); margin: 0 0 4px; }
.tl-card h3 { margin: 0 0 8px; font-size: 19px; }
.tl-card ul { margin: 0; padding-left: 20px; color: var(--ink-2); line-height: 1.65; }
.tl-card li { margin-bottom: 4px; }
.tl-partner { margin: 12px 0 0; font-size: 14px; color: var(--ink-3); }
.tl-now .tl-dot { background: var(--blue-text); color: #fff; }
.tl-now .tl-card { border: 2px solid var(--blue-text); }
.tl-late .tl-dot { border-color: #D98A00; color: #D98A00; }
.tl-flag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--soft-2); color: var(--ink); }
.tl-late .tl-flag { background: #FFF1D6; color: #6B4500; }
html.dark-on .tl-late .tl-flag { background: #4A3A0A; color: #FFE08A; }
.tl-goal .tl-dot { background: var(--blue-text); border-color: var(--blue-text); color: #fff; }
.advice { margin-top: 40px; border-radius: 22px; padding: 32px; background: var(--soft); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; }
.advice h2 { margin: 0 0 10px; }
.advice > div > p { color: var(--ink-2); margin: 0 0 12px; }
.advice .checks { grid-template-columns: 1fr; }
.topics { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.topics legend { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0 0 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.plan-teaser { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; background: var(--surface); }
.plan-teaser h2 { font-size: 24px; margin: 0 0 6px; }
.plan-teaser p { margin: 0; color: var(--ink-2); max-width: 640px; }
@media (max-width: 760px) { .advice { grid-template-columns: 1fr; padding: 24px 20px; } }
@media print {
  .plan-form, .advice, .no-print, .theme-toggle { display: none !important; }
  .timeline::before { background: #ccc; }
  .tl-card { break-inside: avoid; }
}
.plan-note { margin-top: 20px; }
.m0 { margin: 0 !important; }
.tl-span { font-weight: 400; color: var(--ink-3); }
html.dark-on .stat-n, html.dark-on .checks .ico, html.dark-on .locked > .ico, html.dark-on .waiting h2 .ico, html.dark-on .kicker-blue, html.dark-on .tl-dot { color: var(--blue-link); }
html.dark-on .tl-dot { border-color: var(--blue-link); }
html.dark-on .tl-now .tl-dot, html.dark-on .tl-goal .tl-dot { color: #fff; border-color: #0A6BD0; background: #0A6BD0; }
html.dark-on .tl-now .tl-card, html.dark-on .plan-hl { border-color: #2B86E6; }
html.dark-on .step-n, html.dark-on .setup-steps > li::before { background: #0A6BD0; }
html.dark-on .tl-late .tl-dot { border-color: #E0A030; color: #E0A030; }
@media (max-width: 560px) { .tl-item { padding-left: 48px; } .tl-dot { width: 36px; height: 36px; } .timeline::before { left: 17px; } .tl-card { padding: 16px; } .tl-card ul { padding-left: 18px; } }

/* Sprechstunde im Fusstext */
.consult { font-size: 14px; color: var(--ink-3); max-width: 420px; }

/* Easter Egg: fünfmal aufs Herz → Tachykardie */
.tachy .heart { animation: heart-beat .28s ease-in-out 10 !important; }
.tachy-note { position: fixed; z-index: 50; right: 20px; bottom: 20px; display: flex; align-items: flex-end; gap: 4px; max-width: calc(100vw - 40px); animation: doc-in .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.tachy-note[hidden] { display: none; }
.tachy-note .doc { width: 120px; height: 140px; flex: none; filter: drop-shadow(0 8px 16px rgba(1, 40, 90, .25)); }
.tachy-note p { position: relative; margin: 0 0 92px; background: #0383FE; color: #fff; padding: 14px 18px; border-radius: 18px 18px 18px 4px; font-size: 15px; line-height: 1.45; box-shadow: 0 12px 32px rgba(1, 40, 90, .3); max-width: 230px; }
.tachy-note p::before { content: ""; position: absolute; left: -9px; bottom: 6px; border: 10px solid transparent; border-right-color: #0383FE; border-left: 0; }
@keyframes doc-in { from { transform: translateY(30px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }

/* PDF-Exposé */
.expose-wrap { max-width: 900px; }
.expose-tools { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 20px; }
.expose-tools .hint { flex-basis: 100%; margin: 0; }
.sheet { background: #fff; color: #0F2238; border: 1px solid #E3EAF3; border-radius: 16px; padding: 44px 48px; box-shadow: 0 16px 40px rgba(15, 34, 56, .1); }
.sheet h1 { font-size: 30px; margin: 4px 0 6px; color: #0F2238; }
.sheet h2 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #0270DD; margin: 26px 0 10px; }
.sheet .prose { color: #3A4E66; font-size: 15px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 18px; border-bottom: 2px solid #0383FE; margin-bottom: 26px; }
.sheet-head .logo { color: #0F2238; font-size: 22px; }
.sheet-head .heart path { fill: #0383FE; }
.sheet-meta { font-size: 13px; color: #4A5D74; text-align: right; line-height: 1.5; }
.sheet-kicker { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0270DD; }
.sheet-place { margin: 0; color: #4A5D74; }
.sheet-hero { width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; margin: 22px 0 6px; display: block; }
.sheet-lead { font-size: 17px; line-height: 1.6; color: #3A4E66; margin: 18px 0 0; }
.sheet-grid { display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: start; }
.sheet dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.sheet dl div { border-bottom: 1px solid #E3EAF3; padding-bottom: 6px; }
.sheet dt { font-size: 12px; color: #4A5D74; }
.sheet dd { margin: 0; font-weight: 600; font-size: 14px; }
.sheet-price { background: #F5F9FE; border-radius: 12px; padding: 4px 18px 16px; margin-top: 26px; }
.sheet-price h2 { margin-top: 14px; }
.sheet-price p { margin: 0; font-size: 20px; font-weight: 700; }
.sheet-list { margin: 0; padding-left: 20px; columns: 2; color: #3A4E66; font-size: 14px; line-height: 1.7; }
.sheet-pics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 22px; }
.sheet-pics img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.sheet-foot { display: flex; gap: 28px; justify-content: space-between; align-items: flex-start; margin-top: 30px; padding-top: 6px; border-top: 1px solid #E3EAF3; }
.sheet-foot p { margin: 0 0 8px; font-size: 14px; color: #3A4E66; }
.sheet-url { font-weight: 600; color: #0262C2 !important; }
.sheet-legal { font-size: 12px !important; color: #4A5D74 !important; }
.sheet-qr { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: #4A5D74; padding-top: 20px; }
.sheet-qr svg { width: 120px; height: 120px; }
html.dark-on .sheet img { opacity: 1; }
@media (max-width: 640px) {
  .sheet { padding: 24px 18px; }
  .sheet-grid { grid-template-columns: 1fr; gap: 0; }
  .sheet dl { grid-template-columns: 1fr; }
  .sheet-list { columns: 1; }
  .sheet-foot { flex-direction: column; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  html, body { background: #fff !important; }
  .no-print, .tachy-note, .skip { display: none !important; }
  .expose-wrap { padding: 0 !important; max-width: none; }
  .sheet { border: 0; box-shadow: none; padding: 0; border-radius: 0; }
  .sheet-hero { max-height: 300px; }
  .sheet section, .sheet-foot, .sheet-pics { break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ================================================================ Vademecum */
.vm-rubrics { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; font-size: 14px; color: var(--ink-2); }
.vm-rubrics li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.vm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.vm-card { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s; }
/* Ganze Karte anklickbar; beim Darüberfahren hervorgehoben wie auf der Instrumente-Seite */
.vm-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.vm-card:hover, .vm-card:focus-within { border-color: var(--blue); box-shadow: 0 12px 32px var(--shadow); }
.vm-card:hover h2 a { color: var(--blue-link); }
.vm-card h2 { font-size: 22px; margin: 0; }
.vm-card h2 a { color: var(--ink); text-decoration: none; }
.vm-card h2 a:hover { color: var(--blue-link); }
.vm-card > p:not(.vm-meta) { margin: 0; color: var(--ink-2); line-height: 1.6; }
.vm-card .more { margin-top: auto; }
.vm-meta { margin: 0; font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.vm-meta .ico { width: 14px; height: 14px; }
.vm-rubric { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-link); }
.vm-note { margin-top: 24px; display: flex; gap: 6px; align-items: center; }
.vm-article { max-width: 760px; }
.vm-article h1 { font-size: clamp(30px, 4.4vw, 44px); margin: 12px 0 14px; letter-spacing: -0.025em; }
.vm-sub { font-size: 20px; line-height: 1.55; color: var(--ink-2); margin: 0 0 28px; font-weight: 500; }
.vm-lead p { font-size: 17px; line-height: 1.75; color: var(--ink); margin: 0 0 16px; }
.vm-lead p:first-child::first-letter { float: left; font-size: 58px; line-height: .9; font-weight: 700; color: var(--blue-text); padding: 6px 8px 0 0; }
.vm-body h2 { font-size: 24px; margin: 38px 0 12px; }
.vm-body p, .vm-body li { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.vm-body p { margin: 0 0 14px; }
.vm-body ul, .vm-body ol { padding-left: 22px; margin: 0 0 16px; }
.vm-body li { margin-bottom: 8px; }
.vm-body b { color: var(--ink); }
.vm-tip { border-left: 4px solid var(--blue); background: var(--soft); border-radius: 0 14px 14px 0; padding: 16px 20px; margin: 22px 0; }
.vm-tip p { margin: 0 !important; font-size: 16px !important; }
.vm-tip-title { font-weight: 700; color: var(--ink) !important; margin-bottom: 4px !important; }
.vm-sources { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.vm-sources h2 { font-size: 18px; margin: 0 0 10px; }
.vm-sources ul { padding-left: 20px; margin: 0 0 10px; font-size: 15px; line-height: 1.8; }
.vm-cta { margin-top: 36px; }
.vm-more { margin-top: 44px; }
.vm-more h2 { font-size: 20px; }
.vm-more ul { padding-left: 20px; line-height: 2; }
.vm-locked { position: relative; margin-top: 8px; }
.vm-blur { filter: blur(6px); user-select: none; -webkit-user-select: none; pointer-events: none; opacity: .75; max-height: 520px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.vm-blur p { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.vm-gate { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); width: min(540px, calc(100% - 8px)); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; text-align: center; box-shadow: 0 20px 48px var(--shadow); }
.vm-gate p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.6; }
.vm-gate-ico { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; background: var(--soft-2); color: var(--blue-link); align-items: center; justify-content: center; margin-bottom: 8px; }
.vm-gate-ico .ico { width: 24px; height: 24px; }
.vm-gate-title { font-size: 26px; font-weight: 700; color: var(--ink) !important; letter-spacing: -0.02em; }
.vm-gate .cta-actions { justify-content: center; margin-top: 6px; }
@media (max-width: 560px) { .vm-gate { top: 30px; padding: 22px 18px; } .vm-sub { font-size: 18px; } .vm-blur { max-height: 640px; } }
.legal-facts { margin: 0 0 12px; display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; }
.legal-facts div { display: contents; }
.legal-facts dt { color: var(--ink-3); }
.legal-facts dd { margin: 0; color: var(--ink-2); }

/* ================================================================ Instrumente */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.tool { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.tool:hover { border-color: var(--blue); box-shadow: 0 12px 32px var(--shadow); color: var(--ink); }
.tool-ico { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; background: var(--soft-2); color: var(--blue-link); display: flex; align-items: center; justify-content: center; }
.tool-ico .ico { width: 24px; height: 24px; }
.tool-title { font-weight: 700; font-size: 18px; }
.tool-tag { font-size: 12px; font-weight: 600; background: var(--soft-2); color: var(--ink-2); padding: 2px 8px; border-radius: 6px; vertical-align: 2px; }
.tool-text { color: var(--ink-2); font-size: 15px; line-height: 1.55; }

.unit-field { position: relative; display: block; }
.unit-field input { padding-right: 64px; }
.unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--ink-3); font-weight: 500; pointer-events: none; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.calc-result { border: 1px solid var(--line); border-radius: 20px; padding: 26px; background: var(--surface); display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }
.calc-result-wide { position: static; margin-top: 28px; }
.calc-big { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.calc-big span { font-size: 14px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.calc-big b { font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.02em; color: var(--blue-link); line-height: 1.15; }
.calc-big small { font-size: 14px; color: var(--ink-2); }
.calc-stats { display: grid; gap: 0; border-top: 1px solid var(--line); }
.calc-stat { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.calc-stat span { color: var(--ink-2); }
.calc-stat b { white-space: nowrap; }
.calc-stat.is-strong b { color: var(--ink); font-size: 16px; }
.calc-light { margin: 0; padding: 12px 16px; border-radius: 12px; font-size: 15px; line-height: 1.5; }
.calc-ok { background: var(--ok-bg); color: var(--ok); }
.calc-warn { background: #FFF4D6; color: #5C4300; }
.calc-bad { background: var(--err-bg); color: var(--err); }
.calc-info { background: var(--soft-2); color: var(--ink); }
html.dark-on .calc-warn { background: #4A3A0A; color: #FFE08A; }
.calc-empty { text-align: center; color: var(--ink-3); padding: 30px 10px; }
.calc-empty .ico { width: 40px; height: 40px; color: var(--blue-link); }
.calc-how h2 { font-size: 17px; margin: 6px 0 6px; }
.calc-how ol { padding-left: 20px; margin: 0 0 8px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.calc-how p { margin: 0; color: var(--ink-2); font-size: 15px; }
.calc-settings { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px; margin: 16px 0; }
.calc-settings[open] { padding-bottom: 18px; }
.calc-settings summary { cursor: pointer; font-weight: 600; color: var(--blue-link); min-height: 44px; display: flex; align-items: center; }
.calc-cta { margin: 0 0 56px; }
/* Praxis Break-even-Rechner */
.be-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.be-tiles .calc-big { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.be-tiles .be-main { border: 2px solid var(--blue); background: var(--soft); }
.be-tiles .calc-big b { color: var(--ink); }
.be-tiles .be-main b { color: var(--blue-link); }
.be-load { display: flex; flex-direction: column; gap: 14px; }
.be-slider { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; font-weight: 600; }
.be-slider output { font-size: 22px; font-weight: 700; color: var(--blue-link); }
.be-slider input { grid-column: 1 / -1; width: 100%; accent-color: var(--blue-text); min-height: 32px; border: 0; padding: 0; background: none; box-shadow: none; }
.be-bar { position: relative; display: flex; height: 18px; border-radius: 9px; overflow: visible; }
.be-zone { display: block; height: 100%; }
.be-zone:first-child { border-radius: 9px 0 0 9px; }
.be-z1 { background: #F2B8A6; } .be-z2 { background: #FBDD9A; } .be-z3 { background: #9CD3B5; }
.be-bar .be-z3 { flex: 1; border-radius: 0 9px 9px 0; }
.be-bar .be-z1 { width: 33%; } .be-bar .be-z2 { width: 17%; }
.be-marker { position: absolute; top: -6px; width: 4px; height: 30px; border-radius: 2px; background: var(--ink); left: 50%; }
.be-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
.be-legend li { display: flex; align-items: center; gap: 6px; }
.be-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
@media (max-width: 520px) { .be-tiles { grid-template-columns: 1fr; } }
.print-only { display: none; }
.be-input-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 12px; }
.be-input-table th, .be-input-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #E3EAF3; font-weight: 400; }
.be-input-table td { text-align: right; white-space: nowrap; }
.be-input-table .be-group th { font-weight: 700; padding-top: 16px; border-bottom: 2px solid #0383FE; }
.be-input-table .be-sum th, .be-input-table .be-sum td { font-weight: 700; }
@media print {
  .print-only { display: block; }
  .be-inputs { break-before: page; page-break-before: always; padding-top: 0; }
  .be-inputs h2 { font-size: 18px; margin: 0 0 4px; }
  .calc-result .be-slider input { display: none; }
  .be-load, .calc-result { break-inside: avoid; }
}
.staff-table input, .staff-table select { min-width: 110px; }
.staff-table td { padding: 8px 10px; }
.sum-row td { font-weight: 700; background: var(--soft); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .calc-result { position: static; } }

/* Fortschritt (Checkliste, Assistent) */
.pbar { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; border: 0; border-radius: 99px; background: var(--soft-2); overflow: hidden; display: block; }
.pbar::-webkit-progress-bar { background: var(--soft-2); border-radius: 99px; }
.pbar::-webkit-progress-value { background: var(--blue); border-radius: 99px; transition: width .3s; }
.pbar::-moz-progress-bar { background: var(--blue); border-radius: 99px; }
.progress { margin: 8px 0 24px; }
.progress p { margin: 8px 0 0; color: var(--ink-2); }
.cl-group { margin-bottom: 18px; }
.cl-item { padding: 6px 0; font-size: 16px; }
.cl-item input:checked + span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--field); }
.cl-item a { text-decoration: none; font-weight: 700; }
.cl-guest .cl-item { cursor: pointer; }
.print-gate { display: none; }
/* Vorschaubild eines Instruments */
.tool-preview-wrap { padding-bottom: 8px; }
.tool-preview { margin: 0 auto 40px; max-width: 720px; }
.tool-preview img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(1, 40, 90, .10); }
.tool-preview figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); text-align: center; }
@media print {
  .cl-guest, .tool-preview-wrap { display: none !important; }
  .print-gate { display: block; font-size: 14px; margin: 24px 0; }
  .checklist-form + .pdf-link, .admin-tabs, .cl-save, .cl-item a { display: none !important; }
  .cl-group { break-inside: avoid; margin-bottom: 10px; }
  .cl-group legend { font-weight: 700; }
  .cl-item { padding: 2px 0; font-size: 11px; }
  .cl-item input { width: 13px; height: 13px; }
  .progress p { font-size: 11px; }
}

/* Inserat-Assistent */
.assistant { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; background: var(--soft); display: flex; flex-direction: column; gap: 10px; }
.assistant[hidden] { display: none; }
.assistant-head { margin: 0; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.assistant-head span { font-weight: 600; color: var(--blue-link); }
.assistant ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.assistant .more { min-height: 0; }
.assistant-live { position: sticky; top: 12px; z-index: 5; margin: 0 0 20px; box-shadow: 0 8px 24px var(--shadow); }

/* Kantone */
.canton-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.canton-grid a { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); background: var(--surface); }
.canton-grid a:hover { border-color: var(--blue); }
.canton-grid span { font-weight: 600; }
.canton-grid small { color: var(--ink-3); font-size: 13px; }
.canton-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 40px; }
.canton-info > div { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: var(--soft); }
.canton-info h2 { font-size: 21px; }
.canton-info p { color: var(--ink-2); line-height: 1.65; }
.canton-more { margin-bottom: 56px; }
.canton-more h2 { font-size: 18px; }
.canton-more p { line-height: 2; color: var(--ink-3); }
h1, h2 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
[hidden] { display: none !important; }

.staff-table .in-short { min-width: 70px; width: 80px; }
.pk-table input { min-width: 80px; max-width: 120px; }
.koord-help { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.koord-help li.is-active { color: var(--ink-2); }
.result-table td, .result-table th { white-space: nowrap; padding: 12px 12px; }
.calc-note { margin-top: 20px; }

/* Rechner: Annahmen, PDF */
.calc-settings fieldset { margin-top: 12px; }
.sub-h { font-size: 15px; margin: 8px 0 0; }
.pdf-link { margin: 0; text-align: right; }
.pdf-link .linklike { color: var(--ink-3); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; min-height: 36px; }
.pdf-link .linklike:hover { color: var(--blue-link); }
.pdf-link .ico { width: 16px; height: 16px; }
.print-head { display: none; }
@media print {
  .print-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid #0383FE; font-size: 12px; color: #4A5D74; text-align: right; }
  .print-head .logo { font-size: 20px; color: #0F2238; }
  .print-head .heart path { fill: #0383FE; }
  .page-head { background: none !important; border: 0; padding: 0 0 8px; }
  .page-head .crumbs, .calc-form, form[action="/instrumente/personalkosten"], .calc-cta, .pdf-link, .tachy-note { display: none !important; }
  .calc { display: block; }
  .section { padding-top: 0; padding-bottom: 12px; }
  .calc-result { border: 0; padding: 0; position: static; }
  .table-box { overflow: visible; border: 0; }
  .result-table td, .result-table th { padding: 6px 6px; font-size: 10px; }
  .result-table .small { font-size: 9px; }
  html.dark-on, html.dark-on body { background: #fff; color: #0F2238; }
}
@media print {
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    --ink: #0F2238 !important; --ink-2: #3A4E66 !important; --ink-3: #4A5D74 !important; --line: #E3EAF3 !important; --field: #C9D6E5 !important;
    --soft: #F5F9FE !important; --soft-2: #E6F1FF !important; --bg: #fff !important; --surface: #fff !important; --blue-link: #0262C2 !important;
    --ok-bg: #E9F7EF !important; --ok: #14532D !important; --err-bg: #FDECEC !important; --err: #8A1C1C !important; --chip: #F1F5FA !important;
  }
}

/* Sperre für Gäste: kleiner Doktor */
.doc-gate { position: fixed; inset: 0; z-index: 60; background: rgba(10, 21, 32, .45); display: flex; align-items: center; justify-content: center; padding: 20px; }
.doc-gate-card { position: relative; display: flex; align-items: flex-end; gap: 6px; max-width: 520px; animation: doc-in .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.doc-gate-card .doc { width: 130px; height: 152px; flex: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .3)); }
.doc-gate-bubble { position: relative; margin-bottom: 60px; background: #0383FE; color: #fff; padding: 20px 22px; border-radius: 20px 20px 20px 4px; box-shadow: 0 16px 40px rgba(1, 40, 90, .35); }
.doc-gate-bubble::before { content: ""; position: absolute; left: -10px; bottom: 8px; border: 11px solid transparent; border-right-color: #0383FE; border-left: 0; }
.doc-gate-bubble p { margin: 0 0 10px; line-height: 1.5; }
.doc-gate-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px !important; }
.doc-gate-bubble .cta-actions { margin-top: 6px; }
.doc-gate-bubble .btn-ghost { border-color: #fff; }
.doc-gate-close { position: absolute; right: -6px; top: -14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: #0F2238; font-size: 22px; line-height: 36px; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); z-index: 2; }
@media (max-width: 520px) { .doc-gate-card { flex-direction: column; align-items: center; } .doc-gate-bubble { margin-bottom: 0; } .doc-gate-bubble::before { display: none; } .doc-gate-card .doc { width: 100px; height: 117px; } }
.doc-note { display: flex; gap: 16px; align-items: center; }
.doc-note .doc { width: 92px; height: 108px; flex: none; }
.doc-note p { margin: 0 0 8px; color: var(--ink-2); }
.doc-note .doc-gate-title { color: var(--ink); font-size: 20px; }
@media (max-width: 520px) { .doc-note { flex-direction: column; text-align: center; } .doc-note .cta-actions { justify-content: center; } }
.vm-gate-doc { display: inline-block; }
.vm-gate-doc .doc { width: 86px; height: 100px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 32px; }
.stat { min-width: 0; max-width: none; }

/* Versicherungs-Anamnese */
.vs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.vs-q { padding: 16px 18px; gap: 8px; }
.vs-q legend { font-size: 15px; }
.vs-opts { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.rx { gap: 22px; }
.rx-head { margin: 0; font-size: 22px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--blue); padding-bottom: 10px; }
.rx-mark { font-family: Georgia, "Times New Roman", serif; font-style: italic; color: var(--blue-link); font-size: 26px; }
.rx-group h2 { font-size: 19px; margin: 0 0 2px; display: flex; align-items: center; gap: 8px; }
.rx-group h2::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); flex: none; }
.rx-must h2::before { background: #C0392B; }
.rx-rec h2::before { background: #E0A030; }
.rx-check h2::before { background: #2E9E6B; }
.rx-calc h2::before { background: var(--blue); }
.rx-sub { margin: 0 0 10px; font-size: 14px; color: var(--ink-3); }
.rx-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rx-group li { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.rx-group li span { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
@media print { .vs-form { display: none !important; } .rx-group li { break-inside: avoid; } }

/* Kantone auf der Startseite */
.canton-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.canton-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink-2); background: var(--surface); font-size: 14px; }
.canton-chips a:hover { border-color: var(--blue); color: var(--blue-link); }

/* Besucherstatistik (Admin) */
.st-periods { margin-top: 8px; }
.st-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); padding-top: 8px; padding-bottom: 16px; gap: 8px 32px; }
.st-kpis .stat { min-width: 0; }
@media (max-width: 600px) { .st-kpis .stat-n { font-size: 32px; } }
.st-figure { margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 12px; }
.st-chart { display: block; width: 100%; height: 180px; }
.st-hit { fill: transparent; }
.st-bar-views { fill: var(--soft-2); }
.st-bar-visits { fill: var(--blue); }
.st-axis { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.st-legend { display: inline-flex; align-items: center; gap: 6px; }
.st-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 10px; }
.st-key-views { background: var(--soft-2); border: 1px solid var(--field); }
.st-key-visits { background: var(--blue); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 24px; }
.st-grid .h3, .st-grid h3 { font-size: 18px; margin: 0; }
.st-share { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.st-share li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.st-share .pbar { grid-column: 1 / -1; height: 8px; }
.st-share-name { overflow-wrap: anywhere; }
.st-share-n { font-weight: 600; font-variant-numeric: tabular-nums; }
.st-accounts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.st-accounts li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Zahlen auf der Startseite: anklickbar, beim Darüberfahren pulsiert die Zahl leicht im Herzschlag */
.stat-link { text-decoration: none; color: inherit; }
.stat-link .stat-n { display: inline-block; transform-origin: 0 70%; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .stat-link:hover .stat-n, .stat-link:focus-visible .stat-n { animation: num-beat 1.1s ease-in-out infinite; }
}
@keyframes num-beat { 0%, 40%, 100% { transform: scale(1); } 10% { transform: scale(1.06); } 22% { transform: scale(1.01); } 30% { transform: scale(1.04); } }

/* Merken: das Herz schlägt einmal */
.fav-heart { transform-origin: 50% 55%; }
.fav.beat .fav-heart { fill: currentColor; animation: heart-beat .5s ease-out both; }

/* Fehlerseite: Nulllinie, die wieder zu schlagen beginnt */
.flatline { padding: 14px 28px 10px; background: var(--soft); border-bottom: 1px solid var(--line); }
.flatline svg { display: block; width: 100%; height: 56px; overflow: visible; }
.flatline polyline { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fl-flat { stroke: var(--field); transition: opacity .4s; }
.fl-trace { stroke: var(--blue); opacity: 0; transition: opacity .6s; }
.fl-sweep { stroke: var(--blue); stroke-width: 3 !important; stroke-dasharray: 22 78; stroke-dashoffset: 100; opacity: 0; }
.fl-label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fl-off { color: var(--err); }
.fl-on { color: var(--blue-link); display: none; }
.flatline.alive .fl-flat { opacity: 0; }
.flatline.alive .fl-trace { opacity: .22; }
.flatline.alive .fl-sweep { opacity: 1; animation: ekg-run 2.6s linear infinite; }
.flatline.alive .fl-off { display: none; }
.flatline.alive .fl-on { display: inline; }
@media (max-width: 520px) { .flatline { padding-left: 20px; padding-right: 20px; } }
@media (prefers-reduced-motion: reduce) {
  .fav.beat .fav-heart { animation: none; }
  .flatline.alive .fl-trace { opacity: 1; }
  .flatline.alive .fl-sweep { animation: none; opacity: 0; }
}
@media print { .flatline { display: none; } }
.section-tight .danger-zone { margin-top: 0; padding-top: 0; border-top: 0; }

/* Statistik: Herkunft mit Symbolen */
.st-src { gap: 14px; }
.st-src li { grid-template-columns: 36px 1fr auto; gap: 6px 12px; align-items: center; }
.st-src .pbar { grid-column: 2 / -1; }
.st-src .st-share-name { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.st-src .st-share-n { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.st-src .st-share-n .small { font-weight: 400; }
.src-ico { grid-row: span 2; align-self: start; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: var(--c-bg); }
.src-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.st-src .pbar::-webkit-progress-value { background: var(--c); }
.st-src .pbar::-moz-progress-bar { background: var(--c); }
.src-google { --c: #0270DD; --c-bg: #E6F1FF; }
.src-social { --c: #B4307A; --c-bg: #FBE8F2; }
.src-ki { --c: #6D3FD8; --c-bg: #EFE9FC; }
.src-direkt { --c: #3A4E66; --c-bg: #EAEFF5; }
.src-mail { --c: #0F7B53; --c-bg: #E3F5EC; }
.src-andere { --c: #B45F06; --c-bg: #FCEFDF; }
html.dark-on .src-ico { background: rgba(255, 255, 255, .08); }
html.dark-on .src-google { --c: #5AA9FF; } html.dark-on .src-social { --c: #F07BBE; } html.dark-on .src-ki { --c: #A98BFF; }
html.dark-on .src-direkt { --c: #B7C4D4; } html.dark-on .src-mail { --c: #4CC992; } html.dark-on .src-andere { --c: #F0A44B; }

/* Entwürfe */
.draft-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 20px; margin-bottom: 20px; border-radius: var(--radius); background: var(--soft-2); border: 1px solid var(--line); color: var(--ink); }
.draft-note p { flex: 1 1 360px; }
.draft-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 20px; margin-bottom: 16px; border: 1px dashed var(--field); border-radius: var(--radius); background: var(--soft); }
.draft-actions { display: flex; align-items: center; gap: 16px; }
.draft-status { flex-basis: 100%; order: 3; margin: 0; }
html.dark-on .draft-note { background: var(--soft); }

/* Checkliste: Fortschritt bleibt beim Scrollen oben sichtbar; bei 100 % eine kleine Feier */
.checklist-page .progress, [data-progress] { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 12px 0 10px; margin: 0 0 16px; border-bottom: 1px solid transparent; transition: border-color .2s; }
[data-progress].stuck { border-bottom-color: var(--line); box-shadow: 0 8px 12px -12px var(--shadow); }
[data-progress] p { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.cl-done { display: none; align-items: center; gap: 8px; color: var(--blue-link); font-weight: 600; }
.cl-done .heart { width: 24px; height: 22px; flex: none; transform-origin: 50% 55%; }
.cl-done .heart path { fill: var(--blue); } .cl-done .heart polyline { fill: none; stroke: #fff; stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
[data-progress].all-done .cl-count { display: none; }
[data-progress].all-done .cl-done { display: inline-flex; }
[data-progress].all-done .pbar::-webkit-progress-value { background: var(--blue); }
[data-progress].celebrate .pbar { animation: bar-glow 1.4s ease-out; }
[data-progress].celebrate .cl-done { animation: done-in .5s cubic-bezier(.2, 1.4, .4, 1) both; }
[data-progress].celebrate .cl-done .heart { animation: heart-beat .55s ease-out .35s 3 both; }
[data-progress].celebrate .cl-done .heart polyline { stroke-dasharray: 100; animation: ekg-draw .9s ease-out .2s both; }
@keyframes bar-glow { 0% { box-shadow: 0 0 0 0 rgba(3, 131, 254, .55); } 100% { box-shadow: 0 0 0 12px rgba(3, 131, 254, 0); } }
@keyframes done-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media print { [data-progress] { position: static; } }

/* Inserat online / gespeichert: EKG-Linie, die in ein Häkchen übergeht */
.flash-live { display: flex; align-items: center; gap: 12px; }
.live-ekg { width: 64px; height: 22px; flex: none; }
.live-ekg polyline { fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 100; animation: ekg-draw 1.3s cubic-bezier(.5, 0, .3, 1) .2s both; }

/* Wartezimmer: Aufruf-Anzeige wie am Empfang, die umklappt */
.flash-wait { display: flex; align-items: center; gap: 16px; }
.flash-wait p { margin: 0; }
.wait-sign { perspective: 400px; flex: none; }
.wait-card { position: relative; width: 176px; height: 52px; transform-style: preserve-3d; animation: wait-flip .7s cubic-bezier(.4, 0, .2, 1) .9s both; }
.wait-face { position: absolute; inset: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; backface-visibility: hidden; -webkit-backface-visibility: hidden; font-size: 14px; }
.wait-front { flex-direction: column; gap: 0; background: #0F2238; color: #7FBEFE; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; }
.wait-front small { font-size: 10px; text-transform: uppercase; color: #9FB3C8; letter-spacing: .14em; }
.wait-front b { font-size: 18px; }
.wait-back { transform: rotateX(180deg); background: var(--blue-text); color: #fff; font-weight: 700; }
.wait-back .ico { width: 18px; height: 18px; }
@keyframes wait-flip { from { transform: rotateX(0); } to { transform: rotateX(180deg); } }
@media (max-width: 520px) { .flash-wait { flex-direction: column; align-items: flex-start; } }

/* Nachtdienst-Modus: Symbol dreht sich beim Umschalten, kleine Meldung, nachts schlägt der Puls ruhiger */
.theme-toggle.turn .ico { animation: icon-rise .6s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes icon-rise { from { transform: translateY(10px) rotate(-60deg); opacity: 0; } to { transform: none; opacity: 1; } }
.night-note { position: fixed; z-index: 50; top: 84px; right: 20px; display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 99px; background: #0F2238; color: #fff; font-size: 14px; box-shadow: 0 12px 32px rgba(1, 20, 45, .35); animation: note-in .4s cubic-bezier(.2, 1.3, .4, 1) both; max-width: calc(100vw - 32px); }
.night-note[hidden] { display: none; }
.night-note.out { animation: note-out .35s ease-in both; }
.night-note p { margin: 0; }
.night-ico { width: 28px; height: 28px; position: relative; overflow: hidden; flex: none; border-radius: 50%; background: #1B3A5C; }
.night-ico svg { position: absolute; inset: 4px; width: 20px; height: 20px; fill: #FFD66B; stroke: none; animation: moon-rise .9s cubic-bezier(.2, 1.1, .4, 1) .1s both; }
.night-note.day .night-ico { background: #FFE9A8; }
.night-note.day .night-ico svg { fill: none; stroke: #C77700; stroke-width: 2; stroke-linecap: round; }
@keyframes moon-rise { from { transform: translateY(18px); } to { transform: none; } }
@keyframes note-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes note-out { to { opacity: 0; transform: translateY(-10px); } }
html.dark-on .night-note { background: #1B3A5C; border: 1px solid #2C5179; }
@media (max-width: 600px) { .night-note { top: 12px; right: 16px; left: 16px; justify-content: center; } }
html.dark-on .logo:hover .heart { animation-duration: 1.1s; }
@media (prefers-reduced-motion: reduce) {
  .live-ekg polyline, .wait-card, .theme-toggle.turn .ico, .night-note, .night-ico svg, [data-progress].celebrate .pbar, [data-progress].celebrate .cl-done, [data-progress].celebrate .cl-done .heart, [data-progress].celebrate .cl-done .heart polyline { animation: none !important; }
  .wait-card { transform: rotateX(180deg); }
}
.stats .stat-n { font-variant-numeric: tabular-nums; }
.photo-big.photo-has-img { overflow: hidden; }
.default-image { margin-top: 10px; }

/* ---------------------------------------------------------------- Kantonsseiten */
.kanton-hero { background: var(--soft); border-bottom: 1px solid var(--line); }
.kh-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; padding-top: 40px; padding-bottom: 48px; }
.kh-text { flex: 1 1 420px; min-width: 0; }
.kh-text h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.1; letter-spacing: -1px; margin: 6px 0 14px; }
.kh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.kh-map { flex: 1 1 360px; min-width: 0; margin: 0; display: flex; justify-content: center; }
.kh-map > svg { width: 100%; max-width: 460px; height: auto; overflow: visible; }
.km-area { fill: var(--soft-2); fill-opacity: 0; animation: km-fill 1s ease-out 3.2s forwards; }
.km-outline { fill: none; stroke: var(--blue); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: km-draw 3.4s cubic-bezier(.5, 0, .3, 1) .3s forwards; }
.km-ring { fill: none; stroke: var(--blue); stroke-width: 2; opacity: 0; animation: km-ring 1.4s ease-out 3.7s infinite; }
.km-heart { transform-box: fill-box; transform-origin: 50% 55%; opacity: 0; animation: km-fill-o .3s ease-out 3.5s forwards, km-beat 1.4s ease-in-out 3.7s infinite; }
.km-heart path { fill: var(--blue); }
.km-heart polyline { fill: none; stroke: #fff; stroke-width: 8; stroke-linejoin: round; stroke-linecap: round; }
.km-label { font-size: 16px; font-weight: 600; fill: var(--ink); font-family: inherit; }
@keyframes km-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes km-fill { from { fill-opacity: 0; } to { fill-opacity: 1; } }
@keyframes km-fill-o { from { opacity: 0; } to { opacity: 1; } }
@keyframes km-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(.95); } 45% { transform: scale(1.12); } 60% { transform: scale(1); } }
@keyframes km-ring { 0% { r: 8; opacity: .7; } 100% { r: 34; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .km-outline { animation: none; stroke-dashoffset: 0; }
  .km-area { animation: none; fill-opacity: 1; }
  .km-heart { animation: none; opacity: 1; }
  .km-ring { animation: none; }
}
.lab-wrap { padding-top: 48px; }
.lab { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 16px 40px var(--shadow); background: var(--surface); }
.lab-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 16px 24px; background: var(--blue-text); color: #fff; font-size: 14px; }
.lab-head span:first-child { font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.lab-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.lab-table th, .lab-table td { text-align: left; padding: 16px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.lab-table thead th { border-top: 0; color: var(--ink-3); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.lab-table th:first-child { padding-left: 24px; }
.lab-table td:last-child { padding-right: 24px; width: 34%; color: var(--ink-2); }
.lab-table tbody th { font-weight: 600; }
.lab-table td:nth-child(3) { color: var(--ink-3); }
.lab-live { color: var(--blue-text); }
html.dark-on .lab-live { color: var(--blue-link); }
.lab-bar { display: block; width: 100%; max-width: 300px; height: auto; margin-bottom: 4px; }
.lab-bar rect { fill: var(--soft-2); }
.lab-bar line { stroke: var(--ink-3); stroke-width: 2; }
.lab-bar circle { fill: var(--blue); stroke: var(--surface); stroke-width: 2; }
.lab-hi, .lab-lo, .lab-eq { font-size: 13px; font-weight: 600; }
.lab-hi { color: var(--blue-link); }
.lab-lo { color: #9A4F05; }
html.dark-on .lab-lo { color: #F2B36B; }
.lab-eq { color: var(--ink-3); }
.lab-legend { margin: 0; padding: 12px 24px 16px; font-size: 13px; color: var(--ink-3); border-top: 1px dashed var(--field); }
.kz-wait { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; margin-top: 40px; padding: 30px; border-radius: 20px; background: #0F2238; color: #fff; }
.kz-board { flex: none; width: 220px; height: 112px; border-radius: 16px; background: #071628; border: 2px solid #1E3A5C; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.kz-board span { font-size: 12px; letter-spacing: 3px; color: #9FB3C8; }
.kz-board b { font-size: 48px; line-height: 1; color: #7FBEFE; letter-spacing: 6px; }
.kz-wait-text { flex: 1 1 320px; min-width: 0; }
.kz-wait-text h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.3; color: #fff; }
.kz-wait-text p { margin: 0; color: #C9D6E5; line-height: 1.6; }
.kz-btn { flex: none; background: #fff; color: #0270DD; font-weight: 700; }
.kz-btn:hover { background: #E6F1FF; color: #014A93; }
.kz-arten { margin-top: 20px; color: var(--ink-3); line-height: 1.9; }
.kz-nb { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.kz-nb-text { flex: 1 1 280px; min-width: 0; }
.kz-nb-text h2 { font-size: 24px; margin-top: 0; }
.kz-nb-text p { color: var(--ink-2); line-height: 1.6; }
.kz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kz-chips a { padding: 7px 14px; border-radius: 30px; background: var(--chip); color: var(--ink); text-decoration: none; font-size: 14px; }
.kz-chips a:hover { background: var(--soft-2); }
.kz-nb .swiss-map { flex: 1 1 420px; }
.swiss-map { position: relative; margin: 0 0 28px; min-width: 0; }
.swiss-map svg { display: block; width: 100%; height: auto; }
.swiss-map path { stroke: var(--surface); stroke-width: 1; stroke-linejoin: round; transition: fill .15s; }
.swiss-map .sm-on { fill: var(--soft-2); }
.swiss-map .sm-nb { fill: #B5D8FE; }
.swiss-map .sm-cur { fill: var(--blue); }
.swiss-map a:hover path, .swiss-map a:focus path { fill: #7FBEFE; }
.swiss-map a:hover .sm-cur { fill: var(--blue-text); }
.swiss-map .sm-off { fill: #D6DEE8; cursor: help; outline: none; }
.swiss-map .sm-off:hover, .swiss-map .sm-off:focus { fill: #BCC8D6; }
html.dark-on .swiss-map .sm-off { fill: #2A3D52; }
html.dark-on .swiss-map .sm-off:hover { fill: #3A5673; }
html.dark-on .swiss-map .sm-nb { fill: #24507E; }
.swiss-map figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.sm-tip { position: absolute; z-index: 5; margin: 0; max-width: 280px; padding: 8px 12px; border-radius: 10px; background: #0F2238; color: #fff; font-size: 13px; line-height: 1.45; pointer-events: none; box-shadow: 0 8px 20px rgba(15, 34, 56, .2); }
.sm-tip-joke { background: #0270DD; }
@media (max-width: 640px) { .kz-wait { padding: 22px; } .kz-board { width: 100%; } .lab-head { padding: 14px 18px; } }
.table-scroll { overflow-x: auto; }

/* ---------------------------------------------------------------- Suche: Umkreis, Sortierung, Karte */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.umkreis { display: flex; gap: 8px; align-items: end; min-width: 0; }
.umkreis > label:first-child { flex: 1; min-width: 0; }
.umkreis-km select { width: 92px; }
.result-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 20px; }
.result-bar .result-count { margin: 0; flex: 1 1 260px; }
.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-form label { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); margin: 0; }
.sort-form select { width: auto; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.view-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.view-switch a { padding: 8px 16px; font-size: 14px; text-decoration: none; color: var(--ink-2); }
.view-switch a[aria-current="page"] { background: var(--blue-text); color: #fff; }
.listings-map { max-width: 560px; margin: 0 auto 28px; }
.listings-map .sm-quiet { cursor: default; fill: var(--chip); }
.listings-map .sm-quiet:hover { fill: var(--chip); }
.lm-pt circle { fill: var(--blue); stroke: #fff; stroke-width: 2; transition: r .15s; }
.lm-pt text { fill: #fff; font-size: 9px; font-weight: 700; text-anchor: middle; font-family: inherit; pointer-events: none; }
.listings-map a:hover .lm-pt circle, .listings-map a:focus .lm-pt circle { fill: var(--blue-text); }
.listings-map a:hover path { fill: inherit; }
.card .km { color: var(--blue-link); font-weight: 600; }
.badge-new { background: var(--blue-text); color: #fff; }
.new-count { color: var(--blue-link); font-weight: 600; }

/* ---------------------------------------------------------------- Inserieren: Bildbearbeitung, Grundriss, Vorschau, Teilen, Vergleich */
.img-edit { display: none; position: absolute; right: 46px; top: 6px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(15, 34, 56, .78); color: #fff; font-size: 17px; line-height: 34px; padding: 0; cursor: pointer; }
.img-js .img-edit { display: block; }
.img-edit:hover, .img-edit:focus-visible { background: var(--blue-text); }
.img-editor { border: 0; border-radius: 18px; padding: 20px; max-width: min(620px, calc(100vw - 24px)); width: 100%; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.img-editor::backdrop { background: rgba(15, 34, 56, .55); }
.ie-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 12px; }
.ie-stage { display: flex; justify-content: center; background: repeating-conic-gradient(var(--chip) 0 25%, var(--surface) 0 50%) 0 0 / 20px 20px; border-radius: 12px; padding: 10px; }
.ie-stage canvas { max-width: 100%; cursor: move; touch-action: none; border-radius: 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.ie-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; margin: 14px 0; }
.ie-tools label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; margin: 0; }
.ie-tools select { width: auto; }
.ie-actions { display: flex; justify-content: flex-end; gap: 10px; }
.text-helper { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin: -6px 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--soft); }
.text-helper .hint { flex-basis: 100%; margin: 0; }
.floorplan-field { margin-top: 18px; }
.floorplan-current { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.floorplan-current img { width: 120px; height: 90px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.floorplan-img { display: block; width: 100%; max-width: 640px; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.sheet-floorplan img { max-width: 100%; max-height: 320px; object-fit: contain; }
.preview-banner { position: sticky; top: 0; z-index: 30; background: var(--blue-text); color: #fff; padding: 12px 0; font-size: 15px; }
.preview-frame { pointer-events: none; }
.share-pros { margin: 18px 0 24px; }
.share-form { margin-bottom: 28px; }
.share-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.share-list li { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.share-list li.is-new { border-color: var(--blue); box-shadow: 0 0 0 3px var(--soft-2); }
.share-list li > div:first-child { flex: 1 1 320px; min-width: 0; }
.share-url { width: 100%; margin-top: 6px; font-size: 14px; }
.share-actions { display: flex; gap: 12px; align-items: center; }
.share-note { margin: 0; color: var(--ink-2); font-size: 14px; }
.compare-pick { display: grid; gap: 10px; padding: 16px 18px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.compare-options { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.compare-pick button { justify-self: start; }
.compare-tools { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.compare-head { display: none; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; table-layout: fixed; }
.compare-table th, .compare-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; text-align: left; font-size: 15px; }
.compare-table thead th { border-top: 0; vertical-align: bottom; }
.compare-table tbody th { width: 170px; color: var(--ink-3); font-weight: 600; font-size: 14px; }
.compare-table tbody tr:nth-child(odd) td, .compare-table tbody tr:nth-child(odd) th { background: var(--soft); }
.compare-photo { display: block; margin-bottom: 10px; }
.compare-table thead th:first-child { width: 170px; }
.compare-photo .photo { aspect-ratio: 16 / 9; height: auto; border-radius: 12px; overflow: hidden; margin: 0; }
.compare-photo .photo img { width: 100%; height: 100%; object-fit: cover; }
.compare-title { display: block; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.35; margin-bottom: 4px; }
@media print {
  .compare-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
  .compare-head .logo { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; }
  .compare-head .heart { width: 26px; height: 24px; }
  .compare-table { min-width: 0; font-size: 12px; }
  .compare-table th, .compare-table td { padding: 7px 8px; font-size: 12px; }
  .compare-table tbody tr:nth-child(odd) td, .compare-table tbody tr:nth-child(odd) th { background: #F5F9FE !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .compare-photo .photo { max-height: 110px; }
}
/* Glossar */
dfn.gl { font-style: normal; text-decoration: underline dotted var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: help; }
dfn.gl:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
.gl-tip { position: absolute; z-index: 60; padding: 10px 13px; border-radius: 10px; background: #0F2238; color: #fff; font-size: 14px; line-height: 1.45; box-shadow: 0 10px 24px rgba(15, 34, 56, .25); pointer-events: none; }
@media print { dfn.gl { text-decoration: none; } .gl-tip { display: none !important; } }

/* ---------------------------------------------------------------- Puls-Check (Feedback) */
.fb { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; transition: opacity .4s; }
.fb.fb-gone { opacity: 0; }
.fb-toggle { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px var(--shadow); opacity: .92; }
.fb-toggle:hover, .fb-toggle:focus-visible, .fb.is-open .fb-toggle { opacity: 1; color: var(--blue-link); border-color: var(--blue); }
.fb-toggle svg { width: 20px; height: 18px; fill: var(--blue); }
.fb-toggle:hover svg { animation: heart-beat .9s ease-in-out infinite; }
.fb-panel { position: relative; width: min(330px, calc(100vw - 32px)); padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(15, 34, 56, .2); display: grid; gap: 10px; }
.fb-close { position: absolute; right: 8px; top: 6px; width: 32px; height: 32px; border: 0; background: none; color: var(--ink-3); font-size: 22px; cursor: pointer; border-radius: 50%; }
.fb-close:hover { background: var(--chip); }
.fb-title { margin: 0; padding-right: 28px; font-weight: 700; }
.fb-scale { border: 0; padding: 0; margin: 0; display: flex; gap: 6px; }
.fb-scale label { position: relative; cursor: pointer; margin: 0; }
.fb-scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb-heart svg { width: 38px; height: 34px; fill: var(--soft-2); stroke: var(--blue); stroke-width: 4; transition: fill .12s, transform .12s; }
.fb-scale label.on .fb-heart svg { fill: var(--blue); }
.fb-scale label:hover .fb-heart svg { transform: scale(1.12); }
.fb-scale input:focus-visible + .fb-heart svg { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.fb-scale-label { margin: -4px 0 0; font-size: 13px; color: var(--ink-3); min-height: 1.4em; }
.fb-topics { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fb-topics legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.fb-chip { margin: 0; cursor: pointer; }
.fb-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb-chip span { display: inline-block; padding: 5px 11px; border-radius: 20px; background: var(--chip); font-size: 13px; border: 1px solid transparent; }
.fb-chip input:checked + span { background: var(--soft-2); border-color: var(--blue); color: var(--blue-link); font-weight: 600; }
.fb-chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.fb-comment textarea { width: 100%; font-size: 14px; min-height: 0; }
.fb-panel .btn { justify-self: start; }
.fb-thanks { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 24px var(--shadow); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.fb-thanks svg { width: 20px; height: 18px; fill: var(--blue); animation: heart-beat .9s ease-in-out 3; }
@media (max-width: 560px) { .fb { right: 10px; bottom: 10px; } .fb-toggle span { display: none; } .fb-toggle { padding: 0 10px; } }
@media print { .fb { display: none !important; } }

/* ---------------------------------------------------------------- Admin: Cockpit, Mitglieder, Inserate, Finanzen */
.ck-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 8px 0 24px; }
.ck-totals > * { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--ink); }
.ck-totals b { font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ck-totals span { font-size: 13px; color: var(--ink-3); }
.ck-totals .ck-todo { border-color: #E0A030; background: #FFF8EC; }
html.dark-on .ck-totals .ck-todo { background: #3A2A10; }
.ck-totals .ck-neg b { color: #B42318; }
.ck-totals .ck-pos b { color: var(--ok); }
.ck-table td b { font-variant-numeric: tabular-nums; }
.tr { font-size: 12px; font-weight: 600; margin-left: 6px; white-space: nowrap; }
.tr-up { color: #157347; } .tr-down { color: #B42318; } .tr-eq { color: var(--ink-3); }
html.dark-on .tr-up { color: #7FD8A4; } html.dark-on .tr-down { color: #FF9C94; }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.funnel li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.funnel .pbar { grid-column: 1 / -1; height: 10px; }
.fn-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.fn-n small { font-weight: 500; color: var(--ink-3); margin-left: 6px; }
.ck-fb-avg { font-size: 15px; margin-top: 0; }
.ck-fb-avg b { font-size: 28px; color: var(--blue-link); }
.ck-comments { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.admin-filter { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; padding: 14px 16px; margin: 4px 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.admin-filter label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; margin: 0; }
.admin-filter label.check { flex-direction: row; align-items: center; }
.admin-filter input[type=search] { min-width: 200px; }
.admin-filter select, .admin-filter input { min-height: 40px; }
.note-form { display: grid; gap: 4px; min-width: 160px; }
.note-form textarea { font-size: 13px; min-height: 0; padding: 6px 8px; }
.note-form button { justify-self: start; }
.badge.sp-aktiv { background: var(--ok-bg); color: var(--ok); }
.badge.sp-pausiert { background: #FFF4DB; color: #7A4B00; }
.badge.sp-vermittelt { background: var(--soft-2); color: var(--blue-link); }
.badge.sp-geloescht { background: var(--chip); color: var(--ink-3); }
.fin-months td { vertical-align: middle; }
.fin-months tr.is-sel td { background: var(--soft-2); }
.fin-bars { display: grid; gap: 2px; margin-top: 4px; max-width: 160px; }
.fin-bars span { display: block; height: 4px; border-radius: 2px; width: 0; }
.fin-in { background: #2E9E63; } .fin-out { background: #E0A030; }
td.neg { color: #B42318; }
html.dark-on td.neg { color: #FF9C94; }
.fin-add-title { margin-top: 24px !important; }
.fin-form { margin-top: 10px; }
.fb-scale label { display: inline-flex; }
.fb-topics label.fb-chip { display: inline-flex; width: auto; }
.fb-scale, .fb-topics { flex-direction: row; flex-wrap: wrap; border-radius: 0; }
.fb-scale { gap: 4px; }
.fb { flex-direction: column-reverse; }
.fb-scale label.on .fb-heart svg, .fb-scale label.on .fb-heart svg path { fill: var(--blue); }
.preview-box { margin: 0 0 20px; padding: 14px 16px; border: 2px dashed var(--blue); border-radius: 14px; background: var(--soft); }
.preview-box .share-list { margin: 10px 0 0; }
.admin-only { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #FFF8EC; border: 1px solid #F0D9A8; }
html.dark-on .admin-only { background: #3A2A10; border-color: #6B5320; }
.badge.sp-vorschau { background: #FFF4DB; color: #7A4B00; }

/* ---------------------------------------------------------------- Angebote / Gesuche */
.dir-switch { display: inline-flex; gap: 4px; padding: 5px; margin: 6px 0 18px; border-radius: 999px; background: var(--soft-2); }
.dir-switch a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); text-decoration: none; min-height: 44px; box-sizing: border-box; }
.dir-switch a .ico { width: 18px; height: 18px; fill: none; stroke: var(--blue-link); stroke-width: 2.2; }
.dir-switch a[aria-current="page"] { background: var(--blue-text); color: #fff; box-shadow: 0 4px 12px rgba(2, 112, 221, .3); }
.dir-switch a[aria-current="page"] .ico { stroke: #fff; }
.dir-switch a:not([aria-current]):hover { background: var(--surface); color: var(--ink); }
.dir-n { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .25); }
.dir-switch a:not([aria-current]) .dir-n { background: var(--surface); color: var(--blue-link); }
.photo-gesuch { display: flex; align-items: center; justify-content: center; background: var(--soft); }
.photo-gesuch svg { width: 64px; height: 64px; fill: none; stroke: #7C93AD; stroke-width: 1.6; stroke-linecap: round; }
.contact-price-sm { font-size: 22px; }
.dir-pick .dir-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.dir-tile { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); cursor: pointer; margin: 0; }
.dir-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dir-ico { grid-row: span 2; width: 46px; height: 46px; border-radius: 14px; background: var(--soft-2); display: flex; align-items: center; justify-content: center; }
.dir-ico .ico { width: 24px; height: 24px; fill: none; stroke: var(--blue-link); stroke-width: 2; }
.dir-t { font-weight: 700; font-size: 17px; color: var(--ink); }
.dir-s { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.dir-tile:has(input:checked) { border: 2px solid var(--blue-text); box-shadow: 0 0 0 4px var(--soft-2); }
.dir-tile:has(input:checked) .dir-ico { background: var(--blue-text); }
.dir-tile:has(input:checked) .dir-ico .ico { stroke: #fff; }
.dir-tile:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
/* Felder je nach Angebot/Gesuch (ohne JavaScript, per :has) */
.form-wide:has(input[name="direction"][value="gesuch"]:checked) [data-dir="angebot"] { display: none !important; }
.form-wide:has(input[name="direction"][value="angebot"]:checked) [data-dir="gesuch"] { display: none !important; }
/* Instagram-Story-Freigabe (Variante B) */
.insta-card { display: flex; gap: 18px; align-items: center; margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.insta-card:has(input:checked) { border: 2px solid var(--blue-text); }
.insta-mini { width: 72px; height: 128px; flex: none; border-radius: 12px; background: #0383FE; padding: 8px; box-sizing: border-box; display: flex; flex-direction: column; gap: 5px; }
.im-a { height: 5px; width: 32px; border-radius: 3px; background: #fff; }
.im-b { height: 4px; width: 24px; border-radius: 2px; background: #BFDBFE; margin-bottom: 3px; }
.im-card { flex: 1; border-radius: 7px; background: #fff; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.im-1 { height: 4px; width: 22px; border-radius: 2px; background: #0F2238; }
.im-2 { height: 6px; width: 42px; border-radius: 3px; background: #0F2238; }
.im-3 { height: 3px; width: 36px; border-radius: 2px; background: #C9D6E5; }
.insta-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.insta-switch { display: flex !important; flex-direction: row !important; align-items: center; justify-content: space-between; gap: 12px; margin: 0; cursor: pointer; }
.insta-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.insta-title .ico { width: 20px; height: 20px; fill: none; stroke: var(--blue-link); stroke-width: 2; }
.insta-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.insta-switch .sw { position: relative; flex: none; width: 52px; height: 30px; border-radius: 999px; background: #C9D6E5; transition: background .15s; }
.insta-switch .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(15, 34, 56, .25); transition: left .15s; }
.insta-switch input:checked + .sw { background: var(--blue-text); }
.insta-switch input:checked + .sw::after { left: 25px; }
.insta-switch input:focus-visible + .sw { outline: 3px solid var(--blue); outline-offset: 2px; }
.insta-switch input:disabled + .sw { opacity: .45; }
.insta-off { display: none; }
.form-wide:has(input[name="visibility"][value="netzwerk"]:checked) .insta-off { display: block; color: var(--ink-2); }
.form-wide:has(input[name="visibility"][value="netzwerk"]:checked) .insta-card { opacity: .7; }
@media (max-width: 560px) { .insta-mini { display: none; } }
.insta-note { display: flex; align-items: center; gap: 6px; }
.insta-note .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.match-box { margin: 12px 0; padding: 14px 16px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.match-head { margin: 0 0 8px; line-height: 1.45; }
.match-head .ico { width: 17px; height: 17px; fill: none; stroke: var(--blue-link); stroke-width: 2.2; vertical-align: -3px; margin-right: 4px; }
.match-box ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.match-box li { display: flex; flex-direction: column; font-size: 14px; }
.match-box li span { font-size: 12px; color: var(--ink-3); }
.match-box > a { font-size: 13px; font-weight: 600; }

/* PDF-Download: Hinweis während der Erstellung */
.pdf-busy { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(15, 34, 56, .35); }
.pdf-busy-box { display: inline-flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: 14px; background: #fff; color: #0F2238; font-weight: 600; box-shadow: 0 12px 32px rgba(15, 34, 56, .25); }
.pdf-spin { width: 20px; height: 20px; border-radius: 50%; border: 3px solid #DCEBFB; border-top-color: #0270DD; animation: pdf-spin .8s linear infinite; }
@keyframes pdf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pdf-spin { animation: none; } }
/* Im PDF-Export Mehrspalten-Listen als Raster setzen (Spaltensatz wird im Bild sonst ungleich verteilt) */
.pdf-export .sheet-list { columns: auto; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }

/* Vademecum: Tabellen in Artikeln */
.vm-table { margin: 24px 0 28px; }
.vm-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.vm-table caption { text-align: left; font-weight: 700; padding: 0 0 10px; color: var(--ink); }
.vm-table th, .vm-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.vm-table thead th { font-size: 13px; color: var(--ink-3); font-weight: 600; border-bottom: 2px solid var(--line); }
.vm-table tbody th { font-weight: 600; color: var(--ink); }
.vm-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vm-table tbody tr:last-child th, .vm-table tbody tr:last-child td { border-bottom: 0; }
.vm-table figcaption { font-size: 13px; color: var(--ink-3); margin-top: 8px; line-height: 1.5; }
@media print { .vm-table tr { break-inside: avoid; } }
@media (max-width: 600px) { .vm-table table { font-size: 14px; } .vm-table tbody th { min-width: 170px; } }

/* Vademecum: interaktiver Pensionskassen-Zinsrechner */
.pkz { margin: 32px 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 16px 40px var(--shadow); overflow: hidden; }
.pkz-head { padding: 24px 26px 6px; }
.vm-body .pkz .pkz-head h2 { margin: 2px 0 6px; font-size: 24px; }
.pkz-head p { margin: 0; color: var(--ink-2); }
.pkz-kicker { font-size: 12px !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-link) !important; }
.pkz-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 18px; padding: 18px 26px 22px; }
.pkz-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pkz-form input, .pkz-form select { font: inherit; font-size: 17px; font-weight: 600; color: var(--ink); padding: 10px 12px; border: 1px solid var(--field, #C9D6E5); border-radius: 10px; background: var(--surface); min-height: 46px; }
.pkz-form input:focus, .pkz-form select:focus { outline: 3px solid rgba(3, 131, 254, .25); border-color: var(--blue); }
.pkz-form .hint { font-weight: 400; font-size: 12.5px; }
.pkz-out { padding: 0 26px 24px; }
.pkz-hero { background: #0F2238; color: #fff; border-radius: 18px; padding: 24px 26px; margin-bottom: 20px; }
.pkz-hero p { margin: 0; }
.pkz-hero-label { font-size: 14px; color: #A9C3E0; }
.pkz-hero-num { font-size: clamp(34px, 7vw, 52px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 4px 0 6px !important; color: #fff; }
.pkz-hero-sub { font-size: 15px; color: #DCE6F2; line-height: 1.5; }
.pkz-equal .pkz-hero { background: var(--soft); color: var(--ink); }
.pkz-equal .pkz-hero-label, .pkz-equal .pkz-hero-sub { color: var(--ink-2); }
.pkz-equal .pkz-hero-num { color: var(--ink); }
.pkz-bars { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.pkz-bar-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; flex-wrap: wrap; }
.pkz-bar-top > b { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.pkz-track { height: 22px; border-radius: 11px; background: var(--soft); overflow: hidden; }
.pkz-fill { height: 100%; border-radius: 11px; transition: width .35s ease; }
.pkz-fill-own { background: #9CC8F7; }
.pkz-fill-ref { background: #0270DD; }
.pkz-chart { margin: 0 0 12px; }
.pkz-chart svg { width: 100%; height: auto; display: block; }
.pkz-grid { stroke: var(--line); stroke-width: 1; }
.pkz-axis { fill: var(--ink-3); font-size: 12px; font-family: inherit; }
.pkz-line { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.pkz-line-own { stroke: #9CC8F7; }
.pkz-line-ref { stroke: #0270DD; }
.pkz-gap { fill: rgba(2, 112, 221, .14); }
.pkz-dot-own { fill: #9CC8F7; }
.pkz-dot-ref { fill: #0270DD; }
.pkz-chart figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--ink-3); }
.pkz-key { display: inline-block; width: 18px; height: 6px; border-radius: 3px; margin-left: 6px; }
.pkz-key-own { background: #9CC8F7; margin-left: 0; }
.pkz-key-ref { background: #0270DD; }
.pkz-key-gap { background: rgba(2, 112, 221, .2); height: 12px; }
@media (max-width: 600px) { .pkz-head, .pkz-form, .pkz-out { padding-left: 16px; padding-right: 16px; } .pkz-hero { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { .pkz-fill { transition: none; } }
@media print { .pkz-form { display: none; } .pkz { box-shadow: none; } }

/* Zinsrechner: Artikel-Typografie (.vm-body p/h2) gezielt überschreiben */
.vm-body .pkz p { margin: 0; }
.vm-body .pkz .pkz-head p { color: var(--ink-2); font-size: 16px; }
.vm-body .pkz .pkz-kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-link); }
.vm-body .pkz .pkz-hero-label { font-size: 15px; color: #A9C3E0; }
.vm-body .pkz .pkz-hero-num { font-size: clamp(36px, 7vw, 54px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 6px 0 8px; color: #fff; }
.vm-body .pkz .pkz-hero-sub { font-size: 16px; color: #DCE6F2; line-height: 1.5; }
.vm-body .pkz.pkz-equal .pkz-hero-label, .vm-body .pkz.pkz-equal .pkz-hero-sub { color: var(--ink-2); }
.vm-body .pkz.pkz-equal .pkz-hero-num { color: var(--ink); }
.vm-body .pkz .hint { font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.vm-body .pkz .pkz-out > .hint { margin-top: 6px; }

:root[data-theme="dark"] .pkz-hero { background: #17406E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pkz-hero { background: #17406E; } }

/* Vademecum: Kategorien als Filter (Mehrfachauswahl) – gleiche Pillen wie zuvor, anklickbar */
.vm-rubrics li { padding: 0; }
.vm-rubrics li.vm-reset { background: none; border: 0; }
.vm-rubric-link { display: inline-block; line-height: 1.5; min-height: 36px; padding: 6px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; }
.vm-rubric-link b { color: var(--ink); }
.vm-rubrics li:has(.vm-rubric-link:hover) { border-color: var(--blue); }
.vm-rubrics li:has(.is-on) { background: var(--soft-2); border-color: var(--blue-text); }
.vm-rubric-link:focus-visible { outline: 3px solid rgba(3, 131, 254, .35); outline-offset: 2px; }
.vm-rubric-link .vm-chip-check { margin-right: 6px; vertical-align: -2px; }
.vm-chip-check { width: 15px; height: 15px; fill: none; stroke: var(--blue-text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.vm-reset a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 4px; font-size: 13px; color: var(--ink-3); }
.vm-reset a:hover { color: var(--ink); }
.vm-filter-info { margin: 0 0 18px; font-size: 14px; color: var(--ink-2); }

/* ================================================================ Praxis-EKG (Startseite) */
.ekg { --ekg-land: #DCEBFB; --ekg-edge: #FFFFFF; --ekg-dot: #0270DD; --ekg-new: #0383FE; --ekg-bg: linear-gradient(180deg, #F2F7FD 0%, var(--bg, #fff) 100%);
  background: var(--ekg-bg); padding: 56px 0; overflow: hidden; }
.ekg-inner { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; grid-template-areas: 'head map' 'side map'; column-gap: 36px; align-items: center; }
.ekg-head { grid-area: head; align-self: end; }
.ekg-side { grid-area: side; align-self: start; }
.ekg-map { grid-area: map; }
.ekg-text h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; margin: 6px 0 14px; letter-spacing: -.02em; }
.ekg-lead { color: var(--ink-2); line-height: 1.65; margin: 0 0 18px; }
.ekg-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ekg-chip { font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.ekg-chip:hover { border-color: var(--blue); }
.ekg-chip.is-on { background: #0F2238; border-color: #0F2238; color: #fff; }
.ekg-ticker { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ekg-ticker a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.4; min-height: 44px; }
.ekg-ticker a:hover { border-color: var(--blue); }
.ekg-tsub { color: var(--ink-3); font-size: 12px; }
.ekg-tdot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ekg-dot); margin: 0 1px; }
.ekg-tdot.is-new { width: 12px; height: 12px; background: var(--ekg-new); box-shadow: 0 0 0 6px rgba(3, 131, 254, .18); margin: 0; }
.ekg-tdot.is-net { background: transparent; border: 1.5px dashed var(--ekg-dot); width: 12px; height: 12px; margin: 0; }
.ekg-more { margin: 16px 0 0; font-weight: 600; }
.ekg-map { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: 0 18px 44px var(--shadow); }
.ekg-stage { touch-action: pan-y; cursor: default; border-radius: 14px; overflow: hidden; }
.ekg-map.is-zoomed .ekg-stage { touch-action: none; cursor: grab; }
.ekg-stage svg { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; }
.ekg-land path { fill: var(--ekg-land); stroke: var(--ekg-edge); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ekg-pt { cursor: pointer; }
.ekg-pt:focus { outline: none; }
.ekg-pt:focus-visible .ekg-dot { stroke: #0F2238; stroke-width: 2.5; }
.ekg-dot { fill: var(--ekg-dot); stroke: #fff; stroke-width: 1.4; vector-effect: non-scaling-stroke; transition: r .15s; }
.ekg-halo { fill: rgba(3, 131, 254, .14); }
.ekg-hit { fill: transparent; }
.ekg-n { fill: #fff; font-size: 6.4px; font-weight: 700; text-anchor: middle; font-family: inherit; pointer-events: none; }
.ekg-pt.is-new .ekg-dot { fill: var(--ekg-new); }
.ekg-ring { fill: none; stroke: var(--ekg-new); stroke-width: 1.4; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: ekg-beat 2.4s ease-out infinite; opacity: 0; }
.ekg-ring2 { animation-delay: .5s; }
@keyframes ekg-beat { 0% { transform: scale(1); opacity: .7; } 70% { transform: scale(4.2); opacity: 0; } 100% { opacity: 0; } }
.ekg-net .ekg-area { fill: rgba(2, 112, 221, .10); stroke: var(--ekg-dot); stroke-width: 1.3; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.ekg-net:hover .ekg-area, .ekg-net:focus-visible .ekg-area { fill: rgba(2, 112, 221, .2); }
.ekg-pt.is-off { display: none; }
.ekg-pt:hover .ekg-dot { stroke: #0F2238; }
.ekg-me circle { fill: #0F2238; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.ekg-zoom { position: absolute; z-index: 6; right: 30px; top: 30px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px var(--shadow); background: var(--surface); }
.ekg-zoom button { width: 44px; height: 44px; border: 0; background: var(--surface); color: var(--ink); font: inherit; font-size: 20px; font-weight: 600; cursor: pointer; }
.ekg-zoom button + button { border-top: 1px solid var(--line); }
.ekg-zoom button:hover { background: var(--soft); }
.ekg-zoom .ekg-ch { font-size: 12px; letter-spacing: .04em; }
.ekg-near { position: absolute; z-index: 6; left: 30px; top: 30px; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px var(--shadow); }
.ekg-near svg { width: 16px; height: 16px; fill: none; stroke: var(--blue-text); stroke-width: 2.2; stroke-linecap: round; }
.ekg-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.ekg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ekg-k { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.ekg-k-dot { background: var(--ekg-dot); }
.ekg-k-new { background: var(--ekg-new); box-shadow: 0 0 0 4px rgba(3, 131, 254, .2); }
.ekg-k-net { width: 12px; height: 12px; border: 1.5px dashed var(--ekg-dot); }
.ekg-card { position: absolute; z-index: 5; width: 280px; max-height: 360px; overflow: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(15, 34, 56, .2); padding: 10px; }
.ekg-x { position: absolute; right: 6px; top: 4px; width: 36px; height: 36px; border: 0; background: none; color: var(--ink-3); font-size: 22px; cursor: pointer; }
.ekg-it { display: flex; flex-direction: column; gap: 2px; padding: 10px 40px 10px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.ekg-it + .ekg-it { border-top: 1px solid var(--line); border-radius: 0; padding-right: 10px; }
.ekg-it:hover { background: var(--soft); }
.ekg-kind { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-link); }
.ekg-kind b { color: var(--ekg-new); }
.ekg-title { font-weight: 700; font-size: 15px; line-height: 1.35; }
.ekg-place { font-size: 13px; color: var(--ink-3); }
.ekg-all { display: block; padding: 8px 10px; font-size: 14px; font-weight: 600; }
.ekg-hint { margin: 6px 10px 6px; font-size: 13px; color: var(--ink-3); }
.view-switch .ekg-link { margin-left: 4px; }
.ekg-admin { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 14px 16px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); font-size: 14px; }
.ekg-admin input { width: 76px; font: inherit; padding: 6px 8px; border: 1px solid var(--field, #C9D6E5); border-radius: 8px; margin: 0 4px; }
@media (max-width: 900px) {
  .ekg-inner { grid-template-columns: 1fr; grid-template-areas: 'head' 'map' 'side'; row-gap: 18px; }
}
@media (max-width: 640px) {
  .ekg { padding-top: 36px; }
  .ekg-map { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; padding: 12px; box-shadow: none; }
  .ekg-zoom { right: 20px; top: 20px; }
  .ekg-near { left: 20px; top: 20px; }
  .ekg-card { position: relative; left: auto !important; top: auto !important; width: auto; max-height: none; margin-top: 10px; border-radius: 16px; box-shadow: 0 8px 24px var(--shadow); border-color: var(--blue); }
}
@media (prefers-reduced-motion: reduce) { .ekg-ring { animation: none; opacity: 0; } }
:root[data-theme="dark"] .ekg { --ekg-land: #17345A; --ekg-edge: #0B1A2C; --ekg-dot: #6CB4FF; --ekg-new: #8FD0FF; --ekg-bg: linear-gradient(180deg, #0B1A2C 0%, var(--bg) 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ekg { --ekg-land: #17345A; --ekg-edge: #0B1A2C; --ekg-dot: #6CB4FF; --ekg-new: #8FD0FF; --ekg-bg: linear-gradient(180deg, #0B1A2C 0%, var(--bg) 100%); } }
:root[data-theme="dark"] .ekg-chip.is-on { background: #17406E; border-color: #17406E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ekg-chip.is-on { background: #17406E; border-color: #17406E; } }
@media print { .ekg { display: none; } }

/* ================================================================ Praxis gründen (Leitfaden /praxis-gruenden) */
.pg-hero { background: linear-gradient(180deg, var(--soft) 0%, var(--bg) 100%); padding: 48px 0 40px; }
.pg-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px; align-items: start; }
.pg-hero-text { padding-top: 8px; }
.pg-hero h1 { font-size: clamp(30px, 4.2vw, 46px); margin: 0 0 16px; letter-spacing: -0.03em; }
.pg-facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--ink-2); }
.pg-facts li { display: flex; align-items: center; gap: 8px; }
.pg-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; }
.pg-pulse { display: block; width: 100%; max-width: 560px; margin-top: 28px; overflow: visible; }
.pg-pulse polyline { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.pg-pulse-done { stroke: var(--blue); }
.pg-pulse-todo { stroke: var(--field); stroke-dasharray: 2 7; }
.pg-pulse circle { fill: var(--blue); }
.pg-pulse text { font: 600 12px Poppins, sans-serif; fill: var(--blue-text); }
.pg-pulse .pg-pulse-end { fill: var(--ink-3); }
html.dark-on .pg-pulse text { fill: #6CB4FF; }
.pg-form { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 18px 44px var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.pg-form h2 { font-size: 19px; margin: 0; }
.pg-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pg-form legend, .pg-row label { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 6px; }
.pg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pg-row label { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.pg-row select { font: inherit; font-size: 15px; padding: 10px 12px; min-height: 46px; border-radius: 12px; border: 1px solid var(--field); background: var(--surface); color: var(--ink); width: 100%; }
.pg-pills > div { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-pills label, .pg-seg label { position: relative; cursor: pointer; }
.pg-pills input, .pg-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pg-pills span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--field); font-size: 14px; font-weight: 600; background: var(--surface); }
.pg-pills input:checked + span { background: var(--blue-text); border-color: var(--blue-text); color: #fff; }
.pg-seg > div { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--chip); }
.pg-seg label { flex: 1; }
.pg-seg span { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: center; }
.pg-seg input:checked + span { background: #0F2238; color: #fff; }
html.dark-on .pg-seg input:checked + span { background: #E8EFF7; color: #0F2238; }
.pg-pills input:focus-visible + span, .pg-seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.pg-form .btn { min-height: 50px; font-size: 16px; }

.pg-bar { background: #0F2238; color: #fff; padding: 20px 0; }
html.dark-on .pg-bar { background: #0B2742; }
.pg-bar-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.pg-bar-text { flex: 1; min-width: 240px; }
.pg-bar-text p { margin: 0; font-size: 13px; color: #BFD6F2; }
.pg-bar .pg-bar-combo { font-size: 18px; font-weight: 600; color: #fff; margin-top: 2px; }
.pg-progress { width: 280px; max-width: 100%; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #BFD6F2; }
.pg-progress-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.pg-progress-fill { height: 100%; width: 0; border-radius: 999px; background: #0383FE; transition: width .4s ease; }
.pg-bar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pg-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.pg-btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.pg-btn-light { background: #fff; color: #0F2238; }
.pg-btn-light:hover { background: #E6F1FF; color: #0F2238; }

.pg-main { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 44px; align-items: start; padding-top: 44px; padding-bottom: 20px; }
.pg-aside { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 18px; }
.pg-nav { display: flex; flex-direction: column; gap: 2px; }
.pg-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-size: 14px; }
.pg-nav a:hover { background: var(--soft); color: var(--ink); }
.pg-nav-num { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--field); color: var(--blue-text); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.pg-nav a.is-done .pg-nav-num { background: var(--blue-text); border-color: var(--blue-text); color: #fff; }
.pg-nav-t { flex: 1; }
.pg-nav-c { font-size: 12px; color: var(--ink-3); }
.pg-stellen { padding: 18px; border-radius: 18px; background: var(--soft); }
.pg-stellen-k { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-link); }
.pg-stellen-t { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.pg-stellen-p { margin: 0; font-size: 14px; color: var(--ink-2); }
.pg-stellen ul { list-style: none; margin: 0; padding: 0; }
.pg-stellen li a { display: flex; flex-direction: column; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pg-stellen li a b { font-size: 14px; font-weight: 600; }
.pg-stellen li a span { font-size: 12px; color: var(--ink-3); }
.pg-stellen li a:hover b { color: var(--blue-link); }

.pg-plan { position: relative; }
.pg-plan::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 60px; width: 2px; background: var(--soft-2); }
.pg-phase { position: relative; padding-bottom: 36px; scroll-margin-top: 20px; }
.pg-ph-head { display: flex; align-items: center; gap: 16px; }
.pg-num { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 2px solid var(--blue-text); color: var(--blue-text); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; flex: none; position: relative; z-index: 1; }
.pg-phase.is-done .pg-num { background: var(--blue-text); color: #fff; }
.pg-ph-t { flex: 1; min-width: 0; }
.pg-ph-t h2 { font-size: 24px; margin: 0; }
.pg-when { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-link); }
.pg-late { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #FFF1E6; color: #9A4A00; letter-spacing: 0; text-transform: none; }
.pg-ph-count { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.pg-intro { margin: 12px 0 18px 60px; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 720px; }
.pg-steps { list-style: none; margin: 0 0 0 60px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pg-step { display: flex; gap: 14px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.pg-check { position: relative; display: flex; padding-top: 1px; cursor: pointer; }
.pg-check input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; cursor: pointer; }
.pg-box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--field); background: var(--surface); display: flex; align-items: center; justify-content: center; color: transparent; flex: none; }
.pg-box .ico { width: 16px; height: 16px; stroke-width: 3; }
.pg-check input:checked + .pg-box { background: var(--blue-text); border-color: var(--blue-text); color: #fff; }
.pg-check input:focus-visible + .pg-box { outline: 3px solid var(--blue); outline-offset: 2px; }
.pg-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pg-body > p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.pg-t-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pg-t-row h3 { font-size: 16px; margin: 0; }
.pg-step.is-done .pg-t-row h3 { color: var(--ink-3); text-decoration: line-through; }
.pg-badge { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pg-badge-must { background: #FFF1E6; color: #8A4300; }
.pg-badge-kanton { background: #EEF0FF; color: #3D3FA8; }
.pg-badge-tip { background: var(--soft-2); color: var(--blue-dark); }
.pg-badge-opt { background: var(--chip); color: var(--ink-2); }
html.dark-on .pg-badge-must, html.dark-on .pg-late { background: #3A2410; color: #FFCB99; }
html.dark-on .pg-badge-kanton { background: #24264F; color: #C7C9FF; }
.pg-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; }
.pg-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; min-height: 36px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; background: var(--soft-2); color: var(--blue-link); }
.pg-link-ext { background: var(--surface); border: 1px solid var(--soft-2); }
.pg-link .ico { width: 14px; height: 14px; }
.pg-link:hover { color: var(--blue-dark); border-color: var(--blue); }
.pg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pg-note { padding: 14px 16px; border-radius: 12px; background: var(--soft); font-size: 13px; color: var(--ink-2); }
.pg-note p { margin: 0 0 6px; color: var(--ink); }
.pg-note ul { margin: 0; padding-left: 18px; line-height: 1.6; }
.pg-note-warn { background: #FFF7EF; border: 1px solid #FBDDBF; color: #5C3A12; }
.pg-note-warn p { color: #8A4300; }
html.dark-on .pg-note-warn { background: #2A1C0E; border-color: #5A3A17; color: #F3D9BC; }
html.dark-on .pg-note-warn p { color: #FFCB99; }
.pg-ahv { display: flex; gap: 18px; flex-wrap: wrap; padding: 16px; border-radius: 14px; background: #0F2238; color: #fff; }
html.dark-on .pg-ahv { background: #0B2742; }
.pg-ahv-in { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #BFD6F2; }
.pg-ahv-field { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 0 12px; max-width: 240px; }
.pg-ahv-field span { color: #3A4E66; font-weight: 600; }
.pg-ahv-field input { font: inherit; font-size: 18px; font-weight: 600; border: 0; padding: 10px 0; width: 100%; color: #0F2238; background: transparent; }
.pg-ahv-field input:focus { outline: none; }
.pg-ahv-field:focus-within { outline: 3px solid #6CB4FF; outline-offset: 2px; }
.pg-ahv-out { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.pg-ahv-out > span { font-size: 13px; color: #BFD6F2; }
.pg-ahv-out output { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.pg-ahv-out small { font-size: 12px; line-height: 1.5; color: #BFD6F2; }
.pg-disclaimer { margin-left: 60px; }

.pg-cta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 20px; padding-bottom: 48px; }
.pg-cta a { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px; background: var(--soft); text-decoration: none; color: var(--ink); }
.pg-cta a span { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.pg-cta a em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--blue-link); margin-top: auto; }
.pg-cta b { font-size: 17px; }
.pg-cta .pg-cta-dark { background: #0F2238; color: #fff; }
.pg-cta .pg-cta-dark span { color: #BFD6F2; }
.pg-cta .pg-cta-dark em { color: #fff; }
html.dark-on .pg-cta .pg-cta-dark { background: #0B2742; }
.pg-faq-wrap { background: var(--soft); padding: 48px 0 56px; }
.pg-faq-wrap h2 { margin-bottom: 14px; }
.pg-faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.pg-faq summary { cursor: pointer; font-size: 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; color: var(--blue-link); font-size: 22px; line-height: 1; }
.pg-faq[open] summary::after { content: "–"; }
.pg-faq p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.pg-kantone { margin-top: 36px; }
.pg-kantone h2 { font-size: 18px; }
.pg-kantone p { line-height: 1.9; }
.pg-kantone a[aria-current] { font-weight: 700; color: var(--ink); }

@media (max-width: 1023px) {
  .pg-hero-grid, .pg-main { grid-template-columns: 1fr; }
  .pg-aside { position: static; order: 2; }
  .pg-nav { display: none; }
  .pg-pulse { display: none; }
}
@media (max-width: 640px) {
  .pg-hero { padding: 28px 0 24px; }
  .pg-hero-grid { gap: 24px; }
  .pg-form { padding: 16px; border-radius: 20px; }
  .pg-row { grid-template-columns: 1fr; }
  .pg-bar-actions .btn { flex: 1; }
  .pg-plan::before { display: none; }
  .pg-num { width: 32px; height: 32px; font-size: 14px; }
  .pg-ph-head { gap: 12px; align-items: flex-start; }
  .pg-ph-t h2 { font-size: 20px; }
  .pg-ph-count { display: none; }
  .pg-intro, .pg-steps, .pg-disclaimer { margin-left: 0; }
  .pg-intro { margin-top: 10px; }
  .pg-step { padding: 14px; gap: 12px; }
  .pg-two { grid-template-columns: 1fr; }
  .pg-cta { grid-template-columns: 1fr; }
}
@media print {
  .pg-hero, .pg-bar, .pg-aside, .pg-cta, .pg-faq-wrap { display: none !important; }
  .pg-main { display: block; padding-top: 0; }
  .pg-plan::before { display: none; }
  .pg-step, .pg-phase { break-inside: avoid; }
}
.pdf-export .pg-hero, .pdf-export .pg-bar, .pdf-export .pg-aside, .pdf-export .pg-cta, .pdf-export .pg-faq-wrap { display: none !important; }
.pdf-export .pg-main { display: block; padding-top: 0; }

/* ---------------------------------------------------------------- Praxis gründen: PDF und Druck (edel, ruhig, gut lesbar) */
.pg-cover { display: none; }
@media print {
  .pg-cover { display: block; color: #0F2238; padding: 4px 0 0; }
  .pg-cv-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #D5E2F0; font-size: 11px; color: #5A6B80; letter-spacing: .02em; }
  .pg-cv-top .logo { font-size: 22px; color: #0F2238; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
  .pg-cv-top .logo .heart { width: 30px; height: 27px; }
  .pg-cv-top .heart path { fill: #0383FE; }
  .pg-cv-top .heart polyline { fill: none; stroke: #fff; stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
  .pg-cv-kicker { margin: 30px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #0270DD; }
  .pg-cv-title { margin: 0; font-size: 40px; line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
  .pg-cv-sub { margin: 10px 0 0; font-size: 15px; color: #3A4E66; max-width: 560px; }
  .pg-cv-facts { margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid #0F2238; }
  .pg-cv-facts div { padding: 9px 14px 9px 0; border-bottom: 1px solid #E3EAF3; }
  .pg-cv-facts dt { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5A6B80; }
  .pg-cv-facts dd { margin: 3px 0 0; font-size: 15px; font-weight: 600; }
  .pg-cv-h { margin: 24px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #0270DD; }
  .pg-cv-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #0F2238; }
  .pg-cv-list li { display: grid; grid-template-columns: 34px 1fr auto 86px; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid #E3EAF3; font-size: 13px; }
  .pg-cv-n { width: 24px; height: 24px; border-radius: 50%; background: #0270DD; color: #fff; font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
  .pg-cv-t { font-weight: 600; }
  .pg-cv-w { color: #3A4E66; font-size: 12.5px; }
  .pg-cv-c { color: #5A6B80; font-size: 12px; text-align: right; }
  .pg-cv-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid #0F2238; }
  .pg-cv-links li { display: grid; grid-template-columns: 1fr 200px; gap: 0 12px; padding: 5px 0; border-bottom: 1px solid #E3EAF3; font-size: 12.5px; }
  .pg-cv-links b { font-weight: 600; }
  .pg-cv-links span { color: #5A6B80; text-align: right; }
  .pg-cv-links a { grid-column: 1 / -1; color: #0262C2; font-size: 11.5px; text-decoration: none; }
  .pg-cv-note { margin: 16px 0 0; font-size: 11px; line-height: 1.6; color: #5A6B80; }
  .pg-phase-first { break-before: page; }

  /* Etappen im Dokument: Karten werden zu ruhigen Zeilen */
  .pg-main { max-width: none; padding: 0; }
  .pg-phase { padding: 18px 0 14px; }
  .pg-ph-head { padding-bottom: 10px; border-bottom: 2px solid #0F2238; gap: 14px; }
  .pg-num { width: 34px; height: 34px; font-size: 15px; background: #0270DD; border-color: #0270DD; color: #fff; }
  .pg-ph-t h2 { font-size: 22px; letter-spacing: -.02em; }
  .pg-when { font-size: 10.5px; color: #0270DD; }
  .pg-ph-count { font-size: 11px; color: #5A6B80; }
  .pg-intro { margin: 10px 0 4px 48px; font-size: 12.5px; color: #3A4E66; max-width: none; }
  .pg-steps { margin: 0 0 0 48px; gap: 0; }
  .pg-step { border: 0; border-bottom: 1px solid #E3EAF3; border-radius: 0; padding: 12px 0; background: none; gap: 12px; }
  .pg-step:last-child { border-bottom: 0; }
  .pg-box { width: 18px; height: 18px; border-radius: 5px; border-width: 1.5px; border-color: #9FB4CC; }
  .pg-box .ico { width: 12px; height: 12px; }
  .pg-body { gap: 5px; }
  .pg-t-row h3 { font-size: 14px; }
  .pg-body > p { font-size: 12px; line-height: 1.55; color: #3A4E66; }
  .pg-badge { font-size: 9.5px; padding: 1px 7px; letter-spacing: .02em; }
  .pg-badge-must { background: none; color: #8A4300; border: 1px solid #E8C29C; }
  .pg-badge-kanton { background: none; color: #3D3FA8; border: 1px solid #C9CAF2; }
  .pg-badge-tip { background: none; color: #0258B0; border: 1px solid #BFD8F5; }
  .pg-badge-opt { background: none; color: #5A6B80; border: 1px solid #D5DEE8; }
  .pg-links { gap: 2px 18px; }
  .pg-link, .pg-link-ext { background: none; border: 0; padding: 0; min-height: 0; border-radius: 0; font-size: 11.5px; color: #0262C2; }
  .pg-link .ico { width: 11px; height: 11px; }
  .pg-two { gap: 10px; }
  .pg-note { font-size: 11px; padding: 10px 12px; }
  .pg-ahv { background: #F2F7FD; color: #0F2238; border: 1px solid #D5E2F0; padding: 12px 14px; }
  .pg-ahv-in, .pg-ahv-out > span, .pg-ahv-out small { color: #3A4E66; }
  .pg-ahv-field { border: 1px solid #C9D6E5; }
  .pg-ahv-field input { font-size: 15px; padding: 6px 0; }
  .pg-ahv-out output { font-size: 20px; color: #0F2238; }
  .pg-disclaimer { margin: 18px 0 0; font-size: 10.5px; color: #5A6B80; }
}
