/* ============================================================
   Schmerzzentrum Olten – Stylesheet
   Designsystem nach 00_Design-System.md
   Petrol auf warmem Weiss, Source Serif 4 + Inter
   ============================================================ */

/* --- Reset / Base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-primary-dark); }

/* Einheitlicher Focus-Style — sichtbar, aber ruhig (Accessibility) */
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn:focus-visible,
.icon-btn:focus-visible {
  outline-offset: 3px;
}

/* --- Custom Properties --------------------------------------------------- */
:root {
  /* Farben — Phase 2: behutsam intensiviert (Petrol tiefer, Kontraste etwas
     stärker, Wärme erhalten). Originalwerte als Kommentar dahinter.       */
  --c-primary:        #133849;  /* war #1A3D52 — tiefer, kräftiger */
  --c-primary-dark:   #0A2333;  /* war #0F2A3A — deutlicher Hover */
  --c-primary-soft:   #1F4D66;  /* neu — für sekundäre Akzente */
  --c-bg:             #FAFAF7;  /* unverändert — warmes Weiss */
  --c-bg-section:     #EFEAE0;  /* war #F2F0EA — minimal wärmer/tiefer */
  --c-text:           #1A2532;  /* war #1F2937 — etwas mehr Tiefe */
  --c-text-muted:     #475063;  /* war #4B5563 — leichter Kontrast-Bump */
  --c-border:         #CFC9BB;  /* war #D9D5CB — Linien etwas präsenter */
  --c-border-strong:  #B8B1A0;  /* neu — für betonte Trenner */
  --c-accent:         #9A7D4E;  /* war #A88B5C — Sand/Kupfer etwas tiefer */

  /* Typografie */
  --ff-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --ff-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --container-max: 76rem;   /* 1216px */
  --measure:       38rem;   /* 608px Lesebreite */
  --gap:           1.25rem; /* 20px */
}

/* --- Typografische Grundlage --------------------------------------------- */
html { font-size: 100%; }
body {
  font-family: var(--ff-sans);
  font-size: 1.0625rem;      /* 17px mobile */
  line-height: 1.65;
  color: var(--c-text);
  background-color: var(--c-bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 48rem) { body { font-size: 1.125rem; } } /* 18px desktop */

h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  color: var(--c-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; line-height: 1.15; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; line-height: 1.3; }
h4 { font-size: 1.125rem; line-height: 1.4; }
@media (min-width: 48rem) {
  h1 { font-size: 3.25rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.625rem; }
  h4 { font-size: 1.25rem; }
}

p { margin: 0 0 1.25rem; max-width: var(--measure); }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.25rem; max-width: var(--measure); }
li { margin-bottom: 0.4rem; }
strong { font-weight: 600; color: var(--c-text); }
small, .small { font-size: 0.9375rem; color: var(--c-text-muted); }

/* --- Layout: Container & Section ----------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gap);
}
.section {
  padding-block: 4rem;
}
.section--alt { background-color: var(--c-bg-section); }
.section--tight { padding-block: 3rem; }
@media (min-width: 48rem) {
  .section { padding-block: 8rem; }
  .section--tight { padding-block: 5rem; }
}

.section-eyebrow {
  font-family: var(--ff-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin: 0 0 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  background-color: var(--c-accent);
}

.lead {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--c-text);
  max-width: var(--measure);
}
@media (min-width: 48rem) {
  .lead { font-size: 1.25rem; }
}

.divider {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin: 0;
}

/* --- Header & Navigation ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--c-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}

/* Brand: Logo + Schriftzug in EINER Zeile nebeneinander (Startseite).
   Wichtig: .brand.brand--inline hat höhere Spezifität als die Basis-Regel
   .brand (die flex-direction: column setzt). Dadurch gewinnt die
   Zeilen-Ausrichtung zuverlässig — unabhängig von der Reihenfolge im
   Stylesheet. Genau hier lag der Fehler: das Logo stand über dem Schriftzug. */
.brand.brand--inline {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
}
.brand.brand--inline .brand__name {
  font-size: 1.1875rem;     /* Mobile — gut lesbar, kein Überlauf */
  line-height: 1.1;
  white-space: nowrap;
}
.brand.brand--inline .brand__mark {
  height: 40px;             /* Mobile */
  width: auto;
  flex-shrink: 0;
  display: block;
}
@media (min-width: 48rem) {
  .brand.brand--inline {
    gap: 0.7rem;
  }
  .brand.brand--inline .brand__name {
    font-size: 1.625rem;    /* Desktop ~26px — dominanteste Information */
  }
  .brand.brand--inline .brand__mark {
    height: 44px;           /* Desktop ~42px */
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
@media (min-width: 64rem) {
  .site-header__inner { height: 80px; }
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--c-primary);
  line-height: 1.1;
}
.brand__name {
  font-family: var(--ff-serif);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand__sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--c-text-muted);
  letter-spacing: 0.02em;
  margin-top: 2px;
}
@media (min-width: 48rem) {
  .brand__name { font-size: 1.25rem; }
  .brand__sub  { font-size: 0.8125rem; }
}

/* Primary nav (desktop) */
.nav-primary { display: none; }
@media (min-width: 64rem) {
  .nav-primary {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }
  .nav-primary a {
    color: var(--c-text);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
  }
  .nav-primary a:hover,
  .nav-primary a[aria-current="page"] {
    color: var(--c-primary);
    border-bottom-color: var(--c-primary);
  }
}

/* Phone block (desktop) */
.header-phone {
  display: none;
}
@media (min-width: 64rem) {
  .header-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
  }
  .header-phone a {
    font-family: var(--ff-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--c-primary);
    text-decoration: none;
  }
  .header-phone a:hover { color: var(--c-primary-dark); }
  .header-phone__hours {
    font-size: 0.75rem;
    color: var(--c-text-muted);
    margin-top: 3px;
  }
}

/* Mobile actions (phone + burger) */
.mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 64rem) { .mobile-actions { display: none; } }

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--c-primary);
  border-radius: 4px;
}
.icon-btn:hover { background-color: var(--c-bg-section); }
.icon-btn svg { width: 22px; height: 22px; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: var(--c-bg);
  z-index: 200;
  display: none;
  flex-direction: column;
  padding: 1rem;
  overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  margin-bottom: 1.5rem;
}
.mobile-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--c-border);
}
.mobile-menu__list li { margin: 0; }
.mobile-menu__list a,
.mobile-menu__list summary {
  display: block;
  padding: 1rem 0.25rem;
  font-size: 1.25rem;
  font-family: var(--ff-serif);
  color: var(--c-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--c-border);
  cursor: pointer;
}
.mobile-menu__list summary { list-style: none; }
.mobile-menu__list summary::-webkit-details-marker { display: none; }
.mobile-menu__list summary::after {
  content: "+"; float: right; font-weight: 400;
  transition: transform 0.2s ease;
}
.mobile-menu__list details[open] summary::after { content: "−"; }
.mobile-menu__sub {
  list-style: none;
  padding: 0 0 0.5rem 1rem;
  margin: 0;
}
.mobile-menu__sub a {
  font-size: 1.0625rem;
  font-family: var(--ff-sans);
  color: var(--c-text);
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid transparent;
}
.mobile-menu__contact {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
  margin-top: 2rem;
}
.mobile-menu__contact a { font-family: var(--ff-serif); font-size: 1.25rem; color: var(--c-primary); display: block; padding: 0.5rem 0; }
.mobile-menu__contact .small { display: block; margin-top: 0.5rem; }

/* --- Hero (Startseite — vollflächiges Hintergrundbild) ------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-block: 7rem 4.5rem;
  background-color: var(--c-primary-dark);          /* Fallback, falls Bild fehlt */
  background-image:
    linear-gradient(100deg,
      rgba(32,27,22,0.78) 0%,
      rgba(32,27,22,0.62) 34%,
      rgba(32,27,22,0.34) 62%,
      rgba(32,27,22,0.12) 100%),
    url('../img/hero-interventionsraum.jpg');
  background-size: cover;
  background-position: center right;
  color: #fff;
}
@media (max-width: 63.999rem) {
  .hero {
    min-height: 80vh;
    padding-block: 5.5rem 3.5rem;
    background-position: center;
    background-image:
      linear-gradient(180deg,
        rgba(32,27,22,0.60) 0%,
        rgba(32,27,22,0.72) 100%),
      url('../img/hero-interventionsraum.jpg');
  }
}
.hero__content {
  max-width: 41rem;
}
.hero__content h1 {
  color: #fff;
  font-size: clamp(1.7rem, 6vw, 3.25rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero__kicker {
  font-family: var(--ff-sans);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  margin: 0 0 1.25rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.hero__kicker::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  background-color: var(--c-accent);
}
.hero__sub {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: rgba(255,255,255,0.92);
  margin: 0 0 2rem;
  font-weight: 400;
  max-width: 36rem;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}
.hero__phone {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.hero__phone:hover { text-decoration: underline; }
/* generischer Textlink-Stil — auch ausserhalb des Hero verwendet */
.hero__link {
  font-size: 1rem;
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero__link:hover { color: var(--c-primary-dark); }
/* im Hero-Bereich: weiss */
.hero .hero__link { color: #fff; }
.hero .hero__link:hover { color: rgba(255,255,255,0.82); }

/* --- Page Hero (non-Startseite) ------------------------------------------ */
.page-hero {
  padding-block: 3rem 2.5rem;
  border-bottom: 1px solid var(--c-border);
}
@media (min-width: 64rem) {
  .page-hero { padding-block: 5rem 4rem; }
}
.page-hero__kicker {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin: 0 0 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.page-hero__kicker::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  background-color: var(--c-accent);
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero__sub {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--c-text-muted);
  max-width: var(--measure);
}

/* --- Grids --------------------------------------------------------------- */
.grid-3 {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

.grid-2 {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
}

/* --- Cards (textbasiert, ohne Schatten) ---------------------------------- */
.card {
  padding: 0;
}
.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.card p { color: var(--c-text); }
.card__link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --- Leistungsraster (Index) --------------------------------------------- */
.service-list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--c-border);
}
@media (min-width: 48rem) {
  .service-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .service-list { grid-template-columns: repeat(2, 1fr); }
}
.service-list__item {
  border-bottom: 1px solid var(--c-border);
  padding: 1.5rem 0;
  display: block;
  text-decoration: none;
  color: inherit;
}
@media (min-width: 48rem) {
  .service-list__item {
    padding: 1.75rem 2rem 1.75rem 0;
  }
  .service-list__item:nth-child(2n) {
    padding-left: 2rem;
    padding-right: 0;
    border-left: 1px solid var(--c-border);
  }
}
.service-list__item {
  transition: background-color 0.15s ease, padding-left 0.15s ease;
}
.service-list__item:hover {
  background-color: rgba(19, 56, 73, 0.03);
}
.service-list__item:hover h3 { color: var(--c-primary); }
.service-list__item:hover h3::after { transform: translateX(3px); transition: transform 0.15s ease; }
.service-list__item h3 {
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.service-list__item h3::after {
  content: "→";
  color: var(--c-primary);
  font-family: var(--ff-sans);
  font-weight: 400;
  margin-left: 1rem;
}
.service-list__item p {
  margin: 0;
  color: var(--c-text-muted);
  font-size: 0.9375rem;
  max-width: 38rem;
}

/* --- Forms --------------------------------------------------------------- */
.form {
  display: grid;
  gap: 1.25rem;
  max-width: 36rem;
}
.form--wide { max-width: 100%; }
.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 48rem) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
  .form__row--3 { grid-template-columns: 1fr 1fr 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-text);
}
.field .req { color: var(--c-accent); margin-left: 0.15rem; }
.field input,
.field textarea,
.field select {
  font: inherit;
  padding: 0.7rem 0.85rem;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 2px;
  color: var(--c-text);
  min-height: 48px;
  width: 100%;
}
.field textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.5;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--c-primary);
  outline-offset: 1px;
  border-color: var(--c-primary);
}
.field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
}
.field--checkbox input {
  width: auto;
  min-height: 0;
  margin-top: 0.35rem;
}
.field--checkbox label {
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}
.checkbox-group {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
  padding-top: 0.25rem;
}
@media (min-width: 48rem) {
  .checkbox-group { grid-template-columns: 1fr 1fr; }
}
.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--c-text);
  padding: 0.35rem 0;
}
.checkbox-group input { margin-top: 0.3rem; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background-color: var(--c-primary);
  color: #fff;
  border: 1px solid var(--c-primary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: 2px;
  min-height: 48px;
  text-align: center;
  transition: background-color 0.15s ease;
}
.btn:hover { background-color: var(--c-primary-dark); color: #fff; border-color: var(--c-primary-dark); }
.btn--ghost {
  background: transparent;
  color: var(--c-primary);
}
.btn--ghost:hover { background-color: var(--c-bg-section); color: var(--c-primary); }

.form-note {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  font-style: italic;
  max-width: 36rem;
  margin-top: 0.5rem;
}

.form-section-title {
  font-family: var(--ff-serif);
  font-size: 1.125rem;
  color: var(--c-primary);
  margin: 2rem 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--c-border);
  font-weight: 600;
}

/* --- FAQ Accordion ------------------------------------------------------- */
.faq {
  border-top: 1px solid var(--c-border);
  max-width: 50rem;
}
.faq details {
  border-bottom: 1px solid var(--c-border);
}
.faq summary {
  padding: 1rem 0;
  font-family: var(--ff-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--c-primary);
  font-weight: 400;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq details > div, .faq details > p {
  padding-bottom: 1.25rem;
}
.faq p:last-child { margin-bottom: 0; }

/* --- Contact Block ------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 64rem) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.contact-block h3 {
  font-size: 1rem;
  font-family: var(--ff-sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.contact-block p { margin-bottom: 0.5rem; max-width: 100%; }
.contact-phone {
  font-family: var(--ff-serif);
  font-size: 1.75rem;
  color: var(--c-primary);
  text-decoration: none;
  font-weight: 600;
}
.contact-phone:hover { text-decoration: underline; }

.map-static {
  display: block;
  aspect-ratio: 16 / 9;
  background-color: var(--c-bg-section);
  border: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--c-text-muted);
}
.map-static__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

/* --- Image Frame --------------------------------------------------------- */
.media {
  aspect-ratio: 4 / 3;
  background-color: var(--c-bg-section);
  border: 1px solid var(--c-border);
  overflow: hidden;
  position: relative;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--portrait { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 9; }
.media__caption {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  margin-top: 0.5rem;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: var(--c-text-muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* --- Notice block -------------------------------------------------------- */
.notice {
  border-left: 3px solid var(--c-primary);
  padding: 1.1rem 1.25rem 1.1rem 1.4rem;
  background-color: var(--c-bg-section);
  margin: 2rem 0;
  max-width: 40rem;
  border-radius: 0 2px 2px 0;
}
.notice p { margin: 0; }
.notice strong { color: var(--c-primary); }

/* --- Related Links ------------------------------------------------------- */
.related {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--c-border);
}
.related h3 {
  font-family: var(--ff-sans);
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  font-weight: 500;
}
.related ul {
  list-style: none;
  padding: 0;
}
.related li {
  border-top: 1px solid var(--c-border);
}
.related li:last-child { border-bottom: 1px solid var(--c-border); }
.related a {
  display: block;
  padding: 0.85rem 0;
  font-family: var(--ff-serif);
  font-size: 1.0625rem;
  color: var(--c-primary);
  text-decoration: none;
}
.related a:hover { text-decoration: underline; }

/* --- Vita / Werdegang Liste --------------------------------------------- */
.vita {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--c-border);
  max-width: 42rem;
}
.vita li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--c-border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  margin: 0;
}
@media (min-width: 48rem) {
  .vita li { grid-template-columns: 9rem 1fr; gap: 1.5rem; }
}
.vita__year {
  color: var(--c-text-muted);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.vita__entry strong { display: block; color: var(--c-text); }
.vita__entry { color: var(--c-text-muted); font-size: 0.9375rem; }

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background-color: var(--c-bg-section);
  border-top: 1px solid var(--c-border);
  padding-block: 3rem;
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  margin-top: 4rem;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 4rem;
  height: 3px;
  background-color: var(--c-primary);
}
@media (min-width: 64rem) {
  .site-footer { padding-block: 4rem; }
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 48rem) {
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 3rem; }
}
.site-footer h4 {
  font-family: var(--ff-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a {
  color: var(--c-text);
  text-decoration: none;
}
.site-footer a:hover { color: var(--c-primary); text-decoration: underline; }
.site-footer__bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8125rem;
}
@media (min-width: 48rem) {
  .site-footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

.site-footer__brand strong {
  font-family: var(--ff-serif);
  font-size: 1.125rem;
  color: var(--c-primary);
  display: block;
  margin-bottom: 0.25rem;
}

/* --- Utility ------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.no-bottom-margin > *:last-child { margin-bottom: 0; }

/* Print */
@media print {
  .site-header, .site-footer, .mobile-actions, .hero__actions { display: none; }
  body { color: #000; background: #fff; font-size: 11pt; }
  a { color: #000; text-decoration: none; }
}
margin-top: 2rem; }
.no-bottom-margin > *:last-child { margin-bottom: 0; }

/* Print */
@media print {
  .site-header, .site-footer, .mobile-actions, .hero__actions { display: none; }
  body { color: #000; background: #fff; font-size: 11pt; }
  a { color: #000; text-decoration: none; }
}
