/* hygno.com — Stylesheet. Quelle: _build/hygno.css (wird von _build/build.py nach site/assets/ kopiert).
   Raster und Typografie wie die HygnoShield-Startseite; Akzent Grün #0F766E.
   Nur Systemschriften, kein JavaScript, keine Datei von fremden Servern. */

:root {
  --bg: #ffffff;
  --fg: #171717;
  --fg-2: #404040;
  --muted: #5f5f5f;
  --line: #e5e5e5;
  --line-strong: #d4d4d4;
  --surface: #f7f7f7;
  --accent: #0f766e;
  --accent-hover: #0b5a54;
  --accent-ink: #ffffff;
  --accent-soft: #e6f2f0;
  --focus: #0f766e;
  --chip-patient: rgb(253 224 71 / .5);  --chip-patient-ink: #422006;
  --chip-provider: rgb(186 230 253 / .5); --chip-provider-ink: #082f49;
  --chip-date: rgb(253 230 138 / .5);     --chip-date-ink: #451a03;
  --chip-location: rgb(153 246 228 / .5); --chip-location-ink: #042f2e;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 64rem;
  --gutter: 1.5rem;
  color-scheme: light dark;
}

/* Dunkles Design nach Systemeinstellung (ohne JavaScript). */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0a0a0a;
    --fg: #ededed;
    --fg-2: #c8c8c8;
    --muted: #a3a3a3;
    --line: #262626;
    --line-strong: #3a3a3a;
    --surface: #141414;
    --accent: #5eead4;
    --accent-hover: #99f6e4;
    --accent-ink: #042f2e;
    --accent-soft: #10302c;
    --focus: #5eead4;
    --chip-patient: rgb(250 204 21 / .35);  --chip-patient-ink: #fef9c3;
    --chip-provider: rgb(56 189 248 / .35); --chip-provider-ink: #e0f2fe;
    --chip-date: rgb(217 119 6 / .35);      --chip-date-ink: #fef3c7;
    --chip-location: rgb(45 212 191 / .35); --chip-location-ink: #ccfbf1;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
main:focus { outline: none; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.nw { white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
/* Inhaltsspalte: eine gemeinsame Mittelachse mit Startbereich und Menü; Text bleibt linksbündig */
.wrap.col { --wrap: 42rem; }
.list { list-style: none; margin: 0; padding: 0; }
dl, dd { margin: 0; }

.skip {
  position: absolute; left: 1rem; top: -6rem; z-index: 10;
  padding: .75rem 1.25rem; border-radius: 8px;
  background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; color: var(--bg); }

/* Kopf */
.head { border-bottom: 1px solid var(--line); }
/* Wortmarke links, Menü in der Mitte, Sprachen rechts */
.head-in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .5rem 1.75rem; padding: .875rem 0; }
.brand { display: inline-flex; align-items: center; gap: .55rem; justify-self: start; color: var(--fg); text-decoration: none; }
.menu { justify-self: center; }
.langs { justify-self: end; }
.brand:hover { color: var(--fg); }
.brand span { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.menu ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.menu a { display: inline-block; padding: .5rem 0; color: var(--fg-2); font-size: .9375rem; text-decoration: none; }
.menu a:hover { color: var(--fg); text-decoration: underline; }
.langs ul { display: flex; gap: .125rem; padding: .125rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.langs a { display: inline-block; min-width: 2.5rem; padding: .3rem .7rem; border-radius: 999px; color: var(--muted); font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-align: center; text-decoration: none; }
.langs a:hover { color: var(--fg); }
.langs a[aria-current="page"] { background: var(--bg); color: var(--fg); box-shadow: 0 0 0 1px var(--line-strong); }

/* Startbereich */
.hero { padding: 4rem 0 3.5rem; text-align: center; }
.kicker { margin: 0; color: var(--accent); font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { max-width: 46rem; margin: 1rem auto 0; font-size: clamp(1.625rem, 8.5vw, 2.375rem); line-height: 1.15; font-weight: 600; letter-spacing: -.025em; }
.lead { max-width: 40rem; margin: 1.25rem auto 0; color: var(--fg-2); font-size: 1.125rem; line-height: 1.625; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.btn {
  display: inline-block; padding: .65rem 1.25rem; border-radius: 6px; border: 1px solid transparent;
  font-weight: 600; text-decoration: none; line-height: 1.4;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary { border-color: var(--line-strong); color: var(--fg); }
.btn-secondary:hover { background: var(--surface); color: var(--fg); }
.arrow { display: inline-block; }

/* Abschnitte */
.section { padding: 3rem 0; }
.section h2 { margin: 0; font-size: 1.5rem; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; }
.section .intro { margin: .75rem 0 0; color: var(--fg-2); line-height: 1.625; }
.prose { margin-top: 1rem; }
.prose p { margin: 0 0 1rem; color: var(--fg-2); line-height: 1.625; }
.prose p:last-child { margin-bottom: 0; }

/* Produkte */
.products { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 2rem; }
.card { display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.card h3 { margin: 0; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.02em; }
.wordmark b { font-weight: 700; }
.wordmark span { font-weight: 300; }
.card p { margin: .9rem 0 0; color: var(--fg-2); line-height: 1.6; }
.card .status { display: flex; align-items: baseline; gap: .5rem; margin-top: .35rem; color: var(--muted); font-size: .875rem; font-weight: 500; }
.dot { flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); transform: translateY(-.05em); }
.dot-quiet { background: transparent; border: 1.5px solid var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.chips li { padding: .15rem .45rem; border-radius: 4px; font: 500 .8125rem/1.5 var(--mono); }
.chip-patient { background: var(--chip-patient); color: var(--chip-patient-ink); }
.chip-provider { background: var(--chip-provider); color: var(--chip-provider-ink); }
.chip-date { background: var(--chip-date); color: var(--chip-date-ink); }
.chip-location { background: var(--chip-location); color: var(--chip-location-ink); }
.points { margin: 1rem 0 0; padding: 0; list-style: none; }
.points li { position: relative; margin-top: .5rem; padding-left: 1.25rem; color: var(--fg-2); line-height: 1.55; }
.points li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: .4rem; height: .4rem; border-radius: 50%; background: var(--accent); }
.card .more { margin-top: auto; padding-top: 1.25rem; }
.card .more a { font-weight: 600; }


/* Kontakt */
/* Kontakt ohne Kasten: drei Spalten, bündig mit Überschrift und Text der Spalte */
.contact { margin-top: 1rem; }
.contact dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 1.25rem 2rem; }
.contact dt { margin-bottom: .25rem; color: var(--muted); font-size: .875rem; font-weight: 600; }
.contact dd { overflow-wrap: anywhere; }
.contact .note { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--fg-2); font-size: .9375rem; }

/* Rechtliche Seiten */
.legal { padding: 3rem 0 3.5rem; }
.legal-in { }
.legal h1 { margin: 0; font-size: clamp(1.625rem, 7vw, 2.25rem); line-height: 1.2; font-weight: 600; letter-spacing: -.025em; overflow-wrap: break-word; hyphens: auto; }
.legal .lead { margin: 1rem 0 0; text-align: left; font-size: 1.0625rem; }
.legal .translation { margin: 1.25rem 0 0; padding: .75rem 1rem; border-left: 3px solid var(--accent); background: var(--surface); color: var(--fg-2); font-size: .9375rem; }
.legal h2 { margin: 2.25rem 0 .5rem; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -.015em; }
.legal p { margin: 0 0 .9rem; color: var(--fg-2); line-height: 1.65; }
.data { margin-top: 2rem; border-top: 1px solid var(--line); }
.data div { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 1.5rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.data dt { color: var(--muted); font-size: .9375rem; font-weight: 600; }
.data dd { overflow-wrap: anywhere; }
.stand { margin-top: 2.5rem !important; color: var(--muted) !important; font-size: .9375rem; }

/* Fuss */
.foot { margin-top: 2rem; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; padding: 1.5rem 0 2rem; color: var(--muted); font-size: .875rem; }
.foot p { margin: 0; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.foot a { display: inline-block; padding: .3rem 0; color: var(--muted); }
.foot a:hover { color: var(--fg); }

/* Fehlerseite */
.err { padding: 4rem 0; }
.err section { margin-top: 2rem; }
.err h1, .err h2 { margin: 0 0 .35rem; font-size: 1.375rem; letter-spacing: -.02em; }

/* Breitere Bildschirme */
@media (min-width: 40rem) {
  .hero { padding: 6rem 0 5rem; }
  .hero h1 { font-size: 3rem; line-height: 1.08; }
  .section h2 { font-size: 1.875rem; }
}
@media (min-width: 48rem) {
  .products { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
  .products.single { grid-template-columns: minmax(0, 1fr); }
  }
@media (max-width: 40rem) {
  :root { --gutter: 1rem; }
  .head-in { grid-template-columns: minmax(0, 1fr) auto; }
  .menu { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .menu a { padding: .65rem 0; }
  .data div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
}

/* Bewegung nur, wenn erwünscht */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }
  .rise { animation: rise-in 380ms ease-out both; }
  .rise-1 { animation-delay: 70ms; }
  .rise-2 { animation-delay: 140ms; }
  .rise-3 { animation-delay: 210ms; }
  .btn { transition: transform 150ms ease-out, box-shadow 150ms ease-out, background-color 150ms ease-out; }
  .btn:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgb(0 0 0 / .12); }
  .card .more .arrow { transition: transform 200ms ease-out; }
  .card .more a:hover .arrow { transform: translateX(3px); }
}

@media print {
  :root { color-scheme: light; --bg: #fff; --fg: #000; --fg-2: #000; --muted: #333; --line: #999; --line-strong: #999; --surface: #fff; --accent: #000; --accent-hover: #000; --accent-ink: #000; --accent-soft: #fff; }
  .skip, .menu, .langs, .actions { display: none; }
  .card,   a { color: #000; }
}

/* Kennzeichnung «kein Medizinprodukt» in der Produktkarte (MepV Art. 16 Abs. 5, QMS-AN-05) */
.card .kmp { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--fg-2); font-size: .9375rem; line-height: 1.55; }
