/* =====================================================================
   BAG Hecker & Hecker – Stylesheet

   Farbwelt : Papier in kühlem Blaugrau, Tiefe in Petrol, Akzent in Messing
   Schrift  : System-Schriften jedes Geräts – keine Downloads, keine externen
              Server. Überschriften in der System-Serifenschrift (Mac/iOS:
              "New York"), Fließtext in der System-Grotesk (Mac/iOS:
              "San Francisco"). Windows und Android nutzen jeweils ihre
              eigenen, gleichwertigen Systemschriften.
   Motiv    : "Methodenkoffer" – Werkzeugleiste mit reduzierten Strichmarken
   ===================================================================== */

:root {
  /* Palette */
  --paper:      #e8ecee;   /* Grundton: Papier bei Nordlicht */
  --paper-deep: #dde4e7;   /* abgesetzte Bänder */
  --surface:    #f7f9f9;   /* Karten */
  --ink:        #1b2830;   /* Text */
  --ink-soft:   #4d5f68;   /* Sekundärtext */
  --petrol:     #23505e;   /* Tiefe, Überschriften */
  --petrol-dk:  #17323c;   /* Fußbereich */
  --brass:      #a1702c;   /* Messing – für Linien, Ränder, Zeichnungen */
  --brass-text: #83571c;   /* dunkler, für Text (WCAG-Kontrast ≥ 4.5:1) */
  --brass-pale: #f0e4d0;   /* Akzentfläche */
  --rule:       #c2cfd4;   /* Linien */

  /* Schrift – nur Systemschriften, ohne Downloads
     --display: System-Serifenschrift (Mac/iOS "New York", sonst Georgia u.a.)
     --body:    System-Grotesk (Mac/iOS "San Francisco", Windows "Segoe UI",
                Android "Roboto") */
  --display: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype",
             Palatino, Georgia, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  /* Maße */
  --maxw: 72rem;
  --gutter: 1.75rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 5.5rem; }
@media (max-width: 52rem) {
  section[id] { scroll-margin-top: 7rem; }
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--petrol); text-underline-offset: 3px; }
a:hover { color: var(--brass-text); }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--petrol-dk); color: #fff;
  padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------------------------------------------------------------
   Typografische Grundformen
   --------------------------------------------------------------- */
h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--petrol); }

h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
  max-width: 26ch;
}
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-text);
  font-weight: 700;
}

section p + p { margin-top: 0.9rem; }

/* ---------------------------------------------------------------
   Hinweisband (Urlaub)
   --------------------------------------------------------------- */
.notice-band {
  display: none;
  background: var(--brass-pale);
  border-bottom: 1px solid #ddc9a4;
  color: #5c4415;
  font-size: 0.96rem;
}
.notice-band.is-visible { display: block; }
.notice-band .wrap {
  padding-top: 0.75rem; padding-bottom: 0.75rem;
  display: flex; gap: 0.75rem; align-items: baseline;
}
.notice-band strong { font-family: var(--display); white-space: nowrap; }
.notice-vertretung { display: block; margin-top: 0.15rem; font-size: 0.9rem; }

/* ---------------------------------------------------------------
   Kopfbereich – läuft beim Scrollen oben mit (sticky)
   --------------------------------------------------------------- */
header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.75rem 2.5rem;
  padding-top: 1.5rem; padding-bottom: 1.5rem;
}

.brand {
  font-family: var(--display);
  font-size: 1.4rem; font-weight: 600;
  color: var(--petrol); text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-right: auto;
}
.brand:hover { color: var(--petrol); }
.brand-sub {
  display: block; font-family: var(--body);
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 0.3rem;
}

nav.main ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
nav.main a {
  position: relative;
  text-decoration: none; font-size: 0.94rem;
  color: var(--ink-soft); padding: 0.25rem 0;
}
nav.main a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 2px; width: 100%; background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
nav.main a:hover { color: var(--petrol); }
nav.main a:hover::after,
nav.main a[aria-current="page"]::after { transform: scaleX(1); }

/* Telefon-Icon im Header – nur auf dem Handy sichtbar, als gefüllter Kreis */
.header-call {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--petrol);
  color: #fff;
  flex: 0 0 auto;
  transition: background 0.2s ease;
}
.header-call:hover { background: var(--brass); color: #fff; }

/* Burger-Button – nur auf dem Handy, mit "Menü"-Beschriftung */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  height: 44px;
  padding: 0 0.9rem 0 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 22px;
  background: var(--surface);
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-toggle-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--petrol);
  letter-spacing: 0.02em;
}
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px; height: 2px;
  background: var(--petrol);
  transition: background 0.2s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute; left: 0;
  width: 18px; height: 2px;
  background: var(--petrol);
  transition: transform 0.25s ease;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }
/* zu einem X, wenn geöffnet */
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* ------------------ Handy-Layout: Menü klappt auf ------------------ */
@media (max-width: 52rem) {
  /* Praxisname zweizeilig: Name oben, Unterzeile klein darunter */
  .brand {
    font-size: 1.15rem;
    line-height: 1.15;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .brand-sub {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    margin-top: 0.2rem;
    white-space: nowrap;
  }
  /* Ortszusatz "· Münster" auf dem Handy ausblenden -> passt sicher */
  .brand-city { display: none; }
  .site .wrap {
    padding-top: 0.8rem; padding-bottom: 0.8rem;
    padding-left: 1rem; padding-right: 1rem;
    flex-wrap: nowrap;
    gap: 0.4rem;
    align-items: center;
  }

  /* Hörer + Menü als Gruppe rechts, kompakt */
  .header-call {
    display: inline-flex; order: 2; margin-left: auto;
    width: 40px; height: 40px;
    flex: 0 0 auto;
  }
  .nav-toggle {
    display: inline-flex; order: 3;
    height: 40px;
    padding: 0 0.7rem 0 0.6rem;
    gap: 0.4rem;
    flex: 0 0 auto;
  }
  .nav-toggle-text { font-size: 0.85rem; }

  /* Menü ausgeblendet, klappt unter dem Header auf.
     Absolut positioniert, damit die Kopfzeile (nowrap) eine Reihe bleibt. */
  nav.main {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 12px 24px rgba(23, 50, 60, 0.12);
  }
  nav.main.is-open { max-height: 34rem; }

  nav.main ul {
    flex-direction: column;
    gap: 0;
    padding: 0.25rem 1rem 0.75rem;
  }
  nav.main li { border-top: 1px solid var(--rule); }
  nav.main li:first-child { border-top: none; }
  nav.main a {
    display: block;
    padding: 1rem 0.25rem;
    font-size: 1.1rem;
    color: var(--ink);
  }
  nav.main a::after { display: none; }
}

/* ---------------------------------------------------------------
   Hero – asymmetrisch: breite Textspalte, schmale Statusleiste
   --------------------------------------------------------------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--rule); }
.hero .wrap {
  padding-top: 5rem; padding-bottom: 4.5rem;
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 3.5rem; align-items: start;
}
@media (max-width: 56rem) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3rem; padding-bottom: 3rem; }
}
.hero .eyebrow { margin-bottom: 1.1rem; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
  max-width: 18ch;
}
.hero p.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; }

/* Rechte Spalte: Status + Terminvereinbarung */
.hero-rail { display: flex; flex-direction: column; gap: 1rem; }

/* Terminvereinbarung – der schnellste Weg in die Praxis */
.call-card {
  background: var(--petrol);
  color: #e3ecef;
  padding: 1.4rem 1.5rem;
}
.call-card .status-label { color: #a9c2ca; }
.call-number {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.9rem;
  transition: color 0.25s ease;
}
.call-number:hover { color: var(--brass-pale); }
.call-hours { width: 100%; border-collapse: collapse; }
.call-hours th, .call-hours td {
  text-align: left; padding: 0.3rem 0;
  font-size: 0.94rem; font-weight: 400;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.call-hours th { color: #fff; font-weight: 700; padding-right: 1.25rem; white-space: nowrap; }
.call-note { margin-top: 0.85rem; font-size: 0.86rem; color: #a9c2ca; }

/* Statusleiste: aufgehängtes Schild */
.status-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--petrol);
  padding: 1.4rem 1.5rem;
  position: relative;
}
.status-card.status-closed { border-top-color: var(--brass); }
.status-label {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700; margin-bottom: 0.5rem;
}
.status-text { font-family: var(--display); font-size: 1.2rem; line-height: 1.35; color: var(--ink); }
.status-extra { margin-top: 0.5rem; font-size: 0.93rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------
   Abschnitte
   --------------------------------------------------------------- */
section.block .wrap { padding-top: 4.5rem; padding-bottom: 4.5rem; }
section.block + section.block { border-top: 1px solid var(--rule); }
section.block.tinted { background: var(--paper-deep); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 48rem) { .two-col { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------------------------------------------------------------
   SIGNATUR: Werkzeugmarken
   Reduzierte Strichzeichen, überall gleiche Strichstärke.
   --------------------------------------------------------------- */
.mark { display: block; width: 34px; height: 34px; color: var(--brass); }
.mark svg { width: 100%; height: 100%; display: block; }
.mark svg * { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

/* Schwerpunkte */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 2.5rem; }
@media (max-width: 54rem) { .offer-grid { grid-template-columns: 1fr; } }
.offer {
  padding: 1.75rem 1.75rem 1.75rem 0;
  border-top: 2px solid var(--petrol);
  margin-right: 2rem;
  transition: border-color 0.25s ease;
}
.offer:last-child { margin-right: 0; }
@media (max-width: 54rem) { .offer { margin-right: 0; padding-right: 0; } }
.offer:hover { border-top-color: var(--brass); }
.offer .mark { margin-bottom: 1rem; }
.offer h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.offer p { font-size: 0.98rem; color: var(--ink-soft); }
.offer-tag {
  display: inline-block; font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-soft); font-weight: 700;
  margin-bottom: 0.9rem;
}

/* Werkzeugleiste (Methoden) */
.methods { margin-top: 4rem; }
.methods > p { max-width: 52ch; color: var(--ink-soft); }
.toolrack {
  list-style: none;
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
@media (max-width: 54rem) { .toolrack { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 34rem) { .toolrack { grid-template-columns: 1fr; } }
.toolrack li {
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.toolrack li::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 0; height: 3px; background: var(--brass);
  transition: width 0.3s ease;
}
.toolrack li:hover::before { width: 2.5rem; }
.toolrack .mark { width: 28px; height: 28px; margin-bottom: 0.85rem; }
.toolrack h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.toolrack p { font-size: 0.93rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------------------------------------------------------------
   Ablauf – echte Abfolge, deshalb nummeriert
   --------------------------------------------------------------- */
.steps { list-style: none; margin-top: 2.5rem; }
.steps li { display: flex; gap: 1.75rem; padding-bottom: 2.25rem; position: relative; }
.steps li::before {
  content: ""; position: absolute; left: 1.15rem; top: 2.8rem; bottom: 0.4rem;
  width: 1px; background: var(--rule);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::before { display: none; }

/* Hover: Ziffer wechselt auf Messing, die Verbindungslinie
   füllt sich von oben nach unten – gleiche Geste wie in der
   Werkzeugleiste, nur vertikal. */
.steps li::after {
  content: ""; position: absolute; left: 1.15rem; top: 2.8rem; bottom: 0.4rem;
  width: 1px; background: var(--brass);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.45s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.steps li:last-child::after { display: none; }
.steps li:hover::after { transform: scaleY(1); }
.steps li:hover .step-num {
  border-color: var(--brass);
  color: var(--brass-text);
  background: var(--surface);
}
.steps li:hover h3 { color: var(--brass-text); }
.step-num, .steps h3 { transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease; }
.step-num {
  flex: 0 0 2.3rem; width: 2.3rem; height: 2.3rem;
  border: 1px solid var(--petrol); background: var(--paper);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 0.95rem; font-weight: 600;
  color: var(--petrol); position: relative; z-index: 1;
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--ink-soft); font-size: 0.98rem; max-width: 58ch; }
@media (max-width: 34rem) { .steps li { gap: 1rem; } }

/* ---------------------------------------------------------------
   Karten (Kontakt, Kosten, FAQ)
   --------------------------------------------------------------- */
.contact-card, .faq-item {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 1.75rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.contact-card:hover, .faq-item:hover { border-color: var(--petrol); }
.contact-card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 1.25rem; }
.contact-card dt { font-weight: 700; color: var(--petrol); white-space: nowrap; }
.contact-card dd { color: var(--ink-soft); }

.hours-table { width: 100%; border-collapse: collapse; margin-top: 0.6rem; }
.hours-table th, .hours-table td {
  text-align: left; padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule); font-size: 1rem;
}
.hours-table th { font-weight: 700; color: var(--petrol); padding-right: 1.5rem; }
.hours-note { margin-top: 0.9rem; font-size: 0.91rem; color: var(--ink-soft); }

.cost-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 2rem; align-items: start;
}
@media (max-width: 62rem) { .cost-grid { grid-template-columns: 1fr; } }
.cost-grid .contact-card p { font-size: 0.96rem; }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.25rem; }
@media (max-width: 48rem) { .faq { grid-template-columns: 1fr; } }
.faq-item h3 { font-size: 1.08rem; }
.faq-item p { font-size: 0.96rem; color: var(--ink-soft); }

/* App-Symbol vor der Überschrift: ruht in der Farbwelt der Seite,
   zeigt beim Überfahren der Karte seine eigene Farbe. */
h3.with-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.app-logo {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: block;
}
.app-logo img {
  position: absolute;
  inset: 0;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  transition: opacity 0.3s ease;
}
.app-logo-color { opacity: 0; }
.contact-card:hover .app-logo-color { opacity: 1; }
.contact-card:hover .app-logo-tinted { opacity: 0; }

/* Weiterlesen-Link */
.more { margin-top: 1.5rem !important; }
.more a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.95rem; font-weight: 700; text-decoration: none;
  color: var(--petrol); border-bottom: 2px solid var(--brass);
  padding-bottom: 0.15rem;
}
.more a::after { content: "→"; transition: transform 0.25s ease; }
.more a:hover { color: var(--brass-text); }
.more a:hover::after { transform: translateX(4px); }

/* ---------------------------------------------------------------
   Behandler
   --------------------------------------------------------------- */
.person-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 48rem) { .person-grid { grid-template-columns: 1fr; } }

.person {
  background: var(--surface);
  border: 1px solid var(--rule);
  transition: border-color 0.25s ease;
  overflow: hidden;
}
.person:hover { border-color: var(--petrol); }

/* Foto oben: breit, im Querformat-Ausschnitt, mittig */
.person .portrait {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--paper-deep);
  border: none;
  display: block;
  overflow: hidden;
}
.person .portrait picture,
.person .portrait img { display: block; width: 100%; height: 100%; }
.person .portrait img { object-fit: cover; object-position: center 28%; }

/* Textteil darunter */
.person .person-body { padding: 1.75rem; }
.person h3 { font-size: 1.35rem; margin-bottom: 0.15rem; }
.person .role {
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700; margin-bottom: 0.9rem;
}
.person p { font-size: 0.97rem; }
.person .days {
  display: inline-block; margin-top: 0.85rem;
  font-size: 0.82rem; font-weight: 700; color: var(--brass-text);
  border-bottom: 2px solid var(--brass-pale); padding-bottom: 0.15rem;
}
.cv { list-style: none; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.cv li {
  font-size: 0.87rem; color: var(--ink-soft);
  padding-left: 0.95rem; margin-bottom: 0.45rem;
  position: relative; line-height: 1.5;
}
.cv li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 1px; background: var(--brass);
}

/* ---------------------------------------------------------------
   Termin, Anfahrt, Notfall
   --------------------------------------------------------------- */
.calendar-placeholder {
  border: 1px dashed var(--rule); background: var(--surface);
  padding: 2.75rem 1.75rem; text-align: center; color: var(--ink-soft);
}
.cal-icon { font-family: var(--display); font-size: 1.3rem; color: var(--petrol); margin-bottom: 0.5rem; }

.address-line { font-family: var(--display); font-size: 1.35rem; color: var(--petrol); }
.map-link {
  display: inline-block; margin-top: 1rem;
  padding: 0.65rem 1.2rem; background: var(--petrol); color: #fff;
  text-decoration: none; font-size: 0.94rem; font-weight: 700;
  transition: background 0.25s ease;
}
.map-link:hover { background: var(--brass); color: #fff; }
.map-privacy { margin-top: 0.7rem; font-size: 0.85rem; color: var(--ink-soft); }

.emergency {
  background: var(--surface); border: 1px solid var(--rule);
  border-left: 4px solid var(--brass); padding: 1.5rem 1.7rem; font-size: 0.97rem;
}
.emergency strong { color: var(--petrol); }

/* ---------------------------------------------------------------
   Fußbereich
   --------------------------------------------------------------- */
footer.site { background: var(--petrol-dk); color: #d3dee1; font-size: 0.94rem; }
footer.site .wrap {
  padding-top: 2.75rem; padding-bottom: 2.75rem;
  display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: space-between;
}
footer.site a { color: #fff; }
footer.site a:hover { color: var(--brass-pale); }
footer.site nav ul { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------
   Rechts- und Textseiten
   --------------------------------------------------------------- */
.legal .wrap { max-width: 46rem; padding-top: 3.5rem; padding-bottom: 4.5rem; }
.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.02em;
  margin-bottom: 2rem; line-height: 1.1;
}
.legal h2 { font-size: 1.35rem; margin-top: 2.5rem; margin-bottom: 0.75rem; max-width: none; }
.legal h3 { margin-top: 1.5rem; }
.legal ul { padding-left: 1.25rem; margin-top: 0.5rem; }
.legal .todo ul { margin: 0.5rem 0 0 0; padding-left: 1.2rem; }
.legal .todo li { margin-bottom: 0.3rem; }
.legal .todo {
  background: var(--brass-pale); border: 1px dashed var(--brass);
  padding: 0.85rem 1.1rem; font-size: 0.91rem; margin: 0.9rem 0;
}

/* ---------------------------------------------------------------
   Bilder
   --------------------------------------------------------------- */
.full-image {
  margin: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-deep);
}
.full-image img {
  display: block;
  width: 100%;
  max-height: 30rem;
  object-fit: cover;
  object-position: center bottom;
}
.full-image picture { display: block; }

.inline-image { margin: 0; }
.inline-image img {
  display: block;
  width: 100%;
  border: 1px solid var(--rule);
  object-fit: cover;
}
.inline-image figcaption {
  margin-top: 0.6rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 46rem) { .image-pair { grid-template-columns: 1fr; } }
.image-pair .inline-image { margin: 0; }

/* ---------------------------------------------------------------
   Bewegung: eine ruhige Einblendung beim Laden, sonst nur Hover
   --------------------------------------------------------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero .eyebrow,
.hero h1,
.hero p.lead,
.hero .status-card,
.hero .call-card { animation: rise 0.7s cubic-bezier(0.22, 0.7, 0.3, 1) backwards; }
.hero .eyebrow     { animation-delay: 0.05s; }
.hero h1           { animation-delay: 0.15s; }
.hero p.lead       { animation-delay: 0.28s; }
.hero .status-card { animation-delay: 0.4s; }
.hero .call-card   { animation-delay: 0.5s; }

/* Textspalte im Hero */
.hero-text { min-width: 0; }

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