/* ============================================================
   Archivo Variable – selbst gehostet, DSGVO-konform
   ============================================================ */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/Archivo-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ============================================================
   Design-Tokens
   ============================================================ */
:root {
  --paper:  #FBFAF8;
  --ink:    #14110F;
  --muted:  #6B6560;
  --focus:  #123C55;

  --step-d1:    clamp(2.6rem, 9vw, 7rem);
  --step-d2:    clamp(2.2rem, 7.5vw, 5.5rem);
  --step-phone: clamp(2rem, 7vw, 5rem);
  --step-h1:    clamp(1.875rem, 4.5vw, 3.25rem);
  --step-h2:    clamp(1.375rem, 2.8vw, 2rem);
  --step-body:  clamp(1rem, 1.15vw, 1.125rem);
  --step-small: 0.875rem;

  --pad-x:      clamp(1.5rem, 6vw, 5rem);
  --pad-y:      clamp(2rem, 5vw, 4rem);
  --max-prose:  68ch;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: "Archivo", system-ui, -apple-system, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body { min-height: 100dvh; line-height: 1.5; }

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

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   STARTSEITE – tränensicher
   ============================================================ */
.page-home {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.page-home > main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: var(--pad-y) var(--pad-x);
  padding-bottom: 7rem;
}

.hero { max-width: 22ch; }

.hero h1 {
  font-size: var(--step-d1);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: clamp(1.25rem, 3vw, 2.5rem);
}

.hero .tagline {
  font-size: var(--step-d2);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.cta-label {
  font-size: var(--step-small);
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: var(--step-phone);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  padding: 0.75rem 1.25rem;
  min-height: 64px;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.phone-link:hover  { background: var(--focus); color: var(--paper); }
.phone-link:focus-visible { outline-offset: 0; }

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--step-small);
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--muted);
  padding-bottom: 1px;
}

.more-link:hover { color: var(--focus); border-bottom-color: var(--focus); }

/* ============================================================
   SEITENÜBERGREIFEND – Header, Nav, Breadcrumb
   ============================================================ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem var(--pad-x);
  border-bottom: 1px solid rgba(20,17,15,0.08);
}

.site-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.site-phone {
  font-size: var(--step-small);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.site-phone:hover { color: var(--focus); }

.site-nav {
  padding: 0.5rem var(--pad-x);
  border-bottom: 1px solid rgba(20,17,15,0.06);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  white-space: nowrap;
}

.site-nav a {
  font-size: var(--step-small);
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.breadcrumb {
  padding: 0.625rem var(--pad-x);
  font-size: 0.8125rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(20,17,15,0.05);
}

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.375rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--focus); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.125rem; opacity: 0.5; }

/* ============================================================
   INNENSEITEN – Hauptinhalt
   ============================================================ */
.page-inner main {
  padding: var(--pad-y) var(--pad-x);
}

.page-inner h1 {
  font-size: var(--step-h1);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 24ch;
}

.page-inner h2 {
  font-size: var(--step-h2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 0.875rem;
  max-width: 34ch;
}

.page-inner p {
  font-size: var(--step-body);
  line-height: 1.65;
  margin-bottom: 1.125rem;
  max-width: var(--max-prose);
}

.page-inner ul,
.page-inner ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  max-width: var(--max-prose);
}

.page-inner li {
  font-size: var(--step-body);
  line-height: 1.6;
  margin-bottom: 0.375rem;
}

.page-inner strong { font-weight: 700; }

/* Bildblöcke */
.img-block {
  margin: clamp(1.5rem, 3vw, 2.5rem) 0;
  max-width: var(--max-prose);
}

.img-block img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(20,17,15,0.05);
  object-fit: cover;
}

/* ============================================================
   WENN-DANN-TABELLE
   ============================================================ */
.wenn-dann {
  width: 100%;
  max-width: var(--max-prose);
  border-collapse: collapse;
  margin: clamp(2rem, 4vw, 3rem) 0;
  font-size: var(--step-body);
}

.wenn-dann thead th {
  text-align: left;
  padding: 0.625rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--step-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wenn-dann tbody tr { border-bottom: 1px solid rgba(20,17,15,0.08); }
.wenn-dann tbody tr:last-child { border-bottom: none; }

.wenn-dann td {
  padding: 0.875rem 1rem;
  vertical-align: top;
  line-height: 1.55;
}

.wenn-dann td:first-child {
  font-weight: 600;
  width: 42%;
  padding-right: 1.5rem;
  border-right: 1px solid rgba(20,17,15,0.08);
}

/* ============================================================
   HUB-KARTEN
   ============================================================ */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: rgba(20,17,15,0.1);
  border: 1px solid rgba(20,17,15,0.1);
  margin: clamp(2rem, 4vw, 3rem) 0;
  max-width: var(--max-prose);
}

.hub-card {
  display: block;
  padding: 1.5rem;
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
}

.hub-card:hover { background: rgba(20,17,15,0.03); }
.hub-card:focus-visible { outline-offset: -3px; }

.hub-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.375rem;
  line-height: 1.25;
}

.hub-card p {
  font-size: var(--step-small);
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
  max-width: none;
}

.hub-card .hub-arrow {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: var(--step-small);
  color: var(--muted);
}

/* ============================================================
   HILFEANKER
   ============================================================ */
.hilfe-anker {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--ink);
  max-width: var(--max-prose);
}

.hilfe-anker > p {
  font-size: var(--step-small);
  color: var(--muted);
  margin-bottom: 0.625rem;
}

.hilfe-anker .hilfe-phone {
  display: inline-block;
  font-size: clamp(1.375rem, 3.5vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.hilfe-anker .hilfe-phone:hover { color: var(--focus); }

/* ============================================================
   FOOTER & FOOTER-MESH
   ============================================================ */
.page-footer {
  padding: clamp(2rem, 4vw, 3rem) var(--pad-x);
  border-top: 1px solid rgba(20,17,15,0.1);
  margin-top: auto;
}

.footer-id {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.footer-mesh {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.375rem 2rem;
  margin-bottom: 2rem;
}

.footer-mesh a {
  font-size: var(--step-small);
  color: var(--muted);
  text-decoration: none;
}

.footer-mesh a:hover { color: var(--focus); text-decoration: underline; }

.footer-legal {
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.875rem;
}

.footer-legal a { color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--focus); }

/* ============================================================
   CONSENT-BANNER
   ============================================================ */
.consent-banner {
  position: fixed;
  inset: auto 0 0 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.875rem var(--pad-x);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  z-index: 200;
  font-size: var(--step-small);
}

.consent-banner[hidden] { display: none; }

.consent-banner p { max-width: 56ch; margin: 0; }

.consent-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

.consent-actions button {
  padding: 0.5rem 1.25rem;
  min-height: 44px;
  border: 1px solid rgba(251,250,248,0.35);
  background: transparent;
  color: var(--paper);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.consent-actions button:first-child {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.consent-actions button:hover { opacity: 0.82; }
.consent-actions button:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .site-nav ul { gap: 1.25rem; }
  .footer-mesh { grid-template-columns: 1fr 1fr; }
  .wenn-dann td:first-child { width: 36%; }
  .hub-grid { grid-template-columns: 1fr; }
  .consent-banner { gap: 0.75rem; }
}

@media (max-width: 380px) {
  :root { --pad-x: 1.125rem; }
  .footer-mesh { grid-template-columns: 1fr; }
  .wenn-dann { font-size: 0.875rem; }
  .wenn-dann td:first-child { width: 100%; border-right: none; display: block; border-bottom: 1px solid rgba(20,17,15,0.08); padding-right: 1rem; }
  .wenn-dann td:last-child { display: block; }
}

@media (max-width: 320px) {
  .hero h1 { letter-spacing: -0.015em; }
  .phone-link { font-size: 1.75rem; }
}
