/* ==========================================================================
   perspective Consulting – Stylesheet
   Schriften lokal gehostet (kein Abruf bei Google -> DSGVO)
   ========================================================================== */

@font-face {
  font-family: "Domine";
  src: url("../fonts/domine.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("../fonts/raleway.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --ink: #10222c;
  --text: #3d4b53;
  --muted: #6d787e;
  --petrol: #134e6b;
  --petrol-2: #1d6a8f;
  --petrol-soft: #e3ecf0;
  --deep: #0b2f42;
  --deep-2: #0f3a51;
  --taupe: #837a6a;
  --taupe-soft: #ece8e1;
  --line: rgba(16, 34, 44, .12);
  --line-strong: rgba(16, 34, 44, .22);
  --on-deep: #e9f0f3;
  --on-deep-muted: rgba(233, 240, 243, .66);
  --on-deep-line: rgba(233, 240, 243, .16);

  --serif: "Domine", Georgia, "Times New Roman", serif;
  --sans: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0;
}
p { margin: 0 0 1em; }

::selection { background: var(--petrol); color: #fff; }

:focus-visible {
  outline: 2px solid var(--petrol-2);
  outline-offset: 3px;
  border-radius: 6px;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section { padding: clamp(4.5rem, 10vw, 8.5rem) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
.section-head p { margin-top: 1.1rem; font-size: 1.12rem; color: var(--muted); max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 52px;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transform: translate(var(--bx), var(--by));
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .35s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--petrol); color: #fff; box-shadow: 0 10px 30px -12px rgba(19, 78, 107, .6); }
.btn-primary:hover { background: var(--deep); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.6); }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { background: var(--petrol-soft); }
.btn-sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .9rem; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}
.logo-word {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--petrol);
  letter-spacing: -.01em;
}
.logo-sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: .8rem;
  color: var(--taupe);
  margin-top: .12rem;
  letter-spacing: .02em;
}
.logo--light .logo-word { color: #fff; }
.logo--light .logo-sub { color: #c9c1b3; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  height: var(--header-h);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(246, 244, 240, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; gap: clamp(1.1rem, 2vw, 2rem); margin: 0; padding: 0; white-space: nowrap; }
.main-nav a {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  padding: .4rem 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--petrol);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.header-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: .75rem; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
}
.lang-switch a {
  padding: .4rem .62rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  color: var(--muted);
  text-decoration: none;
  transition: background .25s, color .25s;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="page"] { background: var(--ink); color: #fff; }

.burger {
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  z-index: 120;
}
.burger span {
  position: absolute;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform .4s var(--ease), opacity .3s;
}
.burger span:nth-child(1) { transform: translateY(-4px); }
.burger span:nth-child(2) { transform: translateY(4px); }
.menu-open .burger span:nth-child(1) { transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--bg);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.mobile-menu li {
  counter-increment: m;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.menu-open .mobile-menu li { opacity: 1; transform: none; }
.menu-open .mobile-menu li:nth-child(2) { transition-delay: .05s; }
.menu-open .mobile-menu li:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu li:nth-child(4) { transition-delay: .15s; }
.menu-open .mobile-menu li:nth-child(5) { transition-delay: .2s; }
.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  color: var(--ink);
  text-decoration: none;
}
.mobile-menu nav a::before {
  content: "0" counter(m);
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  color: var(--taupe);
  letter-spacing: .1em;
}
.mobile-menu-foot { display: grid; gap: 1rem; font-size: .95rem; }
.mobile-menu-foot a { color: var(--petrol); text-decoration: none; font-weight: 600; }

@media (min-width: 960px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .burger, .mobile-menu { display: none; }
}
/* Rechtsseiten auf kleinen Handys: nur Logo + Sprachumschalter */
@media (max-width: 479px) {
  .header-actions .btn-ghost { display: none; }
}
/* schmale Desktops: CTA ausblenden, damit die Navigation einzeilig bleibt (Hero hat eigenen CTA) */
@media (min-width: 960px) and (max-width: 1139px) {
  .header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 3rem) 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 30% 40%, var(--bg) 25%, rgba(246,244,240,0) 70%),
    linear-gradient(to bottom, var(--bg) 0%, rgba(246,244,240,0) 30%);
}
.hero-content { max-width: 880px; }
.hero h1 {
  font-size: clamp(2.6rem, 8.2vw, 5.6rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.025em;
}
.hero h1 .line { display: block; }

.rotator {
  position: relative;
  display: inline-block;
  vertical-align: top;
  color: var(--petrol);
  transition: width .6s var(--ease);
  white-space: nowrap;
}
.rotator-word {
  display: inline-block;
  transition: opacity .45s var(--ease), transform .55s var(--ease), filter .45s;
}
.rotator-word.out { opacity: 0; transform: translateY(-.35em); filter: blur(4px); }
.rotator-word.in { opacity: 0; transform: translateY(.35em); filter: blur(4px); }
.rotator-ring {
  position: absolute;
  left: -9%;
  top: -14%;
  width: 118%;
  height: 132%;
  max-width: none;
  overflow: visible;
  pointer-events: none;
}
.rotator-ring path {
  fill: none;
  stroke: var(--petrol);
  stroke-width: 2.2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.rotator-ring.draw path { animation: draw-ring 1.1s var(--ease) forwards; }
@keyframes draw-ring { to { stroke-dashoffset: 0; } }

.hero-lead {
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
  max-width: 600px;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--text);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

.hero-strip {
  margin-top: clamp(3.5rem, 8vh, 6rem);
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 1.6rem;
}
.hero-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
}
.hero-strip li { display: flex; align-items: center; gap: .7rem; font-size: .92rem; font-weight: 500; color: var(--ink); }
.hero-strip li span {
  font-size: .72rem;
  font-weight: 700;
  color: var(--taupe);
  letter-spacing: .08em;
}
@media (min-width: 760px) {
  .hero-strip ul { grid-template-columns: repeat(4, 1fr); }
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 1.6rem;
  display: none;
  align-items: center;
  gap: .7rem;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  writing-mode: vertical-rl;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--ink), transparent);
  animation: cue 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (min-width: 1100px) { .scroll-cue { display: inline-flex; } }

/* ---------- Leistungen ---------- */
.services { display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc-tab {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  cursor: pointer;
  position: relative;
}
.svc-num {
  font-size: .78rem;
  font-weight: 700;
  color: var(--taupe);
  letter-spacing: .08em;
  min-width: 1.8rem;
}
.svc-title { display: block; font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 600; color: var(--ink); line-height: 1.2; transition: color .3s; }
.svc-claim { display: block; font-size: .95rem; color: var(--muted); margin-top: .25rem; }
.svc-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  transition: background .35s var(--ease), border-color .35s, transform .45s var(--ease);
}
.svc-icon svg { width: 16px; height: 16px; stroke: var(--ink); transition: stroke .3s; }
.svc-tab[aria-expanded="true"] .svc-icon { background: var(--petrol); border-color: var(--petrol); transform: rotate(45deg); }
.svc-tab[aria-expanded="true"] .svc-icon svg { stroke: #fff; }
.svc-tab[aria-expanded="true"] .svc-title { color: var(--petrol); }
.svc-tab:hover .svc-title { color: var(--petrol); }

.svc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease);
}
.svc-panel > .svc-panel-inner { overflow: hidden; }
.svc-panel.is-active { grid-template-rows: 1fr; }
.svc-card {
  padding: .5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}
.svc-card h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .8rem; }
.svc-card .svc-kicker { display: none; }
.svc-card p { color: var(--text); }
.svc-viz {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 16 / 8;
  margin: 1.2rem 0 1.4rem;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.svc-viz svg { width: 100%; height: 100%; }
.svc-results { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: .65rem; }
.svc-results li { position: relative; padding-left: 1.7rem; font-size: .98rem; color: var(--ink); }
.svc-results li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 14px; height: 8px;
  border-left: 1.8px solid var(--petrol);
  border-bottom: 1.8px solid var(--petrol);
  transform: rotate(-45deg) translateY(-3px);
}
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.3rem 0 1.6rem; padding: 0; list-style: none; }
.tags li {
  font-size: .8rem;
  font-weight: 500;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: var(--taupe-soft);
  color: var(--ink);
}

@media (min-width: 960px) {
  .services {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    /* 6. Zeile (1fr) nimmt die Panel-Höhe auf, damit die Tabs kompakt bleiben */
    grid-template-rows: repeat(5, auto) 1fr;
    column-gap: clamp(2.5rem, 5vw, 5rem);
    border-top: 0;
    align-items: start;
  }
  .svc-tab { grid-column: 1; padding: 1.55rem 1rem 1.55rem 0; }
  .svc-tab:nth-of-type(1) { grid-row: 1; }
  .svc-tab:nth-of-type(2) { grid-row: 2; }
  .svc-tab:nth-of-type(3) { grid-row: 3; }
  .svc-tab:nth-of-type(4) { grid-row: 4; }
  .svc-tab:nth-of-type(5) { grid-row: 5; }
  .svc-tab:first-of-type { border-top: 1px solid var(--line); }
  .svc-tab::before {
    content: "";
    position: absolute;
    left: 0; bottom: -1px;
    height: 2px; width: 100%;
    background: var(--petrol);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .6s var(--ease);
  }
  .svc-tab[aria-expanded="true"]::before { transform: scaleX(1); }
  .svc-tab[aria-expanded="true"] .svc-icon { transform: none; }
  .svc-icon svg.i-plus { display: none; }
  .svc-icon svg.i-arrow { display: block !important; }
  .svc-panel {
    grid-column: 2;
    grid-row: 1 / span 6;
    display: none;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
  .svc-panel.is-active { display: block; animation: panel-in .6s var(--ease); }
  .svc-panel > .svc-panel-inner { overflow: visible; }
  .svc-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 2.2rem 2.4rem 2.4rem;
    box-shadow: 0 30px 60px -40px rgba(11, 47, 66, .35);
  }
  .svc-card .svc-kicker { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); margin-bottom: .7rem; }
  .svc-viz { background: var(--bg); margin-top: 1.5rem; }
}
.svc-icon svg.i-arrow { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Service-Visualisierungen */
.viz-stroke { fill: none; stroke: var(--petrol); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.viz-faint { fill: none; stroke: var(--taupe); stroke-width: 1.5; stroke-dasharray: 4 5; opacity: .55; }
.viz-node { fill: var(--surface); stroke: var(--petrol); stroke-width: 2; }
.viz-node-faint { fill: var(--surface); stroke: var(--taupe); stroke-width: 1.5; opacity: .55; }
.viz-fill { fill: var(--petrol); }
.viz-soft { fill: var(--petrol-soft); }
.viz-label { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .08em; fill: var(--muted); text-transform: uppercase; }

.svc-panel.is-active .draw { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); animation: dash 1.6s var(--ease) .2s forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.svc-panel.is-active .grow { transform-box: fill-box; transform-origin: bottom; animation: grow 1s var(--ease) both; }
@keyframes grow { from { transform: scaleY(0); } }
.svc-panel.is-active .pop { transform-box: fill-box; transform-origin: center; animation: pop .6s var(--ease) both; }
@keyframes pop { from { transform: scale(0); opacity: 0; } }
.svc-panel.is-active .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(2.6); opacity: 0; } }
.svc-panel.is-active .flow { stroke-dasharray: 3 9; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.svc-panel.is-active .fade { animation: fade .8s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Potenzialrechner ---------- */
.calc-section { background: var(--deep); color: var(--on-deep); overflow: hidden; }
.calc-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(29, 106, 143, .45), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(131, 122, 106, .18), transparent 40%);
  pointer-events: none;
}
.calc-section .wrap { position: relative; }
.calc-section h2, .calc-section h3 { color: #fff; }
.calc-section .eyebrow { color: #c9c1b3; }
.calc-section .section-head p { color: var(--on-deep-muted); }
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}
.calc-result .btn { white-space: normal; text-align: center; }
.calc-inputs { display: grid; gap: 2rem; }
.range-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: .98rem;
  color: var(--on-deep);
  margin-bottom: .9rem;
}
.range-field output {
  flex: none;
  min-width: 4.2ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: #fff;
  white-space: nowrap;
}
.range-field small { display: block; color: var(--on-deep-muted); font-size: .85rem; margin-top: .6rem; }
input[type="range"] {
  --p: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, #fff var(--p), var(--on-deep-line) var(--p));
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--on-deep-line); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: #fff; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  margin-top: -11px;
  border-radius: 50%;
  background: #fff;
  border: 6px solid var(--petrol-2);
  box-shadow: 0 0 0 6px rgba(255,255,255,.08);
  transition: box-shadow .25s;
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 6px solid var(--petrol-2);
}
input[type="range"]:active::-webkit-slider-thumb { box-shadow: 0 0 0 12px rgba(255,255,255,.12); }

.calc-result {
  container-type: inline-size;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--on-deep-line);
  border-radius: 24px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  backdrop-filter: blur(6px);
}
.calc-result .label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #c9c1b3; }
.calc-big {
  font-family: var(--serif);
  /* feste Zeilenhöhe + Schriftgröße relativ zur Kartenbreite: kein Umbruch, kein Springen */
  font-size: 1.6rem;
  font-size: min(2.6rem, 7cqi);
  white-space: nowrap;
  color: #fff;
  line-height: 1.2;
  margin: .6rem 0 .3rem;
  font-variant-numeric: tabular-nums;
}
.calc-sub { color: var(--on-deep-muted); font-size: .95rem; }
.calc-meter { margin: 1.6rem 0; height: 10px; border-radius: 10px; background: var(--on-deep-line); overflow: hidden; position: relative; }
.calc-meter span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #7fb6cf, #fff);
  transition: width .8s var(--ease);
}
.calc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 1px solid var(--on-deep-line); padding-top: 1.4rem; margin-bottom: 1.6rem; }
.calc-stats strong { display: block; white-space: nowrap; font-family: var(--serif); font-size: 1.45rem; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-stats span { font-size: .85rem; color: var(--on-deep-muted); }
.calc-note { font-size: .8rem; color: var(--on-deep-muted); margin: 1.2rem 0 0; }
@media (min-width: 960px) {
  .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); align-items: center; }
}

/* ---------- Vorgehen ---------- */
.steps {
  --p: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.2rem;
  position: relative;
  padding-left: 2.4rem;
}
.steps::before, .steps::after {
  content: "";
  position: absolute;
  left: 9px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--line);
}
.steps::after {
  background: var(--petrol);
  transform: scaleY(var(--p));
  transform-origin: top;
}
.step { position: relative; }
.step::before {
  content: "";
  position: absolute;
  left: calc(-2.4rem + 2px);
  top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-strong);
  z-index: 1;
  transition: border-color .4s, background .4s, transform .4s var(--ease);
}
.step.reached::before { border-color: var(--petrol); background: var(--petrol); transform: scale(1.15); }
.step-num { font-size: .78rem; font-weight: 700; color: var(--taupe); letter-spacing: .12em; }
.step h3 { font-size: 1.45rem; margin: .4rem 0 .6rem; }
.step p { color: var(--muted); font-size: 1rem; margin: 0; }
.step .badge {
  display: inline-block;
  margin-top: .8rem;
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--petrol-soft);
  color: var(--petrol);
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; padding-left: 0; padding-top: 3rem; }
  .steps::before, .steps::after { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 2px; }
  .steps::after { transform: scaleX(var(--p)); transform-origin: left; }
  .step::before { left: 0; top: -3rem; }
}

/* ---------- Referenzen ---------- */
.refs-section { padding-top: 0; }
.refs-box {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.refs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; }
.refs-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.refs-head p { color: var(--muted); margin: 0; max-width: 420px; font-size: .98rem; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  background: var(--bg); /* eigener Hintergrund im isolierten Layer, damit multiply die weißen Logo-Flächen ausblendet */
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: clamp(2.5rem, 6vw, 5rem); padding-right: clamp(2.5rem, 6vw, 5rem); }
.marquee-group img {
  height: clamp(72px, 9vw, 100px);
  width: auto;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.05);
  opacity: .62;
  transition: filter .4s, opacity .4s, transform .4s var(--ease);
}
.marquee-group img:hover { filter: none; opacity: 1; transform: scale(1.06); }
/* Querformat-Logos (ohne Weißraum) kleiner, damit sie optisch zu den quadratischen passen */
.marquee-group img.ref-wide { height: clamp(26px, 3vw, 36px); max-width: 200px; }
.marquee-group img.ref-wide[src*="kronenburg"] { height: clamp(44px, 5vw, 60px); } /* PNG mit Weißraum */
/* Referenzen ohne Logo-Datei als Schriftzug */
.ref-word {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  letter-spacing: -.01em;
  white-space: nowrap;
  color: var(--ink);
  opacity: .5;
  transition: opacity .4s;
}
.ref-word:hover { opacity: .9; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Über mich ---------- */
.about { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #e9e8e6;
  max-width: 460px;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease);
}
.about-photo:hover img { transform: scale(1.08); }
.about-photo figcaption {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: .9rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.about-photo figcaption strong { font-family: var(--serif); color: var(--ink); display: block; font-size: 1.05rem; line-height: 1.25; }
.about-photo figcaption span { font-size: .85rem; color: var(--muted); }
.li-btn {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--petrol);
  color: #fff;
  transition: background .3s, transform .3s var(--ease);
}
.li-btn:hover { background: var(--deep); transform: translateY(-2px); }
.li-btn svg { width: 18px; height: 18px; }
.about-text h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 1.3rem; }
.about-text > p { font-size: 1.08rem; }
.facts { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.facts li span:first-child { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe); padding-top: .2rem; }
.facts li span:last-child { color: var(--ink); }
@media (min-width: 900px) {
  .about { grid-template-columns: 5fr 7fr; }
}

/* ---------- Kontakt ---------- */
.contact-section { background: var(--surface); }
.contact { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
.contact-info h2 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); }
.contact-info > p { color: var(--muted); font-size: 1.1rem; margin-top: 1.1rem; max-width: 460px; }
.contact-list { list-style: none; margin: 2rem 0; padding: 0; display: grid; gap: .3rem; }
.contact-list a, .contact-list div {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}
.contact-list a:hover { color: var(--petrol); }
.contact-list .ci {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  background: var(--petrol-soft);
  display: grid; place-items: center;
  color: var(--petrol);
}
.contact-list .ci svg { width: 18px; height: 18px; }

.map-box {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg);
  border: 1px solid var(--line);
}
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: .8rem;
  padding: 1.5rem;
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, var(--line) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, var(--line) 27px 28px),
    var(--bg);
}
.map-placeholder p { margin: 0; font-size: .88rem; color: var(--muted); max-width: 340px; background: var(--bg); }
.map-placeholder a { color: var(--petrol); }

.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 1.45rem 1rem .55rem;
  transition: border-color .25s, background .25s, box-shadow .25s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field label {
  position: absolute;
  left: 1rem; top: 1.05rem;
  font-size: 1rem;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .25s var(--ease), color .25s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--petrol);
  box-shadow: 0 0 0 4px rgba(19, 78, 107, .1);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-.62rem) scale(.78);
  color: var(--petrol);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #b3412f; }

fieldset.topics { border: 0; margin: 0; padding: 0; }
fieldset.topics legend { font-size: .9rem; color: var(--muted); margin-bottom: .7rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background .25s, color .25s, border-color .25s, transform .2s;
}
.chip span::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background .25s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.chip input:checked + span::before { background: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--petrol-2); outline-offset: 2px; }
.chip:active span { transform: scale(.96); }

/* Bot-Schutz (Proof-of-Work, selbst gehostet) */
.human-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  transition: border-color .3s;
}
.hc-box { position: relative; display: flex; align-items: center; gap: .75rem; cursor: pointer; font-weight: 500; color: var(--ink); user-select: none; }
.hc-box input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.hc-mark {
  position: relative;
  width: 26px; height: 26px;
  flex: none;
  border-radius: 7px;
  border: 2px solid var(--line-strong);
  background: #fff;
  transition: background .25s, border-color .25s;
}
.hc-box:hover .hc-mark { border-color: var(--ink); }
.hc-box input:focus-visible + .hc-mark { outline: 2px solid var(--petrol-2); outline-offset: 2px; }
.hc-status { font-size: .8rem; color: var(--muted); }
.human-check[data-state="verifying"] .hc-mark {
  border-radius: 50%;
  border-color: var(--petrol);
  border-top-color: transparent;
  animation: hc-spin .8s linear infinite;
}
@keyframes hc-spin { to { transform: rotate(360deg); } }
.human-check[data-state="verified"] { border-color: var(--petrol); }
.human-check[data-state="verified"] .hc-mark { background: var(--petrol); border-color: var(--petrol); }
.human-check[data-state="verified"] .hc-mark::after {
  content: "";
  position: absolute;
  left: 7px; top: 3px;
  width: 7px; height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.human-check[data-state="verified"] .hc-status { color: var(--petrol); }
.human-check[data-state="error"] { border-color: #b3412f; }
.human-check[data-state="error"] .hc-status { color: #b3412f; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-legal { font-size: .85rem; color: var(--muted); margin: 0; }
.form-legal a { color: var(--petrol); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.form-status { font-size: .95rem; margin: 0; min-height: 1.5em; }
.form-status.ok { color: #1f7a4d; }
.form-status.err { color: #b3412f; }
.btn[disabled] { opacity: .6; cursor: progress; }

@media (min-width: 960px) {
  .contact { grid-template-columns: 5fr 7fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep-muted); padding: 1.6rem 0 calc(1.6rem + env(safe-area-inset-bottom)); font-size: .95rem; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; text-align: left; transition: color .25s; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; font-size: .85rem; }
.footer-brand { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.2rem; }
.logo--sm .logo-word { font-size: 1.15rem; }
.logo--sm .logo-sub { font-size: .6rem; margin-top: .05rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.footer-bottom nav a, .footer-bottom .link-btn { color: var(--on-deep-muted); text-decoration: none; }
.footer-bottom nav a:hover, .footer-bottom .link-btn:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Cookie-Banner ---------- */
.cc {
  position: fixed;
  z-index: 300;
  left: 0; right: 0; bottom: 0;
  padding: 0 .75rem .75rem;
  pointer-events: none;
}
.cc-box {
  pointer-events: auto;
  max-width: 460px;
  margin-left: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 30px 80px -20px rgba(11, 47, 66, .45);
  padding: 1.4rem 1.4rem 1.2rem;
  max-height: calc(100svh - 1.5rem);
  overflow-x: hidden;
  overflow-y: auto;
  animation: cc-in .6s var(--ease);
}
@keyframes cc-in { from { opacity: 0; transform: translateY(24px); } }
.cc h2 { font-size: 1.2rem; margin-bottom: .6rem; }
.cc p { font-size: .9rem; line-height: 1.55; margin-bottom: .9rem; }
.cc a { color: var(--petrol); }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .4rem; }
.cc-actions .btn { min-height: 46px; padding: .6rem 1rem; font-size: .9rem; white-space: normal; }
.cc-actions .btn-ghost { background: var(--surface); }
.cc-actions .cc-settings-btn { grid-column: 1 / -1; min-height: 40px; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); font-weight: 500; box-shadow: none; }
.cc-actions .cc-settings-btn:hover { color: var(--ink); background: none; }
.cc-cats { display: grid; gap: .6rem; margin: 1rem 0; }
.cc-cat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .85rem 1rem;
}
.cc-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cc-cat-head strong { color: var(--ink); font-size: .95rem; }
.cc-cat p { font-size: .82rem; margin: .4rem 0 0; color: var(--muted); }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch input:disabled { cursor: not-allowed; }
.switch span {
  position: absolute; inset: 0;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background .25s;
}
.switch span::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .3s var(--ease);
}
.switch input:checked + span { background: var(--petrol); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { opacity: .55; }
.switch input:focus-visible + span { outline: 2px solid var(--petrol-2); outline-offset: 2px; }
@media (min-width: 640px) { .cc { padding: 0 1.25rem 1.25rem; } }

/* ---------- Rechtliche Seiten ---------- */
.legal { padding: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(4rem, 8vw, 6rem); }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(1.9rem, 6vw, 3.6rem); margin-bottom: .6rem; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.legal .legal-meta { color: var(--muted); margin-bottom: 2.5rem; }
.legal h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin: 2.8rem 0 1rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.1rem; margin: 1.8rem 0 .6rem; }
.legal p, .legal li { font-size: 1rem; }
.legal ul, .legal ol { padding-left: 1.2rem; }
.legal li { margin-bottom: .45rem; }
.legal a { color: var(--petrol); word-break: break-word; }
.legal dl { display: grid; grid-template-columns: 1fr; gap: .2rem 1.5rem; margin: 0 0 1rem; }
.legal dt { font-weight: 600; color: var(--ink); }
.legal dd { margin: 0 0 .7rem; }
@media (min-width: 700px) {
  .legal dl { grid-template-columns: 15rem 1fr; }
  .legal dd { margin: 0 0 .4rem; }
}
.legal .clause { display: grid; grid-template-columns: 3rem 1fr; gap: .5rem; margin-bottom: .7rem; }
.legal .clause > span:first-child { color: var(--taupe); font-weight: 600; font-variant-numeric: tabular-nums; }
.legal-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.legal-nav a {
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  padding: .45rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.legal-nav a[aria-current="page"] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--petrol); text-decoration: none; font-weight: 600; margin-bottom: 2rem; font-size: .95rem; }
.back-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.back-link:hover svg { transform: translateX(-3px); }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; }
}
