/* ==========================================================================
   POCT NRW – medical plus GmbH
   Mobile first. Keine externen Ressourcen (Schrift selbst gehostet, kein CDN).
   CI-Farben aus www.medical-plus.de: HKS 51N = #009ab1, HKS 92N = #929693
   ========================================================================== */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* CI */
  --hks51: #009ab1;        /* HKS 51N Türkis/Petrol – Flächen, Akzente */
  --hks92: #929693;        /* HKS 92N Grau – Akzente, Linien */
  /* abgeleitete Töne (Kontrast ≥ 4.5:1 für Text/Buttons) */
  --petrol-700: #00788a;
  --petrol-800: #005f6e;
  --petrol-900: #0b3a42;
  --petrol-50: #e8f6f8;
  --grey-700: #4d4d4d;     /* Fließtextgrau von medical-plus.de */
  --grey-100: #f3f4f8;     /* Hintergrundgrau von medical-plus.de */
  --ink: #2b2f2d;
  --line: #d6d9d8;
  --bg: #ffffff;
  --ok: #17794a;
  --err: #b3261e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11, 58, 66, .06), 0 8px 24px rgba(11, 58, 66, .08);
  --max: 1160px;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol-700); text-underline-offset: 3px; }
a:hover { color: var(--petrol-900); }
h1, h2, h3 { line-height: 1.22; color: var(--petrol-900); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.85rem, 6vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 4.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--hks51); outline-offset: 2px; }
.nowrap { white-space: nowrap; }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--petrol-900); color: #cfe3e6; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 6px 16px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar .hide-sm { display: none; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 150px; height: auto; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--petrol-800); text-decoration: none; white-space: nowrap; font-size: .95rem; }
.header-phone svg { width: 20px; height: 20px; }
.main-nav { display: none; }

@media (min-width: 640px) {
  .topbar .hide-sm { display: inline; }
}
@media (min-width: 1000px) {
  .site-header .container { min-height: 76px; }
  .brand img { width: 180px; }
  .main-nav { display: block; }
  .main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
  .main-nav a { display: block; padding: 8px 11px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; }
  .main-nav a:hover { background: var(--grey-100); color: var(--petrol-800); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--petrol-700); color: #fff; }
.btn-primary:hover { background: var(--petrol-800); color: #fff; }
.btn-light { background: #fff; color: var(--petrol-800); }
.btn-light:hover { background: var(--petrol-50); color: var(--petrol-900); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--petrol-900); }
.btn-outline { border-color: var(--petrol-700); color: var(--petrol-700); }
.btn-outline:hover { background: var(--petrol-700); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-row .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .btn-row .btn { flex: 0 0 auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #e6f4f6;
  background: radial-gradient(900px 420px at 85% -10%, rgba(0,154,177,.55) 0%, transparent 65%), linear-gradient(160deg, var(--petrol-900) 0%, var(--petrol-800) 100%); }
.hero .container { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 56px; display: grid; gap: 32px; align-items: center; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .lead { font-size: clamp(1.05rem, 2.4vw, 1.22rem); max-width: 58ch; color: #cfe7ea; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--petrol-700); margin-bottom: 12px; }
.hero .eyebrow { color: #7fd6e3; }
.hero-badges { display: flex; gap: 8px 20px; flex-wrap: wrap; margin: 28px 0 0; font-size: .9rem; color: #cfe7ea; padding: 0; list-style: none; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: #7fd6e3; flex: none; }
.hero-art { display: none; }
.hero-art svg { width: 100%; max-width: 380px; margin-left: auto; }
@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.35fr .65fr; padding-top: 88px; padding-bottom: 96px; }
  .hero-art { display: block; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section-soft { background: var(--grey-100); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head p { color: var(--grey-700); font-size: 1.05rem; }

.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--grey-700); }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 50px; height: 50px; border-radius: 12px; background: var(--petrol-50); color: var(--petrol-700); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 28px; height: 28px; }
.card-accent { border-top: 4px solid var(--hks51); }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--hks51); border-bottom: 2.5px solid var(--hks51); transform: rotate(-45deg); }

.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; gap: 56px; } }

/* ---------- Gerät ---------- */
.device { display: grid; gap: 24px; align-items: start; }
@media (min-width: 820px) { .device { grid-template-columns: 1fr 1.1fr; gap: 40px; } }
.device-media { aspect-ratio: 4 / 3; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.device-media img { width: 100%; height: 100%; object-fit: contain; }
.maker { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hks92); }
.device h3 { font-size: 1.5rem; margin: 4px 0 10px; }
.facts { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 20px 0; padding: 0; list-style: none; }
@media (min-width: 520px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts li { background: var(--grey-100); border-radius: var(--radius-sm); padding: 14px 16px; border-left: 4px solid var(--hks51); }
.facts strong { display: block; color: var(--petrol-900); font-size: 1.05rem; }
.facts span { font-size: .88rem; color: var(--grey-700); }

.notice { font-size: .88rem; color: var(--grey-700); border-left: 3px solid var(--hks92); padding: 6px 0 6px 14px; margin-top: 24px; }
.notice-box { background: #fff8e6; border: 1px solid #f0d9a0; border-radius: var(--radius-sm); padding: 14px 16px; font-size: .92rem; color: #5b4a1c; margin-top: 20px; }
.notice-box strong { color: #4a3b10; }

/* ---------- Finanzierung ---------- */
.option { display: flex; flex-direction: column; }
.option .tag { align-self: flex-start; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--petrol-50); color: var(--petrol-800); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.option .check-list { margin-top: auto; font-size: .95rem; }

/* ---------- Ablauf ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 56px 20px 20px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: 16px; left: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--petrol-700); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--grey-700); font-size: .95rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; color: var(--petrol-900); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--petrol-700); border-bottom: 2px solid var(--petrol-700); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 18px 16px; color: var(--grey-700); }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, var(--petrol-700), var(--petrol-900)); color: #fff; border-radius: calc(var(--radius) + 4px); padding: 28px 22px; display: grid; gap: 20px; }
@media (min-width: 820px) { .cta { grid-template-columns: 1fr auto; align-items: center; padding: 44px; } }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; color: #d4eef2; max-width: 60ch; }

/* ---------- Formular ---------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; gap: 18px 20px; } .form-grid .full { grid-column: 1 / -1; } }
label, legend { font-weight: 600; font-size: .95rem; color: var(--petrol-900); display: block; margin-bottom: 6px; }
.req { color: var(--petrol-700); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #b9c0bd; border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--petrol-700); outline: 3px solid rgba(0, 154, 177, .2); }
textarea { min-height: 140px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.checks label, .consent label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; color: var(--ink); margin: 0; cursor: pointer; }
.checks input, .consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--petrol-700); flex: none; }
.consent { font-size: .92rem; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 14px 18px; border-radius: var(--radius-sm); margin-top: 18px; font-weight: 600; }
.form-status.ok { display: block; background: #e8f5ee; color: var(--ok); border: 1px solid #b7dfc8; }
.form-status.err { display: block; background: #fdecea; color: var(--err); border: 1px solid #f3c1bc; }
.form-note { font-size: .85rem; color: var(--grey-700); margin-top: 12px; }
form .btn-primary { width: 100%; }
@media (min-width: 560px) { form .btn-primary { width: auto; } }

.contact-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1.5fr 1fr; gap: 40px; } }
.contact-box { background: var(--petrol-900); color: #cfe3e6; border-radius: var(--radius); padding: 26px; }
.contact-box h2, .contact-box h3 { color: #fff; }
.contact-box a { color: #fff; }
.contact-box .big-phone { display: inline-flex; align-items: center; gap: 10px; font-size: 1.45rem; font-weight: 700; text-decoration: none; margin: 4px 0 14px; }
.contact-box .big-phone svg { width: 26px; height: 26px; color: #7fd6e3; }
.contact-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .95rem; }
.contact-box dt { color: #8fb3b9; }
.contact-box dd { margin: 0; }

/* ---------- Rechtstexte / Unterseiten ---------- */
.page-hero { background: linear-gradient(160deg, var(--petrol-900), var(--petrol-800)); color: #cfe7ea; }
.page-hero .container { padding-top: 40px; padding-bottom: 40px; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 5vw, 2.5rem); }
.page-hero p { max-width: 70ch; margin: 0; }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.5em; }
.legal address { font-style: normal; }

/* ---------- Mobile Sticky-CTA ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
.mobile-cta .btn { padding: 11px 12px; font-size: .95rem; }
body.has-mobile-cta { padding-bottom: 70px; }
@media (min-width: 900px) { .mobile-cta { display: none; } body.has-mobile-cta { padding-bottom: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--petrol-900); color: #a9c4c8; font-size: .93rem; padding: 48px 0 24px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: #dcecee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.footer-logo img { width: 160px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; }
.disclaimer { font-size: .8rem; color: #85a6ab; margin-top: 14px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- POCT: Parameter ---------- */
.param-group h3 { display: flex; align-items: center; gap: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.pills li { background: var(--petrol-50); color: var(--petrol-800); border-radius: 999px; padding: 4px 12px; font-size: .88rem; font-weight: 600; }
.device-pair { display: grid; gap: 18px; }
@media (min-width: 820px) { .device-pair { grid-template-columns: 1fr 1fr; } }
.device-pair .device { grid-template-columns: 1fr; }
@media (min-width: 1040px) { .device-trio { grid-template-columns: repeat(3, 1fr); } }
