/* Versavio GmbH – versavio.de
   Schriften lokal (Inter, SIL Open Font License, siehe fonts/OFL.txt). Keine externen Einbindungen.
   Stand 2026-12-03: Tippflächen vergrößert, Blau nur noch für Links und Akzente,
   Dunkelmodus mit eigener Logo-Variante, doppelte Regeln zusammengeführt, zweite V-Grafik entfernt. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/interdisplay-700.woff2") format("woff2"); }

/* Farben nach Aufgabe benannt, damit der Dunkelmodus nur diese Werte tauscht */
:root {
  color-scheme: light dark;

  --bg: #FFFFFF;            /* Seitenhintergrund */
  --surface: #F3F6FB;       /* helle Bänder */
  --text: #0D2142;          /* Fließtext, Überschriften */
  --muted: #46536B;         /* Nebentext */
  --rule: #D6DEEA;          /* Linien */
  --link: #034A8A;          /* nur Links */
  --accent: #034A8A;        /* Striche, Balken, Linien (kein Text) */
  --focus: #3B8FE0;         /* Fokusrahmen */
  --tile: #F3F6FB;          /* Kachel hinter den Leistungs-Grafiken */
  --tile-alt: #FFFFFF;      /* Kachel in hellen Bändern */

  --band: #0D2142;          /* dunkle Bänder: Start, Ablauf, Kontakt */
  --on-band: #FFFFFF;
  --on-band-muted: #B9C6DC;
  --on-band-accent: #3B8FE0;

  --measure: 68ch;
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081428;
    --surface: #0F2140;
    --text: #E6ECF5;
    --muted: #B9C6DC;
    --rule: #24395E;
    --link: #8CBDF2;
    --accent: #5A9BE6;
    --focus: #8CBDF2;
    --tile: #DCE5F2;        /* Grafiken sind für hellen Grund gezeichnet */
    --tile-alt: #DCE5F2;
    --band: #142C54;        /* etwas heller als der Grund, damit die Bänder sichtbar bleiben */
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "kern", "calt";
}

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

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

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

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--bg); color: var(--text); padding: 0.75rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; }

/* Kopf */
.site-header { background: var(--bg); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; min-height: 5rem; flex-wrap: wrap; padding-block: 0.5rem; }
.brand img { height: 2.4rem; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(0.5rem, 2.5vw, 1.75rem); flex-wrap: wrap; }
/* Tippfläche mindestens 44 px hoch */
.site-nav a { display: inline-block; padding: 0.625rem 0.375rem; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1rem; }
.site-nav a:hover { color: var(--link); text-decoration: underline; }

/* Startbereich */
.hero { position: relative; overflow: hidden; background: var(--band); color: var(--on-band); isolation: isolate; }
.hero .wrap { position: relative; padding-block: clamp(4.5rem, 11vw, 9rem); }
.hero-deko {
  position: absolute; z-index: -1; pointer-events: none;
  right: -6%;
  top: 50%; transform: translateY(-50%);
  height: 112%; width: auto;
}
.hero h1 {
  font-family: "Inter Display", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5.6vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 1.75rem;
  max-width: 13em;
}
.hero .lead { font-size: clamp(1.15rem, 1.8vw, 1.375rem); line-height: 1.55; color: var(--on-band-muted); max-width: 44ch; margin: 0; }

/* Abschnitte */
section { scroll-margin-top: 1rem; }
.section { padding-block: clamp(5rem, 11vw, 8.5rem); }
.section h2 {
  font-family: "Inter Display", "Inter", sans-serif;
  font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
}
.section .intro { font-size: 1.2rem; color: var(--muted); margin: calc(-1 * clamp(1.25rem, 3vw, 2.25rem)) 0 clamp(2rem, 5vw, 3rem); max-width: 64ch; }

/* Leistungen: Bänder im Wechsel */
#leistungen { overflow-x: clip; }
.service {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem clamp(2rem, 6vw, 5rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.service:nth-of-type(even)::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -50vw; right: -50vw; background: var(--surface); }
.service-head { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.icon-tile { display: inline-grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 0.75rem; background: var(--tile); }
.service:nth-of-type(even) .icon-tile { background: var(--tile-alt); }
.service-icon { width: 64px; height: 64px; }
.service h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.01em; margin: 0; font-weight: 700; }
.service p { margin: 0 0 1.25rem; max-width: var(--measure); }
/* Situationssatz: Textfarbe statt Linkblau, der Balken trägt den Akzent */
.service .situation { font-weight: 600; font-size: 1.2rem; line-height: 1.45; margin-bottom: 0.6rem; color: var(--text); border-left: 3px solid var(--accent); padding-left: 1rem; }
.service .why { font-size: 1.2rem; line-height: 1.5; }
.service .situation + .why { font-size: 1.1rem; }
.service ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.service li { position: relative; padding-left: 1.4rem; color: var(--muted); }
.service li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.6rem; height: 2px; background: var(--accent); }
.service .note { margin: 1.25rem 0 0; color: var(--muted); font-size: 1rem; }

.extra { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.extra h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.extra p { margin: 0 0 0.5rem; color: var(--muted); max-width: var(--measure); }
.extra p:last-child { margin-bottom: 0; }

/* So arbeite ich */
.process { position: relative; overflow: hidden; isolation: isolate; background: var(--band); color: var(--on-band); }
.process .intro { color: var(--on-band-muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); --g: clamp(1.5rem, 3vw, 2.5rem); gap: 2.5rem var(--g); position: relative; }
.steps::before { content: ""; position: absolute; left: 1.5rem; right: calc((100% - 3 * var(--g)) / 4 - 1.5rem); top: 1.5rem; border-top: 6px double var(--on-band-accent); z-index: 0; }
.steps li { position: relative; z-index: 1; }
.step-no { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--on-band-accent); color: var(--band); font-weight: 700; font-size: 1.15rem; box-shadow: 0 0 0 8px var(--band); margin-bottom: 1.25rem; }
.steps h3 { font-size: 1.35rem; margin: 0 0 0.5rem; letter-spacing: -0.01em; color: var(--on-band); }
.steps p { margin: 0; color: var(--on-band-muted); max-width: 36ch; }

/* Aus der Praxis */
.cases-section { background: var(--surface); }
.cases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 4vw, 3rem); }
.case { border-top: 3px solid var(--accent); padding-top: 1.25rem; }
.case h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 0.75rem; letter-spacing: -0.01em; }
.case dl { margin: 0; }
/* Labels nicht mehr in Linkblau */
.case dt { font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em; color: var(--muted); margin: 0 0 0.2rem; }
.case dd { margin: 0 0 1rem; max-width: 40ch; }
.case dd:last-child { margin-bottom: 0; }

/* Über mich */
.about { background: var(--bg); }
.about .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem clamp(2rem, 6vw, 5rem); }
.about-head { display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }
.about h2 { margin-bottom: 0; }
.portrait { width: 100%; max-width: 300px; height: auto; border-radius: 0.5rem; }
.about p { margin: 0 0 1.25rem; max-width: var(--measure); }
.about .name { font-weight: 700; font-size: 1.2rem; }
.about .branchen { color: var(--muted); }

/* Kontakt */
.contact { background: var(--band); color: var(--on-band); }
.contact p { color: var(--on-band-muted); margin: 0 0 2rem; max-width: 44ch; font-size: 1.2rem; }
.contact .ways { display: grid; gap: 0.25rem; margin: 0 0 2.5rem; }
.contact .ways a { display: inline-block; padding-block: 0.55rem; color: var(--on-band); font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; text-decoration: none; width: fit-content; }
.contact .ways a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.contact :focus-visible { outline-color: var(--on-band-accent); }
.contact address { font-style: normal; color: var(--on-band-muted); font-size: 1rem; }

/* Fuß */
.site-footer { background: var(--bg); border-top: 1px solid var(--rule); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; }
/* Tippfläche mindestens 44 px hoch */
.site-footer a { display: inline-block; padding: 0.7rem 0.25rem; color: var(--text); }

/* Rechtstexte */
.legal { padding-block: clamp(3rem, 7vw, 5.5rem); }
.legal .wrap { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.legal h1 { font-family: "Inter Display", "Inter", sans-serif; font-size: clamp(2.2rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 2rem; }
.legal h2 { font-size: 1.3rem; line-height: 1.3; margin: 2.5rem 0 0.75rem; }
.legal p, .legal ul { margin: 0 0 1rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.35rem; }
.legal .stand { color: var(--muted); font-size: 1rem; margin-top: 3rem; }

/* Schmale Bildschirme */
@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .brand img { height: 2rem; }
  .site-nav { margin-inline: -0.375rem; }
  .hero-deko { right: -45%; opacity: 0.55; height: 115%; }

  .service, .about .wrap { grid-template-columns: 1fr; }
  .service-head { flex-direction: row; align-items: center; }
  .icon-tile { width: 4rem; height: 4rem; }
  .service-icon { width: 48px; height: 48px; }

  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps::before { left: 1.5rem; right: auto; top: 1.5rem; bottom: 1.5rem; border-top: 0; border-left: 6px double var(--on-band-accent); transform: translateX(-3px); }
  .steps li { padding-left: 4.5rem; }
  .steps li:last-child { background: var(--band); }
  .step-no { position: absolute; left: 0; top: 0; margin: 0; }

  .cases { grid-template-columns: 1fr; gap: 2rem; }
  .portrait { max-width: 220px; }
}
