/* ==========================================================================
   Cashflow Kollektiv
   Soft Structuralism: helles Kalkweiß, tiefes Tannengrün, Mint als Signal.
   Geist für alles, Instrument Serif kursiv für einzelne Betonungen.
   Karten mit Doppelrand (Schale + Kern), schwebende Nav mit Reiter-Umschalter.
   ========================================================================== */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/Geist-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/InstrumentSerif-italic.woff2") format("woff2");
}

:root {
  --bg: #f3f4f1;
  --bg-alt: #e9ebe6;
  --surface: #ffffff;
  --text: #0c1d1a;
  --text-2: #56625e;
  --line: rgba(12, 29, 26, 0.09);
  --line-strong: rgba(12, 29, 26, 0.18);
  --brand: #0f3d34;                 /* Tannengrün */
  --brand-2: #1c5c4d;
  --mint: #9ff0c8;                  /* Signalfarbe auf dunklem Grund */
  --accent: #17735c;                /* Links auf hellem Grund, 5,4:1 */
  --accent-soft: rgba(23, 115, 92, 0.1);
  --btn-bg: #0c1d1a;
  --btn-fg: #f3f4f1;
  --btn-bg-hover: #183330;
  --icon-bg: rgba(243, 244, 241, 0.14);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --shell: rgba(12, 29, 26, 0.035);
  --shell-line: rgba(12, 29, 26, 0.07);
  --highlight: rgba(255, 255, 255, 0.9);
  --shadow: 0 40px 80px -40px rgba(12, 45, 38, 0.22), 0 10px 24px -14px rgba(12, 45, 38, 0.1);
  --danger: #b23a2e;
  --success: #17735c;
  --dark: #0b1f1b;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --radius: 32px;
  --radius-sm: 14px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 80px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1412;
    --bg-alt: #0f1c19;
    --surface: #13221f;
    --text: #eaf1ee;
    --text-2: #93a39e;
    --line: rgba(234, 241, 238, 0.09);
    --line-strong: rgba(234, 241, 238, 0.2);
    --accent: #7fdcb3;
    --accent-soft: rgba(127, 220, 179, 0.12);
    --btn-bg: #eaf1ee;
    --btn-fg: #0a1412;
    --btn-bg-hover: #ffffff;
    --icon-bg: rgba(10, 20, 18, 0.1);
    --nav-bg: rgba(19, 34, 31, 0.72);
    --shell: rgba(234, 241, 238, 0.035);
    --shell-line: rgba(234, 241, 238, 0.08);
    --highlight: rgba(255, 255, 255, 0.05);
    --shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
    --danger: #f08a7e;
    --success: #7fdcb3;
  }
}

/* ---------- Basis ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 24px); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
::selection { background: var(--brand); color: var(--mint); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--text);
  padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

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

/* ---------- Typografie ---------- */

h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--text); text-wrap: balance; }

.display {
  font-size: clamp(2.9rem, 7.2vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 600;
}
.h2 {
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}
.h3 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.15; letter-spacing: -0.03em; }

/* kursive Serif-Betonung innerhalb von Überschriften */
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 44ch;
  margin: 0;
  text-wrap: pretty;
}
.body { color: var(--text-2); max-width: 62ch; margin: 0; text-wrap: pretty; }
.body + .body { margin-top: 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-2);
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Platzhalter-Markierung */
.ph {
  background: rgba(255, 196, 0, 0.18);
  border-bottom: 1px dashed #b88a00;
  border-radius: 4px;
  padding: 0 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Buttons ---------- */

.btn {
  --pad-y: 15px; --pad-x: 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit; font-size: 0.98rem; font-weight: 500; line-height: 1.2;
  white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background-color 500ms var(--ease), transform 500ms var(--ease), border-color 500ms var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-primary:not(.btn-sm) { padding-right: 7px; }
.btn-primary:not(.btn-sm)::after {
  content: "↗";
  display: grid; place-items: center;
  width: 38px; height: 38px; margin-block: -9px;
  border-radius: 50%;
  background: var(--icon-bg);
  font-size: 0.95rem; line-height: 1;
  transition: transform 600ms var(--ease);
}
.btn-primary:not(.btn-sm):hover::after { transform: translate(2px, -1px) scale(1.06); }

.btn-mint { background: var(--mint); color: var(--dark); }
.btn-mint:hover { background: #bff7dc; }
.btn-mint.btn-primary::after, .btn-mint::after { background: rgba(11, 31, 27, 0.08); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--shell); border-color: var(--text); }

.btn-sm { --pad-y: 9px; --pad-x: 18px; font-size: 0.88rem; }

.link-arrow {
  font-weight: 500; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 600ms var(--ease);
}
.link-arrow::after { content: "→"; transition: transform 600ms var(--ease); }
.link-arrow:hover { text-decoration: none; background-size: 0% 1px; background-position: 100% 100%; }
.link-arrow:hover::after { transform: translateX(4px); }

.actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }

/* ---------- Navigation ---------- */

.site-header { position: sticky; top: 0; z-index: 50; height: var(--nav-h); padding-top: 14px; }

.nav {
  position: relative;
  height: 64px;
  width: min(1180px, calc(100% - 24px));
  margin-inline: auto;
  padding: 0 8px 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-radius: 999px;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  box-shadow: inset 0 0 0 1px var(--shell-line), inset 0 1px 0 var(--highlight);
  transition: box-shadow 600ms var(--ease);
}
.site-header.is-scrolled .nav::before {
  box-shadow: inset 0 0 0 1px var(--shell-line), inset 0 1px 0 var(--highlight), 0 20px 40px -22px rgba(12, 45, 38, 0.3);
}

.brand {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--text); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.03em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--brand);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.brand-mark svg { width: 18px; height: 18px; }

/* Reiter-Umschalter Mandanten / Makler */
.switch {
  position: relative; z-index: 2;
  display: inline-flex; gap: 2px; padding: 4px;
  border-radius: 999px;
  background: var(--shell);
  box-shadow: inset 0 0 0 1px var(--shell-line);
}
.switch a {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-2);
  transition: background-color 500ms var(--ease), color 500ms var(--ease);
}
.switch a:hover { color: var(--text); text-decoration: none; }
.switch a[aria-current="page"] { background: var(--btn-bg); color: var(--btn-fg); }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--text); font-size: 0.9rem; opacity: 0.7; transition: opacity 400ms var(--ease); }
.nav-links a:not(.btn):hover { opacity: 1; text-decoration: none; }

.nav-toggle {
  display: none; position: relative; z-index: 2;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--shell); color: var(--text); cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 14px; width: 18px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform 600ms var(--ease);
}
.nav-toggle span:first-child { top: 19px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-links .hide-md { display: none; }
}
@media (max-width: 760px) {
  .nav { padding-left: 14px; gap: 8px; }
  .brand-text { display: none; }
  .switch a { padding: 8px 14px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 0;
    padding: 110px 28px 40px;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
    opacity: 0; visibility: hidden;
    transition: opacity 500ms var(--ease), visibility 0s linear 500ms;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transition: opacity 500ms var(--ease), visibility 0s; }
  .nav-links li {
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(40px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  }
  .nav-links .hide-md { display: block; }
  .nav-links.is-open li { opacity: 1; transform: none; }
  .nav-links.is-open li:nth-child(1) { transition-delay: 100ms; }
  .nav-links.is-open li:nth-child(2) { transition-delay: 150ms; }
  .nav-links.is-open li:nth-child(3) { transition-delay: 200ms; }
  .nav-links.is-open li:nth-child(4) { transition-delay: 250ms; }
  .nav-links.is-open li:nth-child(5) { transition-delay: 300ms; }
  .nav-links li:last-child { border-bottom: 0; padding-top: 28px; }
  .nav-links a:not(.btn) { display: block; padding: 16px 0; font-size: 2rem; font-weight: 600; letter-spacing: -0.04em; opacity: 1; }
  .nav-links .btn { width: 100%; --pad-y: 16px; }
}
@media (max-width: 380px) {
  .switch a { padding: 8px 11px; font-size: 0.82rem; }
}

/* ---------- Sektionen ---------- */

main { display: block; }
.section { padding-block: clamp(96px, 13vw, 176px); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #eaf1ee; }
.section-dark .h2, .section-dark .h3 { color: #f4f8f6; }
.section-dark .lead, .section-dark .body { color: rgba(234, 241, 238, 0.66); }
.section-dark .eyebrow { background: rgba(234, 241, 238, 0.06); box-shadow: inset 0 0 0 1px rgba(234, 241, 238, 0.12); color: rgba(234, 241, 238, 0.7); }
.section-dark .eyebrow::before { background: var(--mint); box-shadow: 0 0 0 4px rgba(159, 240, 200, 0.15); }

.section-head { margin-bottom: clamp(48px, 6vw, 88px); max-width: 780px; }
.section-head .h2 + .lead { margin-top: 24px; }
.section-head.split {
  max-width: none;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px 64px; align-items: end;
}
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */

.hero { position: relative; padding-block: clamp(48px, 7vw, 100px) clamp(96px, 12vw, 160px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; pointer-events: none;
  width: 80vw; max-width: 1000px; aspect-ratio: 1;
  right: -25vw; top: -30%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(159, 240, 200, 0.5), transparent);
  opacity: 0.6;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 5vw, 80px); align-items: center;
}
.hero .display { font-size: clamp(2.7rem, 5.6vw, 5.4rem); }
.hero .lead { margin-top: 32px; }
.hero .actions { margin-top: 44px; }
.hero-note { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.86rem; color: var(--text-2); }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note span::before { content: "✓"; color: var(--accent); font-weight: 600; }

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

/* ---------- Doppelrand ---------- */

.bezel {
  padding: 8px;
  border-radius: calc(var(--radius) + 8px);
  background: var(--shell);
  box-shadow: inset 0 0 0 1px var(--shell-line);
}
.bezel > .core {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 1px 0 var(--highlight), var(--shadow);
  overflow: hidden;
  height: 100%;
}
.section-dark .bezel { background: rgba(234, 241, 238, 0.04); box-shadow: inset 0 0 0 1px rgba(234, 241, 238, 0.08); }
.section-dark .bezel > .core { background: #102723; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }

/* ---------- Ärztehaus-Diagramm ---------- */

.hub .core {
  position: relative;
  aspect-ratio: 1;
  display: grid; place-items: center;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(159, 240, 200, 0.28), transparent 70%),
    var(--dark);
}
.hub-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-center {
  position: relative; z-index: 2;
  width: 40%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--mint); color: var(--dark);
  box-shadow: 0 0 0 10px rgba(159, 240, 200, 0.12), 0 0 80px rgba(159, 240, 200, 0.35);
  padding: 12px;
}
.hub-center strong { display: block; font-size: clamp(1rem, 1.8vw, 1.3rem); letter-spacing: -0.03em; line-height: 1.1; }
.hub-center small { display: block; font-size: 0.72rem; opacity: 0.7; margin-top: 4px; }
.hub-node {
  position: absolute; z-index: 2;
  left: calc(50% + var(--x)); top: calc(50% + var(--y));
  transform: translate(-50%, -50%);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(234, 241, 238, 0.08);
  box-shadow: inset 0 0 0 1px rgba(234, 241, 238, 0.16);
  color: #eaf1ee;
  font-size: clamp(0.7rem, 1.1vw, 0.84rem);
  font-weight: 500;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
@media (prefers-reduced-motion: no-preference) {
  .hub-node { animation: float 6s var(--ease) infinite alternate; animation-delay: calc(var(--d, 0) * -1.1s); }
  .hub-rings circle.spin { transform-origin: 50% 50%; animation: spin 60s linear infinite; }
}
@keyframes float { from { transform: translate(-50%, -50%); } to { transform: translate(-50%, calc(-50% - 6px)); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Bento ---------- */

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.bento > .bezel { grid-column: span 4; }
.bento > .span-8 { grid-column: span 8; }
.bento > .span-6 { grid-column: span 6; }
.bento > .span-12 { grid-column: 1 / -1; }
.card { padding: clamp(28px, 3.4vw, 44px); display: flex; flex-direction: column; min-height: 100%; }
.card .h3 { margin: 22px 0 12px; }
.card .body { font-size: 0.98rem; }
.card-foot { margin-top: auto; padding-top: 28px; }

.icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.card.is-dark {
  background: radial-gradient(90% 80% at 100% 0%, rgba(159, 240, 200, 0.22), transparent 60%), var(--dark);
  color: #eaf1ee;
}
.card.is-dark .h3 { color: #f4f8f6; }
.card.is-dark .body { color: rgba(234, 241, 238, 0.7); }
.card.is-dark .icon { background: rgba(159, 240, 200, 0.12); color: var(--mint); }

.stat-label { margin: 0; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mint); }
.card.is-dark .big-num { color: #f4f8f6; margin: 20px 0 14px; }
.card.is-dark > .body { font-size: 1.1rem; max-width: 30ch; }
.stat-list { list-style: none; margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(234, 241, 238, 0.12); display: grid; gap: 12px; }
.stat-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: rgba(234, 241, 238, 0.85); }
.stat-list li::before { content: "✓"; color: var(--mint); font-weight: 600; }

.big-num { font-size: clamp(3.5rem, 7vw, 6rem); font-weight: 600; letter-spacing: -0.06em; line-height: 0.9; }
.big-num .serif { font-size: 0.8em; }

@media (max-width: 960px) {
  .bento > .bezel, .bento > .span-8, .bento > .span-6 { grid-column: span 6; }
}
@media (max-width: 680px) {
  .bento { gap: 16px; }
  .bento > .bezel, .bento > .span-8, .bento > .span-6 { grid-column: 1 / -1; }
}

/* ---------- Vergleich ---------- */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare .card { gap: 0; }
.compare ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.compare li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 0.98rem; }
.compare li::before { content: "–"; color: var(--text-2); }
.compare .is-dark li::before { content: "✓"; color: var(--mint); font-weight: 600; }
.compare .label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-2); }
.compare .is-dark .label { color: var(--mint); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* ---------- Ablauf ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps .card { min-height: 280px; }
.steps .card::before {
  content: "0" counter(step);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em;
  color: var(--accent);
}
.steps .h3 { margin-top: auto; padding-top: 48px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps .card { min-height: 0; } }

/* ---------- Team ---------- */

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team .founder { grid-column: span 2; grid-row: span 2; }
.person { display: flex; flex-direction: column; height: 100%; }
.person-photo {
  aspect-ratio: 4 / 5;
  display: grid; place-items: center; text-align: center;
  font-size: 0.78rem; color: var(--text-2);
  background:
    radial-gradient(80% 60% at 70% 20%, rgba(159, 240, 200, 0.35), transparent 60%),
    var(--bg-alt);
}
.founder .person-photo {
  aspect-ratio: auto; flex: 1; min-height: 320px;
  color: rgba(234, 241, 238, 0.7);
  background: radial-gradient(80% 60% at 70% 15%, rgba(159, 240, 200, 0.3), transparent 60%), var(--dark);
}
.person-photo:has(img) { position: relative; overflow: hidden; }
.person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.person-body .tag { margin-right: 6px; }
.person:has(img) { overflow: hidden; }
.person-photo strong { display: block; font-size: 0.95rem; color: inherit; font-weight: 600; margin-bottom: 4px; }
.person-body { padding: 22px 24px 26px; }
.person-name { font-size: 1.15rem; letter-spacing: -0.03em; }
.founder .person-name { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.person-role { margin: 4px 0 0; font-size: 0.88rem; color: var(--text-2); }
.tag {
  display: inline-block; margin-top: 14px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.person.is-open .person-photo { border: 1.5px dashed var(--line-strong); background: transparent; margin: 8px; border-radius: calc(var(--radius) - 8px); }
@media (max-width: 960px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr 1fr; gap: 14px; } .person-body { padding: 16px 16px 20px; } }

/* ---------- FAQ ---------- */

.faq { max-width: 880px; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 500; letter-spacing: -0.025em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--shell); box-shadow: inset 0 0 0 1px var(--shell-line);
  font-weight: 400; font-size: 1.2rem;
  transition: transform 600ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 28px; color: var(--text-2); max-width: 64ch; }

/* ---------- Formular / CTA ---------- */

.cta-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(48px, 7vw, 104px); align-items: start; }
.cta-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 32px); }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } .cta-grid .section-head { position: static; } }

.contact-lines { list-style: none; margin: 40px 0 0; padding: 0; }
.contact-lines li { padding: 16px 0; border-top: 1px solid rgba(234, 241, 238, 0.12); }
.contact-lines span { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(234, 241, 238, 0.5); margin-bottom: 4px; }
.contact-lines a, .contact-lines strong { color: #f4f8f6; font-size: 1.15rem; font-weight: 500; }

.form { padding: clamp(24px, 4vw, 48px); }
.section-dark .form .field label { color: #eaf1ee; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.field-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.85rem; font-weight: 500; }
.field .optional { color: rgba(234, 241, 238, 0.5); font-weight: 400; }

.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 1rem;
  color: #eaf1ee;
  background: rgba(234, 241, 238, 0.05);
  border: 1px solid rgba(234, 241, 238, 0.14);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color 400ms var(--ease), box-shadow 400ms var(--ease), background-color 400ms var(--ease);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: rgba(234, 241, 238, 0.38); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--mint);
  background: rgba(234, 241, 238, 0.08);
  box-shadow: 0 0 0 4px rgba(159, 240, 200, 0.14);
}
.select {
  background-image: linear-gradient(45deg, transparent 50%, rgba(234,241,238,.6) 50%), linear-gradient(135deg, rgba(234,241,238,.6) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
.select option { color: #0c1d1a; }
.textarea { min-height: 130px; resize: vertical; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-group label { cursor: pointer; }
.chip-group input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-group span {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  font-size: 0.88rem; color: rgba(234, 241, 238, 0.8);
  box-shadow: inset 0 0 0 1px rgba(234, 241, 238, 0.16);
  transition: background-color 400ms var(--ease), color 400ms var(--ease);
}
.chip-group input:checked + span { background: var(--mint); color: var(--dark); box-shadow: none; }
.chip-group input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 0.85rem; color: rgba(234, 241, 238, 0.65); }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--mint); }
.check a { color: var(--mint); }
.form-foot { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-hint { font-size: 0.82rem; color: rgba(234, 241, 238, 0.5); }
.form-status { margin-top: 18px; font-size: 0.92rem; color: var(--mint); }
.form-status:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Laufband Gesellschaften ---------- */

.marquee {
  overflow: hidden;
  padding-block: 28px;
  border-block: 1px solid var(--line);
  -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; gap: 56px; width: max-content; }
.marquee-track span { font-size: 1.05rem; font-weight: 500; color: var(--text-2); letter-spacing: -0.02em; white-space: nowrap; }
.marquee-track span::before { content: "✦"; margin-right: 56px; color: var(--accent); opacity: 0.5; font-size: 0.7em; vertical-align: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 40s linear infinite; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Rechtstexte ---------- */

.legal { max-width: 760px; }
.legal h1 { margin-bottom: 16px; }
.legal h2 { font-size: 1.4rem; letter-spacing: -0.03em; margin: 48px 0 12px; }
.legal p, .legal li, .legal address { color: var(--text-2); font-style: normal; }
.legal .notice { background: rgba(255, 196, 0, 0.14); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 0.92rem; color: var(--text); margin: 24px 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: rgba(234, 241, 238, 0.6); padding-block: clamp(64px, 8vw, 112px) 40px; font-size: 0.88rem; }
.footer-claim { font-size: clamp(2.2rem, 6vw, 5rem); font-weight: 600; letter-spacing: -0.055em; line-height: 0.95; color: #f4f8f6; margin: 0 0 clamp(48px, 7vw, 96px); max-width: 16ch; }
.footer-claim .serif { color: var(--mint); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-top: 40px; border-top: 1px solid rgba(234, 241, 238, 0.12); }
.site-footer .brand { color: #f4f8f6; }
.footer-grid h2 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(234, 241, 238, 0.45); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: rgba(234, 241, 238, 0.8); }
.footer-grid a:hover { color: #fff; text-decoration: none; }
.footer-bottom { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.8rem; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- Einblenden ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0; transform: translateY(48px); filter: blur(8px);
    transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out), filter 1000ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
  .hero-copy > * { animation: rise 1100ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 90ms; }
  .hero-copy > :nth-child(3) { animation-delay: 180ms; }
  .hero-copy > :nth-child(4) { animation-delay: 270ms; }
  .hero-copy > :nth-child(5) { animation-delay: 360ms; }
  .hero-visual { animation: settle 1400ms var(--ease-out) 200ms both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(32px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes settle { from { opacity: 0; transform: scale(0.95) translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Logo (Ärztehaus-Kreis) ---------- */
img.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: none; box-shadow: none; display: block; }
