/* Sachverständigenbüro Christen – Website-Stylesheet (FiF-IT GmbH) */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #1B2127;
  --ink-2: #3A424B;
  --muted: #59616B;
  --ground: #F4F5F6;
  --surface: #FFFFFF;
  --line: #DDE0E3;
  --line-2: #CBD0D5;
  --dark: #1F2328;
  --darker: #15181C;
  --dark-2: #2A2F35;
  --on-dark: #D3D8DE;
  --on-dark-2: #B9C0C8;
  --accent: #5B9BD5;
  --accent-ink: #24578A;
  --accent-ink-2: #1A4370;
  --radius: 6px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-press: cubic-bezier(.3, 0, .2, 1);
  --wrap: 1200px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--ground); caret-color: var(--accent-ink); scrollbar-color: #8A9199 var(--ground); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--darker); }
.hero ::selection, .band-dark ::selection, .page-hero ::selection, .site-footer ::selection { background: #fff; color: var(--darker); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink-2); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.04; margin: 0 0 .5em; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(44px, 5.6vw, 72px); line-height: 1; letter-spacing: -.01em; }
h2 { font-size: clamp(34px, 4.2vw, 52px); }
p, li, dd { text-wrap: pretty; }
output, time, .tnum { font-variant-numeric: tabular-nums; }
h3 { font-size: 26px; }
h4 { font-size: 20px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.topbar :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .band-dark :focus-visible, .side-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (min-width: 900px) { .wrap { padding: 0 40px; } }
.muted { color: var(--muted); }
.ico { flex-shrink: 0; vertical-align: middle; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--darker); padding: 10px 16px; font-weight: 700; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 4px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; transition: background .16s, color .16s, border-color .16s, transform .12s var(--ease-press); }
.btn:active { transform: scale(.97); }
.btn-white { background: #fff; color: var(--darker); }
.btn-white:hover { background: var(--darker); color: #fff; }
.btn-lg { padding: 15px 26px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--darker); }
.btn-accent:hover { background: #4A8AC4; color: var(--darker); }
.btn-dark { background: var(--darker); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-ghost { border-color: #59626C; color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-dark { border-color: var(--darker); color: var(--darker); }
.btn-outline-dark:hover { background: var(--darker); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; }

.more-link { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
/* Unterstreichung, die sich beim Zeigen aufbaut */
.uline { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease-out); padding-bottom: 2px; }
a:hover .uline, a:focus-visible .uline { background-size: 100% 2px; }
.more-light { color: #fff; }
.more-light:hover { color: var(--accent); }

/* Top bar & header */
.topbar { background: var(--darker); color: #C9CFD6; font-size: 14px; }
.topbar-in { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.topbar-info { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.lang { display: flex; gap: 4px; }
.lang a { padding: 2px 8px; border-radius: 3px; font-weight: 600; text-decoration: none; color: #C9CFD6; }
.lang a.on { background: var(--accent); color: var(--darker); font-weight: 700; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-logo { height: 56px; width: auto; max-width: 180px; object-fit: contain; }
.brand-logo-only { height: 58px; max-width: 300px; }
@media (max-width: 520px) { .brand-logo-only { height: 42px; max-width: 220px; } }
.brand-mark { width: 52px; height: 52px; border-radius: 4px; background: var(--dark); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 24px; line-height: 1; }
.brand-tag { font-size: 12px; color: var(--muted); letter-spacing: 1.4px; text-transform: uppercase; margin-top: 4px; }
.nav-toggle { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; border-radius: 4px; cursor: pointer; color: var(--ink); }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }
.main-nav { display: none; }
.main-nav.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; box-shadow: 0 12px 24px rgba(20, 25, 30, .12); }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--line); }
.main-nav a.on { color: var(--accent-ink); }
.main-nav .nav-cta { margin-top: 14px; border-bottom: 0; padding: 12px 20px; color: var(--darker); }
.lang-mobile { margin-top: 14px; }
.lang-mobile a { border: 1px solid var(--line); padding: 8px 14px; color: var(--ink); }
@media (max-width: 520px) { .brand-name { font-size: 20px; } .brand-tag { font-size: 10px; } .brand-mark { width: 42px; height: 42px; } .topbar-info span { display: none; } }
@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .main-nav, .main-nav.open { display: flex; flex-direction: row; position: static; align-items: center; gap: 26px; padding: 0; box-shadow: none; border: 0; background: none; }
  .main-nav a { border-bottom: 3px solid transparent; padding: 6px 0; }
  .main-nav a.on { color: var(--ink); border-bottom-color: var(--accent); }
  .main-nav .nav-cta { margin: 0 0 0 4px; border: 2px solid transparent; padding: 12px 20px; }
  .main-nav .nav-cta.on { border-color: var(--darker); }
  .lang-mobile { display: none; }
}

/* Hero */
.hero { background: var(--dark); color: #fff; }
.hero-in { display: grid; gap: 40px; padding-top: 52px; padding-bottom: 56px; align-items: center; }
@media (min-width: 1000px) { .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 64px; padding-top: 84px; padding-bottom: 88px; } }
.hero h1 { margin-bottom: 24px; }
.hero .lead { font-size: 20px; color: var(--on-dark); max-width: 34em; margin-bottom: 30px; }
.hero-facts { list-style: none; margin: 32px 0 0; padding: 22px 0 0; border-top: 1px solid #3A424B; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 16px; color: var(--on-dark); }
.hero-facts li { display: flex; align-items: flex-start; gap: 8px; }
.hero-facts svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.hero-facts strong { color: #fff; font-weight: 700; }
@media (max-width: 600px) { .hero-facts { flex-direction: column; } }
.hero-media { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px; }
.hero-media > img { width: 100%; height: 100%; min-height: 300px; max-height: 520px; object-fit: cover; }
.hero-pattern { height: 100%; min-height: 360px; display: flex; align-items: center; justify-content: center; color: #4D535A; background: #2A2F35; }
.seal { position: absolute; top: 18px; right: 18px; background: #fff; border-radius: 50%; padding: 8px; width: 104px; height: 104px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.seal img { max-height: 88px; width: auto; }

/* Sections */
.section { padding-top: 72px; padding-bottom: 72px; }
.section-tight { padding-bottom: 72px; }
@media (min-width: 900px) { .section { padding-top: 96px; padding-bottom: 96px; } }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 36px; }
.section-head h2 { margin: 0; }
.band-light { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--dark); color: #fff; }

/* Leistungen auf der Startseite: Verzeichnis mit Baustellenfoto */
.svc-index { display: grid; gap: 28px; }
@media (min-width: 1000px) { .svc-index { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; } .svc-index-head { position: sticky; top: 120px; } }
.svc-index-head h2 { margin-bottom: 18px; }
.svc-rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.svc-rows li { border-bottom: 1px solid var(--line-2); }
.svc-line { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px 0; color: var(--ink); text-decoration: none; }
@media (min-width: 700px) { .svc-line { grid-template-columns: 168px minmax(0, 1fr); gap: 28px; padding: 24px 0; } }
.svc-line:hover { color: var(--ink); }
.svc-thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: #E2E5E8; color: var(--muted); }
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.svc-line:hover .svc-thumb img { transform: scale(1.035); }
.svc-line-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.svc-line-title { font-family: var(--head); font-weight: 700; font-size: clamp(25px, 2.6vw, 34px); line-height: 1.05; hyphens: manual; overflow-wrap: break-word; }
.svc-line-teaser { color: var(--ink-2); font-size: 16px; max-width: 46em; }
.svc-line-tags { color: var(--muted); font-size: 14px; }
@media (max-width: 520px) { .svc-line-tags { display: none; } .svc-line-teaser { font-size: 15px; } }

/* Ablauf */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { position: relative; border-top: 2px solid var(--ink); padding-top: 22px; }
.steps li::before { content: ""; position: absolute; left: 0; top: -9px; width: 2px; height: 16px; background: var(--ink); }
.steps h3 { font-family: var(--body); font-size: 20px; margin: 6px 0 8px; }
.steps p { color: #4A525B; font-size: 16px; margin: 0; }
.step-no { font-family: var(--head); font-weight: 700; font-size: 22px; color: var(--accent-ink); }

/* Zweispaltig */
.split { display: grid; gap: 40px; align-items: center; }
.split-top { align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.split-media img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 4.2; }
.noimg { display: flex; align-items: center; justify-content: center; color: #A3A9B0; background: #E2E5E8; border-radius: var(--radius); width: 100%; height: 100%; min-height: 160px; }
.noimg.tall { aspect-ratio: 4 / 4.2; }
.band-dark .noimg, .tile .noimg { background: #2C3137; color: #4D535A; }

/* Fließtext */
.prose { color: var(--ink-2); }
.prose h2 { color: var(--ink); font-size: clamp(30px, 3.6vw, 42px); }
.prose h2:not(:first-child) { margin-top: 1.2em; }
.prose h3 { color: var(--ink); font-size: 24px; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose mark { background: #FFE9A8; color: var(--ink); padding: 0 3px; }
.prose-checks ul { list-style: none; padding: 0; }
.prose-checks ul li { position: relative; padding-left: 32px; }
.prose-checks ul li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; background: no-repeat center / 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324578A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.prose.small { font-size: 16px; }
.legal { max-width: 820px; }
.legal h2 { font-size: 28px; margin-top: 1.4em; }

/* Referenzen – Mosaik auf der Startseite */
.ref-mosaic { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (min-width: 900px) { .ref-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 16px; } .tile-lead { grid-column: span 2; grid-row: span 2; } }
.tile { position: relative; display: block; overflow: hidden; border-radius: 4px; background: #2C3137; color: #fff; text-decoration: none; aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .tile { aspect-ratio: auto; } }
.tile:hover { color: #fff; }
.tile-img, .tile-img img, .tile-img .noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.tile-img img { transition: transform .7s var(--ease-out); }
.tile:hover .tile-img img { transform: scale(1.03); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 18, 21, .92) 0%, rgba(15, 18, 21, .55) 34%, rgba(15, 18, 21, 0) 62%); pointer-events: none; }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.tile-cat { font-size: 15px; font-weight: 600; color: #BFD7EE; }
.tile-title { font-family: var(--head); font-weight: 700; font-size: 25px; line-height: 1.08; }
.tile-lead .tile-body { padding: 26px 30px; }
.tile-lead .tile-title { font-size: clamp(30px, 3.2vw, 44px); }
.tile-place { font-size: 15px; color: var(--on-dark); }
.tile .ref-count { z-index: 1; }
@media (max-width: 600px) { .ref-mosaic .tile:nth-child(n+5) { display: none; } }

/* Referenzen */
.ref-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.ref { display: flex; flex-direction: column; text-decoration: none; color: #fff; background: var(--dark-2); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.ref:hover { color: #fff; }
.ref-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #2C3137; }
.ref-img img, .ref-img .noimg { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .7s var(--ease-out); }
.ref:hover .ref-img img { transform: scale(1.03); }
.ref:hover .ref-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ref-count { position: absolute; top: 12px; right: 12px; background: rgba(20, 25, 30, .85); color: #E6E9EC; font-size: 13px; padding: 3px 9px; border-radius: 3px; }
.ref-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.ref-cat { font-size: 15px; color: var(--accent); font-weight: 600; }
.ref-title { font-family: var(--head); font-weight: 700; font-size: 24px; line-height: 1.15; }
.ref-sub { color: var(--on-dark); font-size: 15px; font-style: italic; }
.ref-place { color: var(--on-dark-2); font-size: 15px; display: inline-flex; align-items: center; gap: 4px; }
.ref-grid-light .ref { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.ref-grid-light .ref:hover { color: var(--ink); border-color: var(--ink); }
.ref-grid-light .ref-img { background: #E2E5E8; }
.ref-grid-light .ref-cat { color: var(--accent-ink); }
.ref-grid-light .ref-sub { color: var(--ink-2); }
.ref-grid-light .ref-place { color: var(--muted); }

/* Galerie */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } }
.gal-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: #E2E5E8; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.gal-item:hover img { transform: scale(1.03); }
.ref-cover-wrap { padding-top: 40px; }
.ref-cover { display: block; overflow: hidden; border-radius: 4px; background: #E2E5E8; aspect-ratio: 4 / 3; }
@media (min-width: 700px) { .ref-cover { aspect-ratio: 21 / 9; } }
.ref-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.ref-cover:hover img { transform: scale(1.02); }
.ref-cover-wrap + .detail { padding-top: 48px; }
.back-link { margin-top: 32px; }
.back-link a { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 13, 16, .94); display: flex; align-items: center; justify-content: center; padding: 56px 12px; }
.lightbox[hidden] { display: none; }
.lightbox:not([hidden]) { animation: lb-in .22s var(--ease-out); }
.lightbox:not([hidden]) .lb-fig img { animation: lb-img .32s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-img { from { opacity: 0; transform: scale(.975); } }
.lb-fig { margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lb-fig img { max-height: calc(100vh - 140px); width: auto; max-width: 100%; object-fit: contain; }
.lb-fig figcaption { color: #E6E9EC; font-size: 15px; text-align: center; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Qualifikationen */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); column-gap: 28px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.checklist .ico { color: var(--accent-ink); margin-top: 3px; }
.seal-big { max-width: 160px; margin-top: 16px; }

/* CTA-Band */
.cta-band { background: var(--accent-ink); color: #fff; }
.cta-in { display: grid; gap: 36px; padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 960px) { .cta-in { grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: end; padding-top: 88px; padding-bottom: 88px; } }
.cta-band h2 { margin: 0 0 14px; font-size: clamp(34px, 4vw, 52px); max-width: 17ch; }
.cta-text p { margin: 0 0 26px; font-size: 19px; color: #DCE7F2; max-width: 30em; }
.cta-call p { margin: 0; font-size: 17px; color: #DCE7F2; }
.cta-phone { display: inline-block; font-family: var(--head); font-weight: 700; font-size: clamp(44px, 7.2vw, 96px); line-height: 1; letter-spacing: -.01em; color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; margin: 6px 0 8px; }
.cta-phone:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.cta-hours { font-size: 16px !important; }
.cta-band :focus-visible { outline-color: #fff; }

/* Unterseiten-Kopf */
.page-hero { background: var(--dark); color: #fff; padding: 48px 0 44px; }
@media (min-width: 900px) { .page-hero { padding: 64px 0 56px; } }
.page-hero h1 { font-size: clamp(40px, 5.4vw, 72px); margin-bottom: 16px; max-width: 18ch; }
.page-hero .lead { font-size: 20px; color: var(--on-dark); max-width: 760px; margin: 0; }
.page-hero .btn { margin-top: 20px; }
.crumbs { font-size: 14px; color: var(--on-dark-2); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.crumbs a { color: var(--on-dark-2); }
.crumbs a:hover { color: #fff; }

/* Leistungsübersicht */
.services-list { display: flex; flex-direction: column; gap: 64px; }
.svc-row { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .svc-row { grid-template-columns: 1fr 1fr; gap: 56px; } .svc-row.flip .svc-media { order: 2; } }
.svc-media a { display: block; }
.svc-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 11; object-fit: cover; }
.svc-icon-big { aspect-ratio: 16 / 11; border-radius: var(--radius); background: #E2E5E8; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.svc-text h2 { margin: 0 0 12px; font-size: clamp(32px, 3.6vw, 40px); }
.svc-text h2 a { color: var(--ink); text-decoration: none; }
.svc-text h2 a:hover { color: var(--accent-ink); }
.svc-text p { color: var(--ink-2); }
.chips { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--surface); border: 1px solid var(--line); padding: 5px 12px; border-radius: 20px; font-size: 15px; font-weight: 600; }

/* Detailseiten */
.detail { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .detail { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; } .detail-side { position: sticky; top: 110px; } }
.detail-img { width: 100%; border-radius: var(--radius); margin-bottom: 32px; aspect-ratio: 16 / 9; object-fit: cover; }
.detail-side { display: flex; flex-direction: column; gap: 20px; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 0; }
.side-dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.side-dark h2 { font-size: 28px; }
.side-dark p { color: var(--on-dark); font-size: 16px; }
.side-ico { width: 52px; height: 52px; border-radius: var(--radius); background: var(--accent); color: var(--darker); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.side-tel { display: inline-flex; align-items: center; gap: 8px; color: #fff; margin-top: 16px; font-weight: 700; text-decoration: none; }
.side-tel:hover { color: var(--accent); }
.side-h { font-size: 22px; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.side-links li:last-child a { border-bottom: 0; }
.side-links a:hover { color: var(--accent-ink); }
.side-links .ico { color: var(--accent-ink); }
.facts div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts div:first-child { padding-top: 0; }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font-size: 15px; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 600; }

/* Team */
.team { display: grid; gap: 28px; margin-top: 32px; }
.member { display: grid; gap: 24px; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 800px) { .member { grid-template-columns: 260px minmax(0, 1fr); gap: 36px; padding: 32px; } }
.member-img img, .member-img .noimg { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.member h3 { font-size: 32px; margin: 0; }
.member-role { color: var(--accent-ink); font-weight: 600; font-size: 17px; margin: 4px 0 16px; }
.member h4 { margin-top: 20px; }

/* FAQ */
.faq-aside p { color: var(--ink-2); font-size: 19px; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .2s; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq summary:hover { color: var(--accent-ink); }
.faq .prose { padding: 0 0 18px; max-width: 700px; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 1fr 1.6fr; } }

/* Kontakt */
.contact { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .contact { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 700px) { .panel { padding: 36px; } }
.panel h2 { font-size: 34px; }
.form { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; }
.field small { color: var(--muted); font-size: 14px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #8A9097; border-radius: 4px; background: #fff; color: var(--ink); width: 100%; }
.field textarea { resize: vertical; min-height: 140px; }
.field input[type="file"] { font: inherit; font-size: 15px; color: var(--ink-2); max-width: 100%; }
.field input[type="file"]::file-selector-button { font: inherit; font-weight: 700; font-size: 15px; margin-right: 14px; padding: 10px 16px; border: 2px solid var(--ink); border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer; transition: background .16s, color .16s; }
.field input[type="file"]::file-selector-button:hover { background: var(--ink); color: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent-ink); outline-offset: 0; border-color: var(--ink); }
.field.check { flex-direction: row; gap: 12px; align-items: flex-start; }
.field.check input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--ink); }
.field.check label { font-weight: 400; color: var(--ink-2); }
.req { color: #A3361F; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { background: #FCEDEA; border: 1px solid #E4A497; color: #6E1F10; border-radius: 4px; padding: 14px 18px; margin-bottom: 20px; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.thanks { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px 0; }
.thanks-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--darker); display: inline-flex; align-items: center; justify-content: center; }
.contact-side { display: flex; flex-direction: column; gap: 20px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .ico { color: var(--accent); margin-top: 2px; }
.contact-list a { color: #fff; }
.contact-list a:hover { color: var(--accent); }
.map-box { padding: 0; overflow: hidden; }
.map { height: 300px; background: #E5E8EB; position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: var(--ink-2); }
.map-consent p { font-size: 15px; max-width: 300px; margin: 0; }
.map-foot { padding: 16px 22px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.map-foot a { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }

/* Footer */
.site-footer { background: var(--darker); color: var(--on-dark-2); font-size: 15px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); padding-top: 56px; padding-bottom: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-col a, .footer-col .linkbtn { color: var(--on-dark-2); text-decoration: none; }
.footer-col a:hover, .footer-col .linkbtn:hover { color: #fff; text-decoration: underline; }
.footer-name { font-family: var(--head); font-weight: 700; font-size: 24px; color: #fff; line-height: 1.1; }
.footer-h { color: #fff; font-weight: 700; }
.footer-bottom { border-top: 1px solid #2C3137; padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; }
.footer-bottom a { color: var(--on-dark-2); }

/* Cookie-Hinweis */
.cookie { position: fixed; z-index: 150; left: 12px; right: 12px; bottom: 12px; background: #fff; color: var(--ink); border-radius: 8px; box-shadow: 0 -4px 36px rgba(20, 25, 30, .3); padding: 20px; display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.cookie[hidden] { display: none; }
@media (min-width: 700px) { .cookie { left: 24px; bottom: 24px; } }
.cookie p { margin: 0; font-size: 15px; color: var(--ink-2); }
.cookie-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-btns .btn { padding: 10px 8px; font-size: 15px; }

@media print {
  .topbar, .site-header, .cta-band, .cookie, .site-footer .footer-grid, .lightbox { display: none !important; }
  .page-hero, .hero, .band-dark { background: none; color: #000; }
  body { background: #fff; }
}
.field > .btn { align-self: flex-start; }

/* Baujahr-Check (Startseite): Zeitskala 1950–2025 */
.bcheck { --thumb: 22px; background: #fff; color: var(--ink); border-radius: 4px; padding: 24px 22px; }
@media (min-width: 600px) { .bcheck { padding: 32px; } }
.bcheck h2 { font-size: 32px; margin: 0 0 4px; }
.bc-sub { color: var(--muted); font-size: 16px; margin: 0 0 22px; }
.bc-lbl { display: block; font-size: 15px; font-weight: 600; color: var(--ink-2); margin: 0 0 8px; padding: 0; }

/* Kopf (Baujahr groß), Maßstab, Zeilen – alle Skalen gleich breit */
.bc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.bc-yearlbl { padding-bottom: 6px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.bc-out { font-family: var(--head); font-weight: 700; font-size: 48px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.bc-ruler { position: relative; padding-bottom: 20px; margin-top: 4px; }
.bc-legend { margin: 4px 0 2px; font-size: 13px; color: var(--muted); }
.bc-list { list-style: none; margin: 0; padding: 0; }
.bc-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name tag" "track track"; align-items: center; column-gap: 12px; row-gap: 7px; padding: 9px 0 11px; border-bottom: 1px solid #E6E9EC; font-size: 15px; }
.bc-name { grid-area: name; min-width: 0; }
.bc-name small { color: var(--muted); font-size: 13px; white-space: nowrap; margin-left: 4px; }
.bc-tag { grid-area: tag; justify-self: end; }
.bc-track { grid-area: track; }

/* Schieberegler als Maßstab */
.bcheck input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 34px; margin: 0; background: transparent; cursor: pointer; }
.bcheck input[type="range"]::-webkit-slider-runnable-track { height: 34px; background:
  linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 2px no-repeat,
  repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px calc((100% - var(--thumb)) / 7.5)) calc(var(--thumb) / 2) 50% / calc(100% - var(--thumb)) 12px no-repeat; }
.bcheck input[type="range"]::-moz-range-track { height: 34px; background:
  linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 2px no-repeat,
  repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px calc((100% - var(--thumb)) / 7.5)) calc(var(--thumb) / 2) 50% / calc(100% - var(--thumb)) 12px no-repeat; }
.bcheck input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: var(--thumb); height: 34px; border-radius: 3px; background: var(--accent-ink); border: 0; box-shadow: inset 0 0 0 2px var(--accent-ink), inset 0 0 0 4px #fff; transition: transform .12s var(--ease-press); }
.bcheck input[type="range"]::-moz-range-thumb { width: var(--thumb); height: 34px; border-radius: 3px; background: var(--accent-ink); border: 0; box-shadow: inset 0 0 0 2px var(--accent-ink), inset 0 0 0 4px #fff; }
.bcheck input[type="range"]:active::-webkit-slider-thumb { transform: scaleX(1.12); }
.bcheck input[type="range"]:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 4px; }
.bc-ticks { position: absolute; left: calc(var(--thumb) / 2); right: calc(var(--thumb) / 2); bottom: 0; height: 18px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bc-ticks span { position: absolute; top: 0; transform: translateX(-50%); }
.bc-ticks span:nth-child(1) { left: 0; transform: none; }
.bc-ticks span:nth-child(2) { left: 33.333%; }
.bc-ticks span:nth-child(3) { left: 66.667%; }
.bc-ticks span:nth-child(4) { left: auto; right: 0; transform: none; }

/* Balken: verbaut von 1950 bis zum Verbot; Linie = gewähltes Baujahr */
.bc-track { position: relative; height: 12px; margin: 0 calc(var(--thumb) / 2); background: #EEF0F2; border-radius: 2px; }
.bc-bar { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--end) * 100%); background: var(--accent-ink); border-radius: 2px; transform-origin: left center; transition: background-color .25s; }
.is-mid .bc-bar { background: #C9A227; }
.is-lo .bc-bar { background: #C3C9CF; }
.bc-track::after { content: ""; position: absolute; top: -5px; bottom: -5px; left: calc(var(--y) * 100%); width: 2px; margin-left: -1px; background: var(--ink); }
.bc-track-any { background: repeating-linear-gradient(90deg, #E2CF8E 0 6px, transparent 6px 10px); }

/* Einmaliger Auftritt beim Laden: die Balken werden gezogen */
@media (prefers-reduced-motion: no-preference) {
  .bc-bar { animation: bc-draw .9s var(--ease-out) both; animation-delay: calc(.25s + var(--i, 0) * 80ms); }
  .bc-track::after { animation: bc-mark .5s var(--ease-out) both .75s; }
}
@keyframes bc-draw { from { transform: scaleX(0); } }
@keyframes bc-mark { from { opacity: 0; transform: scaleY(.2); } }

.bc-tag { font-size: 13px; font-weight: 700; border-radius: 3px; padding: 3px 9px; white-space: nowrap; }
.bc-hi { background: #FCE3DD; color: #6E1F10; }
.bc-mid { background: #FFF0C7; color: #5E3D00; }
.bc-lo { background: #E9ECEF; color: #3A424B; }
.bc-plans { border: 0; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bc-plans legend { width: 100%; }
.bc-pill { position: relative; cursor: pointer; }
.bc-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.bc-pill span { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 3px; padding: 8px 15px; font-size: 15px; font-weight: 600; min-height: 44px; transition: background .16s, border-color .16s, color .16s; }
.bc-pill:hover span { border-color: var(--ink); }
.bc-pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.bc-pill input:focus-visible + span { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.bc-tip { background: var(--ground); border-radius: 3px; padding: 12px 14px; margin: 16px 0; font-size: 15px; color: var(--ink-2); min-height: 4.6em; }
.bc-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; text-align: center; }
