/* Te-Ne – Version 2 „Foto & Dunkelblau-Anker“
   Raster: 8px. Breakpoints: 600 / 960 / 1200.
   Farben: Weiß / Warmgrau, Dunkelblau als Anker, Akzentblau sparsam. */

:root {
  --ink: #0B1425;          /* Dunkelblau-Anker */
  --text: #2F3747;         /* Fließtext auf Hell */
  --muted: #5A6273;        /* Sekundärtext (AA auf Weiß und Warmgrau) */
  --line: #E2E0DA;         /* dekorative Linien */
  --border: #8C8A82;       /* Eingabe-/Outline-Rahmen, >= 3:1 */
  --warm: #F5F4F1;         /* helles Warmgrau */
  --white: #FFFFFF;
  --blue: #0047FF;         /* Akzent */
  --blue-d: #0036C4;
  --on-dark: #FFFFFF;
  --on-dark-2: #B9C0CE;    /* Sekundärtext auf Dunkel */
  --line-dark: rgba(255,255,255,.14);
  --err: #B42318;

  --f-head: "Manrope", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: 24px;
  --sec: 96px;
  --hdr: 80px;
  --radius: 4px;
}
@media (max-width: 959px) {
  :root { --sec: 72px; --hdr: 72px; }
}
@media (max-width: 599px) {
  :root { --gutter: 20px; --sec: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;           /* 17px */
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 960px) { body { font-size: 1.125rem; } }   /* 18px */

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); color: var(--ink); margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.125rem, 1.5rem + 2vw, 3.125rem); line-height: 1.15; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.375rem); line-height: 1.22; font-weight: 700; }
h3 { font-size: 1.1875rem; line-height: 1.4; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.sec-dark :focus-visible, .hero :focus-visible, .ftr :focus-visible { outline-color: #8FB0FF; }
[tabindex="-1"]:focus { outline: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: var(--radius); text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  font: 600 1rem/1.25 var(--f-body);
  border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.6); background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { color: var(--ink); border-color: var(--border); background: var(--white); }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.btn-block { width: 100%; }

/* ---------- Kicker (Section-Label mit Monogramm) ---------- */
.kicker {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
  font: 600 .8125rem/1.4 var(--f-body);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.kicker img { width: 20px; height: 14px; flex: none; }
.kicker-light { color: var(--on-dark-2); }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.hdr.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 8px rgba(11,20,37,.05); }
.hdr-in { height: var(--hdr); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; flex: none; }
.logo img { width: 113px; height: 48px; }

.nav ul { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) {
  font-size: .9375rem; font-weight: 500; color: var(--ink); text-decoration: none;
  padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .2s;
}
.nav a:not(.btn):hover { border-bottom-color: var(--blue); }
.nav-cta { margin-left: 8px; }

.burger { display: none; width: 48px; height: 48px; margin-right: -12px; padding: 12px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 959px) {
  .burger { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--hdr);
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px rgba(11,20,37,.08);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav li.nav-cta { border: 0; margin: 16px 0 0; }
  .nav a:not(.btn) { display: block; padding: 16px 0; border: 0; font-size: 1.0625rem; }
  .nav .btn { width: 100%; min-height: 48px; }
}

/* ---------- Hero ----------
   Desktop: Textspalte links auf Dunkelblau (max. ~42 %), Netzwerk-Canvas beginnt kurz vor
   dem Textende und läuft nach rechts aus. Ein schmaler Verlauf verbindet beide –
   die Animation bleibt neben dem Text sichtbar. */
.hero {
  --tx-start: max(var(--gutter), 50% - 600px);   /* linke Kante der Inhaltsspalte */
  --tx-w: min(520px, 42vw);                       /* Breite der Textspalte */
  --fade: 220px;                                  /* Überlappung Text/Canvas */
  position: relative; isolation: isolate;
  min-height: max(560px, calc(100vh - var(--hdr)));
  min-height: max(560px, calc(100svh - var(--hdr)));
  display: flex; align-items: center;
  background: var(--ink); color: #fff;
  overflow: hidden;
}
.tn-network {
  position: absolute; top: 0; bottom: 0; right: 0; z-index: -2;
  left: calc(var(--tx-start) + var(--tx-w) - var(--fade));
  width: calc(100% - (var(--tx-start) + var(--tx-w) - var(--fade)));
  height: 100%; display: block; pointer-events: none;
}
.hero-shade {
  position: absolute; top: 0; bottom: 0; z-index: -1;
  left: calc(var(--tx-start) + var(--tx-w) - var(--fade));
  width: 520px;
  /* weicher, mehrstufiger Übergang vom Dunkelblau in die Animation */
  background: linear-gradient(90deg,
    rgba(11,20,37,1)    0%,
    rgba(11,20,37,.94) 12%,
    rgba(11,20,37,.82) 26%,
    rgba(11,20,37,.64) 40%,
    rgba(11,20,37,.44) 54%,
    rgba(11,20,37,.26) 68%,
    rgba(11,20,37,.12) 82%,
    rgba(11,20,37,.04) 92%,
    rgba(11,20,37,0)  100%);
}
.hero-in { padding-top: 96px; padding-bottom: 96px; }
.hero-in > * { max-width: var(--tx-w); }
.hero h1 { color: #fff; }
.hero-lead { margin-top: 24px; font-size: 1.125rem; line-height: 1.7; color: #DCE1EA; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero .kicker { margin-bottom: 24px; }

@media (max-width: 959px) {
  /* Mobil/Tablet: Netzwerk-Canvas als eigener Block oben, Text darunter auf Dunkelblau */
  .hero { display: block; min-height: 0; }
  .tn-network {
    position: relative; z-index: -2; left: auto; right: auto; top: auto; bottom: auto;
    display: block;
    width: 100%; height: clamp(260px, 42vw, 400px);
  }
  .hero-shade {
    display: block; left: 0; right: 0; width: auto; top: auto;
    bottom: auto; height: 120px;
    top: calc(clamp(260px, 42vw, 400px) - 120px);
    background: linear-gradient(180deg, rgba(11,20,37,0) 0%, rgba(11,20,37,.55) 55%, rgba(11,20,37,1) 100%);
  }
  .hero-in { padding-top: 40px; padding-bottom: 56px; }
  .hero-in > * { max-width: 36em; }
}
@media (max-width: 599px) {
  .hero-lead { font-size: 1.0625rem; }
  .hero-cta { margin-top: 32px; }
  .hero-cta .btn { width: 100%; }
}

/* ---------- Claim-Band ---------- */
.claim { background: var(--warm); border-bottom: 1px solid var(--line); }
.claim-in { display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.claim-mark { display: flex; align-items: center; gap: 16px; }
.claim-mark img { width: 40px; height: 28px; flex: none; }
.claim-title { font-size: 1.5rem; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; }
.claim-cols { display: grid; grid-template-columns: 1fr; }
.claim-cols li { padding: 16px 0; border-top: 1px solid var(--line); }
.claim-cols li:first-child { border-top: 0; padding-top: 0; }
.claim-cols li:last-child { padding-bottom: 0; }
.claim-cols h3 { font-size: 1rem; margin-bottom: 4px; }
.claim-cols p { font-size: .9375rem; line-height: 1.6; color: var(--muted); }

@media (min-width: 1200px) {
  .claim-in { grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
  .claim-cols { grid-template-columns: repeat(3, 1fr); }
  .claim-cols li, .claim-cols li:first-child, .claim-cols li:last-child { padding: 0 32px; border-top: 0; border-left: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.sec { padding: var(--sec) 0; }
.sec-tight { padding: calc(var(--sec) * .75) 0; }
.sec-white { background: var(--white); }
.sec-warm { background: var(--warm); }
.sec-dark { background: var(--ink); color: var(--on-dark-2); }
.sec-dark h2, .sec-dark h3 { color: var(--on-dark); }

.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head-center .kicker { justify-content: center; }
.sec-head-split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.sec-head-split h2 { max-width: 16em; }
.sec-intro { max-width: 36em; color: var(--muted); }
.sec-head:not(.sec-head-split) .sec-intro { margin-top: 16px; }
.sec-head-center .sec-intro { margin-left: auto; margin-right: auto; }
@media (max-width: 959px) {
  .sec-head { margin-bottom: 40px; }
  .sec-head-split { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.svc {
  position: relative;
  padding: 32px 32px 40px 0;
  border-bottom: 1px solid var(--line);
}
.svc:not(:nth-child(4n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.svc::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--blue);
  transition: width .3s ease;
}
.svc:not(:nth-child(4n+1))::before { left: 32px; }
.svc:hover::before { width: 40px; }
.svc-n { display: block; margin-bottom: 24px; font: 600 .875rem/1 var(--f-head); letter-spacing: .06em; color: var(--blue); }
.svc h3 { margin-bottom: 8px; }
.svc p { font-size: 1rem; line-height: 1.65; color: var(--muted); }

@media (max-width: 959px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .svc, .svc:not(:nth-child(4n+1)) { padding: 32px 32px 40px 0; border-left: 0; }
  .svc:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
  .svc::before, .svc:not(:nth-child(4n+1))::before { left: 0; }
  .svc:nth-child(even)::before { left: 32px; }
}
@media (max-width: 599px) {
  .services { grid-template-columns: 1fr; }
  .svc, .svc:nth-child(even), .svc:not(:nth-child(4n+1)) { padding: 24px 0 32px; border-left: 0; }
  .svc:nth-child(even)::before { left: 0; }
  .svc-n { margin-bottom: 16px; }
}

/* ---------- Warum (Dunkelblau) ---------- */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.why-lead { margin-top: 24px; max-width: 34em; }
.why-fig { margin-top: 40px; border-radius: var(--radius); overflow: hidden; }
.why-fig img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 55% 45%; }
.reasons { margin-top: 40px; border-top: 1px solid var(--line-dark); }
.reasons li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 32px 0; border-bottom: 1px solid var(--line-dark); }
.reason-n { font: 600 .875rem/1.9 var(--f-head); letter-spacing: .06em; color: #8FB0FF; }
.reasons h3 { margin-bottom: 8px; }
.reasons p { max-width: 32em; }
@media (max-width: 959px) {
  .why { grid-template-columns: 1fr; gap: 48px; }
  .reasons { margin-top: 0; }
}
@media (max-width: 599px) {
  .reasons li { grid-template-columns: 40px 1fr; padding: 24px 0; }
}

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team figure { border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.team img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 959px) { .team { gap: 16px; } }
@media (max-width: 599px) {
  .team { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; gap: 24px; }
}

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { position: relative; padding-top: 64px; }
.steps li::before {   /* Verbindungslinie */
  content: ""; position: absolute; top: 20px; left: 56px; right: -16px; height: 1px; background: var(--line);
}
.steps li:last-child::before { display: none; }
.step-n {
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--ink); border-radius: 50%;
  font: 600 1rem/1 var(--f-head); color: var(--ink);
}
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 1rem; line-height: 1.65; color: var(--muted); }
@media (max-width: 959px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .steps li:nth-child(2)::before { display: none; }
}
@media (max-width: 599px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 32px 64px; }
  .steps li::before { display: block; top: 48px; bottom: 8px; left: 20px; right: auto; width: 1px; height: auto; }
  .steps li:nth-child(2)::before { display: block; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li:last-child::before { display: none; }
  .steps h3 { padding-top: 6px; }
}

/* ---------- Statement ---------- */
/* Statement: randloses Foto links, Dunkelblau-Fläche rechts */
.stmt-sec { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--ink); color: var(--on-dark-2); }
.stmt-fig { margin: 0; min-height: 520px; }
.stmt-fig img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.stmt-text { align-self: center; padding: 96px max(var(--gutter), 10%) 96px 80px; max-width: 640px; }
.stmt-text h2 { color: var(--on-dark); margin-top: 24px; }
.stmt-text p:not(.kicker) { margin: 24px 0 40px; max-width: 32em; color: var(--on-dark-2); }
.stmt-sec :focus-visible { outline-color: #8FB0FF; }
@media (max-width: 959px) {
  .stmt-sec { grid-template-columns: 1fr; }
  .stmt-fig { min-height: 0; }
  .stmt-fig img { height: auto; aspect-ratio: 16 / 9; }
  .stmt-text { padding: 56px var(--gutter) 64px; max-width: none; }
}

/* ---------- IT-Check ---------- */
.check {
  max-width: 760px; margin: 0 auto;
  background: var(--warm); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 48px 56px;
}
.check .bar-p { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 24px; }
.check .bar-p i { display: block; height: 100%; background: var(--blue); transition: width .3s ease; }
.check .note { font-size: .875rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; }
.check .q { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.35; font-weight: 600; }
.check .qh { margin-top: 8px; color: var(--muted); }
.check .ans { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.check .ans .btn { min-width: 160px; }
.check .result { text-align: center; }
.check .ring { position: relative; width: 136px; height: 136px; margin: 0 auto 24px; }
.check .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.check .ring circle { fill: none; stroke-width: 8; }
.check .ring .bg { stroke: var(--line); }
.check .ring .fg { stroke: var(--blue); stroke-dasharray: 377; stroke-dashoffset: 377; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.check .ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 1.75rem/1 var(--f-head); color: var(--ink); }
.check .risks { max-width: 480px; margin: 24px auto 0; text-align: left; border-top: 1px solid var(--line); }
.check .risks li { position: relative; padding: 12px 0 12px 24px; border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.6; }
.check .risks li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 8px; height: 8px; border: 2px solid var(--ink); border-radius: 50%; }
.check .result .ans { justify-content: center; }
@media (max-width: 599px) {
  .check { padding: 32px 24px; }
  .check .ans .btn { flex: 1 1 100%; }
}

/* ---------- Kunden ---------- */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.logos li { flex: 0 0 calc((100% - 4 * 16px) / 5); }
.logos a {
  display: flex; align-items: center; justify-content: center;
  height: 128px; padding: 16px 24px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s;
}
.logos a:hover { border-color: var(--border); }
.logos img { width: auto; height: auto; max-width: 100%; max-height: 72px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logos a:hover img, .logos a:focus-visible img { filter: none; opacity: 1; }
.logos img.logo-invert, .logos a:hover img.logo-invert, .logos a:focus-visible img.logo-invert { filter: brightness(0); }
.logos img.logo-invert { opacity: .7; max-height: 64px; }
@media (max-width: 959px) { .logos li { flex-basis: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 599px) {
  .logos li { flex-basis: calc((100% - 16px) / 2); }
  .logos a { height: 104px; padding: 16px; }
  .logos img { max-height: 64px; }
  .logos img.logo-invert { max-height: 56px; }
}

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
.contact-text .sec-intro { margin-top: 24px; }
.info { margin: 40px 0 0; border-top: 1px solid var(--line); }
.info div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info dt { font-size: .875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); line-height: 1.9; }
.info dd { margin: 0; color: var(--ink); font-weight: 500; }
.info a { text-decoration: none; border-bottom: 1px solid var(--border); }
.info a:hover { border-bottom-color: var(--blue); color: var(--blue); }

.form { background: var(--warm); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 24px; }
.field label { display: block; margin-bottom: 8px; font-size: .9375rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.field .req { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 16px;
  font: 400 1rem/1.5 var(--f-body); color: var(--ink);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 128px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230B1425' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,71,255,.25); }
.field [aria-invalid="true"] { border-color: var(--err); }
.form-err { margin: -8px 0 16px; font-size: .9375rem; color: var(--err); }
.form-note { margin-top: 16px; font-size: .875rem; line-height: 1.6; color: var(--muted); }
.form-note a { color: var(--ink); }
@media (max-width: 959px) { .contact { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 599px) {
  .form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .info div { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Footer ---------- */
.ftr { background: var(--ink); color: var(--on-dark-2); font-size: .9375rem; line-height: 1.7; }
.ftr-top { display: grid; grid-template-columns: 1.5fr 1fr .9fr .9fr 1.4fr; gap: 40px; padding: 72px 0 56px; }
.ftr-logo { display: inline-block; background: #fff; padding: 12px 16px; border-radius: var(--radius); }
.ftr-logo img { width: 113px; height: 48px; }
.ftr address { font-style: normal; margin-top: 24px; }
.ftr-h { font: 600 .8125rem/1.4 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.ftr-col li + li { margin-top: 8px; }
.ftr a { color: var(--on-dark-2); text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ftr-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 24px 0 32px; border-top: 1px solid var(--line-dark); font-size: .875rem; }
.ftr-claim { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.ftr-claim img { width: 20px; height: 14px; }

@media (max-width: 959px) { .ftr-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .ftr-top { grid-template-columns: 1fr; padding: 56px 0 40px; } .ftr-bottom { padding-bottom: 96px; } }

/* ---------- Mobiler Anruf-Button ---------- */
.call-fab { display: none; }
@media (max-width: 599px) {
  .call-fab {
    position: fixed; right: 16px; bottom: 16px; z-index: 40;
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 48px; padding: 12px 20px;
    background: var(--blue); color: #fff; border-radius: 24px;
    font-weight: 600; font-size: 1rem; text-decoration: none;
    box-shadow: 0 8px 24px rgba(11,20,37,.25);
  }
  .call-fab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
}

/* ---------- Reveal (dezent; JS-Fallback nach 1,5 s) ---------- */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.in { opacity: 1; transform: none; }

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

@media print {
  .js .rv { opacity: 1 !important; transform: none !important; }
  .hdr { position: static; }
  .call-fab, .burger, .skip { display: none !important; }
}

/* ---------- Engagement in Berlin (Sponsoring + Bär) ----------
   Text links auf Dunkelblau, rechts randlos zwei Bilder übereinander:
   groß das Sponsoring-Foto, darunter kleiner der Buddy-Bär.
   Mobil: Sponsoring-Foto oben, Text, darunter der Bär. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bear { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); background: var(--ink); color: var(--on-dark-2); }
.bear-text { align-self: center; justify-self: end; width: 100%; max-width: 640px; padding: 96px 80px 96px max(var(--gutter), 10%); }
.bear-text h2 { color: var(--on-dark); margin-top: 24px; }
.bear-text p:not(.kicker) { margin: 24px 0 40px; max-width: 32em; color: var(--on-dark-2); }
.bear-media { display: grid; grid-template-rows: minmax(0, 1.6fr) minmax(0, 1fr); gap: 4px; height: clamp(560px, 78vh, 720px); }
.bear-fig { position: relative; margin: 0; overflow: hidden; min-height: 0; }
.bear-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bear-fig-main img { object-position: 50% 60%; }
.bear-fig-side img { object-position: 30% 22%; }
.bear-fig-side figcaption {
  position: absolute; right: 0; bottom: 0; left: 0;
  padding: 40px 24px 16px; text-align: right;
  font-size: .875rem; color: var(--on-dark);
  background: linear-gradient(180deg, rgba(11,20,37,0), rgba(11,20,37,.8));
}
/* weicher Übergang vom Text in die Bilder */
.bear-fig::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 120px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,20,37,.85) 0%, rgba(11,20,37,.35) 50%, rgba(11,20,37,0) 100%);
}
.bear :focus-visible { outline-color: #8FB0FF; }
@media (max-width: 959px) {
  .bear { grid-template-columns: 1fr; }
  .bear-media { display: contents; }
  .bear-fig-main { order: -1; }
  .bear-fig-main img { height: auto; aspect-ratio: 16 / 10; }
  .bear-fig-side img { height: auto; aspect-ratio: 16 / 9; object-position: 30% 18%; }
  .bear-fig::before { display: none; }
  .bear-fig-main::after { content: ""; position: absolute; inset: auto 0 0 0; height: 80px;
    background: linear-gradient(180deg, rgba(11,20,37,0), rgba(11,20,37,1)); }
  .bear-text { justify-self: stretch; max-width: none; padding: 32px var(--gutter) 48px; }
}

/* ---------- Kontaktformular: Honeypot, Einverständnis, Status ---------- */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field-check { display: flex; gap: 12px; align-items: flex-start; }
.field-check input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); }
.field-check label { margin: 0; font-weight: 400; font-size: .9375rem; color: var(--text); }
.field-check [aria-invalid="true"] { outline: 2px solid var(--err); outline-offset: 2px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); font-size: .9375rem; line-height: 1.5; }
.form-status.is-ok { background: #E8F5EE; color: #0F5132; border: 1px solid #A3CFB4; }
.form-status.is-error { background: #FDECEA; color: #8A1C12; border: 1px solid #F1B0A8; }
.form-status:focus { outline: none; }
#form-submit:disabled { opacity: .7; cursor: wait; }

/* ---------- Footer: Fernwartung (RustDesk) ---------- */
.ftr-dl {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 16px; border: 1px solid var(--line-dark); border-radius: var(--radius);
  color: #fff !important; text-decoration: none !important; transition: border-color .2s, background-color .2s;
}
.ftr-dl:hover { border-color: #8FB0FF; background: rgba(255,255,255,.04); }
.ftr-dl svg { width: 22px; height: 22px; flex: none; fill: none; stroke: #8FB0FF; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ftr-dl strong { display: block; font-weight: 600; line-height: 1.3; }
.ftr-dl small { display: block; font-size: .8125rem; color: var(--on-dark-2); line-height: 1.4; }
.ftr-note { margin-top: 12px; font-size: .8125rem; line-height: 1.6; max-width: 30em; }

/* ---------- Rechtsseiten (Impressum, Datenschutz) ---------- */
.legal-hero { background: var(--ink); color: var(--on-dark-2); padding: 88px 0 72px; }
.legal-hero h1 { color: #fff; margin-top: 16px; }
.legal-lead { margin-top: 24px; max-width: 46em; font-size: 1.0625rem; line-height: 1.75; }
.legal { padding: 72px 0 96px; }
.legal-in { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 80px; align-items: start; }
.legal-body { max-width: 46em; }
.legal-body h2 { font-size: 1.375rem; line-height: 1.35; margin: 48px 0 16px; scroll-margin-top: calc(var(--hdr) + 24px); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.0625rem; line-height: 1.4; margin: 28px 0 8px; }
.legal-body p, .legal-body li { line-height: 1.75; }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { margin: 12px 0; padding-left: 1.25em; list-style: disc; }
.legal-body li + li { margin-top: 4px; }
.legal-body a { color: var(--blue); }
.legal-date { margin-top: 48px; font-size: .875rem; color: var(--muted); }
.legal-aside { position: sticky; top: calc(var(--hdr) + 24px); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--warm); font-size: .9375rem; }
.legal-aside .ftr-h { color: var(--ink); }
.legal-aside p + p { margin-top: 12px; }
.legal-aside a { color: var(--blue); }
.legal-toc { list-style: decimal; padding-left: 1.25em; }
.legal-toc li + li { margin-top: 6px; }
@media (max-width: 959px) {
  .legal-in { grid-template-columns: 1fr; gap: 40px; }
  .legal-aside { position: static; order: -1; }
  .legal-hero { padding: 56px 0 48px; }
  .legal { padding: 48px 0 72px; }
}

/* ---------- Footer v2: ruhiger, RustDesk als eigenes Band ---------- */
.ftr-top { grid-template-columns: 1.6fr 1fr .8fr .8fr; gap: 48px; padding: 64px 0 48px; align-items: start; }
.ftr-logo { padding: 10px 14px; }
.ftr-logo img { width: 96px; height: auto; }
.ftr address { margin-top: 20px; line-height: 1.7; }
.ftr-col li + li { margin-top: 6px; }

.ftr-remote {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 28px 0; border-top: 1px solid var(--line-dark);
}
.ftr-remote-text { max-width: 40em; }
.ftr-remote-text .ftr-h { margin-bottom: 6px; }
.ftr-remote .ftr-note { margin: 0; font-size: .875rem; line-height: 1.6; }
.ftr-remote .ftr-dl { flex: none; }

@media (max-width: 959px) {
  .ftr-top { grid-template-columns: 1fr 1fr; gap: 36px 32px; padding: 48px 0 36px; }
  .ftr-brand { grid-column: 1 / -1; }
  .ftr-remote { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px 0; }
}
@media (max-width: 599px) {
  .ftr-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding: 40px 0 32px; }
  .ftr-brand, .ftr-top > .ftr-col:nth-child(2) { grid-column: 1 / -1; }
  .ftr-logo img { width: 84px; }
  .ftr-remote .ftr-dl { width: 100%; }
  .ftr-bottom { padding-bottom: 96px; }
}

/* ---------- Footer v3: kompakt, Fernwartung als schmale Spalte ---------- */
.ftr { font-size: .9rem; line-height: 1.6; }
.ftr-top { grid-template-columns: 1.5fr 1.2fr .8fr .9fr 1.1fr; gap: 32px; padding: 44px 0 32px; }
.ftr-logo { padding: 8px 12px; }
.ftr-logo img { width: 84px; }
.ftr address { margin-top: 14px; line-height: 1.55; }
.ftr-h { margin-bottom: 10px; font-size: .75rem; }
.ftr-col li + li { margin-top: 3px; }
.ftr-bottom { padding: 16px 0 20px; font-size: .8125rem; }

/* Fernwartung: schlanker Download-Link statt Kasten */
.ftr-remote { display: block; padding: 0; border: 0; }
.ftr-remote .ftr-dl {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--line-dark); border-radius: 999px;
  font-size: .875rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.ftr-remote .ftr-dl svg { width: 16px; height: 16px; }
.ftr-remote .ftr-dl strong { display: inline; font-weight: 600; }
.ftr-remote .ftr-dl small { display: none; }
.ftr-remote .ftr-note { margin: 8px 0 0; font-size: .8125rem; line-height: 1.5; max-width: 22em; }

@media (max-width: 1099px) {
  .ftr-top { grid-template-columns: 1fr 1fr 1fr; gap: 28px 24px; padding: 36px 0 24px; }
  .ftr-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
  .ftr-brand address { margin-top: 0; }
}
@media (max-width: 759px) {
  .ftr-top { grid-template-columns: 1fr 1fr; gap: 24px 20px; padding: 32px 0 20px; }
  .ftr-top > .ftr-col:nth-child(2) { grid-column: 1 / -1; }
  .ftr-remote { grid-column: 1 / -1; }
  .ftr-bottom { padding-bottom: 88px; }
}

/* ---------- Footer v4: Handy deutlich kürzer ---------- */
@media (max-width: 759px) {
  .ftr-top { grid-template-columns: 1fr 1fr; gap: 20px 16px; padding: 28px 0 16px; }
  .ftr-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; }
  .ftr-logo { flex: none; padding: 6px 10px; }
  .ftr-logo img { width: 72px; }
  .ftr address { margin: 0; font-size: .8125rem; line-height: 1.5; }
  .ftr-top > .ftr-col:nth-child(2) { grid-column: auto; }
  .ftr-h { margin-bottom: 6px; }
  .ftr-col li + li { margin-top: 2px; }
  .ftr-remote { grid-column: auto; }
  .ftr-remote .ftr-dl { white-space: normal; border-radius: 12px; padding: 6px 10px; gap: 6px; font-size: .8125rem; line-height: 1.3; }
  .ftr-remote .ftr-dl svg { flex: none; }
  .ftr-remote .ftr-note { margin-top: 6px; }
  .ftr-bottom { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 0 84px; font-size: .75rem; }
}

/* ---------- Footer v5: Desktop – gleiches Zeilenraster, Texte stehen auf einer Höhe ---------- */
@media (min-width: 1100px) {
  .ftr-top { align-items: start; padding-bottom: 14px; }
  .ftr-h { line-height: 20px; margin-bottom: 10px; }
  .ftr-col li, .ftr address { line-height: 26px; }
  .ftr-col li + li { margin-top: 0; }
  .ftr-logo { display: block; width: fit-content; margin: 0 0 5px; }
  .ftr-logo img { display: block; }
  .ftr address { margin-top: 0; }
}

/* ---------- IT-Check: Terminanfrage direkt im Ergebnis ---------- */
.check .check-form { max-width: 480px; margin: 32px auto 0; padding-top: 28px; border-top: 1px solid var(--line); text-align: left; }
.check .check-form h4 { font: 600 1.125rem/1.4 var(--f-head); color: var(--ink); }
.check .check-form .qh { margin: 4px 0 20px; }
.check .check-form .field { margin-bottom: 18px; }
.check .check-form .form-err { margin: 0 0 14px; }
.check .result > .ans { margin-top: 20px; }
