/* rolandstolz.de – Grundstil. Werte zum Verschieben stehen als Variablen auf :root. */

@font-face {
  font-family: "Cabin";
  src: url("../fonts/cabin-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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: "Cabin";
  src: url("../fonts/cabin-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Farben */
  --night: #1B2037;          /* Einstieg, Wechsel, Kontakt */
  --night-deep: #131729;     /* Fußzeile */
  --night-line: rgba(200, 205, 220, .16);
  --on-night: #FFFFFF;
  --on-night-soft: #C8CDDC;  /* rgb(200,205,220) aus dem Partikel-Netz */
  --on-night-mute: #9EA6BE;
  --ink: #1B2A41;
  --text: #4B5A70;
  --text-mute: #6B778A;
  --ink-mute: #66738A;        /* zweite Überschriftenzeile, 4,8 : 1 auf Weiß */
  --paper: #FFFFFF;
  --soft: #F4F6F9;
  --line: #E3E7EE;
  --acc: #2F6FDB;            /* Buttons, Hervorhebungen */
  --acc-hover: #2560C4;
  --acc-text: #2459B8;       /* Linkfarbe, auch auf --soft lesbar */
  --acc-tint: #E6EEFB;
  --acc-on-night: #8DB2F2;
  --error: #B42318;

  /* Schrift */
  --font: "Cabin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --h1-size: clamp(2.35rem, 1.2rem + 4.6vw, 5rem);
  --h1-sub-size: clamp(1.25rem, .95rem + 1.2vw, 1.9rem);
  --h2-size: clamp(1.85rem, 1.25rem + 2.3vw, 3.1rem);
  --h3-size: clamp(1.15rem, 1.05rem + .4vw, 1.375rem);
  --body-size: 1.0625rem;
  --lead-size: clamp(1.125rem, 1.05rem + .35vw, 1.3rem);
  --small-size: .9375rem;
  --track-head: -.022em;
  --logo-track: .38em;

  /* Abstände und Maße */
  --gutter: clamp(1rem, .4rem + 3vw, 5rem);
  --max: 76rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --head-gap: clamp(2.25rem, 1.6rem + 2.4vw, 4rem);
  --nav-h: 4.5rem;
  --radius-card: 14px;
  --radius-btn: 8px;

  /* Einstieg */
  --hero-height: 70svh;
  --hero-min: 34rem;
  --hero-pad-right: 8vw;
  --hero-text-max: 38rem;
  --hero-shift-y: 24px;

  --shadow-card: 0 1px 2px rgba(27, 42, 65, .05), 0 8px 24px -12px rgba(27, 42, 65, .16);
  --shadow-lift: 0 2px 4px rgba(27, 42, 65, .06), 0 22px 44px -18px rgba(27, 42, 65, .28);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Aus dem Regler-Panel übernommen (2026-10-21): weitere Sperrung des Namenszugs ab Desktop-Breite */
@media (min-width: 961px) { :root { --logo-track: .6em; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--body-size);
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--acc);
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--acc); color: #fff; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
.on-night :focus-visible { outline-color: var(--acc-on-night); }
html { scrollbar-color: #B9C1CF var(--soft); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--paper); color: var(--ink); padding: .75rem 1rem; border-radius: var(--radius-btn);
  transition: top .2s;
}
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }
.section { padding: var(--section-y) 0; }

/* Zweiteilige Überschriften: erster Satz Tinte, zweiter grau */
.h2 {
  font-size: var(--h2-size);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: var(--track-head);
  color: var(--ink);
  text-wrap: balance;
  max-width: 22ch;
}
.h2 .mute { display: block; color: var(--ink-mute); font-weight: 500; }
.on-night .h2 { color: var(--on-night); }
.on-night .h2 .mute { color: var(--on-night-mute); }
.h3 { font-size: var(--h3-size); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.lead { font-size: var(--lead-size); line-height: 1.55; color: var(--text); }
p { max-width: 68ch; text-wrap: pretty; }

.link { color: var(--acc-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgba(36, 89, 184, .4); transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: currentColor; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .75rem 1.4rem;
  border-radius: var(--radius-btn); border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--acc); color: #fff; box-shadow: 0 1px 2px rgba(19, 23, 41, .22), 0 4px 12px -6px rgba(19, 23, 41, .45); }
.btn-primary:hover { background: var(--acc-hover); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(19, 23, 41, .22), 0 10px 22px -10px rgba(19, 23, 41, .5); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost-night { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(27, 32, 55, .35); }
.btn-ghost-night:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-ghost { color: var(--ink); border-color: #C9D0DC; background: var(--paper); }
.btn-ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Kopfzeile ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  color: #fff;
  transition: background-color .3s, color .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 2rem; }
.logo {
  font-size: 1.0625rem; font-weight: 500;
  letter-spacing: var(--logo-track); word-spacing: .3em;
  text-decoration: none; white-space: nowrap;
  margin-right: auto;
}
.nav-links { display: flex; gap: clamp(1rem, 2vw, 2rem); font-size: .9688rem; }
.nav-links a { text-decoration: none; opacity: .86; padding: .4rem 0; position: relative; transition: opacity .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.nav .btn { min-height: 2.6rem; padding: .55rem 1.1rem; font-size: .9375rem; }
.nav.is-solid {
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    background: none; border: 1px solid currentColor; border-radius: var(--radius-btn);
    min-height: 2.6rem; padding: 0 .9rem; cursor: pointer; font-size: .9375rem; font-weight: 500;
    border-color: rgba(255, 255, 255, .45);
  }
  .nav.is-solid .nav-toggle, .nav.is-open .nav-toggle { border-color: #C9D0DC; }
  .nav-toggle svg { width: 18px; height: 18px; }
  .nav.is-open { background: var(--paper); color: var(--ink); border-bottom-color: var(--line); }
  .nav-panel {
    position: fixed; inset: var(--nav-h) 0 auto; z-index: 49;
    background: var(--paper); color: var(--ink);
    padding: .5rem var(--gutter) 1.5rem;
    box-shadow: 0 24px 40px -24px rgba(27, 42, 65, .35);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .35s var(--ease-out), visibility 0s .35s;
  }
  .nav.is-open + .nav-panel { clip-path: inset(0 0 -40px 0); visibility: visible; transition: clip-path .4s var(--ease-out); }
  .nav-panel a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.125rem; font-weight: 500; }
  .nav-panel .btn { margin-top: 1.25rem; width: 100%; }
}
@media (min-width: 961px) { .nav-panel { display: none; } }

/* ---------- Einstieg ---------- */
.hero {
  position: relative;
  min-height: max(var(--hero-height), var(--hero-min)); /* wächst mit, wenn der Text mehr Platz braucht */
  display: flex; flex-direction: column;
  background: var(--night);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; transition: opacity .1s linear; }
.hero::after { /* sanfter Übergang zur Kante, damit der Text auch über dichtem Netz steht */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(27, 32, 55, 0) 35%, rgba(27, 32, 55, .55) 100%);
}
.hero-inner {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
  padding: calc(var(--nav-h) + var(--hero-shift-y)) var(--hero-pad-right) 2.5rem var(--gutter);
  text-align: right;
  pointer-events: none;
}
.hero-inner > * { max-width: min(var(--hero-text-max), 100%); }
.hero-inner a { pointer-events: auto; }
.hero h1 {
  font-size: var(--h1-size);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.028em;
  color: #fff;
}
.hero-sub {
  display: block;
  letter-spacing: .01em;
  margin-top: .9rem;
  font-size: var(--h1-sub-size);
  font-weight: 400;
  color: var(--on-night-soft);
  letter-spacing: .01em;
}
.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; }
.hero-proof {
  margin-top: 1.4rem;
  font-size: var(--small-size);
  color: var(--on-night-mute);
  letter-spacing: .02em;
}
.hero-proof span + span::before { content: "·"; margin: 0 .55em; color: rgba(200, 205, 220, .5); }
.hero-proof { display: flex; flex-wrap: wrap; justify-content: flex-end; row-gap: .2rem; }
.hero-proof span { white-space: nowrap; }
.hero-proof span.line-start::before { content: none; }

@media (max-width: 640px) {
  :root { --hero-pad-right: var(--gutter); --hero-min: 34rem; --hero-height: 74svh; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-cta .btn { width: 100%; }
}

/* ---------- Für wen ---------- */
.fit { padding: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) 0; } /* weißer Abstand auch unter dem Hinweis, vor den Leistungen */
.fit-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--head-gap) clamp(2rem, 5vw, 6rem); align-items: start; }
.fit-body { display: grid; gap: 1.25rem; padding-top: .4rem; }
.fit-key {
  font-size: var(--lead-size); line-height: 1.5; color: var(--ink); font-weight: 500;
  padding: 1.25rem 0 1.25rem 1.5rem;
  position: relative;
}
.fit-key::before { content: ""; position: absolute; left: 0; top: 1.4rem; bottom: 1.4rem; width: 1px; background: var(--acc); }
.fit-key strong { font-weight: 600; color: var(--acc-text); }
.fit-note {
  margin-top: .75rem;
  display: flex; gap: .85rem; align-items: flex-start;
  background: var(--soft); border-radius: 10px; padding: 1rem 1.15rem;
  font-size: var(--small-size); line-height: 1.5; color: var(--text);
}
.fit-note svg { flex: none; width: 20px; height: 20px; margin-top: .1rem; color: var(--acc-text); }
@media (max-width: 860px) { .fit-grid { grid-template-columns: 1fr; } }

/* ---------- Leistungen ---------- */
.services { background: var(--soft); }
.section-head { margin-bottom: var(--head-gap); }
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(12rem, auto);
  gap: 1rem;
}
.tile {
  position: relative;
  grid-column: span 3;
  background: var(--paper);
  border-radius: var(--radius-card);
  padding: 1.6rem 1.6rem 1.75rem;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
  overflow: hidden;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tile .icon { display: block; color: var(--acc-text); margin-bottom: auto; }
.tile .icon svg { width: 2rem; height: 2rem; }
/* gedeckte Flächen nach Langdock: Petrol, Sand, Graublau im Wechsel */
.tile:not(.tile-focus):not(.tile-cta) { box-shadow: none; }
.tile:not(.tile-cta):nth-child(6n+2), .tile:nth-child(6n+5) { background: #E5EEEF; }
.tile:nth-child(6n+3), .tile:nth-child(6n+6) { background: #F2EEE7; }
.tile:nth-child(6n+4), .tile:nth-child(6n+7) { background: #E7ECF4; }
.tile:not(.tile-focus):not(.tile-cta):hover { box-shadow: var(--shadow-card); }
.tile .h3 { margin-top: 1.75rem; }
.tile p { margin-top: .5rem; font-size: var(--small-size); line-height: 1.55; }
.tile-wide { grid-column: span 4; }
.tile-focus {
  grid-column: span 6; grid-row: span 2;
  background: var(--night); color: var(--on-night-soft);
  padding: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  box-shadow: 0 2px 4px rgba(19, 23, 41, .12), 0 30px 60px -30px rgba(19, 23, 41, .55);
}
.tile-focus .icon { color: var(--acc-on-night); margin-bottom: 0; }
.tile-focus .icon svg { width: 2.5rem; height: 2.5rem; }

/* eine Strichstärke für alle Symbole, unabhängig von ihrer Größe */
.icon svg *, .members svg *, .channel .ic svg *, .fit-note svg *, .btn svg *, .step-key svg *, .form-success .ok svg * { vector-effect: non-scaling-stroke; stroke-width: 1.5px; }
.tile-focus .h3 { margin-top: auto; padding-top: 2.5rem; color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); letter-spacing: -.02em; max-width: 16ch; }
.tile-focus p { font-size: 1.0625rem; color: var(--on-night-soft); margin-top: 1rem; max-width: 46ch; }
.tile-focus .tags { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tile-focus .tags li { font-size: .875rem; color: #E4E8F2; border: 1px solid rgba(200, 205, 220, .28); border-radius: 999px; padding: .3rem .8rem; }
.tile-focus .net { position: absolute; right: -2rem; top: -2rem; width: 62%; height: auto; opacity: .55; pointer-events: none; }
.tile-focus:hover { transform: translateY(-3px); }
.tile-cta { background: var(--acc-hover); color: #fff; box-shadow: var(--shadow-card); }
.tile-cta .icon { color: #fff; }
.tile-cta .h3 { color: #fff; font-size: var(--h3-size); line-height: 1.25; margin-top: 1.75rem; }
.tile-cta p { color: #fff; }
.tile-cta .tile-link { margin-top: 1rem; color: #fff; font-weight: 600; text-decoration-color: rgba(255, 255, 255, .5); }
.tile-cta .tile-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* ganze Kachel klickbar */
@media (max-width: 1080px) {
  .tile { grid-column: span 6; }
  .tile-focus { grid-column: span 12; grid-row: auto; min-height: 26rem; }
  .tile-wide { grid-column: span 6; }
  .tile-wide:last-child { grid-column: span 12; }
}
@media (max-width: 600px) {
  .bento { grid-auto-rows: auto; }
  .tile, .tile-wide, .tile-wide:last-child { grid-column: span 12; }
  .tile { min-height: 0; }
  .tile .h3 { margin-top: 1.25rem; }
  .tile-focus { min-height: 0; }
  .tile-focus .h3 { padding-top: 4rem; }
}

/* ---------- Wechsel ---------- */
.switch { background: var(--night); color: var(--on-night-soft); }
.switch-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: var(--head-gap); }
.switch-head p { max-width: 34ch; font-size: var(--lead-size); color: var(--on-night-soft); }
.steps-track { --progress: 0; position: relative; }
.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem;
  counter-reset: step;
}
.steps::before, .steps::after { /* Strecke und ihre Füllung */
  content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: 1.5rem; height: 2px; border-radius: 2px;
}
.steps::before { background: var(--night-line); }
.steps::after { background: var(--acc); transform-origin: left; transform: scaleX(var(--progress)); }
.step { position: relative; z-index: 1; }
.step-num {
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 600; font-size: 1.0625rem; font-variant-numeric: tabular-nums;
  background: var(--night); color: var(--on-night-soft);
  border: 2px solid rgba(200, 205, 220, .3);
  transition: background-color .4s, border-color .4s, color .4s;
}
.step.is-reached .step-num { background: var(--acc); border-color: var(--acc); color: #fff; animation: step-pop .55s var(--ease-out); }
@keyframes step-pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); box-shadow: 0 0 0 8px rgba(47, 111, 219, .22); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(47, 111, 219, 0); } }

/* Spitze der Linie: läuft mit dem Scrollen mit */
.steps-tip {
  position: absolute; z-index: 2; pointer-events: none;
  width: 10px; height: 10px; margin: -4px 0 0 -5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(47, 111, 219, .45);
  left: calc(1.5rem + (100% - 3rem) * var(--progress)); top: calc(1.5rem + 1px);
  opacity: 0; transition: opacity .3s;
}
.motion .steps-track.is-active .steps-tip { opacity: 1; }

/* Schritte erscheinen, wenn die Linie sie erreicht */
.motion .step > :not(.step-num) { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.motion .step.is-shown > :not(.step-num) { opacity: 1; transform: none; }
.motion .step.is-shown > p { transition-delay: .08s; }
.motion .step.is-shown > .step-key { transition-delay: .2s; }
.step .h3 { color: #fff; margin-top: 1.5rem; }
.step p { margin-top: .6rem; font-size: 1rem; color: var(--on-night-soft); }
.step-key { /* wichtigster Schritt für den Besucher: Übergabe übernimmt R. S. */
  margin-top: 1rem; display: inline-flex; align-items: center; gap: .45rem;
  font-size: .875rem; font-weight: 500; color: var(--acc-on-night);
}
.step-key svg { width: 16px; height: 16px; }
.switch-cta { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid var(--night-line); }
.switch-cta p { font-size: var(--small-size); color: var(--on-night-mute); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 2.25rem; padding-left: 0; }
  .steps::before, .steps::after { left: 1.5rem; right: auto; top: 1.5rem; bottom: 1.5rem; width: 2px; height: auto; transform: scaleY(var(--progress)); transform-origin: top; }
  .steps::before { transform: none; }
  .step { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1.25rem; }
  .step .h3 { margin-top: .55rem; }
  .step > :not(.step-num) { grid-column: 2; }
  .step-num { grid-row: span 3; }
  .steps-tip { left: 1.5rem; margin-left: -4px; top: calc(1.5rem + (100% - 3rem) * var(--progress)); }
}

/* ---------- Über mich ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--head-gap) clamp(2rem, 6vw, 7rem); align-items: start; }
.about-name {
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.9rem);
  font-weight: 500; line-height: 1.05; color: var(--ink);
  letter-spacing: .2em; word-spacing: .15em;
  text-transform: lowercase;
}
.about-role { margin-top: 1rem; font-size: var(--lead-size); color: var(--ink-mute); font-weight: 500; max-width: 24ch; text-wrap: balance; }
.about-facts { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.about-facts div { padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--line); }
.about-facts dt { font-size: .8125rem; color: var(--text-mute); }
.about-facts dd { margin-top: .2rem; font-weight: 600; color: var(--ink); font-size: 1.0625rem; }
.about-facts .since dd { color: var(--acc-text); }
.about-body { display: grid; gap: 1.25rem; padding-top: .5rem; }
.about-body .lead:first-child { color: var(--ink); }
.members { margin-top: 1rem; display: grid; gap: .75rem; }
.members li {
  display: flex; align-items: center; gap: .9rem;
  padding: .95rem 1.1rem; border-radius: 10px;
  background: var(--soft); color: var(--ink); font-weight: 500; font-size: 1rem;
}
.members svg { flex: none; width: 22px; height: 22px; color: var(--acc-text); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-name { letter-spacing: .14em; }
}

/* ---------- Region ---------- */
.region { background: linear-gradient(180deg, var(--acc-tint) 0%, #F1F5FC 100%); overflow: hidden; }
.region-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem clamp(2rem, 5vw, 6rem); align-items: center; }
.region-grid .lead { margin-top: 1.5rem; }
.region-grid .btn { margin-top: 2rem; }
.region-map { position: relative; width: 100%; aspect-ratio: 6 / 5; }
.region-map svg { width: 100%; height: 100%; overflow: visible; }
.region-map .lbl { font-family: var(--font); }
.region-map .hub-pulse { transform-origin: center; transform-box: fill-box; animation: pulse 3.2s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(3.2); opacity: 0; } }
.region-map .trails { display: none; } /* Schweif nur mit Bewegung, siehe unten */
.region-map .trails path { fill: none; stroke-dasharray: 0 2; stroke-dashoffset: 0; opacity: 0; }
.region-map .trail-glow { stroke-width: 11; stroke-opacity: .16; }
.region-map .trail-core { stroke-width: 5; stroke-opacity: .8; }
@media (max-width: 860px) {
  .region-grid { grid-template-columns: 1fr; }
  .region-map { aspect-ratio: 4 / 3; margin-top: 1rem; }
  .region-map .lbl { font-size: 26px; }
  .region-map .lbl-main { font-size: 30px; }
  .region-map .lbl-sub { font-size: 23px; }
  .region-map .town { font-size: 21px; }
}

/* ---------- Fragen ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--head-gap) clamp(2rem, 5vw, 6rem); align-items: start; }
.faq-side { position: sticky; top: calc(var(--nav-h) + 2rem); }
.faq-side p { margin-top: 1.25rem; font-size: 1rem; }
.faq-side .faq-contact { margin-top: .75rem; font-weight: 600; line-height: 1.8; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
  border-radius: 12px;
  margin: 0 -1.25rem; padding: 0 1.25rem;
  transition: background-color .35s var(--ease-out), border-color .35s;
}
.faq-item[open] { background: var(--soft); border-bottom-color: transparent; }
.faq-item:has(+ .faq-item[open]) { border-bottom-color: transparent; }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.35rem 0;
  font-size: 1.125rem; font-weight: 600; color: var(--ink); line-height: 1.35;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus {
  flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid #C9D0DC; color: var(--ink);
  transition: transform .45s var(--ease-out), border-color .25s, color .25s, background-color .25s;
}
.faq-item .plus svg { width: 14px; height: 14px; }
.faq-item summary:hover .plus { border-color: var(--ink); }
.faq-item[open] .plus { transform: rotate(180deg); border-color: #9AA5B6; background: var(--paper); }
/* kein blauer Rahmen um die Frage; Tastaturfokus als ruhige graue Fläche */
.faq-item summary:focus, .faq-item summary:focus-visible { outline: none; }
.faq-item:has(summary:focus-visible) { background: var(--soft); box-shadow: inset 0 0 0 1px #C9D0DC; }
.faq-item .answer { overflow: hidden; }
.faq-item .answer p { padding: 0 3.5rem 1.5rem 0; font-size: 1.0625rem; color: var(--text); }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .faq-item .answer p { padding-right: 0; }
  .faq-item { margin: 0 -1rem; padding: 0 1rem; }
}

/* ---------- Kontakt ---------- */
.contact { background: var(--night); color: var(--on-night-soft); padding-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(2rem, 5vw, 6rem); align-items: start; }
.contact-intro .lead { margin-top: 1.5rem; color: var(--on-night-soft); }
.channels { margin-top: 2.25rem; display: grid; gap: .75rem; }
.channel {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.1rem; border-radius: 12px;
  border: 1px solid var(--night-line); text-decoration: none;
  transition: border-color .25s, background-color .25s;
}
a.channel:hover { border-color: rgba(141, 178, 242, .6); background: rgba(255, 255, 255, .04); }
.channel .ic { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 10px; display: grid; place-items: center; background: rgba(141, 178, 242, .14); color: var(--acc-on-night); }
.channel .ic svg { width: 1.25rem; height: 1.25rem; }
.channel small { display: block; font-size: .8125rem; color: var(--on-night-mute); }
.channel span { color: #fff; font-weight: 500; font-size: 1.0625rem; }

.form-card {
  position: relative; z-index: 2;
  background: var(--paper); color: var(--text);
  border-radius: 18px;
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  box-shadow: 0 2px 6px rgba(19, 23, 41, .2), 0 40px 80px -40px rgba(0, 0, 0, .6);
  margin-bottom: calc(-1 * clamp(3rem, 2rem + 4vw, 6rem)); /* ragt über die Kante in die Fußzeile */
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem 1rem; }
.field { display: grid; gap: .4rem; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .9375rem; font-weight: 600; color: var(--ink); padding: 0; }
.field .opt { font-weight: 400; color: var(--text-mute); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 3rem;
  padding: .7rem .9rem;
  border: 1px solid #C9D0DC; border-radius: var(--radius-btn);
  background: var(--paper); color: var(--ink); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231B2A41' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 16px; padding-right: 2.5rem;
}
.field input::placeholder, .field textarea::placeholder { color: #6B778A; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9AA5B6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(47, 111, 219, .2); }
.field .hint { font-size: .8125rem; color: var(--text-mute); }
.field-error { display: none; font-size: .875rem; color: var(--error); font-weight: 500; }
.field.has-error .field-error { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field.has-error input:focus, .field.has-error select:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .15); }

fieldset.field { border: 0; padding: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.check-pill { position: relative; }
.check-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.check-pill span {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .9rem; border-radius: 999px;
  border: 1px solid #C9D0DC; font-size: .9375rem; color: var(--ink);
  transition: background-color .2s, border-color .2s, color .2s;
}
.check-pill span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #9AA5B6; transition: background-color .2s, border-color .2s; }
.check-pill input:hover + span { border-color: #9AA5B6; }
.check-pill input:checked + span { background: var(--acc-tint); border-color: var(--acc); }
.check-pill input:checked + span::before { background: var(--acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--acc); }
.check-pill input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.field.has-error .check-pill span { border-color: rgba(180, 35, 24, .5); }

.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .9375rem; line-height: 1.5; color: var(--text); font-weight: 400 !important; cursor: pointer; }
.consent input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--acc); cursor: pointer; }
.form-foot { margin-top: 1.5rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-foot .btn { min-width: 12rem; }
.form-status { font-size: .9375rem; }
.form-status.is-error { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
#form-wrap.is-sent form { display: none; }
.form-success { text-align: left; padding: 1rem 0; }
.form-success:focus { outline: none; }
.form-success .ok { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--acc-tint); color: var(--acc-text); margin-bottom: 1.25rem; }
.form-success .ok svg { width: 1.5rem; height: 1.5rem; }
.form-success p { margin-top: .6rem; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

/* ---------- Fußzeile ---------- */
.footer { background: var(--night-deep); color: var(--on-night-mute); padding: calc(clamp(3rem, 2rem + 4vw, 6rem) + 3.5rem) 0 2.5rem; font-size: var(--small-size); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--night-line); }
.footer .logo { color: #fff; font-size: 1.125rem; display: inline-block; }
.footer-grid p { margin-top: .6rem; line-height: 1.6; }
.footer h2 { font-size: .8125rem; font-weight: 600; color: var(--on-night-soft); margin-bottom: .75rem; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer li + li { margin-top: .35rem; }
.footer-base { padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-base nav { display: flex; gap: 1.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Rechtliche Seiten ---------- */
.legal-top { background: var(--night); color: #fff; padding: calc(var(--nav-h) + 4rem) 0 3.5rem; }
.legal-top h1 { font-size: var(--h2-size); font-weight: 600; letter-spacing: var(--track-head); line-height: 1.1; }
.legal-body { padding: 3.5rem 0 5rem; }
.legal-body p { margin-top: 1rem; }
.legal-body .pending { background: var(--soft); border-radius: 10px; padding: 1.25rem 1.4rem; color: var(--ink); }
.legal-text { max-width: 46rem; }
.legal-text h2 { margin-top: 2.5rem; font-size: var(--h3-size); font-weight: 600; color: var(--ink); letter-spacing: -.01em; line-height: 1.3; }
.legal-text h2:first-of-type { margin-top: 1.5rem; }
.legal-text h3 { margin-top: 2rem; font-size: 1.2rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.legal-text h4 { margin-top: 1.5rem; font-size: inherit; font-weight: 600; color: var(--ink); line-height: 1.4; }
.legal-text h2 + h3 { margin-top: 1.25rem; }
.legal-text h3 + h4 { margin-top: 1rem; }
.legal-text ul { margin-top: 1rem; display: grid; gap: .5rem; }
.legal-text li { position: relative; padding-left: 1.25rem; }
.legal-text li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--acc-text); }
.legal-note { font-size: var(--small-size); color: var(--text-mute); }
.fehlt { background: #FDECEA; color: var(--error); font-weight: 600; padding: .1em .35em; border-radius: 4px; }

/* ---------- Bewegung beim Scrollen ----------
   Nur aktiv, wenn main.js die Klasse .motion auf <html> setzt (JavaScript an).
   Ohne sie ist alles sofort sichtbar. */
.motion .rv-tile { opacity: 0; transform: translateY(var(--rv-dist, 22px)); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
.motion .rv-tile { --rv-dist: 28px; transition-delay: calc(var(--i, 0) * 70ms); }
.motion .is-in.rv-tile { opacity: 1; transform: none; }
.motion .tile.rv-tile.is-in { transition: opacity .7s var(--ease-out) calc(var(--i, 0) * 70ms), transform .9s var(--ease-out) calc(var(--i, 0) * 70ms), box-shadow .4s var(--ease-out); }
.motion .tile.rv-tile.is-in:hover { transform: translateY(-3px); transition-delay: 0s; }

.motion .region-map .draw-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease-out) calc(.15s + var(--i, 0) * 90ms); }
.motion .region-map .near-nodes circle, .motion .region-map .far-nodes circle { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .6s var(--ease-out); }
.motion .region-map .near-nodes circle { transition-delay: .35s; }
.motion .region-map .far-nodes circle { transition-delay: 1.05s; }
.motion .region-map .far-lines { opacity: 0; transition: opacity 1s var(--ease-out) .9s; }
.motion .region-map.is-in .draw-lines path { stroke-dashoffset: 0; }
.motion .region-map.is-in .near-nodes circle, .motion .region-map.is-in .far-nodes circle { transform: none; }
.motion .region-map.is-in .far-lines { opacity: 1; }
/* Schweif von Frankfurt (Oder) zu den Orten, danach erscheint der Ortsname (Wunsch der Person, 2026-10-23) */
.motion .region-map .trails { display: inline; }
/* wie eine Zündschnur: ein Punkt wandert gleichmäßig vom Kanzleisitz zum Ort */
.motion .region-map.is-in .trails path { animation: trail var(--dur, 2.5s) linear calc(.4s + var(--d, 0s)) forwards; }
@keyframes trail { 0% { stroke-dashoffset: 0; opacity: 1; } 94% { stroke-dashoffset: -1; opacity: 1; } 100% { stroke-dashoffset: -1; opacity: 0; } }
.motion .region-map .town { opacity: 0; transform: translateY(5px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(.4s + var(--d, 0s) + var(--dur, 2.5s) * .9); }
.motion .region-map.is-in .town { opacity: 1; transform: none; }

/* Keine Abschaltung bei „Bewegung reduzieren“: Entscheidung der Person, 2026-10-21 */
