/* =========================================================
   Kardio Bremen – Stylesheet (Version 2, blau)
   Farben und Schriften zentral in :root ändern.
   ========================================================= */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --marine:      #052A52;   /* Kopfbereiche, Fußzeile */
  --marine-tief: #031C38;
  --blau:        #0B5CB8;   /* Knöpfe, Links, Akzente */
  --blau-dunkel: #08488F;
  --himmel:      #5CC3F0;   /* nur Linien und Deko auf dunklem Grund */
  --eis:         #EAF3FC;   /* helle Flächen */
  --grund:       #F5F8FC;
  --weiss:       #FFFFFF;
  --linie:       #D9E4F0;
  --text:        #0F1F33;
  --text-2:      #3A4B60;
  --text-3:      #51627A;
  --auf-dunkel:  #C8DAEE;   /* Fließtext auf Marine */
  --notfall:     #C62828;

  --schrift-titel: "Manrope", "Segoe UI", system-ui, sans-serif;
  --schrift-text:  "Inter", "Segoe UI", system-ui, sans-serif;

  --breite: 1200px;
  --rund-xl: 28px;
  --rund-l: 20px;
  --rund-m: 14px;
  --schatten: 0 1px 2px rgba(5, 42, 82, 0.06), 0 12px 32px rgba(5, 42, 82, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--grund);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blau-dunkel); }
:focus-visible { outline: 3px solid var(--himmel); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--schrift-titel);
  color: var(--marine);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--breite); margin-inline: auto; padding-inline: 24px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--weiss); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- Notfall-Leiste ---------- */
.notfall { background: var(--marine-tief); color: var(--auf-dunkel); font-size: 0.875rem; }
.notfall a { color: var(--weiss); }
.notfall__inner { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; align-items: center; padding-block: 9px; }
.notfall p { margin: 0; }
.notfall__marke {
  display: inline-block; margin-right: 8px; padding: 1px 9px; border-radius: 999px;
  background: var(--notfall); color: var(--weiss); font-weight: 600; font-size: 0.8rem;
}
.notfall__tel { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.notfall__tel a { text-decoration: none; }
.notfall__tel a:hover { text-decoration: underline; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--linie);
}
.kopf__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 12px; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--marine); }
.marke__zeichen rect { fill: var(--blau); }
.marke__zeichen path { fill: none; stroke: var(--weiss); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.marke__text { display: flex; flex-direction: column; line-height: 1.15; }
.marke__name { font-family: var(--schrift-titel); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.marke__zusatz { font-size: 0.78rem; color: var(--text-3); }

.menue { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 8px; }
.menue ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.menue ul a {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 500; color: var(--text);
}
.menue ul a:hover { background: var(--eis); color: var(--marine); }
.menue ul a[aria-current="page"] { background: var(--eis); color: var(--blau); font-weight: 600; }
.menue .knopf { margin-left: 12px; }

.menue-knopf {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: 12px; background: var(--eis); color: var(--marine);
  font: 600 0.95rem var(--schrift-text); cursor: pointer;
}
.menue-knopf svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; text-decoration: none; line-height: 1.2; text-align: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.knopf--gross { min-height: 54px; padding: 0 28px; font-size: 1.02rem; }
.knopf--blau { background: var(--blau); color: var(--weiss); }
.knopf--blau:hover { background: var(--blau-dunkel); color: var(--weiss); }
.knopf--weiss { background: var(--weiss); color: var(--marine); }
.knopf--weiss:hover { background: var(--eis); color: var(--marine); }
.knopf--hell { border-color: rgba(255, 255, 255, 0.55); color: var(--weiss); }
.knopf--hell:hover { background: rgba(255, 255, 255, 0.1); color: var(--weiss); border-color: var(--weiss); }
.knopf--rahmen { border-color: var(--linie); background: var(--weiss); color: var(--marine); }
.knopf--rahmen:hover { border-color: var(--blau); color: var(--blau); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Startseite: Held ---------- */
.held { position: relative; background: var(--marine); color: var(--auf-dunkel); overflow: hidden; }
.held__raster {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px; align-items: center; padding-block: 72px 170px; position: relative; z-index: 1;
}
.held h1 { color: var(--weiss); max-width: 17ch; }
.held__ort { color: var(--himmel); font-weight: 600; margin-bottom: 14px; }
.held .einleitung { color: var(--auf-dunkel); }
.einleitung { font-size: 1.15rem; color: var(--text-2); max-width: 38rem; }

.merkmale { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; }
.merkmale li { position: relative; padding-left: 30px; color: var(--weiss); font-size: 0.98rem; }
.merkmale li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--himmel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%23052A52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.held__bild { position: relative; margin: 0; }
.held__bild img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 80% center;
  border-radius: var(--rund-xl); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
.held__info {
  position: absolute; left: -24px; bottom: -28px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 18px 22px; border-radius: var(--rund-l);
  background: var(--weiss); color: var(--text-2); font-size: 0.92rem; box-shadow: var(--schatten);
}
.held__info-titel { font-family: var(--schrift-titel); font-weight: 700; color: var(--marine); font-size: 1rem; }

.held__ekg { position: absolute; left: 0; right: 0; bottom: 70px; width: 100%; height: 80px; z-index: 0; }
.held__ekg path { fill: none; stroke: var(--himmel); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; opacity: 0.55; vector-effect: non-scaling-stroke; }

/* ---------- Schnellzugriff ---------- */
.schnell {
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin-top: -64px; position: relative; z-index: 2;
}
.kachel {
  display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--rund-l);
  background: var(--weiss); border: 1px solid var(--linie); box-shadow: var(--schatten);
  text-decoration: none; color: var(--text-3); font-size: 0.95rem;
  transition: transform .15s ease, border-color .15s ease;
}
.kachel svg {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 8px; border-radius: 12px; background: var(--eis);
  fill: none; stroke: var(--blau); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.kachel__titel { font-family: var(--schrift-titel); font-weight: 700; font-size: 1.1rem; color: var(--marine); }
.kachel:hover { border-color: var(--blau); transform: translateY(-2px); color: var(--text-3); }

/* ---------- Abschnitte & Raster ---------- */
.abschnitt { padding-block: 80px; }
.abschnitt--weiss { background: var(--weiss); border-block: 1px solid var(--linie); }
.abschnitt__kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 24px; margin-bottom: 32px; }
.abschnitt__kopf h2 { margin: 0; max-width: 24ch; }
.abschnitt__kopf a { font-weight: 600; padding-block: 10px; }

.raster { display: grid; gap: 20px; }
.raster--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.raster--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.karte {
  display: flex; flex-direction: column; padding: 28px; border-radius: var(--rund-l);
  background: var(--weiss); border: 1px solid var(--linie); color: var(--text-3); text-decoration: none;
}
a.karte { transition: border-color .15s ease, box-shadow .15s ease; }
a.karte:hover { border-color: var(--blau); box-shadow: var(--schatten); color: var(--text-3); }
.karte h2, .karte h3, .karte__titel { font-family: var(--schrift-titel); font-size: 1.25rem; font-weight: 700; color: var(--marine); margin: 0 0 8px; }
.karte p:last-child { margin-bottom: 0; }
.karte--still { color: var(--text-2); }
.karte--tel { gap: 4px; }
.karte__tel { font-family: var(--schrift-titel); font-size: 1.7rem; font-weight: 800; color: var(--blau); letter-spacing: -0.01em; }
.karte__bereich { font-size: 0.85rem; font-weight: 600; color: var(--blau); margin-bottom: 6px; }
.karte__mehr { margin-top: auto; padding-top: 16px; font-weight: 600; color: var(--blau); }
.karte--leistung .icon {
  width: 52px; height: 52px; padding: 12px; margin-bottom: 18px; border-radius: 14px; background: var(--eis);
  fill: none; stroke: var(--blau); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.abschnitt--weiss .karte { background: var(--grund); }

.hinweis { margin-top: 24px; color: var(--text-2); max-width: 46rem; }

.achtung { margin-top: 24px; padding: 24px 28px; border-radius: var(--rund-l); background: var(--marine); color: var(--auf-dunkel); }
.achtung h3 { color: var(--weiss); }
.achtung p { margin: 0; }

.marker {
  display: inline-block; align-self: flex-start; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px;
  background: var(--eis); color: var(--blau-dunkel); font-size: 0.85rem; font-weight: 600;
}

/* ---------- Standorte ---------- */
.standort { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--rund-xl); background: var(--weiss); border: 1px solid var(--linie); }
.standort img { width: 100%; aspect-ratio: 600 / 250; object-fit: cover; }
.standort__text { padding: 28px; display: flex; flex-direction: column; }
.standort__text h3 { font-size: 1.45rem; }
.standort__text p { color: var(--text-2); margin-bottom: 0.5em; }
.standort .knopfreihe { margin-top: 14px; }

/* ---------- Team ---------- */
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.person { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text-3); }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--rund-l); margin-bottom: 12px; background: var(--eis); transition: transform .2s ease; }
.person__name { font-family: var(--schrift-titel); font-weight: 700; font-size: 1.05rem; color: var(--marine); }
.person__info { font-size: 0.9rem; line-height: 1.45; }
.person:hover .person__name { color: var(--blau); }
.person:hover img { transform: scale(1.015); }

/* ---------- Unterseiten ---------- */
.seitenkopf { background: var(--marine); color: var(--auf-dunkel); padding-block: 64px 56px; }
.seitenkopf h1 { color: var(--weiss); font-size: clamp(2rem, 3.8vw, 3rem); max-width: 26ch; }
.seitenkopf .einleitung { color: var(--auf-dunkel); }
.seitenkopf .einleitung:last-child { margin-bottom: 0; }
.seitenkopf a { color: var(--weiss); }
.seitenkopf .marker { background: rgba(255, 255, 255, 0.12); color: var(--weiss); }

.profil { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.profil__bild { width: 210px; height: 210px; object-fit: cover; border-radius: var(--rund-xl); border: 4px solid rgba(255, 255, 255, 0.15); }
.profil > div { flex: 1 1 320px; }
.zurueck { margin-bottom: 8px; font-weight: 600; }
.zurueck a { text-decoration: none; }
.zurueck a::before { content: "‹ "; }

.mit-seitenleiste { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.seitenleiste { flex: 1 1 220px; max-width: 280px; position: sticky; top: 96px; }
.seitenleiste ul { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 2px; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--rund-l); }
.seitenleiste a { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 500; color: var(--text); }
.seitenleiste a[aria-current="page"] { background: var(--blau); color: var(--weiss); }
.seitenleiste a:not([aria-current]):hover { background: var(--eis); }
.mit-seitenleiste .text { flex: 999 1 560px; min-width: 0; }

/* Fließtext aus den Inhaltsdateien */
.text { max-width: 46rem; }
.text h3 { margin-top: 1.8em; font-size: 1.3rem; }
.text h3:first-child { margin-top: 0; }
.text p, .text li { color: var(--text-2); }
.text ul { padding-left: 1.2em; margin: 0 0 1em; }
.text li { margin-bottom: 0.35em; }
.text li::marker { color: var(--blau); }
.text ul.vita { list-style: none; padding: 0; border-left: 2px solid var(--linie); }
.text ul.vita li { padding: 0 0 0.9em 22px; position: relative; }
.text ul.vita li::before { content: ""; position: absolute; left: -7px; top: 0.5em; width: 12px; height: 12px; border-radius: 50%; background: var(--weiss); border: 3px solid var(--blau); }
.text .jahr { display: block; font-weight: 600; color: var(--marine); font-size: 0.95rem; }

/* Impressum */
.recht { display: grid; gap: 16px; max-width: 52rem; }
.recht section { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--rund-l); padding: 24px 28px; }
.recht h2 { font-size: 1.2rem; margin-bottom: 0.6em; }
.recht h3 { font-size: 1rem; margin: 1.2em 0 0.3em; }
.recht p, .recht li { color: var(--text-2); }
.recht p:last-child, .recht ul:last-child { margin-bottom: 0; }
.recht dl { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 8px 20px; margin: 0; }
.recht dt { font-weight: 600; color: var(--marine); }
.recht dd { margin: 0; color: var(--text-2); }
.recht .stand { color: var(--text-3); font-size: 0.9rem; }
.text--recht h3 { font-size: 1.1rem; }

/* ---------- Abschluss-Band ---------- */
.abschluss { background: var(--blau); color: #DCEBFB; }
.abschluss__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: 56px; }
.abschluss h2 { color: var(--weiss); margin-bottom: 0.3em; }
.abschluss p { margin: 0; max-width: 34rem; }

/* ---------- Fuß ---------- */
.fuss { background: var(--marine-tief); color: var(--auf-dunkel); font-size: 0.95rem; }
.fuss a { color: var(--weiss); }
.fuss__raster { display: grid; gap: 32px; padding-block: 56px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.fuss p { margin: 0 0 0.5em; }
.fuss__name { font-family: var(--schrift-titel); font-weight: 800; font-size: 1.15rem; color: var(--weiss); }
.fuss__titel { font-weight: 600; color: var(--weiss); }
.fuss__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

.schnellleiste { display: none; }

/* ---------- Tablet & Smartphone ---------- */
@media (max-width: 960px) {
  .held__info { left: 16px; bottom: -24px; }
}
@media (max-width: 860px) {
  body { font-size: 1rem; padding-bottom: 84px; }
  .menue-knopf { display: inline-flex; }
  .js .menue { display: none; }
  .js .menue.offen { display: flex; }
  .menue { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding-bottom: 8px; }
  .menue ul { flex-direction: column; }
  .menue ul a { display: block; border-radius: 12px; padding: 12px 14px; }
  .menue .knopf { margin-left: 0; }
  .marke__zusatz { display: none; }
  .notfall__tel { display: none; }
  .held__raster { padding-block: 40px 112px; gap: 48px; }
  .held__bild img { aspect-ratio: 16 / 10; }
  .abschnitt { padding-block: 56px; }
  .seitenkopf { padding-block: 40px 36px; }
  .seitenleiste { max-width: none; position: static; }
  .profil__bild { width: 140px; height: 140px; }
  .recht dl { grid-template-columns: 1fr; gap: 2px; }
  .recht dd { margin-bottom: 10px; }

  .schnellleiste {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--weiss); border-top: 1px solid var(--linie);
  }
}

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

@media print {
  .notfall, .menue, .menue-knopf, .schnellleiste, .knopfreihe, .abschluss, .held__ekg { display: none !important; }
  .kopf { position: static; }
  body { background: #fff; padding: 0; }
  .held, .seitenkopf { background: #fff; color: #000; }
  .held h1, .seitenkopf h1 { color: #000; }
}
