/* ==========================================================================
   CoGewinn – Design System
   Autor: FSG Management GmbH
   Struktur: 01 Fonts · 02 Tokens · 03 Reset · 04 Typografie · 05 Layout
             06 Header · 07 Buttons · 08 Hero · 09 Sektionen · 10 Karten
             11 Rechner (Signature) · 12 Akkordeon · 13 Slider · 14 Formulare
             15 Footer · 16 Cookie · 17 Utilities · 18 Motion
   ========================================================================== */

/* 01 · FONTS – self-hosted, keine externen Requests (DSGVO)
   ========================================================================== */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var-latin.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* 02 · TOKENS
   ========================================================================== */
:root {
  /* Farben */
  --c-navy-900: #06182c;
  --c-navy-800: #0c2542;
  --c-navy-700: #0d3a70;   /* auf die Markenfarbe abgestimmt */
  --c-blue-600: #004aad;   /* Markenfarbe aus dem Logo */
  --c-blue-500: #1a68d4;   /* Aufhellung für Hover und Verläufe */
  --c-blue-100: #cfe0f7;
  --c-mist: #eef3fa;
  --c-paper: #f7f9fc;
  --c-white: #ffffff;
  --c-ink: #1b2229;
  --c-ink-soft: #4a5560;
  --c-line: #dfe6ef;
  --c-gold: #c9a227;
  --c-gold-soft: #f0e3b6;
  --c-positive: #1c7a5a;

  /* Typografie */
  --f-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --f-data: 'Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --t-xs: 0.78rem;
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-lg: clamp(1.125rem, 0.4vw + 1.05rem, 1.3rem);
  --t-h4: clamp(1.15rem, 0.5vw + 1.05rem, 1.4rem);
  --t-h3: clamp(1.4rem, 1vw + 1.15rem, 1.9rem);
  --t-h2: clamp(1.9rem, 2.2vw + 1.3rem, 3rem);
  --t-h1: clamp(2.35rem, 4.2vw + 1.2rem, 4.4rem);

  /* Raster & Abstände */
  --wrap: 1200px;
  --wrap-narrow: 760px;
  --gap: clamp(1.25rem, 2.5vw, 2.25rem);
  --sect-y: clamp(4.5rem, 8vw, 8rem);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;

  /* Schatten – weich, mehrstufig */
  --sh-sm: 0 1px 2px rgba(6, 24, 44, 0.06), 0 2px 8px rgba(6, 24, 44, 0.05);
  --sh-md: 0 2px 6px rgba(6, 24, 44, 0.06), 0 12px 32px rgba(6, 24, 44, 0.08);
  --sh-lg: 0 4px 12px rgba(6, 24, 44, 0.07), 0 28px 64px rgba(6, 24, 44, 0.12);
  --sh-blue: 0 10px 30px rgba(26, 86, 165, 0.28);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.45s;
  --header-h: 76px;
}

/* 03 · RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--c-blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-blue-500); }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 2.5rem 0; }

:focus-visible {
  outline: 3px solid var(--c-blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--c-navy-800); color: #fff; }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 999;
  background: var(--c-navy-900); color: #fff; padding: 0.75rem 1.25rem;
  border-radius: var(--r-sm); text-decoration: none; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* 04 · TYPOGRAFIE
   ========================================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  color: var(--c-navy-900);
  margin: 0 0 0.6em;
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 600;
  font-stretch: 108%;           /* leicht gestreckt = technische Präzision */
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); font-weight: 700; letter-spacing: -0.032em; }
h2 { font-size: var(--t-h2); font-weight: 650; letter-spacing: -0.028em; }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); line-height: 1.25; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 600; color: var(--c-navy-800); }
small { font-size: var(--t-sm); }

/* Eyebrow: Kapitälchen im Datensatz-Stil – trägt die Sektionslogik */
.eyebrow {
  font-family: var(--f-data);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-blue-600);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--c-gold);
  flex: none;
}
.eyebrow--light { color: var(--c-blue-100); }

.lead {
  font-size: var(--t-lg);
  line-height: 1.6;
  color: var(--c-ink-soft);
  max-width: 62ch;
}
.lead--light { color: rgba(255, 255, 255, 0.8); }

.text-block > * + h3 { margin-top: 2.2rem; }
.text-block > * + h2 { margin-top: 2.8rem; }
.text-block ul, .text-block ol { margin: 0 0 1.3em; padding-left: 1.3rem; }
.text-block li { margin-bottom: 0.55rem; }
.text-block ul { list-style: none; padding-left: 0; }
.text-block ul li {
  position: relative; padding-left: 1.75rem;
}
.text-block ul li::before {
  content: ''; position: absolute; left: 0; top: 0.72em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-blue-500);
}

/* 05 · LAYOUT
   ========================================================================== */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); }
.section { padding-block: var(--sect-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--mist { background: var(--c-mist); }
.section--paper { background: var(--c-paper); }
.section--dark {
  background: var(--c-navy-900);
  color: rgba(255, 255, 255, 0.78);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark a { color: var(--c-blue-100); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 4vw, 3.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse .split__media { order: -1; }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* 06 · HEADER & NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--c-line);
  box-shadow: 0 1px 24px rgba(6, 24, 44, 0.06);
}
.header__inner {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
  border-radius: var(--r-sm);
}
/* Kopfbereich: Marke mit Wortmarke, ohne Namenszeile – bleibt bis 46 px lesbar */
.logo__img {
  display: block;
  height: 46px;
  width: auto;
  transition: opacity var(--t-fast);
}
.logo:hover .logo__img { opacity: 0.78; }
.logo:focus-visible { outline: 2px solid var(--c-blue-600); outline-offset: 4px; }
/* Fußbereich: vollständiges Logo inklusive Namenszeile, invertiert */
.logo__img--footer { height: 78px; }
@media (max-width: 700px) {
  .logo__img { height: 38px; }
  .logo__img--footer { height: 66px; }
}

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 0.15rem; list-style: none; }
.nav__link {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.nav__link:hover, .nav__link:focus-visible { background: var(--c-mist); color: var(--c-navy-900); }
.nav__link[aria-current="page"] { color: var(--c-blue-600); font-weight: 600; }

/* Dropdown */
.nav__item { position: relative; }
.nav__toggle {
  background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.nav__toggle svg { transition: transform 0.25s var(--ease); }
.nav__item.is-open .nav__toggle svg { transform: rotate(180deg); }
.nav__panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 8px);
  width: min(620px, 78vw);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 1.1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 0.6rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.nav__item.is-open .nav__panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav__panel a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: 0.93rem;
  color: var(--c-ink);
  text-decoration: none;
  transition: background 0.18s var(--ease);
}
.nav__panel a:hover { background: var(--c-mist); color: var(--c-navy-900); }
.nav__panel a span {
  display: block;
  font-size: 0.78rem;
  color: var(--c-ink-soft);
  line-height: 1.4;
}

.header__cta { flex: none; margin-left: 0.5rem; }

.burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block; width: 17px; height: 1.5px; background: var(--c-navy-900);
  position: relative; transition: background 0.2s var(--ease);
}
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 17px; height: 1.5px;
  background: var(--c-navy-900); transition: transform 0.28s var(--ease);
}
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: inline-flex; }
  .header__cta { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #fff;
    padding: 1.5rem 1.25rem 4rem;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0.1rem; }
  .nav__link { padding: 0.9rem 0.5rem; font-size: 1.05rem; border-radius: var(--r-sm); }
  .nav__item { position: static; }
  .nav__panel {
    position: static; transform: none; width: auto; box-shadow: none;
    border: 0; border-left: 2px solid var(--c-line); border-radius: 0;
    padding: 0 0 0.5rem 0.75rem; margin: 0 0 0.5rem 0.5rem;
    grid-template-columns: 1fr;
    display: none; opacity: 1; visibility: visible; pointer-events: auto;
  }
  .nav__item.is-open .nav__panel { display: grid; transform: none; }
  .nav__mobile-cta { margin-top: 1.25rem; display: block; }
}
@media (min-width: 1081px) { .nav__mobile-cta { display: none; } }

/* 07 · BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.92rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--f-body);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
              background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
  will-change: transform;
}
.btn svg { flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--c-blue-600);
  color: #fff;
  box-shadow: var(--sh-blue);
}
.btn--primary:hover {
  background: var(--c-blue-500);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(26, 86, 165, 0.34);
}
.btn--dark { background: var(--c-navy-900); color: #fff; }
.btn--dark:hover { background: var(--c-navy-800); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-md); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--c-line);
  color: var(--c-navy-900);
}
.btn--ghost:hover { background: #fff; border-color: var(--c-blue-500); color: var(--c-blue-600); transform: translateY(-2px); }

.btn--light { background: #fff; color: var(--c-navy-900); }
.btn--light:hover { background: var(--c-blue-100); color: var(--c-navy-900); transform: translateY(-2px); }

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255,255,255,0.6); }

.btn--sm { padding: 0.62rem 1.15rem; font-size: 0.9rem; }
.btn--wide { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600; text-decoration: none; font-size: 0.97rem;
}
.link-arrow svg { transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* 08 · HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 7vw, 6.5rem));
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  background: linear-gradient(168deg, #f2f6fc 0%, #ffffff 46%, #f6f9fd 100%);
  overflow: hidden;
}
.hero::before {
  /* Diffuser Blauschimmer – ersetzt harte Farbverläufe */
  content: '';
  position: absolute;
  top: -32%; right: -14%;
  width: 780px; height: 780px;
  background: radial-gradient(circle, rgba(44, 116, 214, 0.16) 0%, rgba(44, 116, 214, 0) 68%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -18%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.09) 0%, rgba(201, 162, 39, 0) 70%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: 0.5em; }
.hero__claim {
  display: block;
  font-size: 0.5em;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: -0.01em;
  color: var(--c-blue-600);
  margin-top: 0.55em;
}
.hero__usp {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 1.75rem 0 2.25rem;
  font-size: 0.95rem;
  color: var(--c-ink-soft);
}
.hero__usp li { display: flex; align-items: center; gap: 0.5rem; }
.hero__usp svg { color: var(--c-positive); flex: none; }

.hero--sub {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.hero--sub .hero__grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
.hero--dark {
  background: var(--c-navy-900);
  color: rgba(255, 255, 255, 0.8);
}
.hero--dark h1 { color: #fff; }
.hero--dark::before { background: radial-gradient(circle, rgba(44, 116, 214, 0.34) 0%, rgba(44,116,214,0) 68%); }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero--sub .hero__grid { grid-template-columns: 1fr; }
}

/* Breadcrumb */
.crumbs {
  font-size: var(--t-sm);
  color: var(--c-ink-soft);
  margin-bottom: 1.5rem;
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.crumbs li::after { content: '/'; margin-left: 0.4rem; color: var(--c-line); }
.crumbs li:last-child::after { display: none; }
.crumbs a { color: var(--c-ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--c-blue-600); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--c-navy-800); }


/* 08b · HERO MIT HINTERGRUNDBILD
   ========================================================================== */
.hero--photo {
  background:
    linear-gradient(104deg, rgba(6, 24, 44, 0.94) 0%, rgba(6, 24, 44, 0.86) 38%,
                            rgba(9, 38, 74, 0.62) 66%, rgba(9, 38, 74, 0.44) 100%),
    image-set(url('../img/fotos/beratung-hamburg-1600.avif') type('image/avif'),
              url('../img/fotos/beratung-hamburg-1600.webp') type('image/webp'),
              url('../img/fotos/beratung-hamburg-1600.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: 68% center;
  color: #fff;
}
.hero--photo::before,
.hero--photo::after { display: none; }
.hero--photo h1 { color: #fff; }
.hero--photo .lead { color: rgba(255, 255, 255, 0.86); }
.hero--photo .eyebrow { color: rgba(255, 255, 255, 0.72); }
.hero--photo .eyebrow::before { background: var(--c-gold); }
.hero--photo .hero__claim { color: #8fc0ff; }
.hero--photo .hero__usp { color: rgba(255, 255, 255, 0.84); }
.hero--photo .hero__usp svg { color: #6ee7a8; }
.hero--photo .btn--ghost {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.hero--photo .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.hero--photo .breadcrumbs,
.hero--photo .breadcrumbs a { color: rgba(255, 255, 255, 0.72); }
.hero--photo .breadcrumbs a:hover { color: #fff; }

/* Unterseiten: Foto als ruhige Textur hinter hellem Verlauf */
.hero--sub {
  background:
    linear-gradient(100deg, #ffffff 0%, rgba(255, 255, 255, 0.97) 44%,
                            rgba(244, 248, 253, 0.86) 70%, rgba(232, 240, 250, 0.78) 100%),
    image-set(url('../img/fotos/wohnung-saniert-1600.avif') type('image/avif'),
              url('../img/fotos/wohnung-saniert-1600.webp') type('image/webp'),
              url('../img/fotos/wohnung-saniert-1600.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: right center;
}

@media (max-width: 860px) {
  .hero--photo { background-position: 72% center; }
  .hero--sub {
    background:
      linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.94) 62%, rgba(238, 243, 250, 0.9) 100%),
      image-set(url('../img/fotos/wohnung-saniert-1024.webp') type('image/webp'),
                url('../img/fotos/wohnung-saniert-1024.jpg') type('image/jpeg'));
    background-size: cover;
    background-position: center;
  }
}

/* Responsive Fotos */
.foto { display: block; }
.foto img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit;
}
.media .foto, .media .foto img { border-radius: inherit; }
.ph[role="presentation"] { min-height: 220px; }

/* 09 · BILDER & MEDIEN
   ========================================================================== */
.media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  background: var(--c-mist);
}
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media--tall img { aspect-ratio: 3 / 4; }
.media--wide img { aspect-ratio: 16 / 9; }

/* Platzhalter-Bild: zeigt die Bildbeschreibung, bis echte Assets vorliegen */
.ph {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1.5rem;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(12, 37, 66, 0.9), rgba(26, 86, 165, 0.75)),
    repeating-linear-gradient(45deg, #0c2542 0 12px, #143459 12px 24px);
  color: rgba(255, 255, 255, 0.92);
}
.ph--wide { aspect-ratio: 16 / 9; }
.ph--tall { aspect-ratio: 3 / 4; }
.ph--square { aspect-ratio: 1 / 1; }
.ph__tag {
  font-family: var(--f-data);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold-soft);
}
.ph__desc { font-size: 0.9rem; line-height: 1.45; margin: 0; }

.badge-float {
  position: absolute;
  left: 1.25rem; bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: var(--r-md);
  padding: 0.85rem 1.15rem;
  box-shadow: var(--sh-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.badge-float__num {
  font-family: var(--f-data);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--c-navy-900);
  line-height: 1;
}
.badge-float__lbl { font-size: 0.75rem; color: var(--c-ink-soft); line-height: 1.3; }

/* 10 · KARTEN
   ========================================================================== */
.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.2vw, 2rem);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}
a.card { text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--c-blue-100); }
.card h3 { font-size: 1.22rem; margin-bottom: 0.5rem; }
.card p { color: var(--c-ink-soft); font-size: 0.98rem; }
.card .link-arrow { margin-top: auto; padding-top: 1.1rem; }

.card__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--c-mist);
  color: var(--c-blue-600);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.card:hover .card__icon { background: var(--c-blue-600); color: #fff; }

.card--flat { border: 0; background: var(--c-mist); }
.card--flat:hover { transform: none; box-shadow: none; }
.card--dark {
  background: var(--c-navy-800);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
}
.card--dark h3 { color: #fff; }
.card--dark p { color: rgba(255, 255, 255, 0.72); }
.card--dark .card__icon { background: rgba(255, 255, 255, 0.09); color: var(--c-blue-100); }

/* Problem-/Konsequenz-Karten */
.card--warn { border-left: 3px solid var(--c-gold); }
.card--warn h3 { font-size: 1.1rem; }

/* Zahlenband */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stats--dark { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.12); }
.stat { background: #fff; padding: clamp(1.4rem, 2.4vw, 2rem); }
.stats--dark .stat { background: var(--c-navy-800); }
.stat__num {
  font-family: var(--f-data);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--c-navy-900);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stats--dark .stat__num { color: #fff; }
.stat__lbl { font-size: 0.88rem; color: var(--c-ink-soft); line-height: 1.45; }
.stats--dark .stat__lbl { color: rgba(255, 255, 255, 0.66); }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Prozess – nummeriert, weil die Reihenfolge inhaltlich trägt */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--c-line); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-line); }
.step {
  counter-increment: step;
  background: #fff;
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--f-data);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--c-blue-600);
  border: 1px solid var(--c-blue-100);
  border-radius: 50%;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--c-mist);
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.step p { color: var(--c-ink-soft); font-size: 0.97rem; margin: 0; }
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: 0.9rem; }
}

/* Vergleichstabelle (GEO: maschinenlesbare Struktur) */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: #fff; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 560px;
}
table.data caption {
  text-align: left;
  padding: 1.1rem 1.25rem;
  font-family: var(--f-data);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  border-bottom: 1px solid var(--c-line);
}
table.data th, table.data td { padding: 0.95rem 1.25rem; text-align: left; vertical-align: top; }
table.data thead th {
  font-family: var(--f-body);
  font-weight: 600;
  color: var(--c-navy-900);
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
  font-size: 0.9rem;
}
table.data tbody tr + tr { border-top: 1px solid var(--c-line); }
table.data td:first-child { font-weight: 600; color: var(--c-navy-800); }
table.data .num { font-family: var(--f-data); }

/* Definition (GEO: klar extrahierbare Antwort) */
.definition {
  background: var(--c-mist);
  border-left: 3px solid var(--c-blue-600);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.definition dt {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--c-navy-900);
  margin-bottom: 0.4rem;
}
.definition dd { margin: 0; color: var(--c-ink-soft); }

/* Hinweis-/Rechtsbox */
.note {
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-paper);
  padding: 1.15rem 1.35rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--c-ink-soft);
}
.note strong { color: var(--c-navy-800); }
.note--inline { margin-top: 1.5rem; }

/* 10b · UNTERNEHMENSVERBUND – kontextuelle Verweise auf Schwesterfirmen
   ========================================================================== */
.verbund {
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-gold);
  border-radius: var(--r-md);
  background: var(--c-paper);
  padding: 1.5rem 1.6rem 1.3rem;
}
.verbund__title {
  font-family: var(--f-data); font-size: 0.73rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-ink-mute); margin: 0 0 1.1rem;
}
.verbund__list { display: grid; gap: 0.55rem; }
.verbund__item {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: start; gap: 0.9rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  text-decoration: none; color: inherit;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.verbund__item:hover {
  border-color: var(--c-blue-600);
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
}
.verbund__icon {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--c-mist);
  color: var(--c-blue-600);
}
.verbund__icon svg { width: 17px; height: 17px; }
.verbund__body { display: block; min-width: 0; }
.verbund__body strong {
  display: block; font-family: var(--f-display); font-weight: 600;
  font-size: 1rem; color: var(--c-navy-900); letter-spacing: -0.01em;
}
.verbund__kurz {
  display: block; font-family: var(--f-data); font-size: 0.7rem;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: #96781d; margin: 0.15rem 0 0.35rem;
}
.verbund__text {
  display: block; font-size: 0.88rem; line-height: 1.6; color: var(--c-ink-soft);
}
.verbund__ext {
  color: var(--c-ink-mute); font-size: 0.95rem; line-height: 1; padding-top: 0.35rem;
}
.verbund__item:hover .verbund__ext { color: var(--c-blue-600); }
.verbund__note {
  font-size: 0.79rem; line-height: 1.6; color: var(--c-ink-mute);
  margin: 1rem 0 0; padding-top: 0.85rem; border-top: 1px dashed var(--c-line);
}
@media (max-width: 560px) {
  .verbund__item { grid-template-columns: auto 1fr; }
  .verbund__ext { display: none; }
}

/* 10c · OBJEKT-DETAILSEITE
   ========================================================================== */
.objekt__kopf {
  display: grid; grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; margin-top: 1.2rem;
}
@media (max-width: 900px) { .objekt__kopf { grid-template-columns: 1fr; } }
.objekt__preis {
  background: var(--c-navy-900); color: #fff;
  border-radius: var(--r-md); padding: 1.6rem;
  box-shadow: var(--sh-md);
}
.objekt__preis-lbl {
  font-family: var(--f-data); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; opacity: 0.66; display: block;
}
.objekt__preis-zahl {
  display: block; font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.4rem); letter-spacing: -0.03em;
  color: #8fc0ff; margin: 0.35rem 0 0.15rem; line-height: 1.05;
}
.objekt__preis-sub { font-size: 0.86rem; opacity: 0.7; }
.objekt__preis .link-arrow { color: rgba(255, 255, 255, 0.82); }
.objekt__preis .link-arrow:hover { color: #fff; }

.objekt__galerie {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem; border-radius: var(--r-lg); overflow: hidden;
}
.objekt__bild { margin: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; }
.objekt__bild--gross { grid-column: span 4; aspect-ratio: 16 / 9; }
.objekt__bild .foto, .objekt__bild img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .objekt__galerie { grid-template-columns: repeat(2, 1fr); }
  .objekt__bild--gross { grid-column: span 2; }
}

.objekt__daten { display: grid; gap: 0; margin-top: 0.9rem; }
.objekt__daten > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.62rem 0; border-top: 1px solid var(--c-line); font-size: 0.9rem;
}
.objekt__daten dt { color: var(--c-ink-soft); }
.objekt__daten dd { font-family: var(--f-data); font-weight: 500; text-align: right; color: var(--c-navy-900); }

.objekt__risiko {
  margin-top: 2rem; padding: 1.3rem 1.5rem;
  background: #fdf6ec; border-left: 3px solid var(--c-gold); border-radius: var(--r-sm);
}
.objekt__risiko h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.objekt__risiko p { margin: 0; color: var(--c-ink); }

.project__bild { display: block; overflow: hidden; aspect-ratio: 16 / 9; }
.project__bild .foto, .project__bild img { width: 100%; height: 100%; object-fit: cover; }
.project h3 a { color: inherit; text-decoration: none; }
.project h3 a:hover { color: var(--c-blue-600); }

/* 11 · SIGNATURE: EIGENBELASTUNGS-RECHNER
   ========================================================================== */
.calc {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.calc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.calc__title { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; color: var(--c-navy-900); }
.calc__hint { font-family: var(--f-data); font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-ink-soft); }

.calc__field { margin-bottom: 1.35rem; }
.calc__label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.92rem; font-weight: 600; color: var(--c-navy-800); margin-bottom: 0.55rem;
}
.calc__value { font-family: var(--f-data); font-weight: 500; color: var(--c-blue-600); }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 999px;
  background: var(--c-line);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--c-blue-600);
  box-shadow: 0 2px 8px rgba(6, 24, 44, 0.18);
  transition: transform 0.18s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--c-blue-600);
  box-shadow: 0 2px 8px rgba(6, 24, 44, 0.18);
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 999px; background: var(--c-line); }

/* Gestapelter Balken: zeigt, woraus sich die Rate zusammensetzt */
.calc__bar {
  display: flex;
  height: 46px;
  border-radius: var(--r-sm);
  overflow: hidden;
  margin: 0.5rem 0 1rem;
  background: var(--c-mist);
}
.calc__seg {
  display: grid;
  place-items: center;
  font-family: var(--f-data);
  font-size: 0.72rem;
  color: #fff;
  transition: flex-basis 0.5s var(--ease);
  overflow: hidden;
  white-space: nowrap;
  flex-grow: 0; flex-shrink: 1;
}
.calc__seg--rent { background: var(--c-blue-600); }
.calc__seg--tax { background: var(--c-navy-700); }
.calc__seg--employer { background: var(--c-gold); color: var(--c-navy-900); }
.calc__seg--own { background: var(--c-navy-900); }

.calc__legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; font-size: 0.82rem; color: var(--c-ink-soft); }
.calc__legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.calc__dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }

.calc__result {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}
.calc__result-lbl { font-size: 0.92rem; color: var(--c-ink-soft); max-width: 30ch; }
.calc__result-num {
  font-family: var(--f-data);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--c-navy-900);
  line-height: 1;
}
.calc__disclaimer { margin-top: 1.25rem; font-size: 0.76rem; line-height: 1.55; color: var(--c-ink-soft); }



/* 11a · RECHNER: Regler in zwei Spalten, Ergebniskarten, Rechenweg
   ========================================================================== */
.calc__grid2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.1rem 1.4rem; margin-bottom: 1.2rem;
}
@media (max-width: 560px) { .calc__grid2 { grid-template-columns: 1fr; } }

.calc__ergebnis {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 1.3rem;
}
@media (max-width: 520px) { .calc__ergebnis { grid-template-columns: 1fr; } }
.calc__karte {
  background: var(--c-navy-900); color: #fff;
  border-radius: var(--r-md); padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.calc__karte--gold { background: linear-gradient(160deg, #16304f 0%, #0c2542 100%); }
.calc__karte-lbl {
  font-family: var(--f-data); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase; opacity: 0.68;
}
.calc__karte-zahl {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2rem); line-height: 1.1;
  letter-spacing: -0.03em; color: #ffb4a8;
}
.calc__karte--plus .calc__karte-zahl { color: #6ee7a8; }
.calc__karte--gold .calc__karte-zahl { color: var(--c-gold); }
.calc__karte-sub { font-size: 0.78rem; opacity: 0.72; margin-top: 0.15rem; }
.calc__karte-sub b { font-weight: 600; opacity: 1; }

.calc__details { margin-top: 1rem; }
.calc__details summary {
  cursor: pointer; font-size: 0.84rem; color: var(--c-blue-600);
  padding: 0.5rem 0; list-style: none; display: flex; align-items: center; gap: 0.4rem;
}
.calc__details summary::-webkit-details-marker { display: none; }
.calc__details summary::before {
  content: '+'; font-family: var(--f-data); font-size: 1rem; line-height: 1;
  width: 18px; height: 18px; display: grid; place-items: center;
  border: 1px solid currentColor; border-radius: 50%; flex: none;
}
.calc__details[open] summary::before { content: '−'; }
.calc__rechnung { display: grid; gap: 0; margin: 0.5rem 0 0; }
.calc__rechnung > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0; font-size: 0.86rem; border-top: 1px solid var(--c-line);
}
.calc__rechnung dt { color: var(--c-ink-soft); }
.calc__rechnung dd { font-family: var(--f-data); font-weight: 500; text-align: right; white-space: nowrap; }
.calc__rechnung--summe { border-top: 1px solid var(--c-navy-700) !important; font-weight: 600; }
.calc__rechnung--summe dt { color: var(--c-navy-900); }
.calc__rechnung--ergebnis {
  border-top: 2px solid var(--c-navy-900) !important;
  margin-top: 0.2rem; padding-top: 0.7rem !important;
}
.calc__rechnung--ergebnis dt { color: var(--c-navy-900); font-weight: 600; }
.calc__rechnung--ergebnis dd { color: var(--c-blue-600); font-size: 1rem; font-weight: 600; }
.calc__rechnung-note {
  font-size: 0.76rem; line-height: 1.6; color: var(--c-ink-mute);
  margin: 0.9rem 0 0; padding-top: 0.7rem; border-top: 1px dashed var(--c-line);
}

/* 11b · VERGLEICHSRECHNER Bestand / Fix und Flip
   ========================================================================== */
.cmp {
  --c-hold: var(--c-blue-600);
  --c-flip: #c9761f;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: clamp(1.4rem, 3vw, 2.6rem);
}
.cmp__intro { max-width: 62ch; margin-bottom: 2rem; }
.cmp__intro h2 { margin-bottom: 0.7rem; }
.cmp__intro p { color: var(--c-ink-soft); }

.cmp__panel {
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 1.3rem 1.3rem 1.1rem;
  margin: 0 0 1.1rem;
  min-width: 0;
}
.cmp__panel legend {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-data); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--c-ink-soft); padding: 0 0.55rem;
}
.cmp__panel--base { background: var(--c-paper); }
.cmp__panel--hold { border-top: 3px solid var(--c-hold); }
.cmp__panel--flip { border-top: 3px solid var(--c-flip); }
.cmp__panel--risk { background: var(--c-mist); border-color: transparent; }

.cmp__panels { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.cmp__grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem 1.6rem; }
@media (max-width: 860px) {
  .cmp__panels, .cmp__grid3 { grid-template-columns: 1fr; }
}

.cmp__field { padding: 0.5rem 0; }
.cmp__label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-size: 0.87rem; color: var(--c-ink-soft); margin-bottom: 0.45rem;
}
.cmp__val {
  font-family: var(--f-data); font-weight: 500; font-size: 0.92rem;
  color: var(--c-navy-900); white-space: nowrap;
}
.cmp__field input[type="range"] { width: 100%; }
.cmp__note {
  font-size: 0.78rem; line-height: 1.6; color: var(--c-ink-mute);
  margin: 0.9rem 0 0; padding-top: 0.8rem; border-top: 1px dashed var(--c-line);
}

.cmp__dot {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none;
}
.cmp__dot--hold { background: var(--c-hold); }
.cmp__dot--flip { background: var(--c-flip); }

/* Voreinstellungen */
.cmp__presets { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }
.cmp__preset {
  font: 500 0.83rem/1 var(--f-body);
  padding: 0.6rem 1rem; border-radius: 100px; cursor: pointer;
  background: #fff; color: var(--c-ink-soft);
  border: 1px solid var(--c-line);
  transition: all var(--t-fast);
}
.cmp__preset:hover { border-color: var(--c-blue-600); color: var(--c-blue-600); }
.cmp__preset.is-active {
  background: var(--c-navy-900); color: #fff; border-color: var(--c-navy-900);
}
.cmp__switch {
  display: flex; gap: 0.7rem; align-items: flex-start;
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--c-line);
  font-size: 0.83rem; line-height: 1.6; color: var(--c-ink-soft);
}
.cmp__switch input { margin-top: 0.2rem; flex: none; }

/* Ergebnisse */
.cmp__results {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 1.8rem;
}
@media (max-width: 700px) { .cmp__results { grid-template-columns: 1fr; } }
.cmp__result {
  border-radius: var(--r-md); padding: 1.5rem;
  background: var(--c-navy-900); color: #fff;
  display: flex; flex-direction: column;
}
.cmp__result--flip { background: #2a1a08; }
.cmp__result-tag {
  font-family: var(--f-data); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7;
}
.cmp__result-num {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 2.7rem); line-height: 1.05;
  letter-spacing: -0.03em; margin: 0.6rem 0 0.2rem;
}
.cmp__result--hold .cmp__result-num { color: #8fc0ff; }
.cmp__result--flip .cmp__result-num { color: #f0a95a; }
.cmp__result-lbl { font-size: 0.87rem; opacity: 0.72; margin: 0 0 1.2rem; }
.cmp__facts { margin: auto 0 0; display: grid; gap: 0.05rem; }
.cmp__facts > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0; border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.85rem;
}
.cmp__facts dt { opacity: 0.7; }
.cmp__facts dd { font-family: var(--f-data); font-weight: 500; text-align: right; }

.cmp__verdict {
  margin: 1.1rem 0 0; padding: 1.1rem 1.3rem;
  border-radius: var(--r-md); font-size: 0.95rem; line-height: 1.7;
  border-left: 3px solid var(--c-flip); background: #fdf6ec; color: var(--c-ink);
}
.cmp__verdict--hold { border-left-color: var(--c-hold); background: var(--c-mist); }

/* Diagramm */
.cmp__chart { margin: 1.8rem 0 0; }
.cmp__chart figcaption {
  font-family: var(--f-data); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--c-ink-mute); margin-bottom: 0.8rem;
}
.cmp__chart svg { width: 100%; height: auto; display: block; }
.cmp__grid { stroke: var(--c-line); stroke-width: 1; }
.cmp__axis { font-family: var(--f-data); font-size: 11px; fill: var(--c-ink-mute); }
.cmp__line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.cmp__line--hold { stroke: var(--c-hold); }
.cmp__line--flip { stroke: var(--c-flip); }
.cmp__legend {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; align-items: center;
  font-size: 0.83rem; color: var(--c-ink-soft); margin: 0.7rem 0 0;
}
.cmp__legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.cmp__legend-note { color: var(--c-ink-mute); font-size: 0.78rem; }

.cmp__disclaimer {
  margin: 1.8rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--c-line);
  font-size: 0.78rem; line-height: 1.65; color: var(--c-ink-mute);
}

.cmp__conclusion {
  margin-top: 2rem; padding: 1.6rem 1.8rem;
  background: var(--c-navy-900); color: #fff; border-radius: var(--r-md);
  border-left: 4px solid var(--c-gold);
}
.cmp__conclusion h3 { color: #fff; margin-bottom: 0.6rem; }
.cmp__conclusion p { color: rgba(255, 255, 255, 0.8); margin: 0; }

/* 12 · AKKORDEON / FAQ
   ========================================================================== */
.faq { border-top: 1px solid var(--c-line); }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__q {
  width: 100%;
  background: none;
  border: 0;
  padding: 1.5rem 3rem 1.5rem 0;
  text-align: left;
  font-family: var(--f-display);
  font-size: clamp(1.02rem, 1vw + 0.85rem, 1.18rem);
  font-weight: 600;
  font-stretch: 105%;
  letter-spacing: -0.015em;
  color: var(--c-navy-900);
  cursor: pointer;
  position: relative;
  line-height: 1.4;
  transition: color 0.2s var(--ease);
}
.faq__q:hover { color: var(--c-blue-600); }
.faq__q::after, .faq__q::before {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  background: var(--c-blue-600);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.faq__q::before { width: 15px; height: 1.5px; transform: translateY(-50%); }
.faq__q::after { width: 1.5px; height: 15px; right: 13px; transform: translateY(-50%); }
.faq__q[aria-expanded="true"]::after { transform: translateY(-50%) rotate(90deg); opacity: 0; }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 1.6rem; color: var(--c-ink-soft); max-width: 78ch; }
.faq__a p:first-child { padding-top: 0; }
.section--dark .faq { border-color: rgba(255,255,255,0.14); }
.section--dark .faq__item { border-color: rgba(255,255,255,0.14); }
.section--dark .faq__q { color: #fff; }
.section--dark .faq__a p { color: rgba(255,255,255,0.72); }

/* 13 · SLIDER (Banken / Referenzen)
   ========================================================================== */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.bank {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-stretch: 96%;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--c-ink-soft);
  opacity: 0.72;
  white-space: nowrap;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
  flex: none;
}
.bank:hover { opacity: 1; color: var(--c-navy-900); }
.bank__mark { width: 26px; height: 26px; border-radius: 7px; background: var(--c-mist); display: grid; place-items: center; font-family: var(--f-data); font-size: 0.7rem; color: var(--c-blue-600); flex: none; }

/* Zitat / Referenz */
.quote {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 2.5vw, 2.2rem);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.quote__stars { display: flex; gap: 2px; color: var(--c-gold); margin-bottom: 1rem; }
.quote blockquote { margin: 0 0 1.5rem; font-size: 1.03rem; line-height: 1.6; color: var(--c-navy-800); }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 0.85rem; }
.quote__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-navy-800); color: #fff;
  display: grid; place-items: center;
  font-family: var(--f-data); font-size: 0.85rem; flex: none;
}
.quote__name { font-weight: 600; font-size: 0.95rem; color: var(--c-navy-900); }
.quote__role { font-size: 0.82rem; color: var(--c-ink-soft); }

/* 14 · FORMULARE & FILTER
   ========================================================================== */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-navy-800);
  margin-bottom: 0.4rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 0.98rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-blue-500);
  box-shadow: 0 0 0 4px rgba(44, 116, 214, 0.14);
}
.field textarea { min-height: 140px; resize: vertical; }
.field--check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.85rem; color: var(--c-ink-soft); }
.field--check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--c-blue-600); }
.field__error { display: none; font-size: 0.8rem; color: #b3261e; margin-top: 0.3rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.field.has-error .field__error { display: block; }
.form__status { font-size: 0.9rem; padding: 0.9rem 1.1rem; border-radius: var(--r-sm); display: none; }
.form__status.is-visible { display: block; }
.form__status--ok { background: #e7f4ef; color: var(--c-positive); }
.form__status--err { background: #fdecea; color: #b3261e; }

.filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 0.85rem;
  align-items: end;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  box-shadow: var(--sh-sm);
}
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .filters { grid-template-columns: 1fr; } }

/* Projektkarte */
.project { padding: 0; overflow: hidden; }
.project__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.project__meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-bottom: 0.9rem;
}
.tag {
  font-family: var(--f-data);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--c-mist);
  color: var(--c-blue-600);
}
.tag--gold { background: #faf3dc; color: #8a6d10; }
.project__facts {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
  margin: 1.1rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--c-line);
  font-size: 0.86rem;
}
.project__facts dt { color: var(--c-ink-soft); font-size: 0.78rem; }
.project__facts dd { margin: 0; font-family: var(--f-data); color: var(--c-navy-900); }

/* 15 · CTA-BAND & FOOTER
   ========================================================================== */
.cta-band {
  background: var(--c-navy-900);
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--r-xl);
  padding: clamp(2.25rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: auto -10% -60% auto;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(44,116,214,0.4) 0%, rgba(44,116,214,0) 68%);
  pointer-events: none;
}
.cta-band__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255, 255, 255, 0.74); }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 860px) {
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
}

.footer {
  background: var(--c-navy-900);
  color: rgba(255, 255, 255, 0.62);
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  font-size: 0.93rem;
}
.footer a { color: rgba(255, 255, 255, 0.62); text-decoration: none; transition: color 0.2s var(--ease); }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr) 1.4fr;
  gap: clamp(1.75rem, 3vw, 3rem);
  padding-bottom: 3rem;
}
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__brand .logo { margin-bottom: 1.15rem; }
.footer h4 {
  font-size: 0.8rem;
  font-family: var(--f-data);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; display: grid; gap: 0.6rem; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer__bottom nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.socials { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid; place-items: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.socials a:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); }
.newsletter { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.newsletter input {
  flex: 1;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.9rem;
}
.newsletter input::placeholder { color: rgba(255, 255, 255, 0.42); }
.newsletter input:focus { outline: none; border-color: var(--c-blue-500); background: rgba(255,255,255,0.1); }

/* 16 · COOKIE-BANNER
   ========================================================================== */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translate(-50%, 150%);
  z-index: 200;
  width: min(100% - 2rem, 940px);
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  transition: transform 0.5s var(--ease);
}
.cookie.is-visible { transform: translate(-50%, 0); }
.cookie h4 { margin-bottom: 0.35rem; font-size: 1.05rem; }
.cookie p { font-size: 0.85rem; color: var(--c-ink-soft); margin: 0; }
.cookie__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie__options { grid-column: 1 / -1; display: none; border-top: 1px solid var(--c-line); padding-top: 1.1rem; gap: 0.8rem; }
.cookie.is-expanded .cookie__options { display: grid; }
.cookie__opt { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.85rem; color: var(--c-ink-soft); }
.cookie__opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c-blue-600); }
@media (max-width: 720px) { .cookie { grid-template-columns: 1fr; } }

/* 17 · UTILITIES
   ========================================================================== */
.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;
}
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
.center { text-align: center; }
.gold { color: var(--c-gold); }
.divider-gold { width: 40px; height: 2px; background: var(--c-gold); border-radius: 2px; margin: 1.5rem 0; }


/* Sichtbarkeit: [hidden] muss Flex-/Grid-Anzeigen schlagen (Projektfilter) */
[hidden] { display: none !important; }

/* Karten in Grids: gleiche Höhe auch ohne Flex-Elternteil */
.grid > .card, .grid > .quote, .grid > .project { min-width: 0; }

/* Lange Wörter in schmalen Spalten sauber umbrechen */
h1, h2, h3, p, li, td, th { overflow-wrap: break-word; }


/* Ohne JavaScript sind alle FAQ-Antworten offen und lesbar */
html:not(.has-js) .faq__a { grid-template-rows: 1fr; }
html:not(.has-js) .faq__q::after { display: none; }

/* 18 · MOTION – Scroll-Reveal, dezent
   ========================================================================== */
/* Einblend-Animation nur, wenn JavaScript tatsächlich läuft.
   Ohne die .has-js-Bedingung bliebe der halbe Seiteninhalt dauerhaft
   unsichtbar, sobald das Skript blockiert wird oder nicht lädt. */
.has-js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.has-js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* 19 · PRINT
   ========================================================================== */
@media print {
  .header, .footer, .cookie, .cta-band, .burger { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .section { padding-block: 1rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
