/* TECKA-Kanaltechnik – Stylesheet
   Hell und ruhig: weißer Grund, Navy für Schrift und Buttons, Boxen mit feinem Rand, eigene Einsatzfotos. */

@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #003652;
  --navy-press: #00263a;
  --ink: #003652;
  --ink-2: #4d6474;
  --bg: #ffffff;
  --soft: #f5f7f9;
  --tint: #eaf2f8;
  --line: #e1e7ec;
  --line-2: #c9d4dc;
  --red: #bd0926;

  --font: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-small: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --fs-h3: 1.125rem;
  --fs-h2: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  --fs-h1: clamp(2.125rem, 1.5rem + 2.3vw, 3.5rem);

  --max: 1180px;
  --margin: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 8vw, 120px);
  --radius: 18px;
  --radius-s: 12px;
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); scrollbar-color: var(--line-2) var(--soft); }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; caret-color: var(--navy); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
strong { font-weight: 600; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2.5px solid var(--navy); outline-offset: 3px; border-radius: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.muted { color: var(--ink-2); }
.skip { position: absolute; left: var(--margin); top: -100px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 6px 0 18px; border: 1px solid var(--navy); border-radius: 999px; background: var(--navy); color: #fff; font: 500 0.9375rem/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 160ms var(--ease); }
.btn:hover { background: var(--navy-press); border-color: var(--navy-press); }
.btn:active { transform: scale(0.97); }
.btn .ico { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--navy); transition: transform 240ms var(--ease); }
.btn .ico .icon { width: 16px; height: 16px; }
.btn:hover .ico { transform: translateX(2px); }
.btn--line { background: #fff; color: var(--navy); border-color: var(--line-2); padding: 0 18px; }
.btn--line:hover { background: var(--soft); border-color: var(--navy); }
.btn--line .icon { width: 16px; height: 16px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: var(--fs-small); }

.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.link span { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; transition: text-decoration-color 180ms ease; }
.link:hover span, a:hover .link span { text-decoration-color: currentColor; }
.link .icon { width: 16px; height: 16px; transition: transform 220ms var(--ease); }
.link:hover .icon, a:hover .link .icon { transform: translateX(3px); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 11px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 500; white-space: nowrap; }

.icon-chip { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--tint); color: var(--navy); }
.icon-chip .icon { width: 20px; height: 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); transition: box-shadow 200ms ease; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { flex: none; border-radius: 8px; }
.brand img { height: 46px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav li { position: relative; }
.nav-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; text-decoration: none; transition: background-color 160ms ease; }
.nav-link:hover, .has-sub:hover .nav-link { background: var(--soft); }
.nav-link[aria-current="page"], .nav-link.is-section { background: var(--soft); }
.nav-item { display: flex; align-items: center; }
.sub-toggle { display: inline-grid; place-items: center; width: 28px; height: 40px; margin-left: -8px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; }
.sub-toggle .icon { width: 15px; height: 15px; transition: transform 220ms var(--ease); }
.has-sub.is-open .sub-toggle .icon { transform: rotate(180deg); }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.sub { position: absolute; left: -6px; top: calc(100% + 6px); display: none; width: 300px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.18); }
.has-sub.is-open .sub, .has-sub:hover .sub { display: grid; gap: 2px; animation: pop 200ms var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sub a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 0.9375rem; font-weight: 500; line-height: 1.3; text-decoration: none; }
.sub a small { display: block; margin-top: 2px; font-size: var(--fs-xs); font-weight: 400; color: var(--ink-2); }
.sub a:hover, .sub a[aria-current="page"] { background: var(--soft); }
.header-phone { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; font-size: 0.9375rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.header-phone .icon { width: 16px; height: 16px; }
.header-phone:hover span { text-decoration: underline; }
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--navy); font: 500 0.9375rem/1 var(--font); cursor: pointer; }
.menu-toggle .bars { position: relative; width: 16px; height: 10px; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform 240ms var(--ease), top 240ms var(--ease); }
.menu-toggle .bars::before { top: 1px; }
.menu-toggle .bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 4px; transform: rotate(-45deg); }
.mobile-menu { display: none; }

@media (max-width: 1000px) {
  .main-nav, .header-bar > .btn { display: none; }
  .header-phone { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu { display: block; position: fixed; inset: var(--header-h) 0 0; z-index: 49; overflow-y: auto; padding: 8px var(--margin) 40px; background: #fff; animation: pop 240ms var(--ease); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu ul { display: grid; }
  .mobile-menu a.m-link { display: flex; align-items: center; justify-content: space-between; min-height: 54px; font-size: 1.125rem; font-weight: 500; text-decoration: none; }
  .mobile-menu a.m-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }
  .mobile-menu .m-sub a { display: block; padding: 8px 0 8px 14px; color: var(--ink-2); text-decoration: none; }
  .mobile-menu .m-sub a[aria-current="page"] { color: var(--ink); font-weight: 600; }
  .mobile-menu .m-actions { display: grid; gap: 10px; margin-top: 24px; }
  .mobile-menu .m-actions .btn { width: 100%; min-height: 48px; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 560px) {
  :root { --header-h: 66px; }
  .header-bar { gap: 10px; }
  .brand img { height: 42px; }
  .header-phone span { display: none; }
  .header-phone { justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 999px; }
}

/* Abschnitte */
.section { padding-top: var(--section); }
.section-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px 32px; align-items: end; margin-bottom: clamp(28px, 3.5vw, 48px); }
.section-intro h2 { grid-column: 1 / span 6; }
.section-intro p { grid-column: 8 / span 5; color: var(--ink-2); }
.section-intro--center { display: block; max-width: 640px; margin-inline: auto; text-align: center; }
.section-intro--center p { margin-top: 14px; }

/* Split: Text und Foto */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 32px; align-items: center; }
.split-text { grid-column: 1 / span 6; }
.split-media { grid-column: 7 / span 6; }
.split--flip .split-text { grid-column: 7 / span 6; grid-row: 1; }
.split--flip .split-media { grid-column: 1 / span 6; grid-row: 1; }
.split-text > p, .split-text .prose { margin-top: 18px; }
.split-text .actions { margin-top: 26px; }
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--43 { aspect-ratio: 4 / 3; }
.photo--54 { aspect-ratio: 5 / 4; }
.photo--45 { aspect-ratio: 4 / 5; }
.caption { margin-top: 10px; font-size: var(--fs-xs); color: var(--ink-2); }
.prose { display: grid; gap: 0.9em; max-width: 62ch; }
.prose h3 { margin-top: 0.5em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Duo: Überschrift links, Text rechts */
.duo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px 32px; align-items: start; }
.duo > h2 { grid-column: 1 / span 5; }
.duo > .duo-body { grid-column: 7 / span 6; }
.duo-body .checks, .duo-body .actions { margin-top: 24px; }

/* Hero */
.hero { padding-top: clamp(28px, 4.5vw, 64px); }
.hero h1 { max-width: 13ch; }
.hero .lead { margin-top: 20px; max-width: 40ch; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); }
.hero .actions { margin-top: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; font-size: var(--fs-small); color: var(--ink-2); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .icon { width: 17px; height: 17px; color: var(--navy); }
.page-hero h1 { max-width: 15ch; }
.hero .split-text { grid-column: 1 / span 5; }
.hero .split-media { grid-column: 6 / span 7; }
.hero .photo--54 { aspect-ratio: 11 / 10; }
.hero .collage { aspect-ratio: 11 / 10; }
.page-hero--text .split-text { grid-column: 1 / span 8; }

/* Schwebende Karte auf dem Hero-Foto */
.hero-figure { position: relative; }
.float-card { position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 36px); padding: 10px 16px 10px 10px; border-radius: 14px; background: #fff; }
.float-card img { width: 44px; height: 44px; flex: none; }
.float-card .icon-chip { width: 44px; height: 44px; }
.float-card b { display: block; font-size: var(--fs-small); font-weight: 600; line-height: 1.3; }
.float-card span { display: block; font-size: var(--fs-xs); line-height: 1.35; color: var(--ink-2); }

/* Logo-Laufband */
.marquee-wrap { text-align: center; }
.marquee-wrap > p { font-size: var(--fs-small); color: var(--ink-2); }
.marquee { position: relative; margin-top: 22px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 72px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 46px; width: auto; flex: none; }
.marquee-track img.wide { height: 30px; }
.marquee-track img.long { height: 54px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 36px)); } }

/* Boxen mit Rand */
.box { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 22px; transition: border-color 200ms ease, transform 300ms var(--ease); }
a.box { display: block; text-decoration: none; }
a.box:hover { border-color: var(--line-2); }
.box--soft { background: var(--soft); }
.box h3 + p { margin-top: 6px; }
.box p { font-size: 0.9375rem; color: var(--ink-2); }
.box .icon-chip { margin-bottom: 16px; }

/* Leistungskarten */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.services--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service { display: flex; flex-direction: column; padding: 8px; }
.service .photo { aspect-ratio: 4 / 3; border-radius: 12px; }
.service .photo img { transition: transform 700ms var(--ease); }
.service:hover .photo img { transform: scale(1.04); }
.service .body { display: flex; flex-direction: column; flex: 1; padding: 16px 12px 12px; }
.service h3 { font-size: 1.0625rem; }
.service p { margin-top: 6px; }
.service .btn { align-self: flex-start; margin-top: auto; }
.service .body p { margin-bottom: 18px; }

/* Raster aus Boxen */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* Fakten in Boxen */
.stat b { display: block; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.stat span { display: block; margin-top: 6px; font-size: var(--fs-small); color: var(--ink-2); }
.stat .icon-chip { margin-bottom: 18px; }
.facts-row .box { padding: 18px 20px; }
.facts-row dt { font-size: var(--fs-xs); color: var(--ink-2); }
.facts-row dd { margin-top: 4px; font-weight: 600; line-height: 1.35; }

/* Bento: Technik auf einen Blick */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); gap: 16px; }
.bento > * { min-width: 0; }
.bento .b-photo { grid-column: span 5; grid-row: span 2; padding: 0; overflow: hidden; }
.bento .b-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento .b-photo .chip { position: absolute; left: 14px; bottom: 14px; background: #fff; }
.bento .b-wide { grid-column: span 7; }
.bento .b-half { grid-column: span 4; }
.bento .b-third { grid-column: span 3; }
.bento .box { display: flex; flex-direction: column; }
.bento .box .push { margin-top: auto; }
.bento .figure-big { font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.bento .seal-row { display: flex; align-items: center; gap: 16px; }
.bento .seal-row img { width: 64px; height: 64px; flex: none; }
.mini-list { display: grid; gap: 8px; margin-top: 14px; }
.mini-list li { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; }
.mini-list .icon { width: 16px; height: 16px; color: var(--navy); }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: clamp(22px, 3vw, 34px); }
.step p { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-2); }
.step .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.step .top .arrow { color: var(--line-2); }
.step .top .arrow .icon { width: 18px; height: 18px; }
.step:last-child .top .arrow { display: none; }

/* Fakten-Liste */
.checks { display: grid; gap: 10px; margin-top: 22px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; font-weight: 500; }
.checks .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--navy); }
.checks--two { grid-template-columns: 1fr 1fr; gap: 10px 24px; }

/* Hinweis */
.note { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--soft); }
.note .icon { width: 20px; height: 20px; margin-top: 2px; }
.note p { max-width: 90ch; font-size: 0.9375rem; color: var(--ink-2); }

/* Fristen-Check */
.check { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; padding: clamp(26px, 4vw, 52px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.check-form { grid-column: 1 / span 6; }
.check-form > p { margin-top: 14px; max-width: 44ch; color: var(--ink-2); }
.check-q { margin: 24px 0 0; padding: 0; border: 0; min-width: 0; }
.check-q[hidden] { display: none; }
.check-q legend { margin-bottom: 10px; padding: 0; font-size: 0.9375rem; font-weight: 600; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { position: relative; }
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font-size: 0.9375rem; font-weight: 500; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.choice label:hover span { border-color: var(--navy); }
.choice input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.choice input:focus-visible + span { outline: 2.5px solid var(--navy); outline-offset: 3px; }
.check-result { grid-column: 8 / span 5; display: flex; flex-direction: column; justify-content: center; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; }
.check-result .verdict { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.check-result .status { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.9375rem; font-weight: 600; }
.check-result .status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--navy); }
.check-result[data-state="due"] .status .dot { background: var(--red); }
.check-result .why { margin-top: 12px; font-size: 0.9375rem; color: var(--ink-2); }
.check-result .facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin-top: 16px; font-size: 0.9375rem; }
.check-result .facts dt { color: var(--ink-2); }
.check-result .facts dd { font-weight: 600; }
.check-result .actions { margin-top: 22px; }
.check-result .fine { margin-top: 16px; font-size: var(--fs-xs); color: var(--ink-2); }
.rules { display: grid; gap: 12px; margin-top: 16px; font-size: 0.9375rem; }
.rules li { color: var(--ink-2); }
.rules b { display: block; color: var(--ink); font-weight: 600; }
.check-swap { animation: swap 380ms var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.faq-head { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 24px); }
.faq-head p { margin-top: 14px; color: var(--ink-2); }
.faq-head .link { margin-top: 16px; }
.faq-list { grid-column: 6 / span 7; display: grid; gap: 8px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; transition: border-color 200ms ease; }
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary { position: relative; display: flex; align-items: center; min-height: 60px; padding: 14px 56px 14px 20px; font-size: 0.9375rem; font-weight: 500; line-height: 1.4; list-style: none; cursor: pointer; border-radius: var(--radius-s); transition: background-color 160ms ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--soft); }
.faq-item summary::before, .faq-item summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 1.5px; margin-top: -0.75px; border-radius: 2px; background: currentColor; transition: transform 280ms var(--ease); }
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-item .answer { padding: 0 20px 20px; font-size: 0.9375rem; color: var(--ink-2); max-width: calc(66ch + 40px); }
.faq-item::details-content { block-size: 0; overflow: clip; transition: block-size 320ms var(--ease), content-visibility 320ms allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* Leistungsübersicht: auf einen Blick */
.overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ov { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 10px; }
.ov .photo { border-radius: 12px; min-height: 230px; }
.ov .photo img { position: absolute; inset: 0; transition: transform 700ms var(--ease); }
.ov:hover .photo img { transform: scale(1.04); }
.ov .body { display: flex; flex-direction: column; padding: 12px 10px 10px 0; }
.ov h2 { font-size: 1.25rem; letter-spacing: -0.015em; }
.ov p { margin-top: 8px; font-size: 0.9375rem; color: var(--ink-2); }
.ov .chips { margin-top: 14px; }
.ov .btn { align-self: flex-start; margin-top: auto; }
.ov .body .chips { margin-bottom: 18px; }

/* Über uns: Collage und Galerie */
.collage { display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 5 / 4; }
.collage .photo { border-radius: 16px; }
.collage .photo:first-child { grid-row: span 2; }
.collage .photo img { position: absolute; inset: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 12px; }
.gallery button { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--soft); cursor: zoom-in; font: inherit; }
.gallery button.big { grid-column: span 2; grid-row: span 2; }
.gallery button.tall { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery .chip { position: absolute; left: 12px; bottom: 12px; background: #fff; color: var(--ink); }

.lightbox { width: min(1100px, 94vw); max-height: 92svh; padding: 0; border: 0; border-radius: var(--radius); background: #fff; color: var(--ink); overflow: hidden; }
.lightbox::backdrop { background: rgba(0, 20, 32, 0.8); }
.lightbox[open] { animation: pop 260ms var(--ease); }
.lightbox figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; max-height: 92svh; }
.lightbox img { width: 100%; max-height: calc(92svh - 64px); object-fit: contain; background: var(--soft); }
.lightbox figcaption { display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 10px 12px 10px 20px; }
.lightbox figcaption p { margin-right: auto; font-size: 0.9375rem; font-weight: 500; }
.lb-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; transition: border-color 160ms ease; }
.lb-btn:hover { border-color: var(--navy); }
.lb-btn .icon { width: 18px; height: 18px; }

/* Abschluss: Foto mit Navy-Schleier, wie die Karte der bisherigen Seite */
.cta { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; padding: clamp(28px, 4.5vw, 64px); border-radius: var(--radius); overflow: hidden; background: var(--navy); color: #fff; }
.cta-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 55% 55%; animation: drift 26s ease-in-out infinite alternate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 38, 58, 0.95) 0%, rgba(0, 38, 58, 0.88) 48%, rgba(0, 38, 58, 0.5) 100%); }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translateX(-2%); } }
.cta-text { grid-column: 1 / span 7; }
.cta-logo { display: inline-block; margin-bottom: 24px; padding: 8px 12px; border-radius: 12px; background: #fff; }
.cta-logo img { height: 42px; width: auto; }
.cta h2 { color: #fff; font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); }
.cta-text p { margin-top: 14px; max-width: 46ch; color: rgba(255, 255, 255, 0.84); }
.cta-text .actions { margin-top: 26px; }
.btn--light { background: #fff; border-color: #fff; color: var(--navy); }
.btn--light:hover { background: var(--tint); border-color: var(--tint); }
.btn--light .ico { background: var(--navy); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.5); color: #fff; padding: 0 18px; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn--ghost .icon { width: 16px; height: 16px; }
.cta-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: var(--fs-small); color: rgba(255, 255, 255, 0.86); }
.cta-points li { display: inline-flex; align-items: center; gap: 8px; }
.cta-points .icon { width: 16px; height: 16px; }

/* Footer */
.site-footer { margin-top: var(--section); background: var(--soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px 32px; padding-block: 56px 40px; }
.footer-brand img { height: 56px; width: auto; }
.footer-brand p { margin-top: 16px; max-width: 36ch; font-size: var(--fs-small); color: var(--ink-2); }
.site-footer h2 { margin-bottom: 12px; font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.site-footer ul { display: grid; gap: 6px; }
.site-footer li a { color: var(--ink-2); font-size: var(--fs-small); text-decoration: none; }
.site-footer li a:hover { color: var(--ink); text-decoration: underline; }
.footer-contact address { font-style: normal; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.footer-contact .lines { display: grid; gap: 4px; margin-top: 10px; font-size: var(--fs-small); }
.footer-contact a { font-weight: 500; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px 28px; font-size: var(--fs-xs); color: var(--ink-2); }
.to-top { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); text-decoration: none; }
.to-top:hover { text-decoration: underline; }
.to-top .icon { width: 14px; height: 14px; }

/* Kontakt */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
.contact-form { grid-column: 1 / span 7; padding: clamp(22px, 3vw, 36px); }
.contact-info { grid-column: 8 / span 5; display: grid; gap: 16px; }
.contact-info .box { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .box .icon-chip { margin: 0; }
.contact-info .label { font-size: var(--fs-xs); color: var(--ink-2); }
.contact-info .value { display: inline-block; margin-top: 2px; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; text-decoration: none; word-break: break-word; color: var(--ink); }
.contact-info a.value:hover { text-decoration: underline; }
.contact-info address { margin-top: 2px; font-style: normal; font-weight: 600; line-height: 1.5; }
.contact-info .link { margin-top: 8px; font-size: 0.9375rem; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 26px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.9375rem; font-weight: 500; }
.field label .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--font); transition: border-color 160ms ease; }
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23003652' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2.5px solid var(--navy); outline-offset: 2px; border-color: var(--navy); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-2); }
.field .err { display: none; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--red); }
.field .err .icon { width: 14px; height: 14px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field.has-error .err { display: flex; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-foot p { max-width: 44ch; font-size: var(--fs-xs); color: var(--ink-2); }
.error-summary, .form-success { grid-column: 1 / -1; padding: 16px 18px; border-radius: 10px; }
.error-summary { background: #fbe9ec; }
.error-summary h3 { font-size: 0.9375rem; letter-spacing: 0; color: var(--red); }
.error-summary ul { display: grid; gap: 4px; margin-top: 6px; font-size: 0.9375rem; }
.error-summary a { color: var(--red); font-weight: 500; }
.form-success { background: var(--soft); }
.form-success h3 { font-size: 1rem; }
.form-success p { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-2); }
.error-summary[hidden], .form-success[hidden] { display: none; }

/* Rechtstexte */
.legal { display: grid; gap: 16px; max-width: 820px; }
.legal > div { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); }
.legal h2 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); }
.legal h3 { margin-top: 1.3em; font-size: 1rem; letter-spacing: 0; }
.legal p, .legal address { margin-top: 0.7em; font-size: 0.9375rem; font-style: normal; }
.legal a { word-break: break-word; }
.legal h4 { margin-top: 1.1em; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; }
.legal ul { margin-top: 0.7em; padding-left: 1.2em; list-style: disc; }
.legal li { margin-top: 0.45em; font-size: 0.9375rem; }

/* Responsive */
@media (max-width: 1023px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step .top .arrow { display: none; }
  .bento .b-photo { grid-column: span 12; grid-row: span 1; min-height: 280px; }
  .bento .b-wide { grid-column: span 12; }
  .bento .b-half, .bento .b-third { grid-column: span 6; }
  .overview { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 190px; }
}
@media (max-width: 900px) {
  .split, .duo, .check, .faq, .cta, .contact, .section-intro { grid-template-columns: minmax(0, 1fr); }
  .split-text, .split-media, .hero .split-text, .hero .split-media, .split--flip .split-text, .split--flip .split-media, .duo > h2, .duo > .duo-body,
  .check-form, .check-result, .faq-head, .faq-list, .cta-text, .contact-form, .contact-info,
  .section-intro h2, .section-intro p, .page-hero--text .split-text { grid-column: 1 / -1; grid-row: auto; }

  .faq-head { position: static; }
  .grid-3, .services--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .services, .services--3, .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .bento .b-wide, .bento .b-half, .bento .b-third { grid-column: span 12; }
  .ov { grid-template-columns: 1fr; }
  .ov .photo { min-height: 0; aspect-ratio: 16 / 9; }
  .ov .body { padding: 6px 8px 10px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery button.big { grid-column: span 2; }
  .checks--two { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .form-foot .btn, .hero .actions .btn, .cta-text .actions .btn { flex: 1 1 100%; }
  .float-card { left: 10px; bottom: 10px; max-width: calc(100% - 20px); }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Eingang: Inhalte bleiben ohne Skript sichtbar */
@media (prefers-reduced-motion: no-preference) {
  html.js .rv { opacity: 0; transform: translateY(16px); }
  html.js .rv.is-in { opacity: 1; transform: none; transition: opacity 650ms var(--ease) var(--d, 0ms), transform 750ms var(--ease) var(--d, 0ms); }
  html.js [data-shutter] img { clip-path: inset(0 0 100% 0 round var(--radius)); transform: scale(1.08); }
  html.js [data-shutter].is-in img { clip-path: inset(0 0 0 0 round var(--radius)); transform: none; transition: clip-path 1100ms cubic-bezier(0.65, 0, 0.35, 1) 150ms, transform 1500ms var(--ease) 150ms; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta-bg, .check-swap, .sub, .mobile-menu, .lightbox[open], .marquee-track { animation: none !important; }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .faq-item::details-content { transition: none; }
}
@media print { .site-header, .mobile-menu, .cta, .to-top, .marquee { display: none !important; } }
.step .top .icon-chip { margin: 0; }

/* Leistungsumfang: Boxen mit Icon links */
.feature { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px 12px; align-items: start; align-content: start; }
.feature .icon-chip { grid-row: 1; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 0; background: none; }
.feature .icon-chip .icon { width: 22px; height: 22px; }
.feature h3 { grid-column: 2; font-size: 1rem; line-height: 1.4; }
.feature p { grid-column: 2; margin-top: 0; }
.facts-row { margin-top: 16px; }
.section-tight { padding-top: clamp(28px, 3vw, 40px); }

/* Startseite: Foto so hoch wie der Textblock */
.hero--fit .split { align-items: stretch; }
.hero--fit .split-text { grid-column: 1 / span 6; align-self: center; padding-block: 8px; }
.hero--fit .split-media { grid-column: 7 / span 6; display: flex; }
.hero--fit .photo { flex: 1; aspect-ratio: auto; min-height: 260px; }
.hero--fit .photo img { position: absolute; inset: 0; }
@media (max-width: 900px) {
  .hero--fit .split-text, .hero--fit .split-media { grid-column: 1 / -1; }
  .hero--fit .photo { aspect-ratio: 4 / 3; min-height: 0; }
  .cta::before { background: rgba(0, 38, 58, 0.88); }
}
.hero--fit .collage { flex: 1; aspect-ratio: auto; min-height: 260px; }
.hero--fit.page-hero--text .split-text { grid-column: 1 / span 8; }
@media (max-width: 900px) {
  .hero--fit .collage { aspect-ratio: 5 / 4; min-height: 0; }
  .hero--fit.page-hero--text .split-text { grid-column: 1 / -1; }
}
.hero--fit .collage .photo { min-height: 0; }

/* Kleinere Fotos neben Text */
.photo--small { max-width: 460px; margin-inline: auto; }
/* Icons frei, ohne Kachel */
.icon-chip { width: auto; height: auto; border-radius: 0; background: none; place-items: start; }
.icon-chip .icon { width: 22px; height: 22px; }
.box .icon-chip { margin-bottom: 12px; }
.float-card .icon-chip { width: 28px; height: 28px; place-items: center; }
/* Über uns: Collage kompakter */
.hero--fit .collage { max-height: 380px; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) {
  .hero--fit .collage { aspect-ratio: 16 / 10; max-height: none; }
  .hero--fit .photo { aspect-ratio: 16 / 10; }
}


/* Split: Foto so hoch wie der Text */
.split--fit { align-items: stretch; }
.split--fit .split-text { align-self: center; }
.split--fit .split-media { display: flex; }
.split--fit .photo { flex: 1; min-height: 300px; }
.split--fit .photo img { position: absolute; inset: 0; }
@media (max-width: 900px) { .split--fit .photo { aspect-ratio: 4 / 3; min-height: 0; } }
.section-intro p.intro-end { justify-self: end; text-align: right; }
@media (max-width: 900px) { .section-intro p.intro-end { justify-self: start; text-align: left; } }

/* Einwilligungsbanner für Google Analytics: beide Knöpfe gleich gewichtet */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 60; width: min(440px, calc(100vw - 32px)); padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 54, 82, 0.12); }
.consent[hidden] { display: none; }
.consent-title { font-weight: 600; color: var(--ink); }
.consent p + p { margin-top: 6px; font-size: var(--fs-small); color: var(--ink-2); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.consent-actions .btn { justify-content: center; }
.site-footer .link-btn { padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-small); color: var(--ink-2); cursor: pointer; text-align: left; }
.site-footer .link-btn:hover { color: var(--ink); text-decoration: underline; }
@media print { .consent { display: none !important; } }
.legal .link-btn--inline { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.legal .link-btn--inline:hover { color: var(--ink-2); }

/* Kontaktformular: Honeypot und Fehlermeldung beim Versand */
.form .hp { display: none !important; }
.form-error { grid-column: 1 / -1; padding: 16px 18px; border-radius: 10px; background: #fbe9ec; }
.form-error h3 { font-size: 0.9375rem; letter-spacing: 0; color: var(--red); }
.form-error p { margin-top: 6px; font-size: 0.9375rem; }
.form-success:focus, .form-error:focus { outline: none; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
