/* Open Sans – lokal gehostet (keine Verbindung zu Google, DSGVO-freundlich). Variable Font 400–800. SIL Open Font License. */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url("../fonts/open-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url("../fonts/open-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ==========================================================================
   Renovado – Design Tokens (aligned with renovado.net)
   ========================================================================== */
:root {
  /* Brand primitives – from the logo files */
  --navy-950: #0b1a30;     /* footer */
  --navy-900: #122848;     /* Quantum Blue – text, dark sections */
  --navy-800: #1b3660;
  --navy-600: #4a5f85;
  --violet-50:  #f4f1ff;   /* tinted section */
  --violet-100: #ebe5ff;   /* tags, soft fills */
  --violet-200: #c4b6fc;   /* soft violet – charts */
  --violet-300: #a48ffb;   /* violet text on navy (AA 5.2:1) */
  --violet-500: #896cf8;   /* Pulse Violet – logo, icons, large display text */
  --violet-600: #6d4fe8;   /* buttons with white text (AA 5.3:1) */
  --violet-700: #5b3fd6;   /* small violet text on light (AA 6.7:1) */
  --grey-50: #f3f3f9;      /* "Mist": helles Lavendel-Grau – einziger heller Akzent-Hintergrund */
  --grey-200: #e2e6ee;     /* lines */
  --grey-300: #cdd2dc;     /* outlines, inactive bars */
  --navy-400: #7f8aa3;     /* placeholder on dark */
  /* Feedback */
  --danger: #c4383b;
  --danger-text: #b42d30;
  --danger-bg: #fff6f6;
  --danger-on-dark: #ff8f8f;
  --danger-text-on-dark: #ffb0b0;

  /* Semantic roles */
  --bg: var(--grey-50);
  --white: #ffffff;
  --tint: var(--violet-50);
  --ink: var(--navy-900);
  --ink-muted: #4f5d74;
  --line: var(--grey-200);
  --accent: var(--violet-500);
  --accent-strong: var(--violet-600);
  --accent-text: var(--violet-700);
  --on-dark: #f3f1ff;
  --on-dark-muted: #b1bbcf;
  --on-dark-accent: var(--violet-300);
  --line-dark: rgba(255,255,255,.12);
  /* legacy aliases */
  --quantum-blue: var(--navy-900);
  --quantum-blue-90: var(--navy-800);
  --pulse-violet: var(--violet-500);
  --pulse-violet-deep: var(--violet-700);
  --pulse-violet-soft: var(--violet-100);

  --font-display: "Open Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Open Sans", ui-sans-serif, system-ui, sans-serif;
  /* Type scale – Open Sans only */
  --fs-h1: clamp(2.1rem, 1.4rem + 2.5vw, 3.3rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem);
  --fs-h3-lg: clamp(1.5rem, 1.25rem + .9vw, 2rem);
  --fs-h3: 1.25rem;
  --fs-h4: 1.0625rem;
  --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.175rem);
  --fs-md: 1.125rem;       /* betonte Fließtext-Elemente */
  --fs-body: 1rem;
  --fs-small: .9375rem;    /* kleine Stufe 1 */
  --fs-xs: .8125rem;       /* kleine Stufe 2 */

  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 8.5vw, 128px);
  --radius-xs: 4px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(18,40,72,.05), 0 14px 36px -14px rgba(18,40,72,.18);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
/* Navigation-Sprung: Abschnitts-Innenabstand verschwindet unter der Kopfzeile, Inhalt beginnt 40px darunter */
.section[id] { scroll-margin-top: calc(40px - var(--section-y)); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.7 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.legal-page main { background: var(--white); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.005em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.mono { font: 700 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--pulse-violet-soft); }
.eyebrow-light { color: var(--on-dark-accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font: 600 1rem/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; background: none; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .btn:hover svg { transform: translateX(3px); } }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { background: var(--accent-strong); } }
.btn-violet { background: var(--accent-strong); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn-violet:hover { background: var(--accent-text); } }
@media (hover: hover) and (pointer: fine) { .section-dark .btn-violet:hover { background: #fff; color: var(--ink); } }
.btn-ghost { border-color: var(--grey-300); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { border-color: var(--ink); } }
.btn-outline { border-color: var(--ink); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn-outline:hover { background: var(--ink); color: #fff; } }

.text-link { font-weight: 600; color: var(--accent-text); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
@media (hover: hover) and (pointer: fine) { .text-link:hover { color: var(--ink); } }

/* ============ Header ============ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { gap: 24px; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 28px; height: 30px; color: var(--accent); }
.brand-mark-lg { width: 36px; height: 38px; }
.brand-word { font: 800 1.45rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand-light { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { font-weight: 500; font-size: var(--fs-small); text-decoration: none; color: var(--ink-muted); position: relative; white-space: nowrap; }
.nav a:not(.btn):not(.nav-phone)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
@media (hover: hover) and (pointer: fine) { .nav a:not(.btn):hover { color: var(--ink); } }
@media (hover: hover) and (pointer: fine) { .nav a:not(.btn):hover::after { transform: scaleX(1); } }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink) !important; font-weight: 600 !important; }
.nav-phone svg { width: 18px; height: 18px; color: var(--accent); }
.nav-cta { min-height: 44px; padding: 0 20px; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: var(--radius-xs); transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ============ Hero ============ */
.hero { background: radial-gradient(110% 100% at 85% 0%, var(--violet-100) 0%, transparent 55%), var(--bg); border-bottom: 1px solid var(--line); padding: clamp(36px, 5vw, 72px) 0 clamp(48px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; hyphens: manual; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: var(--fs-lead); color: var(--ink-muted); max-width: 32em; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: var(--fs-small); font-weight: 500; color: var(--ink-muted); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before, .check-list li::before, .pack-list li::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

.hero-media { position: relative; padding-bottom: 40px; }
.hero-figure { position: relative; margin: 0 0 0 auto; width: 90%; aspect-ratio: 4 / 4.6; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg); box-shadow: 0 30px 60px -30px rgba(18,40,72,.35); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 40%; }
.hero-figure::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(18,40,72,.06); pointer-events: none; }

/* Ablauf card (from the draft's Taktplan) */
.plan { position: absolute; left: 0; bottom: 0; width: min(330px, 78%); background: var(--white); border-radius: var(--radius); box-shadow: 0 2px 4px rgba(18,40,72,.06), 0 24px 48px -16px rgba(18,40,72,.32); padding: 16px 18px 14px; }
.plan-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--ink-muted); }
.plan-status { display: inline-flex; align-items: center; gap: 6px; font: 600 .75rem/1 var(--font-body); color: var(--accent-text); background: var(--violet-100); padding: 5px 9px; border-radius: 999px; }
.plan-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.plan-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; position: relative; }
.plan-rows li { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 10px; font-size: var(--fs-xs); color: var(--ink-muted); }
.plan-rows li b { display: block; height: 9px; border-radius: var(--radius-xs); background: var(--c); width: calc(100% / 6); margin-left: calc(100% / 6 * var(--s)); transform-origin: left; animation: grow .45s var(--ease) both; animation-delay: calc(var(--s) * 70ms + 100ms); }
.plan-rows li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.plan-foot { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; font-size: var(--fs-xs); color: var(--ink-muted); }
.plan-foot b { color: var(--ink); font-family: var(--font-display); font-size: var(--fs-small); margin-right: 2px; }

/* ============ Sections ============ */
.section { padding: var(--section-y) 0; }
.section-white { background: var(--white); }
.section-grey { background: var(--bg); }
.section-tint { background: var(--tint); }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 4.5vw, 64px); }
.section-head-center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head-row { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px 64px; align-items: end; }
.section-intro { color: var(--ink-muted); font-size: var(--fs-lead); margin-top: 20px; max-width: 36em; }
.section-intro strong { color: var(--ink); font-weight: 600; }
.section-dark .section-intro strong { color: #fff; }
.section-head-row .section-intro { margin-top: 0; }
.section-head-row > div .section-intro { margin-top: 20px; }

/* Zwei Leistungsbereiche + Vorteile (Ende des Hero) */
.anchor-alias { display: block; position: relative; top: -24px; height: 0; }
.services { margin-top: clamp(48px, 6vw, 80px); }
.services-title { font-size: var(--fs-small); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 18px; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.service-card { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; color: #fff; text-decoration: none; background: var(--navy-900, #122848); box-shadow: 0 30px 60px -34px rgba(18,40,72,.45); }
.service-card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,40,72,0) 22%, rgba(18,40,72,.45) 42%, rgba(18,40,72,.82) 66%, rgba(18,40,72,.96) 100%); }
.service-body { text-shadow: 0 1px 2px rgba(18,40,72,.35), 0 2px 18px rgba(18,40,72,.45); }
.service-tags span, .service-no span { text-shadow: none; }
.service-body { width: 100%; padding: 28px 28px 26px; }
.service-no { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.service-no span { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; letter-spacing: 0; }
.service-card h3 { font-size: var(--fs-h3-lg); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 8px; color: #fff; }
.service-text { margin: 0; max-width: 44ch; font-size: var(--fs-small); line-height: 1.55; color: rgba(255,255,255,.92); }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.service-tags span { font-size: .8125rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(18,40,72,.45); border: 1px solid rgba(255,255,255,.32); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.service-go { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink); transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease); }
.service-go svg { width: 20px; height: 20px; }
.service-card:focus-visible { outline-offset: 4px; }
.service-card:focus-visible .service-go { background: var(--accent); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .service-card:hover > img { transform: scale(1.04); }
  .service-card:hover .service-go { background: var(--accent); color: #fff; transform: translateX(3px); }
}
.system { margin-top: 20px; display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; }
.system-title { font-size: var(--fs-h3-lg); line-height: 1.15; letter-spacing: -.01em; margin: 0; }
.system-title em { font-style: normal; color: var(--accent); display: block; }
.system-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.system-grid li { padding: 4px 18px; border-left: 1px solid var(--line); }
.sys-icon { display: block; width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.system-grid h3 { font-size: var(--fs-h4); line-height: 1.3; margin: 0 0 4px; hyphens: manual; }
.system-grid p { color: var(--ink-muted); font-size: .875rem; margin: 0; line-height: 1.45; }
@media (max-width: 1180px) {
  .system { grid-template-columns: 1fr; gap: 18px; }
  .system-title em { display: inline; }
  .system-grid li:first-child { border-left: 0; padding-left: 0; }
}
@media (max-width: 860px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 340px; }
  .system-grid { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .system-grid li, .system-grid li:first-child { border-left: 0; padding: 0; }
}
@media (max-width: 640px) {
  .services { margin-top: 40px; }
  .services-title { margin-bottom: 12px; }
  .service-card { min-height: 340px; }
  .service-card::before { background: linear-gradient(180deg, rgba(18,40,72,.08) 0%, rgba(18,40,72,.72) 38%, rgba(18,40,72,.96) 100%); }
  .service-body { padding: 22px 20px 20px; }
  .service-go { width: 42px; height: 42px; }
  .system { padding: 22px 20px; }
  .system-grid { grid-template-columns: 1fr; row-gap: 0; }
  .system-grid li { display: grid; grid-template-columns: 26px 1fr; column-gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
  .system-grid li:first-child { border-top: 0; padding-top: 4px; }
  .sys-icon { margin: 2px 0 0; }
}
.kontakt-form { scroll-margin-top: 16px; }

/* Abschluss-CTA unter einer Sektion */
.section-cta { margin-top: clamp(40px, 5vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding: 24px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.section-cta p { margin: 0; max-width: 62ch; color: var(--ink-muted); }
.section-cta b { color: var(--ink); }
@media (max-width: 640px) { .section-cta { padding: 20px; } .section-cta .btn { width: 100%; } }

/* Trades */
.trades { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.trade { background: var(--bg); border: 1px solid transparent; border-radius: var(--radius-lg); padding: 30px 22px 24px; display: flex; flex-direction: column; align-items: flex-start; transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
@media (hover: hover) and (pointer: fine) { .trade:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); } }
.trade-icon { width: 48px; height: 48px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 28px; }
.trade h3 { font-size: var(--fs-h4); hyphens: manual; }
.trade-link { margin-top: auto; padding: 18px 0 0; border: 0; background: none; cursor: pointer; font-weight: 600; font-size: var(--fs-small); color: var(--accent-text); }
@media (hover: hover) and (pointer: fine) { .trade-link:hover { color: var(--ink); } }

/* Chooser + packages (Kernprodukte) */
.pack-head { grid-template-columns: 1.15fr 1fr; align-items: end; margin-bottom: clamp(36px, 4vw, 52px); }
.pack-tagline { font-weight: 700; font-size: var(--fs-md); color: var(--ink); margin-bottom: 10px; }
.pack-head .section-intro { margin-top: 0 !important; font-size: var(--fs-body); }

.pack-scope { display: inline-flex; gap: 3px; align-items: flex-end; }
.pack-scope i { width: 6px; border-radius: 2px; background: var(--grey-300); }
.pack-scope i:nth-child(1) { height: 8px; } .pack-scope i:nth-child(2) { height: 12px; } .pack-scope i:nth-child(3) { height: 16px; }
.pack-scope i.on { background: var(--accent); }

.chooser { margin-bottom: 16px; }
.pack-note { max-width: 820px; margin: 32px auto 0; text-align: center; text-wrap: balance; font-size: var(--fs-small); line-height: 1.65; color: var(--ink-muted); }
.pack-note strong { color: var(--ink); font-weight: 700; }
@media (max-width: 960px) { .pack-note { text-align: left; margin-top: 24px; text-wrap: pretty; } }
.chooser-label { font-weight: 700; font-size: var(--fs-md); margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.chooser-label span { font-weight: 400; font-size: var(--fs-small); color: var(--ink-muted); }
.chooser-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.chooser-btns button { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px; border: 1.5px dashed var(--grey-300); background: transparent; border-radius: var(--radius); font: 600 var(--fs-small)/1.2 var(--font-body); color: var(--ink); cursor: pointer; text-align: left; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .chooser-btns button:hover { border-style: solid; border-color: var(--accent); background: var(--white); } }
.chooser-btns button:focus-visible { outline: 3px solid var(--violet-200); outline-offset: 2px; }
.chooser-arrow { width: 16px; height: 16px; margin-left: auto; color: var(--ink-muted); transition: transform .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .chooser-btns button:hover .chooser-arrow { transform: translateY(2px); color: var(--accent); } }
.chooser-btns button[aria-pressed="true"] { border-style: solid; border-color: var(--ink); background: var(--ink); color: #fff; }
.chooser-btns button[aria-pressed="true"] .chooser-arrow { color: var(--violet-300); }

/* Karten: Subgrid, damit Titel, Beschreibung, Liste und Button über alle drei Karten auf einer Linie liegen */
.packs { scroll-margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
.pack { grid-row: span 5; display: grid; grid-template-rows: subgrid; row-gap: 0; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 0; overflow: hidden; scroll-margin-top: 24px; transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease), opacity .3s var(--ease); }
@media (hover: hover) and (pointer: fine) { .pack:hover { border-color: var(--grey-300); box-shadow: var(--shadow); } }
.pack-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px 0; }
.pack-no { font: 700 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.pack-scope-wrap { display: inline-flex; align-items: flex-end; gap: 8px; }
.pack-scope-label { font-size: .75rem; font-weight: 600; color: var(--ink-muted); line-height: 1; }
.pack-title { padding: 22px 28px 0; }
.pack h3 { font-size: var(--fs-h3-lg); font-weight: 800; letter-spacing: -0.015em; margin: 0 0 4px; }
.pack-claim { font-weight: 600; color: var(--ink); }
.pack-for { margin: 20px 28px 0; padding: 16px 18px; background: var(--bg); border-radius: var(--radius-sm); color: var(--ink-muted); font-size: var(--fs-small); align-self: start; }
.pack-cond { display: block; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.pack-body { padding: 24px 28px 28px; }
.pack-inherit { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 8px 14px; border-radius: 999px; background: var(--violet-100); color: var(--accent-text); font-weight: 700; font-size: var(--fs-small); }
.pack-inherit svg { width: 14px; height: 14px; flex: none; }
.pack-base { background: var(--bg); color: var(--ink-muted); }
@media (min-width: 961px) { .pack-cond { display: none; } }
.pack-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; font-size: var(--fs-small); }
.pack-list li { display: flex; gap: 10px; align-items: baseline; }
.pack-list li::before { transform: translateY(2px); }
.pack-cta { margin: 0 28px 28px; align-self: end; }
@media (hover: hover) and (pointer: fine) { .pack-cta:hover svg { transform: translateX(3px); } }
.packs.has-choice .pack { opacity: .5; }
.packs.has-choice .pack.is-match { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 4px var(--violet-100), var(--shadow); transform: translateY(-4px); }
.packs.has-choice .pack.is-match .pack-cta { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
@media (max-width: 960px) {
  .pack-head { grid-template-columns: 1fr; }
  .chooser-btns { gap: 10px; }
  .chooser-btns button { padding: 10px 12px; gap: 8px; }
  .chooser-arrow { display: none; }
  .packs { grid-template-columns: 1fr; gap: 16px; }
  .pack { display: flex; flex-direction: column; }
  .pack-cta { margin-top: auto; align-self: stretch; }
  .chooser { position: sticky; top: 72px; z-index: 5; margin: 0 calc(-1 * var(--gutter)) 16px; padding: 12px var(--gutter); background: rgba(243,243,249,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .pack { scroll-margin-top: 118px; }
}
@media (max-width: 640px) {
  .chooser-btns button { justify-content: center; text-align: center; min-height: 56px; font-size: .8125rem; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
  .chooser-label span { display: none; }
  .chooser-label { font-size: var(--fs-small); margin-bottom: 10px; }
  .pack-top, .pack-title, .pack-body { padding-left: 22px; padding-right: 22px; }
  .pack-for { margin-left: 22px; margin-right: 22px; }
  .pack-cta { margin: 0 22px 22px; }
}

/* Before / after */
.ba-block { margin-top: clamp(56px, 7vw, 104px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 56px); scroll-margin-top: 24px; }
.ba-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-bottom: clamp(20px, 2.5vw, 28px); margin-bottom: clamp(24px, 3.5vw, 44px); border-bottom: 1px solid var(--line); }
.ba-top .eyebrow { margin: 0; }
.ba-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: 999px; }
.ba-tabs button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; font: 600 var(--fs-small)/1 var(--font-body); color: var(--ink-muted); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .ba-tabs button:hover { color: var(--ink); } }
.ba-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: 0 4px 12px -4px rgba(18,40,72,.4); }
.ba-tabs button:focus-visible { outline: 3px solid var(--violet-200); outline-offset: 2px; }
.ba-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; animation: ba-in .35s var(--ease); }
.ba-panel[hidden] { display: none; }
@keyframes ba-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ba-pack { font: 700 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.ba-cta { margin-top: 28px; }
.ba.ba-empty { background: repeating-linear-gradient(135deg, var(--grey-50) 0 14px, #fff 14px 28px); border: 1.5px dashed var(--grey-300); display: grid; place-items: center; }
.ba-empty::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 0; border-left: 1.5px dashed var(--grey-300); }
.ba-empty-msg { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 280px; padding: 22px 24px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ba-empty-msg svg { width: 32px; height: 32px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.ba-empty-msg b { font-size: var(--fs-small); }
.ba-empty .ba-tag-after { box-shadow: inset 0 0 0 1px var(--grey-300); }
.ba-empty-msg span { font-size: .8125rem; color: var(--ink-muted); }
.ba-title { font-size: var(--fs-h3-lg); }
.ba-copy p:not(.eyebrow):not(.ba-pack) { color: var(--ink-muted); margin-top: 18px; max-width: 30em; }
.ba-copy p.ba-hint { color: var(--accent-text); font-size: var(--fs-small); font-weight: 500; }
.ba { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; background: var(--navy-950); user-select: none; touch-action: pan-y; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-tag { position: absolute; top: 16px; padding: 8px 12px; border-radius: 999px; font: 600 .75rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.ba-tag-before { left: 16px; background: rgba(18,40,72,.8); color: #fff; }
.ba-tag-after { right: 16px; background: rgba(255,255,255,.92); color: var(--ink); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: var(--accent-strong); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.ba-handle svg { width: 22px; height: 22px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba:has(.ba-range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; }

/* Mieterwechsel + Leerstandsrechner (from the draft) */
.mw { margin-top: clamp(8px, 2vw, 24px); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.mw-label { font: 700 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-accent); margin-bottom: 14px; }
.mw-title { font-size: var(--fs-h3-lg); color: #fff; margin-bottom: clamp(24px, 3vw, 36px); }
.mw-steps { list-style: none; margin: 0; padding: 0; counter-reset: mw; }
.mw-steps li { counter-increment: mw; display: grid; grid-template-columns: 44px 1fr auto; gap: 6px 16px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line); }
.mw-steps li:last-child { border-bottom: 1px solid var(--line); }
.mw-steps li::before { content: "0" counter(mw); grid-row: span 2; font: 700 .75rem/1 var(--font-body); letter-spacing: .12em; color: var(--accent-text); }
.mw-steps li::after { content: attr(data-who); grid-column: 3; grid-row: 1; font: 700 .75rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink-muted); }
.mw-steps li[data-who="Wir"]::after { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.mw-steps b { font-weight: 600; font-size: var(--fs-h4); }
.mw-steps span { grid-column: 2 / 4; color: var(--ink-muted); font-size: var(--fs-small); }

.calc { position: sticky; top: 100px; background: var(--navy-900); color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; box-shadow: 0 30px 60px -30px rgba(18,40,72,.5); }
.calc-label { font: 700 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-accent); }
.calc h3 { font-size: var(--fs-h3-lg); color: #fff; margin-top: -8px; }
.calc-field { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-size: var(--fs-small); color: var(--on-dark-muted); }
.calc-field output { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.calc-field input[type="range"] { grid-column: 1 / -1; width: 100%; height: 24px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --fill: 50%; }
.calc-field input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: var(--radius-xs); background: linear-gradient(to right, var(--violet-500) var(--fill), rgba(255,255,255,.16) var(--fill)); }
.calc-field input[type="range"]::-moz-range-track { height: 6px; border-radius: var(--radius-xs); background: rgba(255,255,255,.16); }
.calc-field input[type="range"]::-moz-range-progress { height: 6px; border-radius: var(--radius-xs); background: var(--violet-500); }
.calc-field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 4px solid var(--violet-500); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.calc-field input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--violet-500); }
.calc-field input[type="range"]:focus-visible { outline: 2px solid var(--violet-300); outline-offset: 4px; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.calc-out div { background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.calc-out span { font: 700 .75rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.calc-out b { font: 800 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.calc-out div:last-child b { color: var(--violet-300); }
.calc-hint { font-size: var(--fs-xs); color: var(--on-dark-muted); }
.calc-cta { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: var(--fs-small); color: var(--violet-300); text-decoration: none; }
.calc-cta span { transition: transform .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .calc-cta:hover { color: #fff; } .calc-cta:hover span { transform: translateX(3px); } }

/* Steps + calculator on the navy Prinzip section */
.section-dark .mw-steps li { border-color: var(--line-dark); }
.section-dark .mw-steps li::before { color: var(--on-dark-accent); }
.section-dark .mw-steps li::after { background: transparent; border-color: rgba(255,255,255,.28); color: var(--on-dark); }
.section-dark .mw-steps li[data-who="Wir"]::after { background: var(--violet-600); border-color: var(--violet-600); color: #fff; }
.section-dark .mw-steps b { color: #fff; }
.section-dark .mw-steps span { color: var(--on-dark-muted); }
.section-dark .calc { background: var(--navy-800); border: 1px solid var(--line-dark); box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }

/* Dark section / Prinzip */
.section-dark { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; overflow: clip; } /* clip statt hidden: Sticky-Elemente (Leerstandsrechner) funktionieren */
.section-dark::before { content: ""; position: absolute; width: 760px; height: 760px; right: -260px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(137,108,248,.26), transparent 65%); pointer-events: none; }
.section-dark .wrap { position: relative; }
.section-dark .section-intro { color: var(--on-dark-muted); }
.section-dark .section-head { max-width: 920px; }


.portfolio { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-dark); }
.portfolio-intro h3 { font-size: var(--fs-h3-lg); }
.portfolio-intro p { color: var(--on-dark-muted); margin-top: 16px; }
.portfolio-label { font: 700 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-accent); margin-bottom: 18px; }
.portfolio-sub { color: var(--on-dark-muted); margin-bottom: 18px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.check-list li { display: grid; grid-template-columns: 14px 1fr; column-gap: 12px; }
.check-list li::before { grid-row: span 2; margin-top: 6px; }
.check-list b { font-weight: 600; }
.check-list span { color: var(--on-dark-muted); font-size: var(--fs-small); }
.chips { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line-dark); background: rgba(255,255,255,.05); border-radius: 999px; padding: 8px 14px; font-size: var(--fs-small); }

/* Split (Haus & Gewerbe) */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-media { margin: 0; aspect-ratio: 4 / 4.4; border-radius: var(--radius-lg); overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.split-copy > p:not(.eyebrow):not(.section-intro) { color: var(--ink-muted); margin-top: 16px; max-width: 34em; }
.split-actions { margin-top: 32px; }

/* References */
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ref-img { position: relative; aspect-ratio: 4 / 4.6; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; background: var(--line); }
.ref-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) { .ref:hover .ref-img img { transform: scale(1.04); } }
.ref-tag { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.94); color: var(--ink); font: 600 .75rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; }
.ref h3 { margin-bottom: 8px; }
.ref p { color: var(--ink-muted); font-size: var(--fs-small); }
.ref strong { color: var(--ink); }

/* About */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: var(--bg); border-radius: var(--radius-lg); padding: 30px 28px; }
.pillar-no { display: block; font: 700 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 32px; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--ink-muted); font-size: var(--fs-small); }

.sites { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.site { border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; }
.site-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.site-head h3 { font-size: var(--fs-h3); }
.site-addr { color: var(--ink-muted); font-size: var(--fs-small); }
.person { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: center; }
.person-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.person-monogram { background: var(--navy-900); color: #fff; display: grid; place-items: center; position: relative; overflow: hidden; }
.person-monogram svg { position: absolute; width: 130%; height: 130%; right: -40%; bottom: -30%; color: rgba(137,108,248,.3); }
.person-monogram span { position: relative; font: 800 1.5rem/1 var(--font-display); }
.person-name { font: 700 var(--fs-h4)/1.3 var(--font-display); }
.person-role { color: var(--ink-muted); font-size: var(--fs-small); }
.person-contact { display: grid; gap: 2px; margin-top: 8px; font-size: var(--fs-small); }
.person-contact a { text-decoration: none; font-weight: 500; overflow-wrap: normal; }
@media (hover: hover) and (pointer: fine) { .person-contact a:hover { color: var(--accent-text); } }

/* Partner */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.path { background: var(--white); border: 1px solid var(--violet-100); border-radius: var(--radius-lg); padding: 28px; text-decoration: none; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
@media (hover: hover) and (pointer: fine) { .path:hover { transform: translateY(-3px); box-shadow: var(--shadow); } }
.path-tag { align-self: flex-start; font: 600 .75rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); background: var(--violet-100); padding: 7px 11px; border-radius: 999px; margin-bottom: 28px; }
.path h3 { margin-bottom: 10px; }
.path p { color: var(--ink-muted); font-size: var(--fs-small); }
.path-more { margin-top: auto; padding-top: 22px; font-weight: 600; color: var(--accent-text); }
.team-line { margin-top: 32px; color: var(--ink-muted); }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-copy > p:not(.eyebrow) { color: var(--on-dark-muted); font-size: var(--fs-lead); margin-top: 20px; max-width: 28em; }
.contact-person { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; margin-top: 40px; padding: 20px; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); }
.contact-person img { width: 96px; height: 112px; object-fit: cover; object-position: top; border-radius: var(--radius); }
.contact-quote { font: 700 var(--fs-h4)/1.4 var(--font-display); color: #fff; margin-bottom: 10px; }
.contact-name { font-weight: 600; }
.contact-role { color: var(--on-dark-muted); font-size: var(--fs-small); }
.contact-direct { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 6px; }
.contact-direct a { display: inline-block; padding: 6px 0; text-decoration: none; font-weight: 600; font-size: var(--fs-md); }
@media (hover: hover) and (pointer: fine) { .contact-direct a:hover { color: var(--on-dark-accent); } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); }
.field { display: grid; gap: 7px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field > span { font-size: var(--fs-small); font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: var(--fs-body); color: var(--ink); background: var(--bg); border: 1.5px solid transparent; border-radius: var(--radius-sm); padding: 13px 15px; min-height: 50px; transition: border-color .2s, background .2s; }
.field textarea { resize: vertical; min-height: 120px; }
@media (hover: hover) and (pointer: fine) { .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line); } }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field .is-invalid { border-color: var(--danger); background: var(--danger-bg); }
.field select.is-highlight { border-color: var(--accent); background: var(--violet-50); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.form-note { font-size: var(--fs-small); color: var(--ink-muted); flex: 1 1 220px; }
.form-note.is-error { color: var(--danger-text); }

/* Footer */
.site-footer { background: var(--bg); color: var(--ink-muted); padding: 64px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-claim { font: 700 1.25rem/1.35 var(--font-display); color: var(--ink); margin-top: 22px; }
.footer-claim span { color: var(--accent-text); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-label { font: 700 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.footer-col a { text-decoration: none; font-size: var(--fs-small); }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { color: var(--accent-text); } }
.footer-bottom { margin-top: 48px; font-size: var(--fs-small); }
.footer-bottom p { padding-top: 22px; border-top: 1px solid var(--line); }

/* ==========================================================================
   Karriere-Seite (team.html)
   ========================================================================== */
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after { transform: scaleX(1) !important; }

/* Hero card */
.hiring-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hiring-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.hiring-list li:last-child { border-bottom: 0; }
.hiring-list b { font-weight: 600; color: var(--ink); }
.hiring-list span { color: var(--ink-muted); font-size: var(--fs-xs); white-space: nowrap; }

/* Levels */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.level { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; display: flex; flex-direction: column; }
.level-no { font: 700 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 28px; }
.level h3 { margin-bottom: 10px; }
.level p { color: var(--ink-muted); font-size: var(--fs-small); }
.level-cta { align-self: flex-start; margin-top: auto; padding-top: 22px; background: none; border: 0; border-bottom: 1.5px solid currentColor; padding: 22px 0 1px; cursor: pointer; font-size: var(--fs-small); }
.level-featured { background: var(--navy-900); border-color: var(--navy-900); color: var(--on-dark); }
.level-featured .level-no, .level-featured .level-cta { color: var(--on-dark-accent); }
.level-featured p { color: var(--on-dark-muted); }
@media (hover: hover) and (pointer: fine) { .level-featured .level-cta:hover { color: #fff; } }

.trade-chips { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.trade-chips-label { font-weight: 600; font-size: var(--fs-small); }
.chips-light { margin: 0; }
.chips-light li { border-color: var(--line); background: var(--white); color: var(--ink); }

/* Benefits */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit { background: var(--bg); border-radius: var(--radius-lg); padding: 30px 28px; }
.benefit-icon { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 24px; }
.benefit h3 { margin-bottom: 10px; }
.benefit p { color: var(--ink-muted); font-size: var(--fs-small); }

/* Culture (dark) */
.culture { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.culture-list { gap: 22px; }
.culture-list b { font-size: var(--fs-h4); }

/* Application steps */
.apply-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: a; }
.apply-step { position: relative; padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.apply-no { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--violet-100); color: var(--accent-text); font: 700 1.05rem/1 var(--font-display); margin-bottom: 24px; }
.apply-step h3 { margin-bottom: 8px; }
.apply-step p { color: var(--ink-muted); font-size: var(--fs-small); }
.contact-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 20px; padding: 22px 28px; background: var(--bg); border-radius: var(--radius-lg); }
.contact-strip .person { grid-template-columns: 56px 1fr; gap: 14px; }
.contact-strip .person-photo { width: 56px; height: 56px; }
.contact-strip .person-monogram span { font-size: var(--fs-md); }
.contact-strip-text { flex: 1 1 260px; color: var(--ink-muted); }

/* Radio choice group */
.field { border: 0; margin: 0; padding: 0; }
.field-label { font-size: var(--fs-small); font-weight: 600; padding: 0; margin-bottom: 7px; float: left; width: 100%; }
.choice-group { clear: both; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--bg); padding: 5px; border-radius: var(--radius); border: 1.5px solid transparent; }
.choice-group.is-invalid { border-color: var(--danger); background: var(--danger-bg); }
.choice-group label { position: relative; }
.choice-group input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice-group span { display: grid; place-items: center; min-height: 44px; border-radius: var(--radius-sm); font-weight: 600; font-size: var(--fs-small); color: var(--ink-muted); transition: background .2s, color .2s; }
@media (hover: hover) and (pointer: fine) { .choice-group label:hover span { color: var(--ink); } }
.choice-group input:checked + span { background: var(--navy-900); color: #fff; }
.choice-group input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.insta-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--on-dark-muted); text-decoration: none; font-weight: 600; font-size: var(--fs-small); }
.insta-link svg { width: 22px; height: 22px; color: var(--on-dark-accent); }
@media (hover: hover) and (pointer: fine) { .insta-link:hover { color: #fff; } }

@media (max-width: 960px) {
  .levels, .benefits, .apply-steps { grid-template-columns: 1fr 1fr; }
  .levels .level:last-child, .apply-steps .apply-step:last-child { grid-column: 1 / -1; }
  .culture { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .levels, .benefits, .apply-steps { grid-template-columns: 1fr; }
  .levels .level:last-child, .apply-steps .apply-step:last-child { grid-column: auto; }
  .contact-strip { padding: 20px; }
  .contact-strip .btn { width: 100%; }
}

/* ==========================================================================
   Rechtliche Seiten (impressum.html, datenschutz.html)
   ========================================================================== */
.legal-hero { background: linear-gradient(180deg, var(--grey-50) 0%, var(--white) 100%); padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: var(--fs-h2); font-weight: 800; hyphens: manual; }
.legal-body { background: var(--white); padding: clamp(40px, 5vw, 72px) 0 var(--section-y); }
.legal { max-width: 720px; }
.legal > * + * { margin-top: 16px; }
.legal h2 { font-size: var(--fs-h3); margin-top: 44px; }
.legal > h2:first-child, .legal > .legal-card:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-muted); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .legal a:hover { text-decoration: underline; } }
.legal-lead { font-size: var(--fs-lead); color: var(--ink) !important; font-weight: 600; }
.legal ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.legal ul li { display: flex; gap: 12px; align-items: baseline; }
.legal ul li::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.legal-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 28px); }
.legal-card h2 { margin: 0 0 10px; font-size: var(--fs-h3); }
.legal-card p { color: var(--ink); }
.legal-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 14px 0 0; }
.legal-dl dt { font-weight: 600; color: var(--ink); }
.legal-dl dd a { display: inline-block; padding: 2px 0; }
.legal-dl dd { margin: 0; color: var(--ink-muted); overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .legal-dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-dl dd + dt { margin-top: 10px; }
}

/* ==========================================================================
   Kontakt Startseite (nach dem Entwurf): Porträt + Formular auf Navy
   ========================================================================== */
.kontakt-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.kontakt-person { position: relative; padding-bottom: 72px; }
.kontakt-person img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--radius-lg); filter: grayscale(1) contrast(1.05); }
.kontakt-card { position: absolute; left: 20px; right: 20px; bottom: 0; background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 12px; box-shadow: 0 24px 48px -20px rgba(0,0,0,.5); }
.kontakt-quote { font: 800 var(--fs-h3)/1.25 var(--font-display); color: var(--accent-text); }
.kontakt-name { display: grid; gap: 2px; }
.kontakt-name b { font-weight: 700; }
.kontakt-name span { color: var(--ink-muted); font-size: var(--fs-small); }
.kontakt-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: var(--fs-small); font-weight: 600; }
.kontakt-links a { display: inline-block; padding: 4px 0 2px; text-decoration: none; border-bottom: 1.5px solid var(--accent); }
@media (hover: hover) and (pointer: fine) { .kontakt-links a:hover { color: var(--accent-text); } }

.kontakt-form h2 { margin-bottom: 14px; }
.kontakt-lead { color: var(--on-dark-muted); font-size: var(--fs-lead); margin-bottom: 28px; }


/* Form directly on navy */
.form-dark { background: transparent; box-shadow: none; padding: 0; color: var(--on-dark); gap: 16px 16px; }
.form-dark .field > span { font: 700 .75rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.form-dark .field input, .form-dark .field select, .form-dark .field textarea { background: var(--navy-800); border: 1px solid var(--line-dark); color: #fff; border-radius: var(--radius-sm); }
.form-dark .field input::placeholder, .form-dark .field textarea::placeholder { color: var(--navy-400); }
@media (hover: hover) and (pointer: fine) { .form-dark .field input:hover, .form-dark .field select:hover, .form-dark .field textarea:hover { border-color: rgba(255,255,255,.28); } }
.form-dark .field input:focus, .form-dark .field select:focus, .form-dark .field textarea:focus { background: var(--navy-800); border-color: var(--violet-300); box-shadow: 0 0 0 3px rgba(164,143,251,.25); }
.form-dark .field select option { background: var(--navy-900); color: #fff; }
.form-dark .field .is-invalid { border-color: var(--danger-on-dark); background: rgba(255,120,120,.08); }
.form-dark .field select.is-highlight { border-color: var(--violet-300); background: var(--navy-800); box-shadow: 0 0 0 3px rgba(164,143,251,.25); }
.form-dark .field[hidden] { display: none; }
.form-dark .form-note { color: var(--on-dark-muted); }
.form-dark .form-note.is-error { color: var(--danger-text-on-dark); }
.form-legal { font-size: var(--fs-xs); color: var(--on-dark-muted); }
.form-legal a { color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) { .form-legal a:hover { color: var(--violet-300); } }

/* Inquiry form: 1) type 2) details 3) contact */
.inquiry { counter-reset: step; gap: 28px 16px; }
.inquiry .type-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.inquiry .type-fields[hidden] { display: none; }
.inquiry .type-fields > .field-label, .inquiry-step > .field-label { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font: 700 var(--fs-h4)/1.3 var(--font-display); color: #fff; letter-spacing: 0; text-transform: none; margin: 0 0 4px; float: none; }
.inquiry-step > .field-label { margin-bottom: 14px; }
.step-num { counter-increment: step; display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--violet-600); color: #fff; font: 700 .8125rem/1 var(--font-body); }
.step-num::before { content: counter(step); }
.inquiry fieldset.field > legend.field-label:not(:has(.step-num)) { font: 700 .75rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 10px; }

/* Type cards */
.type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-radius: var(--radius); }
.type-cards.is-invalid { outline: 1.5px solid var(--danger-on-dark); outline-offset: 4px; }
.type-card { position: relative; cursor: pointer; }
.type-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.type-card-body { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; align-items: center; height: 100%; padding: 14px 16px; border-radius: var(--radius); background: var(--navy-800); border: 1.5px solid var(--line-dark); transition: border-color .2s var(--ease), background .2s var(--ease); }
.type-card-body svg { grid-row: span 2; width: 30px; height: 30px; fill: none; stroke: var(--violet-300); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.type-card-body b { font-weight: 700; color: #fff; font-size: var(--fs-small); line-height: 1.3; }
.type-card-body small { color: var(--on-dark-muted); font-size: var(--fs-xs); line-height: 1.35; }
@media (hover: hover) and (pointer: fine) { .type-card:hover .type-card-body { border-color: rgba(255,255,255,.3); } }
.type-card input:checked + .type-card-body { border-color: var(--violet-300); background: rgba(137,108,248,.16); box-shadow: inset 0 0 0 1px var(--violet-300); }
.type-card input:checked + .type-card-body svg { stroke: #fff; }
.type-card input:focus-visible + .type-card-body { outline: 2px solid var(--violet-300); outline-offset: 3px; }
.type-card.is-flash .type-card-body { animation: flash 1.2s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: inset 0 0 0 1px var(--violet-300); } 30% { box-shadow: inset 0 0 0 1px var(--violet-300), 0 0 0 6px rgba(164,143,251,.35); } }

/* Option chips (radio / checkbox) */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; cursor: pointer; }
.chip-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-opt span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--navy-800); border: 1px solid var(--line-dark); color: var(--on-dark); font-size: var(--fs-small); font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.chip-opt input[type="checkbox"] + span::before { content: ""; width: 14px; height: 14px; border-radius: var(--radius-xs); border: 1.5px solid rgba(255,255,255,.4); flex: none; }
@media (hover: hover) and (pointer: fine) { .chip-opt:hover span { border-color: rgba(255,255,255,.3); } }
.chip-opt input:checked + span { background: var(--violet-600); border-color: var(--violet-600); color: #fff; }
.chip-opt input[type="checkbox"]:checked + span::before { border-color: #fff; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%236d4fe8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.chip-opt input:focus-visible + span { outline: 2px solid var(--violet-300); outline-offset: 2px; }
.field-hint { font-size: var(--fs-xs); color: var(--on-dark-muted); margin-top: 8px; }
.field-hint a { color: inherit; text-decoration: underline; }
.field-opt { font-weight: 400; font-size: var(--fs-xs); color: var(--on-dark-muted); margin-left: 4px; }
.form .field-full.field-hint { margin-top: -4px; }

@media (max-width: 640px) {
  .inquiry .type-fields { grid-template-columns: 1fr; }
  .type-cards { grid-template-columns: 1fr; }
}

/* Porträt + Ansprechpartner-Karte wandert beim Scrollen mit (nur Desktop mit genug Höhe) */
@media (min-width: 961px) and (min-height: 700px) {
  .kontakt-person { position: sticky; top: 100px; }
  /* overflow: hidden würde sticky blockieren – clip schneidet den Glow ab, ohne Scroll-Container zu erzeugen */
  .section-dark.kontakt { overflow: clip; }
}

@media (max-width: 960px) {
  .kontakt-grid { grid-template-columns: 1fr; }
  .kontakt-person { max-width: 480px; }
}
@media (max-width: 640px) {
  .kontakt-person img { aspect-ratio: 4 / 3.4; object-position: center 18%; }
  .kontakt-person { padding-bottom: 0; }
  .kontakt-card { position: relative; left: auto; right: auto; bottom: auto; margin: -40px 12px 0; padding: 18px 20px; }
}

/* AGB */
.agb-toc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 26px; margin: 28px 0 8px; }
.agb-toc-label { font: 700 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text) !important; margin-bottom: 14px; }
.agb-toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.agb-toc li { break-inside: avoid; }
.agb-toc a { display: inline-block; padding: 5px 0; font-weight: 500 !important; font-size: var(--fs-small); color: var(--ink) !important; }
@media (hover: hover) and (pointer: fine) { .agb-toc a:hover { color: var(--accent-text) !important; } }
.agb-sec { scroll-margin-top: 24px; }
.agb-sec > * + * { margin-top: 12px; }
.legal .agb-sec h2 { margin-top: 44px; }
.agb-num { font-weight: 700; color: var(--accent-text); }
@media (max-width: 640px) { .agb-toc ol { columns: 1; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.is-now { transition: none; }   /* revealed by keyboard focus: show at once */

/* ============ Responsive ============ */
@media (max-width: 1320px) {
  .nav { gap: 18px; }
}
@media (max-width: 1080px) {
  .trades { grid-template-columns: repeat(3, 1fr); }
  .portfolio { grid-template-columns: 1fr 1fr; }
  .portfolio-intro { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(18,40,72,.25); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s; max-height: calc(100dvh - 72px); overflow-y: auto; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-md); color: var(--ink); }
  .nav a:not(.btn)::after { display: none; }
  .nav-phone span { display: inline; }
  .nav-cta { margin-top: 20px; min-height: 52px; }

  .hero-grid, .split, .contact, .ba-panel, .mw { grid-template-columns: 1fr; }
  .calc { position: static; }
  .hero-media { max-width: 560px; }
  .section-head-row { grid-template-columns: 1fr; align-items: start; row-gap: 16px; }
  .section-head-row > div + div > .section-intro:first-child { margin-top: 0; }
  .refs, .pillars, .paths { grid-template-columns: 1fr 1fr; }
  .refs .ref:last-child, .pillars .pillar:last-child, .paths .path:last-child { grid-column: 1 / -1; }
  .sites { grid-template-columns: 1fr; }
  .split-media { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  body { font-size: var(--fs-body); }
  .person-contact { gap: 4px; }
  .person-contact a { display: flex; align-items: center; min-height: 44px; }   /* thumb-sized tap targets */
  .hero-actions .btn { width: 100%; }
  .hero-figure { width: 100%; aspect-ratio: 4 / 3.4; }
  .hero-media { padding-bottom: 0; }
  .plan { position: relative; width: auto; margin: -64px 12px 0; }
  .trades { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .trade { min-width: 0; }
  .trade h3 { hyphens: auto; overflow-wrap: anywhere; }
  .trade { padding: 22px 18px 18px; }
  .trade-icon { width: 40px; height: 40px; margin-bottom: 18px; }
  .trade:last-child { grid-column: 1 / -1; }
  .packs, .refs, .pillars, .paths, .portfolio { grid-template-columns: 1fr; }
  .packs .pack:last-child, .refs .ref:last-child, .pillars .pillar:last-child, .paths .path:last-child { grid-column: auto; }
  .ba-block { padding: 18px; }
  .ba-tabs { width: 100%; }
  .ba-tabs button { flex: 1; padding: 0 10px; }
  .ba-cta { width: 100%; }
  .ba { aspect-ratio: 4 / 5; }
  .site { padding: 20px; }
  .person { grid-template-columns: 56px 1fr; gap: 14px; align-items: start; }
  .person-photo { width: 56px; height: 56px; }
  .form { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Vier Optionen (Karriere-Formular) */
.choice-group-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 520px) { .choice-group-4 { grid-template-columns: repeat(2, 1fr); } }

/* Kopfzeile Desktop: Logo | Tabs | Telefon+Button – Tabs exakt auf der Seitenmitte (beide Außenspalten 1fr) */
.nav-links, .nav-actions { display: flex; align-items: center; }
.nav-links { gap: 28px; }
.nav-actions { gap: 16px; }
@media (min-width: 961px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 24px; }
  .nav { display: contents; }
  .brand { justify-self: start; }
  .nav-links { grid-column: 2; }
  .nav-actions { grid-column: 3; justify-self: end; }
  /* Telefon als runder Icon-Button; Nummer erscheint beim Hover/Fokus als Label darunter (Layout bleibt ruhig) */
  .nav a.nav-phone { justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s, background .2s; }
  .nav a.nav-phone:focus-visible { border-color: var(--accent); background: rgba(137,108,248,.08); }
  @media (hover: hover) and (pointer: fine) { .nav a.nav-phone:hover { border-color: var(--accent); background: rgba(137,108,248,.08); } }
  .nav-phone span { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, -4px); padding: 8px 14px; border-radius: 999px; background: var(--navy-900); color: #fff; font-size: var(--fs-small); font-weight: 600; white-space: nowrap; box-shadow: 0 12px 24px -12px rgba(18,40,72,.45); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
  .nav-phone span::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
  .nav a.nav-phone:focus-visible span { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  @media (hover: hover) and (pointer: fine) { .nav a.nav-phone:hover span { opacity: 1; visibility: visible; transform: translate(-50%, 0); } }
}
@media (max-width: 1320px) { .nav-links { gap: 22px; } }
@media (min-width: 961px) and (max-width: 1140px) { .nav-links { gap: 18px; } .nav-actions { gap: 12px; } .header-inner { column-gap: 16px; } .nav a.nav-phone { display: none; } }
@media (max-width: 960px) {
  .nav-links, .nav-actions { display: contents; }
}
.nowrap { white-space: nowrap; }

/* ===== Neue Reihenfolge (Story / Customer Journey) ===== */
/* Pakete auf Weiß: mitlaufende Zustandswahl (Tablet/Mobil) passend hinterlegen */
.section-white .chooser { background: rgba(255,255,255,.94); }

/* Haus & Gewerbe: Kopfzeile wie bei den Paketen, darunter die fünf Gewerke */
.gewerbe-head { grid-template-columns: 1.15fr 1fr; align-items: start; }
.gewerbe-head .split-actions { margin-top: 24px; }
.trade h3 { margin-bottom: 0; }

/* Referenzen: eine Section, zwei Gruppen (Wohnung | Haus & Gewerbe) */
.ref-groups { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 5vw, 64px); }
.ref-group-label { font: 700 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }

/* Über uns: Mehrwert + Rahmenverträge auf hellem Grund */
.section-white .portfolio { border-top-color: var(--line); }
.section-white .portfolio-intro p,
.section-white .portfolio-sub,
.section-white .check-list span { color: var(--ink-muted); }
.section-white .portfolio-label { color: var(--accent-text); }
.section-white .chips li { border-color: var(--line); background: var(--bg); color: var(--ink); }

/* Kontakt: Standorte + Ansprechpartner auf dunklem Grund */
.kontakt .sites { margin-top: clamp(48px, 6vw, 80px); }
.kontakt .site { border-color: var(--line-dark); }
.kontakt .site-head { border-bottom-color: var(--line-dark); }
.kontakt .site-head h3, .kontakt .person-name { color: #fff; }
.kontakt .site-addr, .kontakt .person-role { color: var(--on-dark-muted); }
.kontakt .person-contact a { color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) { .kontakt .person-contact a:hover { color: var(--on-dark-accent); } }
.kontakt .person-monogram { background: var(--navy-800); }

@media (max-width: 960px) {
  .gewerbe-head { grid-template-columns: 1fr; align-items: start; }
  .ref-groups { gap: 40px; }
  .ref-groups .refs .ref:last-child { grid-column: auto; }
}

/* Säulen: Nummer in einer Zeile mit dem Titel */
.pillar { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; align-content: start; }
.pillar > p { grid-column: 1 / -1; }
.pillar .pillar-no { margin-bottom: 0; }

/* ===== Navigationsleiste als schwebende Pille (nach Vorlage header_navigationbar) ===== */
.site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; padding: 12px 0 16px; pointer-events: none; }
.site-header .header-inner { pointer-events: auto; }
html { scroll-padding-top: 88px; }
.site-header .brand-word { font: 700 1.0625rem/1 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.site-header .brand { gap: 9px; }
.site-header .brand-mark-lg { width: 24px; height: 26px; }
/* CTA: dunkle Pille mit kleinem runden Pfeil */
.nav-cta { gap: 10px; }
.nav-cta::after { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 11 11 5M6 5h5v5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .25s var(--ease), background-color .25s var(--ease); }
@media (hover: hover) and (pointer: fine) { .nav-cta:hover::after { transform: rotate(45deg); background-color: rgba(255,255,255,.26); } }

@media (min-width: 961px) {
  .site-header .header-inner {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: max-content; max-width: calc(100% - 32px); height: 56px; margin: 0 auto; padding: 0 6px 0 20px;
    background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 24px -12px rgba(18,40,72,.18);
    transition: box-shadow .3s var(--ease);
  }
  .site-header.is-scrolled .header-inner { box-shadow: 0 14px 32px -14px rgba(18,40,72,.3); }
  .site-header .brand { margin-right: 18px; }
  .nav-links { gap: 26px; margin-right: 22px; }
  .nav-actions { gap: 8px; }
  .nav a.nav-phone { width: 40px; height: 40px; }
  .nav-cta { min-height: 44px; padding: 0 6px 0 20px; border-radius: 999px; font-size: var(--fs-small); }
}
@media (min-width: 961px) and (max-width: 1140px) { .nav-links { gap: 18px; margin-right: 12px; } .site-header .brand { margin-right: 10px; } }

@media (max-width: 960px) {
  .site-header { padding: 10px 0 16px; }
  .site-header .header-inner {
    width: auto; margin: 0 12px; height: 56px; padding: 0 6px 0 18px;
    background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 24px -12px rgba(18,40,72,.2);
  }
  .nav { inset: 74px 12px auto 12px; border: 1px solid var(--line); border-radius: 24px; padding: 8px 20px 20px; max-height: calc(100dvh - 90px); }
  .nav-cta { justify-content: center; }
}
/* Hero-Hintergrund läuft hinter der schwebenden Navigation durch (keine Kante oben) */
:root { --hdr: 84px; }
@media (max-width: 960px) { :root { --hdr: 82px; } }
.hero { margin-top: calc(-1 * var(--hdr)); padding-top: calc(var(--hdr) + clamp(36px, 5vw, 72px)); }

/* ===== Zustands-Auswahl (Pakete) als zentrierte Pille – im Stil der Navigation ===== */
.chooser { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0 0 clamp(24px, 3vw, 36px); }
.chooser-label { justify-content: center; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 16px; text-align: center; }
.chooser-btns {
  display: inline-flex; gap: 4px; padding: 6px; max-width: 100%;
  background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 8px 24px -12px rgba(18,40,72,.18);
}
.chooser-btns button {
  min-height: 44px; padding: 0 20px; gap: 8px; border: 0; border-radius: 999px; background: transparent;
  font: 600 var(--fs-small)/1.2 var(--font-body); color: var(--ink-muted); white-space: nowrap; justify-content: center; text-align: center;
}
@media (hover: hover) and (pointer: fine) { .chooser-btns button:hover { background: var(--bg); color: var(--ink); border: 0; } }
.chooser-btns button[aria-pressed="true"] { background: var(--navy-900); color: #fff; border: 0; }
@media (hover: hover) and (pointer: fine) { .chooser-btns button[aria-pressed="true"]:hover { background: var(--navy-800); } }
.chooser-btns button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chooser-arrow { width: 14px; height: 14px; margin-left: 0; color: currentColor; opacity: .55; }
.chooser-btns button[aria-pressed="true"] .chooser-arrow { color: #fff; opacity: .9; }

@media (max-width: 960px) {
  /* schwebt beim Scrollen als Pille unter der Navigation */
  .chooser, .section-white .chooser { top: 80px; margin: 0 0 16px; padding: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .chooser-label { margin-bottom: 12px; }
  .chooser-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
  .chooser-btns button { padding: 0 10px; }
}
@media (max-width: 640px) {
  .chooser-btns button { white-space: normal; font-size: .8125rem; line-height: 1.15; padding: 6px 8px; min-height: 48px; }
}

/* Performance: kein Live-Blur hinter schwebenden Elementen (ruckelt beim Scrollen v. a. in Safari/Retina) */
.site-header .header-inner,
.chooser-btns { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.site-header .header-inner { background: rgba(255,255,255,.97) !important; transition: none; }
.chooser-btns { background: rgba(255,255,255,.97) !important; }

/* 404-Seite */
.notfound-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Schriftzug „Renovado“ im Header beim Runterscrollen ausblenden (nur Logo bleibt) */
.site-header .brand { transition: gap .3s var(--ease); }
.site-header .brand-word { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 8em; transition: max-width .3s var(--ease), opacity .2s var(--ease); }
.site-header.is-scrolled .brand { gap: 0; }
.site-header.is-scrolled .brand-word { max-width: 0; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .site-header .brand, .site-header .brand-word { transition: none; }
}

/* Vorher/Nachher im Hochformat (Fotos im Hochformat, z. B. Paket Reset) */
.ba.ba-tall { aspect-ratio: 4 / 5; width: min(100%, 64vh); justify-self: center; margin-inline: auto; }

/* Leerstandsrechner: Stadt-Auswahl – Optik wie der Paket-Selektor (.ba-tabs), kompakt oben rechts */
.calc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; }
.calc-city { display: inline-flex; gap: 3px; padding: 3px; margin-left: auto; background: var(--bg); border-radius: 999px; }
.calc-city button { min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font: 600 var(--fs-xs)/1 var(--font-body); color: var(--ink-muted); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .calc-city button:hover { color: var(--ink); } }
.calc-city button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: 0 4px 12px -4px rgba(18,40,72,.4); }
.calc-city button:focus-visible { outline: 3px solid var(--violet-200); outline-offset: 2px; }
@media (pointer: coarse) { .calc-city button { min-height: 38px; } }
@media (max-width: 420px) { .calc-city { margin-left: 0; } }

/* Touch: sofortige Reaktion, Feedback beim Antippen, kein Markieren von Button-Text */
a, button, [role="button"], label.chip-opt, .type-card { touch-action: manipulation; }
button, .btn, .chip-opt, .type-card { -webkit-user-select: none; user-select: none; }
.btn:active { transform: scale(.97); transition-duration: .1s; }
.audience-card:active { transform: scale(.98); transition-duration: .1s; }
.chooser-btns button:active { transform: scale(.97); transition-duration: .1s; }

/* Mobil kompakter */
.pack-more { display: none; }
@media (max-width: 640px) {
  /* Paketauswahl schwebt nicht mehr – nur noch eine schwebende Leiste (Navigation) */
  .chooser, .section-white .chooser { position: static; }
  /* Leistungslisten eingeklappt: erste 3 Punkte + Button */
  .pack-list.is-collapsible:not(.is-open) li:nth-child(n+4) { display: none; }
  .pack-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 0; border: 0; background: none; font: 600 var(--fs-small)/1.3 var(--font-body); color: var(--accent-text); cursor: pointer; }
  .pack-more svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
  .pack-list.is-open + .pack-more svg { transform: rotate(180deg); }
  /* Ablauf: weniger Luft zwischen den Schritten */
  .mw-steps li { padding: 16px 0; gap: 4px 12px; grid-template-columns: 32px 1fr auto; }
  /* Rolf-Foto kleiner, damit das Formular früher kommt */
  .kontakt-person img { aspect-ratio: 5 / 4; object-position: center 15%; }
  /* Referenzbilder flacher – drei Hochformate untereinander sind auf dem Handy über zwei Bildschirme */
  .ref-img { aspect-ratio: 4 / 3; }
}

/* Pakete: aufklappbare „Alles aus …“-Leistungen */
.pack-inherit-btn { border: 0; cursor: pointer; font-family: var(--font-body); line-height: 1.3; transition: background-color .2s var(--ease); }
.pack-inherit-btn .pack-inherit-chev { width: 12px; height: 12px; margin-left: -2px; transition: transform .25s var(--ease); }
.pack-inherit-btn[aria-expanded="true"] .pack-inherit-chev { transform: rotate(180deg); }
.pack-inherit-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .pack-inherit-btn:hover { background: color-mix(in srgb, var(--violet-100) 75%, var(--violet-200)); } }
.pack-inherit-btn:active { transform: scale(.97); transition-duration: .1s; }
.pack-inherited { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s var(--ease), opacity .25s var(--ease); }
.pack-inherited.is-open { grid-template-rows: 1fr; opacity: 1; }
.pack-inherited-inner { overflow: hidden; min-height: 0; }
.pack-inherited-label { margin: 2px 0 10px; font: 700 .7rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.pack-sub + .pack-inherited-label { margin-top: 18px; }
.pack-sub { color: var(--ink-muted); }
.pack-sub li::before { opacity: .55; }
.pack-inherited.is-open .pack-inherited-inner { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .pack-inherited, .pack-inherit-chev { transition: none; } }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px clamp(40px, 6vw, 96px); align-items: start; }
.faq-head { margin-bottom: 0; position: sticky; top: 110px; }
.faq-cta { margin-top: 28px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: var(--fs-h4); line-height: 1.4; margin: 0; }
.faq-icon { width: 30px; height: 30px; padding: 8px; flex: none; border-radius: 999px; background: var(--white); color: var(--accent-text); transition: transform .25s var(--ease), background-color .2s var(--ease); }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--violet-100); }
.faq-item p { margin: -6px 0 0; padding: 0 52px 24px 0; color: var(--ink-muted); font-size: var(--fs-small); line-height: 1.7; max-width: 62ch; }
.faq-item p strong { color: var(--ink); font-weight: 600; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
@media (hover: hover) and (pointer: fine) { .faq-item summary:hover h3 { color: var(--accent-text); } .faq-item summary:hover .faq-icon { background: var(--violet-100); } }
@media (max-width: 960px) {
  .faq { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .faq-cta { display: none; }
  .faq-item summary { padding: 18px 0; }
  .faq-item p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) { .faq-icon { transition: none; } }

/* Gewerke mobil: kompakte Liste statt hoher Kacheln */
@media (max-width: 640px) {
  .trades { grid-template-columns: 1fr; gap: 8px; }
  .trade, .trade:last-child { grid-column: auto; flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: var(--radius); }
  .trade-icon { width: 44px; height: 44px; padding: 10px; margin: 0; flex: none; background: var(--white); border-radius: 12px; }
  .trade h3 { hyphens: manual; overflow-wrap: normal; line-height: 1.35; }
}

/* Portfolio & Rahmenverträge – zwei gleichwertige Flächen: hell (Vorteile) und dunkel (Rahmenverträge) */
.pf { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.pf-panel, .pf-frame { border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; }
.pf-panel { background: var(--white); }
.pf-label { font: 700 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 20px; }
.pf-benefits { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; column-gap: clamp(24px, 3vw, 40px); }
.pf-benefit { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; align-content: start; padding: 24px 0; border-top: 1px solid var(--line); }
.pf-benefit:nth-last-child(-n+2) { padding-bottom: 0; }
.pf-icon { grid-row: span 2; width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--violet-100); fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pf-benefit h3 { font-size: var(--fs-h4); line-height: 1.35; margin: 1px 0 6px; hyphens: manual; text-wrap: balance; }
.pf-benefit p { color: var(--ink-muted); font-size: var(--fs-small); line-height: 1.6; text-wrap: pretty; }
.pf-frame { position: relative; overflow: hidden; background: var(--navy-900); color: var(--on-dark); }
.pf-frame::before { content: ""; position: absolute; width: 420px; height: 420px; right: -180px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(137,108,248,.32), transparent 65%); pointer-events: none; }
.pf-frame > * { position: relative; }
.pf-label-light { color: var(--on-dark-accent); }
.pf-frame h3 { color: #fff; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); line-height: 1.25; text-wrap: balance; }
.pf-frame-sub { color: var(--on-dark-muted); margin-top: 12px; font-size: var(--fs-small); }
.pf-checks { list-style: none; margin: 20px 0 28px; padding: 20px 0 0; border-top: 1px solid var(--line-dark); display: grid; gap: 12px; }
.pf-checks li { display: flex; gap: 12px; align-items: baseline; font-weight: 600; font-size: var(--fs-small); }
.pf-checks li::before { content: ""; width: 14px; height: 14px; flex: none; transform: translateY(2px); background: var(--on-dark-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.pf-cta { margin-top: auto; align-self: flex-start; }
.pf-cta:focus-visible { outline: 2px solid var(--on-dark-accent); outline-offset: 3px; }
@media (max-width: 1080px) {
  .pf { grid-template-columns: 1fr; }
  .pf-checks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pf-benefits { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .pf-benefit, .pf-benefit:nth-last-child(-n+2) { padding: 18px 0; }
  .pf-benefit:last-child { padding-bottom: 0; }
  .pf-checks { grid-template-columns: 1fr; }
  .pf-cta { align-self: stretch; }
}

/* ============ Kontaktseiten (QR-Code Visitenkarte) ============ */
.vc-section { background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%); padding: clamp(32px, 6vw, 80px) 0 var(--section-y); }
.vc-card { max-width: 480px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(28px, 5vw, 44px) clamp(20px, 5vw, 40px); text-align: center; }
.vc-photo { width: 136px; height: 136px; margin: 0 auto 18px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 5px var(--white), 0 0 0 6px var(--line); }
.vc-eyebrow { margin: 0 0 6px; }
.vc-name { margin: 0; font-size: var(--fs-h3-lg); font-weight: 800; line-height: 1.15; }
.vc-role { margin: 6px 0 0; color: var(--ink-muted); }
.vc-save { width: 100%; margin-top: 26px; }
.vc-list { list-style: none; margin: 22px 0 0; padding: 0; text-align: left; border-top: 1px solid var(--line); }
.vc-list li { border-bottom: 1px solid var(--line); }
.vc-list a { display: flex; align-items: center; gap: 14px; padding: 14px 4px; color: var(--ink); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.vc-label { display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--ink-muted); }
.vc-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--tint); color: var(--accent-text); }
.vc-ico svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .vc-list a:hover { color: var(--accent-text); } }
.vc-more { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.vc-more .btn { padding: 0 14px; }
@media (max-width: 380px) { .vc-more { grid-template-columns: 1fr; } }

/* Personen-Karten verlinken auf die Kontaktseiten */
.person-link { color: inherit; text-decoration: none; display: block; }
.person-name .person-link { display: inline; }
@media (hover: hover) and (pointer: fine) {
  .person-name .person-link:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* Referenzen: Fotogalerie (mehrere Bilder pro Projekt) und Video */
.ref-slides { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.ref-slides::-webkit-scrollbar { display: none; }
.ref-slides img { flex: 0 0 100%; scroll-snap-align: start; }
.ref-slides:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.ref-nav, .ref-play { position: absolute; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--ink); cursor: pointer; box-shadow: 0 2px 10px rgba(18,40,72,.18); transition: opacity .2s var(--ease), background .2s var(--ease); }
.ref-nav svg { width: 20px; height: 20px; }
.ref-nav { top: 50%; margin-top: -20px; }
.ref-prev { left: 12px; }
.ref-next { right: 12px; }
.ref-nav:disabled { opacity: 0; pointer-events: none; }
.ref-count { position: absolute; right: 14px; bottom: 14px; padding: 7px 10px; border-radius: 999px; background: rgba(18,40,72,.72); color: #fff; font: 600 .75rem/1 var(--font-body); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .ref-gallery .ref-nav { opacity: 0; }
  .ref-gallery:hover .ref-nav:not(:disabled), .ref-gallery .ref-nav:focus-visible { opacity: 1; }
  .ref-nav:hover, .ref-play:hover { background: #fff; }
  .ref:hover .ref-slides img, .ref:hover .ref-video video { transform: none; }
}
.ref-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref-play { right: 14px; bottom: 14px; }
.ref-play svg { width: 18px; height: 18px; }
.ref-play .i-pause, .ref-video.is-playing .ref-play .i-play { display: none; }
.ref-video.is-playing .ref-play .i-pause { display: block; }
@media (max-width: 960px) { .ref-video { aspect-ratio: 4 / 5; } }

/* ============ Landingpage Kapitalanleger (/kapitalanleger) ============ */
.lp-badge { position: absolute; left: 0; bottom: 0; max-width: 300px; display: grid; gap: 4px; padding: 18px 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); font-size: var(--fs-small); color: var(--ink-muted); }
.lp-badge-label { font: 700 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.lp-badge b { font-size: var(--fs-md); color: var(--ink); }
.lp-more { margin-top: 20px; }
.refs.refs-two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.section-white .faq-icon { background: var(--bg); }
.lp-contact h2 { margin-bottom: 14px; }
.lp-contact .person { margin-top: 8px; padding: 20px; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); }
.lp-contact .person-contact a { color: var(--on-dark); }
@media (max-width: 960px) { .lp-badge { position: relative; max-width: none; margin-top: -48px; margin-left: 12px; margin-right: 12px; } }
@media (max-width: 640px) {
  .refs.refs-two { grid-template-columns: 1fr; }
  .lp-hero .hero-actions .btn { width: 100%; }
}

/* Danke-Seite */
.danke-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--violet-100); color: var(--accent-text); }
.danke-icon svg { width: 30px; height: 30px; }
.danke-text { margin-top: 18px; color: var(--ink-muted); font-size: var(--fs-small); }
.danke-text a { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* Startseite: fünf Einstiegs-Karten */
@media (min-width: 1081px) { .audience-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; } .audience-card { padding: 22px 18px 18px; } }
@media (max-width: 1080px) and (min-width: 641px) { .audience-grid > li:last-child { grid-column: 1 / -1; } }

/* ============ Cookie-Einwilligung ============ */
.consent { position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin-left: auto; padding: 22px 22px 18px; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 24px 60px -20px rgba(18,40,72,.45); font-size: var(--fs-small); }
.consent[hidden] { display: none; }
.consent h2 { font-size: var(--fs-md); margin: 0 0 8px; }
.consent p { color: var(--ink-muted); margin: 0; }
.consent a { color: var(--accent-text); }
.consent-opts { display: grid; gap: 10px; margin: 16px 0 4px; }
.consent-opts[hidden] { display: none; }
.consent-opt { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.consent-opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent-strong); grid-row: span 2; }
.consent-opt b { font-weight: 600; }
.consent-opt small { color: var(--ink-muted); font-size: var(--fs-xs); }
.consent-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.consent-btns .btn { min-height: 44px; padding: 0 18px; font-size: var(--fs-small); flex: 1 1 auto; }
.consent-btns .btn[hidden] { display: none; }
.footer-col button.consent-open { padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-small); color: inherit; text-align: left; cursor: pointer; }
.footer-col button.consent-open[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .footer-col button.consent-open:hover { color: var(--ink); } }

/* Landingpage: zusätzliche Handlungsaufforderungen */
.lp-steps-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(28px, 3.5vw, 44px); }
.lp-steps-cta span { color: var(--ink-muted); font-size: var(--fs-small); }
.ref-cta { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: clamp(24px, 3vw, 34px); background: var(--ink); color: var(--on-dark); border-radius: var(--radius-lg); }
.ref-cta .eyebrow { margin-bottom: 0; }
.ref-cta h3 { color: #fff; margin: 0; font-size: var(--fs-h3); line-height: 1.25; }
.ref-cta p { color: var(--on-dark-muted); }
.ref-cta .btn { align-self: flex-start; margin-top: 8px; }
.lp-form-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-small); color: var(--on-dark-muted); }
.lp-form-trust li { display: flex; align-items: center; gap: 8px; }
.lp-form-trust li::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--on-dark-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Mobil: feste Aktionsleiste unten */
.lp-bar { display: none; }
@media (max-width: 640px) {
  .lp-bar { display: grid; grid-template-columns: auto 1fr; gap: 8px; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(18,40,72,.2); transform: translateY(110%); transition: transform .3s var(--ease); }
  .lp-bar.is-on { transform: none; }
  .lp-bar .btn { min-height: 48px; padding: 0 18px; }
  .lp-bar .btn svg { width: 18px; height: 18px; }
  .lp-page .site-footer { padding-bottom: 96px; }
  .lp-steps-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .lp-bar { transition: none; } }
/* Landingpage: Feinschliff */
.lp-pillars .lp-pillar-icon { grid-column: 1 / -1; width: 52px; height: 52px; padding: 11px; margin-bottom: 22px; border-radius: 14px; background: var(--white); fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lp-faq-phone { color: var(--ink); font-weight: 600; white-space: nowrap; }
@media (min-width: 961px) { .lp-contact { position: sticky; top: 110px; } }
.lp-pillars .pillar-no { display: none; }

/* Landingpage: Renovado-Check als Angebot */
.mc-label { font: 700 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 16px; }
.mc-sits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.mc-sit { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.mc-sit-icon { display: block; width: 48px; height: 48px; padding: 11px; margin-bottom: 18px; border-radius: 14px; background: var(--tint); fill: none; stroke: var(--accent-text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mc-sit h3 { font-size: var(--fs-md); margin: 0 0 6px; }
.mc-sit p { margin: 0; color: var(--ink-muted); font-size: var(--fs-small); }
.mc-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 370px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.mc-incl { padding: clamp(24px, 3vw, 36px); }
.mc-incl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.mc-incl-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.mc-incl-icon { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--violet-100); color: var(--accent-text); }
.mc-incl-list b { display: block; color: var(--ink); font-weight: 700; margin-bottom: 3px; }
.mc-incl-list span { color: var(--ink-muted); font-size: var(--fs-small); }
.mc-side { display: flex; flex-direction: column; justify-content: center; gap: 0; padding: clamp(24px, 3vw, 36px); background: var(--ink); color: var(--on-dark); }
.mc-cta { width: 100%; white-space: normal; text-align: center; line-height: 1.3; padding: 12px 20px; }
.mc-note { margin: 14px 0 0; font-size: var(--fs-xs); color: var(--on-dark-muted); text-align: center; }
.mc-flow { grid-column: 1 / -1; padding: clamp(22px, 2.6vw, 30px) clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); background: var(--bg); }
.mc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.mc-step { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.mc-step-no { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--violet-200); color: var(--accent-text); font: 700 .95rem/1 var(--font-display); }
.mc-step h3 { font-size: var(--fs-body); margin: 6px 0 4px; }
.mc-step p { margin: 0; color: var(--ink-muted); font-size: var(--fs-small); }
@media (max-width: 960px) {
  .mc-sits { grid-template-columns: 1fr; gap: 10px; }
  .mc-sit { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 18px; }
  .mc-sit-icon { grid-row: span 2; margin: 0; }
  .mc-panel { grid-template-columns: 1fr; }
  .mc-incl-list { grid-template-columns: 1fr; gap: 18px; }
  .mc-steps { grid-template-columns: 1fr; gap: 18px; }
}

/* Renovado-Check: Markenzeichen statt Preis */
.mc-mark { display: block; width: 44px; height: 47px; color: var(--on-dark-accent); margin: 0 0 20px; }
.ref-cta .mc-mark { margin: 0 0 auto; }
@media (max-width: 960px) { .ref-cta .mc-mark { margin-bottom: 16px; } }
.mc-title { margin: 0 0 24px; font: 800 var(--fs-h3)/1.15 var(--font-display); color: #fff; }
.mc-title span { display: block; margin-top: 10px; font: 400 var(--fs-small)/1.5 var(--font-body); color: var(--on-dark-muted); }

/* Referenzen: Handlungs-Karte mit Ansprechpartner + Vorteilen */
.ref-cta { justify-content: space-between; gap: 24px; }
.ref-cta-person { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line-dark); }
.ref-cta-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px rgba(164,143,251,.35); }
.ref-cta .ref-cta-person p { margin: 0; color: #fff; font-size: var(--fs-body); line-height: 1.3; }
.ref-cta-person b { display: block; font-weight: 700; }
.ref-cta-person span { display: block; font-size: var(--fs-small); color: var(--on-dark-muted); }
.ref-cta-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ref-cta-points li { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.ref-cta-points li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: rgba(164,143,251,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-6.5' fill='none' stroke='%23a48ffb' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.ref-cta-body { display: flex; flex-direction: column; gap: 12px; }
