/* Heigel Healthcare — www.heigel-healthcare.de
   Gestaltung übernommen von www.heigel-family-office.de, damit beide Seiten als Teil
   derselben Gruppe erkennbar sind. Unterschied: Leitfarbe ist das CI-Blau #3C6577 der
   Heigel Gruppe statt des Family-Office-Navy. Grau #575756 aus dem CI.
   Die Rahmenfigur des Logos trägt das Seitenlayout. */

/* ---------- Schrift (lokal ausgeliefert, keine externen Verbindungen) ---------- */

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/fira-sans-400-latin.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: "Fira Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/fira-sans-400-latin-ext.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;
}
@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/fira-sans-500-latin.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: "Fira Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/fira-sans-500-latin-ext.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;
}

/* ---------- Grundwerte ---------- */

:root {
  --marke: #3c6577;
  --graphit: #575756;
  --linie: #c7d0d6;
  --kalk: #eef2f4;
  --papier: #ffffff;

  --satz: "Fira Sans", "Segoe UI", system-ui, sans-serif;
  --spalte: 200px;
  --luft: clamp(30px, 4.5vw, 52px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: clamp(12px, 2.5vw, 32px);
  background: var(--kalk);
  color: var(--graphit);
  font: 400 17px/1.7 var(--satz);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--marke);
  text-decoration: underline;
  text-decoration-color: var(--linie);
  text-underline-offset: 3px;
  transition: text-decoration-color 120ms linear;
}
a:hover { text-decoration-color: var(--marke); }

:focus-visible {
  outline: 2px solid var(--marke);
  outline-offset: 3px;
}

/* Ausserhalb des Sichtfelds, ohne die Seite zu verbreitern. */
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  width: auto;
  height: auto;
  clip-path: none;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  z-index: 10;
  background: var(--marke);
  color: #fff;
  padding: 10px 18px;
  text-decoration: none;
}

/* ---------- Der Rahmen: gleiche Figur wie im Logo ---------- */

.rahmen-aussen {
  max-width: 1000px;
  margin: 0 auto;
  border: 2px solid var(--marke);
  padding: 4px;
  background: var(--papier);
}
.rahmen-innen {
  border: 1px solid var(--marke);
  padding: clamp(26px, 5vw, 76px);
}

/* ---------- Kopf ---------- */

.kopf {
  text-align: center;
  padding-bottom: var(--luft);
}

.kopf h1 {
  margin: 0 0 clamp(26px, 4vw, 40px);
  line-height: 0;
}
.kopf img {
  width: clamp(92px, 12vw, 132px);
  height: auto;
}

.lead {
  max-width: 34em;
  margin: 0 auto;
  color: var(--marke);
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.55;
  text-wrap: balance;
}

/* ---------- Textblöcke: Überschrift in der Randspalte ---------- */

.block {
  display: grid;
  grid-template-columns: var(--spalte) minmax(0, 1fr);
  gap: 0 48px;
  padding: var(--luft) 0;
  border-top: 1px solid var(--linie);
}

.block h2 {
  grid-column: 1;
  margin: 0;
  color: var(--marke);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
}

.block .text {
  grid-column: 2;
  max-width: 64ch;
}

.schluss .text {
  grid-column: 2;
  color: var(--marke);
  font-size: 18px;
}

.kontaktzeile {
  color: var(--marke);
  font-weight: 500;
  margin-bottom: 0.35em;
}

/* ---------- Rechtstexte ---------- */

.recht .text { font-size: 15px; }

.recht h3 {
  margin: 1.9em 0 0.5em;
  color: var(--marke);
  font-size: 15px;
  font-weight: 500;
}
.recht h3:first-of-type { margin-top: 0; }


/* ---------- Fuß ---------- */

.fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  padding-top: var(--luft);
  border-top: 1px solid var(--linie);
  font-size: 14px;
}
.fuss p { margin: 0; }
.fuss nav { display: flex; gap: 24px; }
.gruppe { flex-basis: 100%; }

/* ---------- Schmale Fenster ---------- */

@media (max-width: 800px) {
  .block {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .block h2,
  .block .text,
  .schluss .text {
    grid-column: 1;
  }
  .block .text { max-width: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  /* Zentrierter Fließtext trägt auf dieser Breite nicht mehr — der Kopf
     richtet sich mit dem übrigen Dokument nach links aus. */
  .kopf { text-align: left; }
  .lead { margin-left: 0; }
}

/* ---------- Druck ---------- */

@media print {
  body { background: #fff; padding: 0; }
  .rahmen-aussen { border: 0; max-width: none; }
  .rahmen-innen { border: 0; padding: 0; }
  .skip, .fuss nav { display: none; }
  .block { break-inside: avoid; }
  a { text-decoration: none; }
}
