/* ==========================================================================
   SCHILLER Medizintechnik – Fachhandel medical plus GmbH
   Keine externen Ressourcen (keine Webfonts, keine CDNs) – datenschutzfreundlich.
   ========================================================================== */

:root {
  --navy-900: #071c33;
  --navy-800: #0b2a4a;
  --navy-700: #12395f;
  --navy-100: #e6edf5;
  --red-600: #c8102e;
  --red-700: #a50d26;
  --red-50: #fdf1f3;
  --ink: #1b2430;
  --muted: #5a6675;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --ok: #17794a;
  --err: #b3261e;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(7, 28, 51, .06), 0 8px 24px rgba(7, 28, 51, .07);
  --max: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--red-600); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy-900); margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.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(--red-600); outline-offset: 2px; }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--navy-900); color: #c9d6e4; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-900); }
.brand:hover { color: var(--navy-900); }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.08rem; letter-spacing: .02em; }
.brand-name span { color: var(--red-600); }
.brand-sub { font-size: .74rem; color: var(--muted); letter-spacing: .02em; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer; color: var(--navy-900); }
.nav-toggle svg { width: 24px; height: 24px; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a, .main-nav button.sub-toggle { display: block; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .96rem; background: none; border: 0; font-family: inherit; cursor: pointer; }
.main-nav a:hover, .main-nav button.sub-toggle:hover { background: var(--bg-soft); color: var(--navy-900); }
.main-nav a[aria-current="page"], .main-nav .is-active > button.sub-toggle { color: var(--red-600); }
.main-nav .nav-cta { background: var(--red-600); color: #fff; margin-left: 6px; }
.main-nav .nav-cta:hover { background: var(--red-700); color: #fff; }
.has-sub { position: relative; }
.sub-toggle::after { content: ""; display: inline-block; margin-left: 6px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.submenu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 290px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: none; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu { display: block; }
.submenu a { font-weight: 500; }
.submenu small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: 74px 0 0 0; background: #fff; overflow-y: auto; display: none; padding: 12px 20px 40px; border-top: 1px solid var(--line); }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .main-nav a, .main-nav button.sub-toggle { width: 100%; text-align: left; padding: 14px 12px; font-size: 1.05rem; }
  .submenu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .main-nav .nav-cta { margin: 10px 0 0; text-align: center; }
  .topbar .hide-sm { display: none; }
}

/* ---------- 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-primary { background: var(--red-600); color: #fff; }
.btn-primary:hover { background: var(--red-700); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy-900); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 80% -10%, #1c4a78 0%, transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #e7eef6; }
.hero .container { position: relative; z-index: 1; padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(70px, 10vw, 130px); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 60ch; color: #c9d6e4; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red-600); margin-bottom: 14px; }
.hero .eyebrow { color: #ff8a98; }
.hero-ecg { position: absolute; left: 0; right: 0; bottom: 24px; width: 100%; height: 120px; opacity: .55; pointer-events: none; }
.hero-ecg path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: ecg 4.5s ease-out forwards; }
@keyframes ecg { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-ecg path { animation: none; stroke-dashoffset: 0; } html { scroll-behavior: auto; } }
.hero-badges { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-top: 34px; font-size: .92rem; color: #c9d6e4; padding: 0; list-style: none; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: #ff8a98; flex: none; }

.page-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #c9d6e4; }
.page-hero .container { padding-top: 54px; padding-bottom: 54px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.page-hero p { max-width: 70ch; font-size: 1.1rem; margin: 0; }
.breadcrumb { font-size: .85rem; margin-bottom: 14px; }
.breadcrumb a { color: #c9d6e4; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.cat-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s; }
.cat-card:hover { transform: translateY(-3px); border-color: var(--red-600); color: var(--ink); }
.cat-card .icon { width: 54px; height: 54px; border-radius: 12px; background: var(--red-50); color: var(--red-600); display: grid; place-items: center; margin-bottom: 18px; }
.cat-card .icon svg { width: 30px; height: 30px; }
.cat-card p { color: var(--muted); font-size: .97rem; }
.cat-card .models { font-size: .85rem; color: var(--navy-700); margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.more { font-weight: 700; color: var(--red-600); margin-top: 12px; }
.more::after { content: " →"; }

.feature { display: flex; gap: 16px; }
.feature .icon { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--navy-100); color: var(--navy-800); display: grid; place-items: center; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.08rem; margin-bottom: .3em; }
.feature p { color: var(--muted); font-size: .97rem; margin: 0; }

.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: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--red-600); border-bottom: 2.5px solid var(--red-600); transform: rotate(-45deg); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat strong { display: block; font-size: 2rem; color: var(--red-600); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .93rem; }

/* ---------- Produkte ---------- */
.product { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
@media (max-width: 720px) { .product { grid-template-columns: 1fr; } }
.product + .product { margin-top: 22px; }
.product-media { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background: linear-gradient(145deg, var(--bg-soft), var(--navy-100)); display: grid; place-items: center; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.product-media svg { width: 34%; color: var(--navy-700); opacity: .45; }
.product .maker { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red-600); }
.product h3 { font-size: 1.35rem; margin: 4px 0 8px; }
.product .tagline { color: var(--muted); }
.product .check-list { columns: 2 240px; column-gap: 28px; }
.product .check-list li { break-inside: avoid; font-size: .96rem; }
.product-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.product-actions .btn { padding: 10px 18px; font-size: .93rem; }

.notice { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--line); padding: 6px 0 6px 14px; margin-top: 30px; }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1em; }
.pill-list li { background: var(--navy-100); color: var(--navy-800); border-radius: 999px; padding: 4px 12px; font-size: .88rem; font-weight: 600; }
.pill-list a { color: inherit; text-decoration: none; }
.pill-list a:hover { color: var(--red-600); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, var(--red-600), #8f0b22); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(30px, 5vw, 54px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; color: #ffe3e7; max-width: 60ch; }
.cta .btn { background: #fff; color: var(--red-700); }
.cta .btn:hover { background: var(--navy-900); color: #fff; }

/* ---------- Formular ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label, legend { font-weight: 600; font-size: .95rem; color: var(--navy-900); display: block; margin-bottom: 6px; }
.req { color: var(--red-600); }
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 #c5cfda; border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--navy-700); outline: 3px solid rgba(18, 57, 95, .15); }
textarea { min-height: 150px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 16px; }
.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(--red-600); flex: none; }
.consent { font-size: .93rem; }
.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(--muted); margin-top: 12px; }

.contact-box { background: var(--navy-900); color: #c9d6e4; border-radius: var(--radius); padding: 30px; }
.contact-box h2, .contact-box h3 { color: #fff; }
.contact-box a { color: #fff; }
.contact-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.contact-box dt { color: #8ea3b9; }
.contact-box dd { margin: 0; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5em; }
.legal address { font-style: normal; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #a9bacb; font-size: .94rem; padding: 56px 0 26px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #d6e0ea; 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: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand-sub { color: #8ea3b9; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .84rem; }
.trademark { font-size: .8rem; color: #7f93a8; margin-top: 14px; }
