/* Sebastian Götz Consulting – Grundlagen nach Corporate Design Option B
   SG-Blau ist Marken- und Handlungsfarbe (Buttons, Links), Apricot nur als Akzent (Badges, Punkte, Unterstreichung, max. 3 %),
   sonst kühle Neutraltöne. Bewusst einfarbig hell. Radien: Flächen 12 px, Felder 8 px. Offene Ecke (oben rechts eckig) für Buttons und Markenflächen.
   Barrierearm für Menschen ab 55: Fließtext ab 17 px, Klickflächen ab 48 px, Kontrast nach WCAG AA. */

:root {
  --blau: #016d9c; --blau-600: #015a82; --blau-50: #eef6fa; --blau-100: #d8eaf3;
  --ink: #14232c; --ink-2: #4f5d66; --ink-3: #637078; --line: #e3e8eb; --line-2: #cdd5da; --feld: #85929a;
  --akzent: #f0a868; --akzent-50: #fdf1e6; --akzent-700: #9a5418;
  --bg: #ffffff; --bg-2: #f6f8f9; --schiefer: #626367; --gruen: #2b7a4b; --rot: #b3261e;
  --f: 'Instrument Sans', 'Segoe UI', Arial, sans-serif;
  --r: 12px; --r-s: 8px;
  /* Offene Ecke: wie die Bildmarke oben rechts eckig, sonst gerundet */
  --ecke: var(--r) 0 var(--r) var(--r); --ecke-s: var(--r-s) 0 var(--r-s) var(--r-s);
  --shadow: 0 1px 2px rgba(20, 35, 44, .06), 0 8px 24px rgba(20, 35, 44, .06);
  --wrap: 1200px; --rand: clamp(16px, 4vw, 40px); --kapitel: clamp(72px, 9vw, 112px); --bar-h: 76px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 18px/1.6 var(--f); color: var(--ink); background: var(--bg); overflow-x: clip; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
img, svg { display: block; max-width: 100%; }
/* Bilder nicht herausziehen, markieren oder per langem Druck sichern (Wunsch vom 06.11.2026) */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
/* Kein Zoom per Doppeltippen (Wunsch vom 06.11.2026), Zwei-Finger-Zoom und Wischen bleiben */
html { touch-action: manipulation; }
a { color: var(--blau); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blau-100); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 16px; border-radius: var(--r-s); }
.skip:focus { left: 8px; }

/* Icons: Linie 2, runde Enden (wie im Handbuch) */
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* SG-Pfeil aus der Bildmarke: gerade Enden, rechtwinklige Spitze, Strich 1/8. Zeigt immer nach oben rechts, beim Hover 2 px weiter. */
.ic-sg { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: butt; stroke-linejoin: miter; transition: transform .15s ease; }
a:hover .ic-sg { transform: translate(2px, -2px); }
/* Winkel: Pfeilspitze als Eckmarke oben rechts, höchstens einmal pro Fläche */
.winkel { position: relative; }
.winkel::after { content: ''; position: absolute; top: var(--w-ab, 16px); right: var(--w-ab, 16px); width: var(--w-gr, 26px); height: var(--w-gr, 26px); border-top: var(--w-st, 8px) solid var(--w-fa, var(--blau)); border-right: var(--w-st, 8px) solid var(--w-fa, var(--blau)); pointer-events: none; }

/* ---------- Schrift-Bausteine ---------- */
.over { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blau); margin-bottom: 12px; }
.h2 { font-size: clamp(30px, 3.6vw, 42px); }
.lead { font-size: clamp(18px, 1.5vw, 19px); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }
.kopf { max-width: 760px; margin-bottom: 48px; }
.kopf .lead { margin-top: 16px; }
.zq { color: var(--akzent); }

/* ---------- Buttons: ein Primär-Button pro Ansicht ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px;
  border-radius: var(--ecke-s); border: 1px solid transparent; font: 600 17px/1.2 var(--f); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .16s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 20px; height: 20px; }
.btn-p { background: var(--blau); color: #fff; }
.btn-p:hover { background: var(--blau-600); }
.btn-s { background: #fff; color: var(--ink); border-color: var(--feld); }
.btn-s:hover { border-color: var(--ink-3); }
.btn-t { background: transparent; color: var(--blau); padding-inline: 6px; }
.btn-t:hover { text-decoration: underline; }
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* Badge in Apricot: „Kostenfrei“ und andere wichtige Markierungen */
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; line-height: 1.3; background: var(--akzent-50); color: var(--akzent-700); padding: 5px 12px; border-radius: 999px; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--akzent); }

/* ---------- Logo: immer aus der Logodatei (Wortmarke in Pfaden), nie als Text. Mindestbreite 150 px ---------- */
.logo { display: inline-flex; flex: none; text-decoration: none; }
.lk { display: block; flex: none; height: var(--lk-h, 40px); width: auto; aspect-ratio: 256.33 / 49.2; --g: var(--ink); --s: var(--blau); }

/* ---------- Kopfleiste ---------- */
.bar { position: sticky; top: 0; z-index: 50; height: var(--bar-h); background: #fff; border-bottom: 1px solid var(--line); }
/* Drei Spalten: Logo links, Menü genau in der Mitte, Button rechts */
.bar__inner { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; }
.bar .logo { justify-self: start; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 12px; border-radius: var(--r-s); white-space: nowrap; font-size: 17px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--blau); }
.nav__extra { display: none; }
.bar__cta { justify-self: end; min-height: 44px; padding: 10px 18px; font-size: 16px; white-space: nowrap; }
.burger { display: none; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; padding: 0; position: relative; color: var(--ink); }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 13px; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), top .25s var(--ease), background-color .15s; }
.burger span { top: 23px; }
.burger span::before, .burger span::after { content: ''; left: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.bar.is-open .burger span { background: transparent; }
.bar.is-open .burger span::before { top: 0; transform: rotate(45deg); }
.bar.is-open .burger span::after { top: 0; transform: rotate(-45deg); }
/* Menü klappt früher ein, damit Logo, Menü und Button in einer Zeile bleiben */
@media (max-width: 1060px) {
  :root { --bar-h: 68px; }
  .bar__inner { display: flex; justify-content: space-between; }
  .burger { display: block; }
  .bar__cta { display: none; }
  .nav { position: fixed; left: 0; right: 0; top: var(--bar-h); bottom: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 24px var(--rand) 40px; background: #fff; visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility 0s .2s; overflow-y: auto; }
  .nav a { font-size: 22px; font-weight: 600; color: var(--ink); padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .nav__extra { display: grid; gap: 12px; margin-top: 24px; }
  .nav .nav__extra a { border: 0; padding: 0; font-size: 17px; }
  .nav .nav__extra .btn { color: #fff; font-size: 17px; padding: 12px 24px; border-radius: var(--ecke-s); }
  .nav .nav__extra .btn-s { color: var(--ink); border: 1px solid var(--feld); }
  .bar.is-open .nav { visibility: visible; opacity: 1; transition-delay: 0s; }
}
@media (max-width: 380px) { .bar .logo { --lk-h: 36px; } }

/* ---------- Mobile Kontaktleiste: „Anrufen“ bleibt am Handy unten sichtbar ---------- */
.kbar { display: none; }
@media (max-width: 760px) {
  .kbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(20, 35, 44, .06); }
  .kbar .t { font-size: 14px; color: var(--ink-2); line-height: 1.3; }
  .kbar .t b { display: block; color: var(--ink); font-size: 16px; }
  .kbar .btn { min-height: 48px; padding: 10px 18px; font-size: 16px; }
  body { padding-bottom: 76px; }
}

/* ---------- Fußzeile (hell, Nebel) ---------- */
.footer { background: var(--bg-2); color: var(--ink-2); font-size: 16px; border-top: 1px solid var(--line-2); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
.footer .logo { --lk-h: 46px; margin-bottom: 16px; }
.footer__titel { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--blau); text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--ink-3); }
.footer__bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Rechtliches ---------- */
.legal { padding: 64px 0 var(--kapitel); }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 32px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal p { color: var(--ink-2); }
.legal h3 { font-size: 19px; margin: 24px 0 8px; }
.legal ul { color: var(--ink-2); margin: 0 0 16px; padding-left: 1.3em; }
.legal li + li { margin-top: 4px; }
.note { padding: 16px 20px; background: var(--blau-50); border-radius: var(--r); font-size: 16px; color: var(--ink) !important; }

/* ---------- Einblenden: ruhig und kurz ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
