/* Schriften: selbst gehostet (SIL Open Font License, siehe fonts/), keine Verbindung zu Google Fonts */
@font-face { font-family: "Sora"; src: url("/fonts/sora.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
/* Ersatzschrift für Sora, bis die Schrift geladen ist: Arial bzw. Roboto (Android) auf die Breite von Sora skaliert,
   damit Überschriften beim Schriftwechsel nicht umbrechen und die Seite nicht springt */
@font-face { font-family: "Sora Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"); font-weight: 400 500; size-adjust: 113.9%; ascent-override: 85.2%; descent-override: 25.5%; line-gap-override: 0%; }
@font-face { font-family: "Sora Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); font-weight: 600 700; size-adjust: 107.6%; ascent-override: 90.2%; descent-override: 27%; line-gap-override: 0%; }
@font-face { font-family: "Sora Fallback Roboto"; src: local("Roboto"), local("Roboto-Regular"); font-weight: 400 500; size-adjust: 114.6%; ascent-override: 84.6%; descent-override: 25.3%; line-gap-override: 0%; }
@font-face { font-family: "Sora Fallback Roboto"; src: local("Roboto Bold"), local("Roboto-Bold"); font-weight: 600 700; size-adjust: 114%; ascent-override: 85.1%; descent-override: 25.4%; line-gap-override: 0%; }

/* Layout: sticky Kopfzeile, dunkles Indigo-Band als Hero und Abschluss, dazwischen ruhige helle Abschnitte auf 72rem Breite.
   Die Seite ist bewusst immer hell, auch wenn das Gerät im Dunkelmodus ist. */
:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --surface-2: #eceef7;
  --fg: #171936;
  --muted: #555a7c;
  --line: #dcdfee;
  --brand: #2a2b61;          /* Indigo aus dem Logo */
  --brand-text: #2a2b61;
  --cyan: #00a9cd;           /* Cyan aus dem Logo, für Flächen und Linien */
  --cyan-text: #00728c;      /* Cyan für Text auf hellem Grund */
  --cyan-soft: #e1f5fa;
  --band: #15173d;           /* dunkle Bänder, in beiden Themen */
  --band-2: #1e2152;
  --band-fg: #eef0ff;
  --band-muted: #b4b8e0;
  --ok: #1f8a5b;              /* Häkchen-Symbole */
  --ok-text: #187a50;         /* grüner Text auf Weiß, Kontrast > 4,5:1 */
  --cyan-light: #6fdcf3;      /* Cyan auf dunklen Bändern */
  --shadow: 0 1px 2px rgb(23 25 54 / .05), 0 10px 30px rgb(23 25 54 / .08);
  color-scheme: light;

  --font-display: "Sora", "Sora Fallback", "Sora Fallback Roboto", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", Arial, "Segoe UI", system-ui, sans-serif;   /* Arial ist fast gleich breit wie IBM Plex Sans */
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.875rem, 1.4rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.5rem + 2.6vw, 3.25rem);
  --page: 72rem;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(4.5rem + 1px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.02em; overflow-wrap: break-word; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cyan-text); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .band :focus-visible, .cta :focus-visible, footer :focus-visible { outline-color: var(--cyan-light); }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: max(clamp(16px, 4vw, 32px), env(safe-area-inset-left, 0px)) max(clamp(16px, 4vw, 32px), env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-text);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: var(--cyan); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 40rem; line-height: 1.6; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 46rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--surface); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: var(--step-0);
  padding: .85rem 1.35rem; border-radius: 10px; text-decoration: none; border: 1.5px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--cyan); color: #06233a; }
.btn-primary:hover { background: #22bde0; transform: translateY(-1px); }
.btn-ghost { border-color: rgb(255 255 255 / .28); color: var(--band-fg); }
.btn-ghost:hover { border-color: var(--band-fg); }
.btn-outline { border-color: var(--line); color: var(--fg); background: var(--surface); }
.btn-outline:hover { border-color: var(--brand); }

/* Kopfzeile */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgb(245 246 251 / .9);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  color: var(--fg);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: block; flex: none; }
.brand img { height: 38px; width: auto; }
.main-nav { margin-left: auto; }
.nav-links { display: flex; gap: .25rem; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  display: block; padding: .5rem .75rem; border-radius: 8px; text-decoration: none;
  font-size: .975rem; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.nav-links a:hover { color: var(--fg); background: var(--surface-2); }
.nav .btn { padding: .6rem 1rem; font-size: .975rem; }
/* Sprachumschalter: Desktop in der Kopfzeile, Handy im Menü */
.lang { display: flex; gap: .1rem; padding-left: .75rem; border-left: 1px solid var(--line); }
.lang a { padding: .4rem .45rem; border-radius: 6px; font-size: .85rem; font-weight: 600; letter-spacing: .03em; color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--fg); background: var(--surface-2); }
.lang a[aria-current] { color: var(--fg); background: var(--surface-2); }
@media (max-width: 1200px) {
  .nav { gap: .75rem; }
  .nav-links a { padding-inline: .4rem; }
  .lang { padding-left: .5rem; }
  .nav > .btn svg { display: none; }
}
.lang-m { display: flex; gap: .5rem; margin-top: 1rem; }
.lang-m a { flex: 1 1 0; text-align: center; padding: .55rem .25rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 500; font-size: .95rem; }
.lang-m a[aria-current] { border-color: var(--brand); background: var(--surface-2); font-weight: 600; }
.menu-btn {
  display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); color: var(--fg);
  border-radius: 10px; padding: .55rem; cursor: pointer;
}
.menu-btn svg { width: 1.4rem; height: 1.4rem; display: block; }
.mobile-nav { border-top: 1px solid var(--line); padding-block: .75rem calc(1.25rem + var(--consent-space, 0px)); scroll-padding-bottom: var(--consent-space, 0px); max-height: calc(100vh - 4.5rem); max-height: calc(100dvh - 4.5rem - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; }
.mobile-nav a:not(.btn) { display: block; padding: .8rem .25rem; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 1rem; width: 100%; }
@media (max-width: 1020px) {
  .main-nav, .nav > .btn, .nav > .lang { display: none; }
  .menu-btn { display: block; }
}
@media (min-width: 1021px) { .mobile-nav { display: none; } }

/* Hero */
.hero { background: var(--band); color: var(--band-fg); position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(0 169 205 / .22), transparent 60%),
    linear-gradient(180deg, transparent 60%, rgb(0 0 0 / .25));
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding-block: clamp(3rem, 5vw, 4.25rem) clamp(3rem, 5vw, 4.5rem);
}
.hero .eyebrow { color: var(--cyan-light); }
.hero h1 { font-size: min(var(--step-4), 11vw); font-weight: 700; margin-block: 1.25rem 1.5rem; }   /* 11vw: passt auch bei großer Browserschrift */
.hero h1 em { font-style: normal; color: var(--cyan-light); }
.hero .lead { color: var(--band-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.hero-note { margin-top: 1.1rem; font-size: var(--step--1); color: var(--band-muted); display: flex; gap: .5rem; align-items: center; }
.hero-note svg { width: 1rem; height: 1rem; color: var(--cyan-light); flex: none; }

.portrait { position: relative; max-width: 26rem; justify-self: end; width: 100%; }
.portrait-frame {
  border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%;
  border: 1px solid rgb(255 255 255 / .12); background: var(--band-2);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.score-card {
  position: absolute; left: -2.5rem; bottom: 2rem; width: max-content; max-width: 80%;
  background: rgb(255 255 255 / .96); color: #171936; border-radius: 14px; padding: 1rem 1.1rem;
  box-shadow: 0 20px 50px rgb(0 0 0 / .35); display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: center;
}
.score-ring { width: 4.25rem; height: 4.25rem; }
.score-ring .track { stroke: #e3e6f2; }
.score-ring .val { stroke: #00a9cd; stroke-linecap: round; }
.score-ring text { font-family: var(--font-display); font-weight: 700; font-size: 15px; fill: #171936; }
.score-card .v { font-family: var(--font-display); font-weight: 600; line-height: 1.3; font-size: 1.05rem; }
.score-card .s { margin-top: .2rem; font-size: .85rem; line-height: 1.35; color: #555a7c; }

.score-mini { display: none; align-items: center; gap: .9rem; margin-top: 1.5rem; padding: .75rem 1.1rem; border: 1px solid rgb(255 255 255 / .16); border-radius: 12px; background: rgb(255 255 255 / .05); }
.score-mini b { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--cyan-light); white-space: nowrap; }
.score-mini span { font-size: .9rem; line-height: 1.35; color: var(--band-muted); }
.facts { border-top: 1px solid rgb(255 255 255 / .1); }
.facts ul {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.facts li { padding: 1.4rem 1.25rem 1.6rem 0; display: grid; gap: .2rem; align-content: start; }
.facts li + li { padding-left: 1.25rem; border-left: 1px solid rgb(255 255 255 / .1); }
.facts b { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; }
.facts span { color: var(--band-muted); font-size: var(--step--1); }
.mini-badges { display: flex; align-items: flex-start; gap: .35rem; margin-top: .5rem; }
.mini-badges img { width: 2.5rem; height: auto; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { justify-self: center; max-width: 17rem; }
  .score-card { display: none; }
  .score-mini { display: inline-flex; }
  .facts b { font-size: 1.05rem; }
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / .1); }
}

@media (max-width: 480px) { .hero-ctas .btn { flex: 1 1 100%; white-space: normal; text-align: center; } }

/* Leistungen: Einleitung auf einer Zeile (am Desktop) */
#leistungen .section-head, #leistungen .lead { max-width: none; }
/* Typische Situationen: Überschrift am Desktop auf einer Zeile */
#situationen .section-head { max-width: none; }
@media (min-width: 1021px) { #situationen h2 { text-wrap: wrap; } }

/* Typische Situationen */
.situations { padding-bottom: 0; }
.situation-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.situation-list li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .75rem; align-items: start; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.situation-list svg { width: 1.15rem; height: 1.15rem; color: var(--cyan-text); margin-top: .3rem; }
@media (max-width: 1020px) { .situation-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .situation-list { grid-template-columns: minmax(0, 1fr); gap: .6rem; } }

/* Kundenstimmen */
.quotes-section { padding-top: 0; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: 1.25rem; }
.quote blockquote { margin: 0; position: relative; padding-top: 1.75rem; }
.quote blockquote::before { content: "\201C"; position: absolute; top: -.6rem; left: -.1rem; font-family: var(--font-display); font-size: 3.5rem; line-height: 1; color: var(--cyan); }
.quote blockquote p { color: var(--fg); }
.quote blockquote p + p, .quote-more p { margin-top: .75rem; }
.quote-more summary { margin-top: .9rem; cursor: pointer; list-style: none; display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; font-size: .95rem; color: var(--brand-text); }
.quote-more summary::-webkit-details-marker { display: none; }
.quote-more summary:hover { color: var(--cyan-text); }
.quote-more summary svg { width: 1rem; height: 1rem; transition: transform .2s; }
.quote-more[open] summary svg { transform: rotate(180deg); }
.quote-more[open] summary { margin-top: 0; margin-bottom: .25rem; }
.quote:has(details[open]) .quote-excerpt { display: none; }
.quotes:has(details[open]) { align-items: start; }
.quote figcaption { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .1rem; font-size: var(--step--1); }
.quote figcaption b { font-size: var(--step-0); }
.quote figcaption span { color: var(--muted); }
.quote .quote-note { font-style: italic; font-size: .8rem; }
.quotes-source { margin-top: 1.25rem; font-size: var(--step--1); color: var(--muted); }
.quotes-source a { color: var(--brand-text); text-underline-offset: 3px; }
@media (max-width: 1020px) { .quotes { grid-template-columns: minmax(0, 1fr); } }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 1.25rem; box-shadow: var(--shadow); min-width: 0;
}
.service-top { display: flex; gap: 1rem; align-items: center; }
.icon-box {
  width: 3rem; height: 3rem; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--cyan-soft); color: var(--cyan-text);
}
.icon-box svg { width: 1.5rem; height: 1.5rem; }
.service h3 { font-size: clamp(1.2rem, .85rem + .4vw, 1.45rem); -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; min-width: 0; }
.service > p { color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.checks li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .7rem; padding-block: .55rem; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checks svg { width: 1.15rem; height: 1.15rem; color: var(--ok); margin-top: .25rem; }
.tools { margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.tools > span { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tools ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tools li { font-size: .85rem; font-weight: 500; padding: .25rem .65rem; border-radius: 6px; background: var(--cyan-soft); color: var(--cyan-text); }
.tag { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin-left: .35rem; white-space: nowrap; }

.native {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: clamp(2rem, 4vw, 2.75rem); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 1rem clamp(1.5rem, 4vw, 3rem); align-items: start;
}
.native-label { display: flex; align-items: center; gap: .75rem; padding-top: .35rem; }
.native-label .icon-box { width: 2.5rem; height: 2.5rem; border-radius: 10px; }
.native-label .icon-box svg { width: 1.25rem; height: 1.25rem; }
.native-label span:last-child { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.native p { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 1rem + 1.1vw, 1.75rem); line-height: 1.4; letter-spacing: -.01em; color: var(--fg); max-width: 44rem; text-wrap: pretty; }
.native p em { font-style: normal; color: var(--cyan-text); }
@media (max-width: 1020px) { .services { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .native { grid-template-columns: 1fr; } }

/* Vorgehen */
.process { background: var(--surface); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.steps li { padding: 1.75rem 1.75rem 1.75rem 0; border-top: 2px solid var(--line); position: relative; counter-increment: s; display: grid; gap: .5rem; align-content: start; }
.steps li::before {
  content: counter(s, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--step--1); color: var(--cyan-text); font-weight: 500;
}
.steps li::after { content: ""; position: absolute; top: -2px; left: 0; width: 2.5rem; height: 2px; background: var(--cyan); }
.steps p { color: var(--muted); }
.durations { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.chip {
  display: inline-flex; gap: .5rem; align-items: baseline; padding: .5rem .9rem; border-radius: 999px;
  background: var(--surface-2); font-size: var(--step--1); color: var(--fg);
}
.chip b { font-family: var(--font-mono); font-weight: 500; color: var(--cyan-text); white-space: nowrap; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li { padding-right: 0; } }

/* Vorgehen als dunkles Band */
.band { background: var(--band); color: var(--band-fg); border-block: 0; }
.band .eyebrow { color: var(--cyan-light); }
.band .eyebrow::before { background: var(--cyan-light); }
.band .lead, .band .steps p { color: var(--band-muted); }
.band .steps li { border-top-color: rgb(255 255 255 / .14); }
.band .steps li::before { color: var(--cyan-light); }
.band .steps li::after { background: var(--cyan-light); }
.band .chip { background: rgb(255 255 255 / .07); color: var(--band-fg); }
.band .chip b { color: var(--cyan-light); }

/* Projekte */
.projects-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.projects-intro .section-head { margin-bottom: 0; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.projects-more { display: none; justify-content: center; margin-top: 1.75rem; }
.projects-more .btn { white-space: normal; text-align: center; }
.js .projects-more { display: flex; }
.js .project.extra:not(.show) { display: none; }
.projects:has(details[open]) { align-items: start; }
.project {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; display: grid; gap: 1rem; align-content: start;
}
.project-meta { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.project-meta .live { color: var(--ok-text); display: inline-flex; gap: .4rem; align-items: center; }
.project-meta .live::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.project p { color: var(--muted); }
.facts-list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.facts-list li { font-size: .85rem; padding: .25rem .65rem; border-radius: 6px; background: var(--surface-2); }
.project details { border-top: 1px solid var(--line); padding-top: .9rem; }
.project summary:hover, .faq summary:hover { color: var(--cyan-text); }
.project summary {
  cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--brand-text); list-style: none;
  display: inline-flex; gap: .4rem; align-items: center;
}
.project summary::-webkit-details-marker { display: none; }
.project summary svg { width: 1rem; height: 1rem; transition: transform .2s; }
.project details[open] summary svg { transform: rotate(180deg); }
.project details ul { margin: .9rem 0 0; padding-left: 1.1rem; display: grid; gap: .3rem; font-size: .95rem; }
.tech { margin-top: .9rem; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); line-height: 1.7; }
.disclaimer { margin-top: 1.5rem; font-size: var(--step--1); color: var(--muted); }
@media (max-width: 1020px) { .projects { grid-template-columns: minmax(0, 1fr); } }

/* Über mich */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-text { display: grid; gap: 1.1rem; }
.about-text p { color: var(--muted); max-width: 36rem; }
.about-text p strong { color: var(--fg); font-weight: 600; }
.cert-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow); }
.badges { display: flex; justify-content: center; align-items: flex-start; gap: 1.25rem; margin-bottom: 1.5rem; }
.badges img { width: 7.5rem; max-width: calc(50% - .625rem); height: auto; }
.cert-list { list-style: none; margin: 0; padding: 0; }
.cert-list li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding-block: .85rem; border-top: 1px solid var(--line); align-items: baseline; }
.cert-list .yrs { font-family: var(--font-mono); font-size: .85rem; color: var(--cyan-text); font-variant-numeric: tabular-nums; }
.cert-list .name { font-weight: 500; line-height: 1.4; }
.cert-panel h3 { margin-bottom: .75rem; }
.cert-list .tag { display: block; margin: .15rem 0 0; }
.cert-panel .btn { margin-top: 1.25rem; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .cert-list li { grid-template-columns: 1fr; gap: .1rem; } }

/* Partner */
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.partner { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 1rem; align-content: start; background: var(--surface); }
.partner-logo { height: 3.75rem; display: flex; align-items: center; }
.partner-logo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.partner-logo .wise { border-radius: 6px; }
a.partner-logo { justify-self: start; }
a.partner-logo img { transition: opacity .15s; }
a.partner-logo:hover img { opacity: .8; }
.partner .where { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.partner p { color: var(--muted); }
@media (max-width: 760px) { .partners { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-side { position: sticky; top: 6.5rem; display: grid; gap: 1rem; }
.faq-side p { color: var(--muted); }
.faq-group + .faq-group { margin-top: 2.5rem; }
.faq-group h3 { font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan-text); margin-bottom: .5rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 0; display: flex; justify-content: space-between; gap: 1rem;
  font-weight: 600; font-size: 1.075rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: .2rem; color: var(--muted); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--cyan-text); }
.faq details > div { padding-bottom: 1.25rem; color: var(--muted); max-width: 42rem; display: grid; gap: .6rem; }
.faq details ul, .faq details ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .25rem; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq-side { position: static; } }

/* Abschluss */
.cta { background: var(--band); color: var(--band-fg); position: relative; overflow: hidden; isolation: isolate; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background: url("img/skyline.webp") center/cover no-repeat;
}
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--band) 35%, rgb(21 23 61 / .7)); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cta h2 { font-size: var(--step-3); }
.cta .lead { color: var(--band-muted); margin-top: 1rem; }
.cta .hero-ctas { margin-top: 2rem; }
.eyebrow-light { color: var(--cyan-light); }
.cta-title { margin-top: 1rem; }
.contact-card { font-style: normal; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .14); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 1.1rem; }
.contact-card .row { display: grid; grid-template-columns: 1.4rem 1fr; gap: .8rem; align-items: start; }
.contact-card svg { width: 1.25rem; height: 1.25rem; color: var(--cyan-light); margin-top: .2rem; }
.contact-card .k { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--band-muted); }
.contact-card a { color: var(--band-fg); text-underline-offset: 3px; }
.copy { background: none; border: 1px solid rgb(255 255 255 / .25); color: var(--band-fg); border-radius: 6px; padding: .1rem .5rem; font: inherit; font-size: .8rem; cursor: pointer; margin-left: .4rem; }
.copy:hover { border-color: var(--band-fg); }
@media (max-width: 860px) { .cta-grid { grid-template-columns: minmax(0, 1fr); } }

footer { background: var(--band); color: var(--band-muted); border-top: 1px solid rgb(255 255 255 / .08); font-size: var(--step--1); }
/* Platz für den Datenschutz-Banner unterhalb der Seite: verschiebt nichts (kein Layoutsprung), Fläche in Fußzeilenfarbe */
html.consent-open { padding-bottom: var(--consent-space, 0px); background: var(--band); }
.foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; padding-block: 1.75rem; }
.foot nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot a { color: var(--band-muted); text-decoration: none; }
.foot a:hover { color: var(--band-fg); text-decoration: underline; }

/* Bewegung nur beim Laden des Hero */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }
  .hero-anim > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-anim > *:nth-child(2) { animation-delay: .08s; }
  .hero-anim > *:nth-child(3) { animation-delay: .16s; }
  .hero-anim > *:nth-child(4) { animation-delay: .24s; }
  .score-ring .val { animation: ring 1.6s .4s cubic-bezier(.3, .7, .2, 1) both; }
  @keyframes ring { from { stroke-dashoffset: 194.8; } }
}

[hidden] { display: none !important; }

/* Unterseiten: Impressum und Datenschutz */
.legal-page { padding-block: clamp(3rem, 7vw, 5rem) clamp(4rem, 8vw, 6rem); }
.legal { max-width: 46rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.legal h1 { font-size: var(--step-3); font-weight: 700; margin-block: .5rem 1rem; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.legal h2 { font-size: var(--step-1); margin-top: 1.5rem; }
.legal p, .legal dd, .legal address { color: var(--muted); }
.legal address { font-style: normal; }
.legal a:not(.btn) { color: var(--brand-text); text-underline-offset: 3px; }
.legal dl { margin: .5rem 0 0; display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); border-top: 1px solid var(--line); }
.legal dt, .legal dd { margin: 0; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.legal dt { font-weight: 600; padding-right: 1rem; }
.legal dd span { display: block; }
.back { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; text-decoration: none; color: var(--brand-text); margin-top: 2rem; }
.back:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; } .legal dt { border-bottom: 0; padding-bottom: 0; } }

/* Datenschutz-Banner (Google Ads) */
.consent {
  position: fixed; z-index: 90; left: 50%; transform: translateX(-50%);
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); width: min(46rem, calc(100% - 32px));
  max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem - env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 60px rgb(13 15 38 / .25); padding: 1.25rem 1.4rem;
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center;
}
.consent-text { flex: 1 1 22rem; min-width: 0; display: grid; gap: .3rem; }
.consent-text strong { font-family: var(--font-display); font-size: 1.05rem; }
.consent-text p { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.consent-text a { color: var(--brand-text); text-underline-offset: 3px; }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; flex: 1 1 100%; }
.btn-choice { flex: 1 1 10rem; background: var(--brand); color: #fff; padding: .65rem 1.1rem; font-size: .95rem; }
.btn-choice:hover { background: #3a3c85; }
.consent-link { flex: 1 1 100%; background: none; border: 0; padding: .25rem; font: inherit; font-size: .9rem; color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (min-width: 900px) {
  .consent { left: auto; right: max(1rem, env(safe-area-inset-right, 0px)); transform: none; width: min(30rem, calc(100% - 2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))); }
}
@media (max-width: 560px) {
  .consent { padding: .9rem 1rem; gap: .6rem; bottom: calc(.5rem + env(safe-area-inset-bottom, 0px)); width: calc(100% - 1rem); }
  .consent-text { gap: .2rem; }
  .consent-text strong { font-size: 1rem; }
  .consent-text p { font-size: .875rem; line-height: 1.45; }
  .consent-actions { gap: .5rem; }
  .btn-choice { flex-basis: 7rem; padding: .6rem .5rem; font-size: .9rem; }
  .consent-link { padding: .15rem; font-size: .85rem; }
}
/* Handy quer: Banner flacher, Buttons in einer Zeile */
@media (max-height: 500px) and (min-width: 561px) {
  .consent { padding: .75rem 1rem; gap: .5rem 1rem; bottom: calc(.5rem + env(safe-area-inset-bottom, 0px)); }
  .consent-text { gap: .15rem; }
  .consent-text strong { font-size: .95rem; }
  .consent-text p { font-size: .85rem; line-height: 1.4; }
  .btn-choice { flex: 1 1 auto; padding: .5rem .9rem; font-size: .9rem; }
  .consent-link { flex: 0 0 auto; font-size: .85rem; }
}
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--band-muted); cursor: pointer; }
.link-btn:hover { color: var(--band-fg); text-decoration: underline; }

/* Schmale Handys und große Schrift: Buttons dürfen umbrechen (außer in der Kopfzeile) */
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
  .nav .btn { white-space: nowrap; }
}
@media (max-width: 360px) { .hero-ctas .btn { padding-inline: 1rem; } }
/* Sehr schmale Geräte (z. B. zugeklappte Foldables): lange Wörter in Überschriften trennen */
@media (max-width: 300px) {
  h2 { font-size: 1.625rem; }
  h2, h3 { -webkit-hyphens: auto; hyphens: auto; }
  .cert-panel .btn { padding-inline: .9rem; }
}

/* Handy: Kopfbereich kompakter, damit die Secure-Score-Kennzahl früher sichtbar ist */
@media (max-width: 600px) {
  .hero-grid { padding-top: 2.25rem; }
  .hero h1 { margin-block: 1rem 1.1rem; }
  .hero .lead { font-size: 1.0625rem; }
  .hero-ctas { margin-top: 1.5rem; }
  .score-mini { margin-top: 1rem; }
  .hero-note { margin-top: .9rem; }
}

/* Terminseite */
.termin { max-width: 44rem; }
.termin-lead { font-size: var(--step-1); line-height: 1.6; }
.termin-steps { margin-block: .5rem 1rem; }
.termin-steps strong { color: var(--fg); }
.termin-cta { display: grid; gap: .75rem; justify-items: start; padding: clamp(1.25rem, 3vw, 1.75rem); margin-block: .5rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.1rem; white-space: normal; text-align: left; }
.termin-note { font-size: var(--step--1); }
.termin-trust { display: flex; gap: 1rem; align-items: center; margin-block: .25rem .5rem; }
.termin-trust img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; flex: none; }
.termin-trust p { margin: 0; }
.termin-trust .termin-trust-name { color: var(--fg); font-weight: 600; }
@media (max-width: 480px) {
  .termin-page { padding-top: 1.5rem; }
  .termin h1 { font-size: 1.75rem; margin-block: .25rem .5rem; }
  .termin-lead { font-size: 1.0625rem; }
}
@media (max-width: 360px) {
  .termin h1 { font-size: 1.5rem; }
  .termin-cta { padding: 1rem; }
  .termin-cta .btn-lg { padding: .9rem 1.1rem; font-size: 1rem; }
}
.nf-ctas { margin-top: 1rem; }
.lang-note { font-size: var(--step--1); }
.nf-ctas .btn { white-space: normal; text-align: center; }

/* Datenschutz-Einstellungen: Auswahl (nur sichtbar nach Klick auf "Einstellungen") */
.consent-options { border: 0; margin: .4rem 0 0; padding: 0; display: grid; gap: .55rem; }
.consent-options legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.consent-options label { display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; align-items: start; font-weight: 600; font-size: .95rem; }
.consent-options input { margin-top: .25rem; width: 1.05rem; height: 1.05rem; accent-color: var(--cyan); }
.consent-options label span { grid-column: 2; font-weight: 400; color: var(--muted); font-size: .88rem; }

/* Windows-Kontrastmodus: Logo auf hellem Grund lassen */
@media (forced-colors: active) {
  .brand { forced-color-adjust: none; background: #fff; border-radius: 6px; padding: 2px 6px; }
  .score-ring text { fill: CanvasText; }
  .score-ring .track { stroke: GrayText; }
  .score-ring .val { stroke: Highlight; }
}

/* Ohne JavaScript: Buttons ohne Funktion ausblenden, auf dem Handy stattdessen den Termin-Button zeigen */
html:not(.js) .menu-btn, html:not(.js) .copy, html:not(.consent-js) [data-consent-open] { display: none; }
@media (max-width: 1020px) { html:not(.js) .nav > .btn { display: inline-flex; margin-left: auto; } }
@media (max-width: 400px) {
  html:not(.js) .nav { gap: .75rem; }
  html:not(.js) .brand img { height: 32px; }
  html:not(.js) .nav > .btn { padding: .5rem .75rem; font-size: .9rem; }
  html:not(.js) .nav > .btn svg { display: none; }
}
@media (max-width: 300px) { html:not(.js) .brand img { height: 26px; } }

/* Druckansicht: Banner und Navigation ausblenden, dunkle Bänder hell, alles aufgeklappt */
@media print {
  .consent, .skip, .menu-btn, .main-nav, .lang, .nav > .btn, .mobile-nav, .copy, .link-btn, .projects-more, .hero::before, .hero::after, .cta::before, .cta::after { display: none !important; }
  .site-header { position: static; background: #fff; }
  .hero, .band, .cta, footer { background: #fff !important; color: #000 !important; }
  .hero *, .band *, .cta *, footer * { color: #000 !important; }
  .contact-card { background: #fff; border-color: #999; }
  .js .project.extra:not(.show) { display: grid !important; }
  .service, .project, .cert-panel { box-shadow: none; }
  .service-top, .project-meta, .project h3, .facts-list, .checks li, .project details li, .faq details, .cert-list li, .section-head, .steps li, .partner { break-inside: avoid; }
  .section-head, .project h3, .service-top, .native-label, h2, h3 { break-after: avoid; }
  .native, .durations, .situation-list li, .quote { break-inside: avoid; }
  .legal { display: block; }
  .legal > * + * { margin-top: 1rem; }
  .hero-anim > * { animation: none !important; }
}
