/* PluraDesk design tokens (VORLÄUFIG, Martin entscheidet). Source of truth: docs/brand/BRAND.md.
   Used by site/pluradesk and the desk admin theme (apps/desk maps its --pd-* variables onto these). */
:root {
  /* Farben: Bauplan & Meterstab */
  --pd-bauplan: #162238;      /* Grundstimme: Schrift auf hell, dunkle Flächen */
  --pd-nachtplan: #0e1726;    /* dunkelste Fläche */
  --pd-bauplan-2: #1f2c45;    /* Karten auf dunklem Grund */
  --pd-meterstab: #f2b21b;    /* einziger Akzent, nur als Fläche oder auf dunklem Grund */
  --pd-meterstab-hell: #fff6dc; /* Fläche für "wartet auf dich" */
  --pd-messband: #7a5300;     /* Gelb als Schrift/Linie auf hellem Grund (6,1:1) */
  --pd-planpapier: #f4f1ea;   /* heller Grund */
  --pd-weiss: #ffffff;        /* Karten auf hellem Grund */
  --pd-bleistift: #4a5468;    /* Nebentext auf hell (6,8:1) */
  --pd-kreide: #c9cfda;       /* Nebentext auf dunkel (10,2:1) */
  --pd-linie: #e2ded4;        /* Trennlinien, Rahmen */
  --pd-signal: #b4381f;       /* Fehler, überfällig (5,3:1 auf Papier) */
  --pd-erledigt: #2e6b3f;     /* erledigt, freigegeben (5,7:1 auf Papier) */

  /* Schrift */
  --pd-font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pd-font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
  --pd-display-stretch: 112%; /* Archivo halbbreit für Überschriften und Wortmarke */

  /* Form */
  --pd-radius-s: 6px;
  --pd-radius: 12px;
  --pd-radius-l: 20px;
  --pd-shadow: 0 1px 2px rgb(14 23 38 / 0.06), 0 8px 24px rgb(14 23 38 / 0.08);
  --pd-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
/* pluradesk.com — tokens are prepended at build time from public/brand/pluradesk-tokens.css. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/assets/archivo-latin-wdth-normal.woff2) format('woff2-variations'),
    url(/assets/archivo-latin-wdth-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-latin-500-normal.woff2) format('woff2');
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--pd-planpapier);
  color: var(--pd-bauplan);
  font-family: var(--pd-font);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  font-stretch: var(--pd-display-stretch);
  letter-spacing: -0.012em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: inherit;
}
[hidden] {
  display: none !important;
}
.mono {
  font-family: var(--pd-font-mono);
  font-feature-settings: 'tnum';
}
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--pd-meterstab);
  color: var(--pd-bauplan);
  padding: 10px 16px;
  border-radius: var(--pd-radius-s);
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}
:focus-visible {
  outline: 3px solid var(--pd-messband);
  outline-offset: 3px;
  border-radius: 4px;
}
.dunkel :focus-visible,
.top :focus-visible,
.fuss-zeile :focus-visible {
  outline-color: var(--pd-meterstab);
}

/* ---------- Farbflächen ---------- */
.dunkel {
  background: var(--pd-bauplan);
  color: var(--pd-planpapier);
}
.hell {
  background: var(--pd-planpapier);
}
.hell-weiss {
  background: var(--pd-weiss);
}
.gelb {
  background: var(--pd-meterstab);
  color: var(--pd-bauplan);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  font-stretch: 106%;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.2s var(--pd-ease),
    color 0.2s var(--pd-ease),
    border-color 0.2s var(--pd-ease),
    transform 0.35s var(--pd-ease);
  will-change: transform;
}
.btn-gelb {
  background: var(--pd-meterstab);
  color: var(--pd-bauplan);
}
.btn-gelb:hover {
  background: #ffc436;
}
.btn-linie {
  border-color: rgb(244 241 234 / 0.5);
  color: var(--pd-planpapier);
}
.btn-linie:hover {
  border-color: var(--pd-planpapier);
}
.btn-dunkel {
  background: var(--pd-bauplan);
  color: var(--pd-planpapier);
}
.btn-dunkel:hover {
  background: var(--pd-nachtplan);
}
.btn-klein {
  min-height: 44px;
  padding: 9px 18px;
  font-size: 15px;
}

/* ---------- Fortschritt ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--pd-meterstab);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

/* ---------- Kopfleiste ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(22 34 56 / 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: var(--pd-planpapier);
  border-bottom: 1px solid rgb(244 241 234 / 0.08);
}
.top-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand img {
  height: 36px;
  width: auto;
}
.nav {
  display: none;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
}
.nav a {
  text-decoration: none;
  color: var(--pd-kreide);
  padding: 8px 0;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--pd-meterstab);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s var(--pd-ease);
}
.nav a:hover {
  color: var(--pd-planpapier);
}
.nav a:hover::after {
  transform: scaleX(1);
}
.top .btn {
  margin-left: auto;
}
/* Small screens: one button opens the same navigation as a panel under the header. */
.nav-knopf {
  margin-left: auto;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid rgb(244 241 234 / 0.5);
  border-radius: 999px;
  background: transparent;
  color: var(--pd-planpapier);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}
.nav-knopf::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}
.top.offen .nav-knopf::after {
  transform: translateY(1px) rotate(225deg);
}
.nav-cta {
  display: none;
}
.top .nav-knopf + .nav + .btn {
  margin-left: 12px;
}
@media (max-width: 899px) {
  .top.offen .nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 8px 16px 20px;
    background: var(--pd-bauplan);
    border-bottom: 1px solid rgb(244 241 234 / 0.12);
    box-shadow: 0 18px 30px rgb(14 23 38 / 0.35);
  }
  .top.offen .nav a {
    font-size: 18px;
    padding: 14px 4px;
    border-bottom: 1px solid rgb(244 241 234 / 0.1);
  }
  .top.offen .nav a::after {
    display: none;
  }
  .top.offen .nav .nav-cta {
    display: block;
    margin-top: 14px;
    border: 0;
    border-radius: 999px;
    background: var(--pd-meterstab);
    color: var(--pd-bauplan);
    text-align: center;
    font-weight: 700;
  }
}
@media (min-width: 900px) {
  .nav {
    display: flex;
  }
  .nav-knopf {
    display: none;
  }
  .top .btn {
    margin-left: 8px;
  }
}
@media (max-width: 520px) {
  .top .btn {
    display: none;
  }
  .brand img {
    height: 32px;
  }
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pd-meterstab);
  margin-bottom: 18px;
}
.eyebrow-dunkel {
  color: var(--pd-messband);
}
.punkt {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pd-meterstab);
  box-shadow: 0 0 0 0 rgb(242 178 27 / 0.6);
  animation: puls 2.4s var(--pd-ease) infinite;
}
@keyframes puls {
  70% {
    box-shadow: 0 0 0 10px rgb(242 178 27 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(242 178 27 / 0);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 9vw, 112px) 0 clamp(72px, 10vw, 128px);
}
.planraster {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(244 241 234 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(244 241 234 / 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 64px;
  }
}
.hero h1 {
  font-size: clamp(40px, 5.9vw, 74px);
  font-weight: 780;
  line-height: 1.03;
  margin-bottom: 26px;
}
.hero .lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--pd-kreide);
  max-width: 34em;
  margin-bottom: 34px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.fuss {
  font-size: 14px;
  color: var(--pd-kreide);
}

.flagge {
  display: inline-block;
  width: 1.35em;
  height: 0.81em;
  margin-right: 0.5em;
  vertical-align: -0.08em;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.25);
}

.flaggen-zeile {
  font-size: 14px;
  color: var(--pd-kreide);
}
.worte .wort {
  display: inline-block;
  white-space: pre;
}
.js .worte .wort {
  opacity: 0;
  transform: translateY(0.45em);
  transition:
    opacity 0.7s var(--pd-ease),
    transform 0.9s var(--pd-ease);
  transition-delay: calc(var(--i) * 70ms + 120ms);
}
.js .worte.an .wort {
  opacity: 1;
  transform: none;
}

/* Hero-Karte */
.hero-karte {
  position: relative;
  background: var(--pd-weiss);
  color: var(--pd-bauplan);
  border-radius: var(--pd-radius-l);
  padding: 26px 24px 18px;
  box-shadow:
    0 30px 80px rgb(4 9 18 / 0.45),
    0 2px 0 rgb(255 255 255 / 0.5) inset;
  max-width: 500px;
  width: 100%;
  justify-self: center;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--pd-ease);
}
.hero-zeichen {
  position: absolute;
  top: -26px;
  right: 22px;
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 6px 12px rgb(4 9 18 / 0.35));
}
.hero-zeichen .kachel {
  fill: var(--pd-bauplan);
}
.hero-zeichen .p-koerper,
.hero-zeichen .s1,
.platz-p .p-koerper,
.platz-p .s1 {
  fill: currentColor;
}
.hero-zeichen .p-koerper,
.hero-zeichen .s1 {
  fill: var(--pd-planpapier);
}
.hero-zeichen .s2,
.platz-p .s2 {
  fill: var(--pd-meterstab);
}
/* The P leans in, then the foot slices land one after another, the yellow one last. */
.js .hero-zeichen .p-koerper,
.js .hero-zeichen .s {
  opacity: 0;
  transform: translateX(-16px);
}
.js .hero-karte.an .hero-zeichen .p-koerper,
.js .hero-karte.an .hero-zeichen .s {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.3s var(--pd-ease),
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-karte.an .hero-zeichen .p-koerper { transition-delay: 0.3s; }
.hero-karte.an .hero-zeichen .s1 { transition-delay: 0.62s; }
.hero-karte.an .hero-zeichen .s2 { transition-delay: 0.84s; }
.karte-kopf {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
}
.karte-datum {
  font-size: 13px;
  color: var(--pd-bleistift);
}
.karte-gruss {
  font-size: 24px;
  font-weight: 750;
  font-stretch: 110%;
}
.karte-sub {
  font-size: 15px;
  color: var(--pd-bleistift);
}
.warte {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.w {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--pd-linie);
  border-radius: var(--pd-radius);
  background: var(--pd-weiss);
}
.w-gelb {
  background: var(--pd-meterstab-hell);
  border-color: var(--pd-meterstab);
}
.w-art {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pd-bleistift);
}
.w-gelb .w-art {
  color: var(--pd-messband);
}
.w-titel {
  font-weight: 650;
  font-size: 16px;
  line-height: 1.3;
}
.w-meta {
  font-size: 13px;
  color: var(--pd-bleistift);
}
.w-aktion {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.mini {
  min-height: 40px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--pd-bauplan);
  background: transparent;
  color: var(--pd-bauplan);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s var(--pd-ease), background-color 0.2s;
}
.mini:active {
  transform: scale(0.96);
}
.mini-gelb {
  background: var(--pd-bauplan);
  color: var(--pd-planpapier);
}
.mini-gelb:hover {
  background: var(--pd-nachtplan);
}
.w-done {
  margin-top: 8px;
  font-size: 14px;
  color: var(--pd-erledigt);
  animation: einblenden 0.5s var(--pd-ease);
}
.karte-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--pd-bleistift);
  text-align: right;
}
.js .hero-karte .w {
  opacity: 0;
  transform: translateY(14px);
}
.js .hero-karte.an .w {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s var(--pd-ease),
    transform 0.7s var(--pd-ease);
}
.hero-karte.an .w:nth-child(1) { transition-delay: 0.9s; }
.hero-karte.an .w:nth-child(2) { transition-delay: 1.15s; }
.hero-karte.an .w:nth-child(3) { transition-delay: 1.4s; }
@keyframes einblenden {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ---------- Meterstab-Kanten zwischen Abschnitten ---------- */
.kante {
  position: absolute;
  left: 0;
  right: 0;
  height: 16px;
  pointer-events: none;
}
.kante-unten {
  bottom: 0;
  background:
    repeating-linear-gradient(90deg, var(--pd-meterstab) 0 2px, transparent 2px 12px) 0 0 / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, var(--pd-meterstab) 0 2px, transparent 2px 60px) 0 0 / 100% 16px no-repeat;
  background-color: transparent;
}
.kante-unten::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 0;
}
.kante-oben {
  top: 0;
  background:
    repeating-linear-gradient(90deg, var(--pd-meterstab) 0 2px, transparent 2px 12px) 0 0 / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, var(--pd-meterstab) 0 2px, transparent 2px 60px) 0 0 / 100% 16px no-repeat;
}
.kante-unten-dunkel {
  top: 0;
  background:
    repeating-linear-gradient(90deg, var(--pd-bauplan) 0 2px, transparent 2px 12px) 0 0 / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, var(--pd-bauplan) 0 2px, transparent 2px 60px) 0 0 / 100% 16px no-repeat;
}
.hero .kante-unten {
  transform: translateY(0);
}
section {
  position: relative;
}
.hero .kante-unten {
  background-position: 0 100%, 0 100%;
}
.js .kante {
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 1.4s var(--pd-ease);
}
.js .kante.in {
  transform: scaleX(1);
}

/* ---------- Abschnittsköpfe ---------- */
.section-lead h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 760;
  margin-bottom: 20px;
}
.section-lead p {
  font-size: 18px;
  color: #2a3348;
  max-width: 36em;
}
.section-lead p + p {
  margin-top: 14px;
}
.dunkel .section-lead p {
  color: var(--pd-kreide);
}
.schmal {
  max-width: 760px;
  margin-bottom: 48px;
}

/* ---------- Problem ---------- */
.problem {
  padding: clamp(80px, 11vw, 140px) 0 clamp(40px, 6vw, 72px);
}
.problem-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 980px) {
  .problem-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
  }
}
.wirrwarr {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 0.86;
  justify-self: center;
}
.chip {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  transform: translate(var(--x), var(--y)) rotate(var(--r));
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--pd-weiss);
  border: 1px solid var(--pd-linie);
  box-shadow: var(--pd-shadow);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    transform 0.9s var(--pd-ease),
    opacity 0.6s var(--pd-ease);
}
.chip:nth-of-type(2n) {
  background: #fbfaf6;
}
.ein-platz {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: flex;
  align-items: center;
  padding: 14px 22px;
  border-radius: 16px;
  background: var(--pd-bauplan);
  color: var(--pd-planpapier);
  font-size: 22px;
  font-weight: 760;
  font-stretch: 110%;
  white-space: nowrap;
  box-shadow: 0 18px 50px rgb(14 23 38 / 0.25);
  transition:
    transform 0.7s cubic-bezier(0.34, 1.4, 0.64, 1),
    opacity 0.4s;
}
.platz-p {
  display: inline-block;
  /* The mark stands in for the P: a touch above cap height (0.686em) so its strokes carry as much
     weight as the heavy letters around it; it still sits on the baseline. */
  height: 0.76em;
  width: 0.745em;
  margin: 0 0.02em 0 0.2em;
  vertical-align: baseline;
  overflow: visible;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.js .wirrwarr .ein-platz {
  opacity: 0;
  transform: scale(0.6);
}
.js .wirrwarr.gesammelt .chip {
  transform: translate(0, 0) rotate(0deg) scale(0.5);
  opacity: 0;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .wirrwarr.gesammelt .ein-platz {
  opacity: 1;
  transform: none;
  transition-delay: 0.75s;
}

/* ---------- Wortwechsel ---------- */
.wechsel {
  padding: clamp(32px, 6vw, 64px) 0 clamp(56px, 8vw, 96px);
}
.wechsel-satz {
  font-size: clamp(30px, 5.6vw, 68px);
  font-weight: 780;
  font-stretch: 112%;
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-align: center;
}
.wechsel-satz .neu,
.wechsel-satz .alt {
  display: inline-block;
  transition:
    opacity 0.45s var(--pd-ease),
    transform 0.55s var(--pd-ease),
    filter 0.45s;
}
.wechsel-satz .neu {
  background: linear-gradient(transparent 62%, var(--pd-meterstab) 62% 90%, transparent 90%);
  padding: 0 0.08em;
}
.wechsel-satz .alt {
  color: var(--pd-bleistift);
  text-decoration: line-through;
  text-decoration-thickness: 0.07em;
  text-decoration-color: var(--pd-signal);
  font-weight: 500;
}
.wechsel-satz .raus {
  opacity: 0;
  transform: translateY(-0.35em);
  filter: blur(4px);
}
.wechsel-satz .rein {
  opacity: 0;
  transform: translateY(0.35em);
  transition: none;
}

/* ---------- Rundgang ---------- */
.rundgang {
  padding: clamp(40px, 6vw, 72px) 0 clamp(80px, 10vw, 128px);
}
.tour {
  display: grid;
  gap: 28px;
}
.tour-reiter {
  display: none;
}
.tour-schritte {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.schritt-nr {
  display: inline-block;
  font-size: 13px;
  color: var(--pd-messband);
  margin-bottom: 8px;
}
.schritt h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 740;
  margin-bottom: 10px;
}
.schritt p {
  color: #2a3348;
  max-width: 30em;
}
.tour-hinweis {
  margin-top: 12px;
  font-size: 13px;
  color: var(--pd-bleistift);
  text-align: center;
}

/* Lineal = Fortschritt */
.lineal {
  position: relative;
  height: 14px;
  margin-bottom: 14px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, rgb(22 34 56 / 0.35) 0 1px, transparent 1px 10px) 0 0 / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, rgb(22 34 56 / 0.55) 0 1.5px, transparent 1.5px 50px) 0 0 / 100% 11px no-repeat,
    var(--pd-weiss);
  border: 1px solid var(--pd-linie);
  overflow: hidden;
}
.lineal-fuell {
  position: absolute;
  inset: 0;
  background: var(--pd-meterstab);
  mix-blend-mode: multiply;
  transform-origin: 0 50%;
  transform: scaleX(var(--f, 0.1667));
  transition: transform 0.8s var(--pd-ease);
}

/* Bildschirm */
.screen-rahmen {
  container-type: inline-size;
  background: var(--pd-weiss);
  border-radius: 16px;
  border: 1px solid var(--pd-linie);
  box-shadow: 0 24px 64px rgb(14 23 38 / 0.14);
  overflow: hidden;
  font-size: clamp(10px, 2.3cqi, 15px);
}
.desk-kopf {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.75em 1.1em;
  background: var(--pd-bauplan);
  color: var(--pd-planpapier);
  font-size: 0.9em;
}
.desk-kopf img {
  width: 1.4em;
  height: 1.4em;
}
.desk-name {
  font-weight: 700;
}
.desk-nav {
  display: flex;
  gap: 1.2em;
  margin-left: 1em;
  color: var(--pd-kreide);
}
.desk-nav i {
  font-style: normal;
  position: relative;
  transition: color 0.3s;
}
.desk-nav i.an {
  color: var(--pd-planpapier);
}
.desk-nav i.an::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.55em;
  height: 2px;
  background: var(--pd-meterstab);
}
.desk-avatar {
  margin-left: auto;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--pd-meterstab);
  color: var(--pd-bauplan);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85em;
}
.screens {
  position: relative;
  background: #f7f5f0;
}
.screen {
  margin: 0;
  padding: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.screen + .screen {
  border-top: 1px dashed var(--pd-linie);
}

/* JS: Bühne mit übereinanderliegenden Screens */
.js .screens {
  display: grid;
}
.js .screen {
  grid-area: 1 / 1;
  border-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 0.5s var(--pd-ease),
    transform 0.7s var(--pd-ease),
    visibility 0s linear 0.5s;
}
.js .screen.aktiv {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.55s var(--pd-ease) 0.08s,
    transform 0.75s var(--pd-ease) 0.08s,
    visibility 0s;
}
.js .screen > *,
.js .screen .kachel,
.js .screen .zeile,
.js .screen .o,
.js .screen .akte-box {
  transition:
    opacity 0.5s var(--pd-ease),
    transform 0.6s var(--pd-ease);
}
.js .screen:not(.aktiv) .kachel,
.js .screen:not(.aktiv) .zeile,
.js .screen:not(.aktiv) .o,
.js .screen:not(.aktiv) .akte-box {
  opacity: 0;
  transform: translateY(10px);
}
.js .screen.aktiv .kachel:nth-child(2),
.js .screen.aktiv .o:nth-child(2),
.js .screen.aktiv .akte-box:nth-child(2),
.js .screen.aktiv .zeile:nth-child(3) {
  transition-delay: 0.12s;
}
.js .screen.aktiv .kachel:nth-child(3),
.js .screen.aktiv .o:nth-child(3),
.js .screen.aktiv .akte-box:nth-child(3),
.js .screen.aktiv .zeile:nth-child(4) {
  transition-delay: 0.22s;
}
.js .screen.aktiv .kachel:nth-child(4),
.js .screen.aktiv .o:nth-child(4),
.js .screen.aktiv .akte-box:nth-child(4) {
  transition-delay: 0.32s;
}

/* Screen-Inhalte */
.frage-feld {
  border: 1px solid var(--pd-linie);
  background: var(--pd-weiss);
  border-radius: 0.8em;
  padding: 0.75em 1em;
  color: var(--pd-bleistift);
}
.kacheln {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7em;
}
.kachel,
.o,
.akte-box {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  background: var(--pd-weiss);
  border: 1px solid var(--pd-linie);
  border-radius: 0.7em;
  padding: 0.8em;
}
.kachel b,
.o b {
  font-size: 1em;
}
.kachel span,
.o span {
  color: var(--pd-bleistift);
  font-size: 0.9em;
}
.liste {
  background: var(--pd-weiss);
  border: 1px solid var(--pd-linie);
  border-radius: 0.8em;
  padding: 0.8em;
  display: flex;
  flex-direction: column;
  gap: 0.45em;
}
.liste-titel {
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pd-bleistift);
}
.zeile {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding: 0.55em 0.7em;
  border-radius: 0.5em;
  background: #f7f5f0;
}
.zeile-gelb {
  background: var(--pd-meterstab-hell);
  box-shadow: inset 3px 0 0 var(--pd-meterstab);
}
/* Archiv */
.eingang {
  min-height: 7.5em;
}
.dok {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4em 0.8em;
  align-items: center;
  background: var(--pd-weiss);
  border: 1.5px solid var(--pd-meterstab);
  border-radius: 0.8em;
  padding: 0.9em;
}
.dok-icon {
  grid-row: span 3;
  width: 2.4em;
  height: 3em;
  border-radius: 0.3em;
  background:
    linear-gradient(var(--pd-linie) 0 0) 0.5em 0.9em / 1.4em 2px no-repeat,
    linear-gradient(var(--pd-linie) 0 0) 0.5em 1.4em / 1.2em 2px no-repeat,
    linear-gradient(var(--pd-linie) 0 0) 0.5em 1.9em / 1.4em 2px no-repeat,
    #fbfaf6;
  border: 1px solid var(--pd-linie);
}
.dok-name {
  font-size: 0.9em;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
}
.tags i,
.quellen i {
  font-style: normal;
  font-size: 0.82em;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  background: #eef0f5;
  color: var(--pd-bauplan);
}
.dok-ziel {
  font-size: 0.85em;
  color: var(--pd-erledigt);
  font-weight: 600;
}
.ordner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7em;
}
.suche {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  font-size: 0.9em;
  color: var(--pd-bleistift);
  border-top: 1px solid var(--pd-linie);
  padding-top: 0.8em;
}
.js .screen[data-s='1'].aktiv .dok-neu {
  animation: dok-rein 1s var(--pd-ease) both 0.2s;
}
.js .screen[data-s='1'].aktiv .tags i {
  animation: pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.js .screen[data-s='1'].aktiv .tags i:nth-child(1) { animation-delay: 0.9s; }
.js .screen[data-s='1'].aktiv .tags i:nth-child(2) { animation-delay: 1.05s; }
.js .screen[data-s='1'].aktiv .tags i:nth-child(3) { animation-delay: 1.2s; }
.js .screen[data-s='1'].aktiv .tags i:nth-child(4) { animation-delay: 1.35s; }
.js .screen[data-s='1'].aktiv .dok-ziel {
  animation: einblenden 0.5s var(--pd-ease) both 1.7s;
}
@keyframes dok-rein {
  from {
    opacity: 0;
    transform: translateY(-1.5em) rotate(-2deg);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}
/* Vertrieb */
.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6em;
}
.spalte {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  background: #eeece6;
  border-radius: 0.7em;
  padding: 0.6em;
  min-height: 12em;
}
.spalte > p {
  font-size: 0.78em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pd-bleistift);
}
.kk {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  background: var(--pd-weiss);
  border: 1px solid var(--pd-linie);
  border-radius: 0.55em;
  padding: 0.6em;
  font-size: 0.86em;
  line-height: 1.3;
}
.kk span {
  color: var(--pd-bleistift);
}
.kk .passt {
  color: var(--pd-erledigt);
  font-weight: 600;
}
.kk-wandert {
  border-color: var(--pd-meterstab);
  box-shadow: 0 0.5em 1.2em rgb(14 23 38 / 0.12);
}
.js .screen[data-s='2'].aktiv .kk-wandert {
  animation: wandern 1.2s var(--pd-ease) both 0.6s;
}
@keyframes wandern {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(100% + 1.8em));
  }
}
.entwurf-leiste {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  align-items: center;
  background: var(--pd-meterstab-hell);
  border: 1px solid var(--pd-meterstab);
  border-radius: 0.7em;
  padding: 0.7em 0.9em;
  font-size: 0.92em;
}
.entwurf-leiste b {
  color: var(--pd-messband);
}
.js .screen[data-s='2'].aktiv .entwurf-leiste {
  animation: einblenden 0.5s var(--pd-ease) both 1.7s;
}
/* Kundenakte */
.akte {
  display: flex;
  flex-direction: column;
  gap: 0.9em;
}
.akte-kopf {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}
.akte-kopf b {
  font-size: 1.35em;
  font-stretch: 110%;
}
.akte-kopf span {
  color: var(--pd-bleistift);
  font-size: 0.9em;
}
.akte-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7em;
}
.akte-box p {
  font-size: 0.78em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pd-bleistift);
}
.akte-box span {
  font-size: 0.92em;
}
.verlauf {
  font-size: 0.86em;
  color: var(--pd-bleistift);
  border-left: 3px solid var(--pd-meterstab);
  padding-left: 0.8em;
}
/* Auskunft */
.chat {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  min-height: 16em;
}
.blase {
  max-width: 85%;
  padding: 0.8em 1em;
  border-radius: 1em;
  line-height: 1.45;
}
.blase-frage {
  align-self: flex-end;
  background: var(--pd-bauplan);
  color: var(--pd-planpapier);
  border-bottom-right-radius: 0.3em;
}
.blase-antwort {
  align-self: flex-start;
  background: var(--pd-weiss);
  border: 1px solid var(--pd-linie);
  border-bottom-left-radius: 0.3em;
  min-height: 3em;
}
.blase-antwort.tippt::after {
  content: '';
  display: inline-block;
  width: 0.5em;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--pd-meterstab);
  animation: blinken 0.9s steps(1) infinite;
}
@keyframes blinken {
  50% {
    opacity: 0;
  }
}
.quellen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  font-size: 0.95em;
}
.js .screen[data-s='4'] .quellen {
  opacity: 0;
  transition: opacity 0.5s var(--pd-ease);
}
.js .screen[data-s='4'] .quellen.da {
  opacity: 1;
}
/* Unterschrift */
.protokoll {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  background: var(--pd-weiss);
  border: 1px solid var(--pd-linie);
  border-radius: 0.8em;
  padding: 1.2em;
}
.prot-titel {
  font-weight: 750;
  font-size: 1.12em;
  font-stretch: 108%;
}
.prot-zeile {
  color: var(--pd-bleistift);
}
.unterschrift {
  border-bottom: 1.5px solid var(--pd-bauplan);
  padding-bottom: 0.4em;
}
.unterschrift svg {
  width: 70%;
  height: auto;
}
.unterschrift .sig {
  fill: none;
  stroke: var(--pd-bauplan);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.unterschrift span {
  font-size: 0.82em;
  color: var(--pd-bleistift);
}
.js .screen[data-s='5'] .sig {
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
}
.js .screen[data-s='5'].aktiv .sig {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.55, 0.1, 0.35, 1) 0.4s;
}
.prot-ok {
  font-size: 0.92em;
}
.prot-ok b {
  color: var(--pd-erledigt);
}
.js .screen[data-s='5'] .prot-ok {
  opacity: 0;
}
.js .screen[data-s='5'].aktiv .prot-ok {
  opacity: 1;
  transition: opacity 0.5s var(--pd-ease) 2.3s;
}

/* Rundgang-Layout mit JS: Desktop scrollgesteuert, sonst Reiter */
@media (min-width: 1024px) {
  .js .tour {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
    align-items: start;
  }
  .js .tour-schritte {
    gap: 0;
    padding-bottom: 14vh;
  }
  .js .schritt {
    min-height: 62vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 24px;
    border-left: 3px solid var(--pd-linie);
    transition: border-color 0.5s var(--pd-ease);
  }
  .js .schritt h3,
  .js .schritt p {
    color: var(--pd-bleistift);
    transition: color 0.5s var(--pd-ease);
  }
  .js .schritt.aktiv {
    border-left-color: var(--pd-meterstab);
  }
  .js .schritt.aktiv h3 {
    color: var(--pd-bauplan);
  }
  .js .schritt.aktiv p {
    color: #2a3348;
  }
  .js .tour-buehne {
    position: sticky;
    top: calc(50vh - min(26vw, 300px));
    grid-column: 2;
    grid-row: 1;
  }
  .js .tour-schritte {
    grid-column: 1;
    grid-row: 1;
  }
}
@media (max-width: 1023.98px) {
  .js .tour-reiter {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 2px 4px;
    margin-inline: -2px;
  }
  .js .tour-reiter::-webkit-scrollbar {
    display: none;
  }
  .js .tour-reiter button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--pd-linie);
    background: var(--pd-weiss);
    color: var(--pd-bauplan);
    font: inherit;
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
  }
  .js .tour-reiter button[aria-selected='true'] {
    background: var(--pd-bauplan);
    border-color: var(--pd-bauplan);
    color: var(--pd-planpapier);
  }
  .js .tour-schritte {
    order: 3;
  }
  .js .tour-buehne {
    order: 2;
  }
  .js .schritt {
    display: none;
  }
  .js .schritt.aktiv {
    display: block;
    animation: einblenden 0.5s var(--pd-ease);
  }
}
@media (max-width: 560px) {
  .kacheln,
  .ordner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .desk-nav {
    display: none;
  }
  .screen-rahmen {
    font-size: clamp(11px, 3.4cqi, 14px);
  }
  .kanban {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kanban .spalte:nth-child(n + 3) {
    display: none;
  }
}

/* ---------- Band ---------- */
.band {
  padding: 30px 0;
}
.band-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.band p {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 740;
  font-stretch: 110%;
  line-height: 1.2;
}

/* ---------- Module ---------- */
.module {
  padding: clamp(80px, 10vw, 128px) 0;
}
.glied-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 18px;
}
.glied {
  position: relative;
  background: var(--pd-weiss);
  border: 1px solid var(--pd-linie);
  border-radius: var(--pd-radius);
  padding: 34px 22px 24px;
  transition:
    transform 0.45s var(--pd-ease),
    box-shadow 0.45s var(--pd-ease);
}
.glied::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: -9px;
  height: 18px;
  border-radius: 9px;
  background:
    radial-gradient(circle, var(--pd-bauplan) 0 3px, transparent 3.5px) 9px 50% / 18px 18px no-repeat,
    radial-gradient(circle, var(--pd-bauplan) 0 3px, transparent 3.5px) calc(100% - 9px) 50% / 18px 18px no-repeat,
    var(--pd-meterstab);
  transform-origin: 0 50%;
  transition: transform 0.7s var(--pd-ease);
}
.glied:hover {
  transform: translateY(-4px);
  box-shadow: var(--pd-shadow);
}
.glied-nr {
  font-size: 13px;
  color: var(--pd-messband);
}
.glied h3 {
  font-size: 21px;
  font-weight: 720;
  margin: 6px 0 8px;
}
.glied p {
  font-size: 16px;
  color: #2a3348;
}
.js .glied::before {
  transform: scaleX(0);
}
.js .glied.in::before {
  transform: scaleX(1);
  transition-delay: calc(var(--d, 0s) + 0.15s);
}

/* ---------- Wissen ---------- */
.wissen .zeigen {
  margin-top: 28px;
}
.wissen .zeigen .mono {
  font-weight: 400;
  opacity: 0.8;
}
.video-dialog {
  /* Fits the viewport both ways: 16:9 video plus about 120 px for the note and the button. */
  width: min(1100px, calc(100vw - 32px), calc((100vh - 150px) * 16 / 9));
  max-width: none;
  max-height: calc(100vh - 16px);
  padding: 0;
  border: 0;
  border-radius: var(--pd-radius-l);
  background: var(--pd-bauplan);
  color: var(--pd-planpapier);
}
.video-dialog::backdrop {
  background: rgb(22 34 56 / 0.82);
}
.video-dialog video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-dialog .video-hinweis {
  margin: 0;
  padding: 14px 20px 0;
  font-size: 14px;
  color: var(--pd-kreide);
}
.video-dialog .btn-linie {
  background: transparent;
}
.video-dialog form {
  display: flex;
  justify-content: flex-end;
  padding: 12px 20px 20px;
}
.wissen {
  padding: clamp(96px, 11vw, 140px) 0 clamp(80px, 10vw, 128px);
}
.wissen .addon {
  border-color: transparent;
  color: var(--pd-bauplan);
}

/* ---------- Add-ons ---------- */
.addons {
  padding: clamp(96px, 11vw, 140px) 0 clamp(80px, 10vw, 128px);
}
.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.addon {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--pd-planpapier);
  border-radius: var(--pd-radius-l);
  padding: 28px 24px;
  border: 1px solid var(--pd-linie);
  transition: transform 0.45s var(--pd-ease);
}
.addon:hover {
  transform: translateY(-4px);
}
.addon-glied {
  display: flex;
  align-items: center;
  height: 18px;
}
.addon-glied::before {
  content: '';
  width: 64px;
  height: 18px;
  border-radius: 9px;
  background: var(--pd-bauplan);
}
.addon-glied span {
  width: 64px;
  height: 18px;
  margin-left: -10px;
  border-radius: 9px;
  border: 2.5px solid var(--pd-planpapier);
  background:
    radial-gradient(circle, var(--pd-bauplan) 0 2.6px, transparent 3px) 6px 50% / 12px 12px no-repeat,
    var(--pd-meterstab);
  transform-origin: 0 50%;
  transition: transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.addon:hover .addon-glied span {
  transform: rotate(-14deg);
}
.addon h3 {
  font-size: 24px;
  font-weight: 740;
}
.addon p {
  color: #2a3348;
}
.preis {
  margin-top: auto;
  padding-top: 10px;
  font-size: 15px;
  color: var(--pd-messband);
}

/* ---------- Betrieb ---------- */
.betrieb {
  padding: clamp(96px, 11vw, 140px) 0 clamp(80px, 10vw, 128px);
}
.betrieb-grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 980px) {
  .betrieb-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 72px;
    align-items: start;
  }
}
.zusagen {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}
.zusagen li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--pd-bauplan-2);
  border: 1px solid rgb(244 241 234 / 0.08);
  border-radius: var(--pd-radius);
  padding: 22px;
}
.zusagen b {
  font-size: 19px;
  font-stretch: 108%;
  color: var(--pd-planpapier);
}
.zusagen b::before {
  content: '';
  display: block;
  width: 28px;
  height: 10px;
  border-radius: 5px;
  background: var(--pd-meterstab);
  margin-bottom: 14px;
}
.zusagen span {
  color: var(--pd-kreide);
  font-size: 16px;
}
.zusagen-hinweis {
  grid-column: 1 / -1;
  margin: 0;
  max-width: 72ch;
  font-size: 14px;
  color: var(--pd-kreide);
}
.stern {
  color: inherit;
  text-decoration: none;
  padding-left: 1px;
}
.stern:hover,
.stern:focus-visible {
  text-decoration: underline;
}

/* ---------- Preise ---------- */
.preise {
  padding: clamp(96px, 11vw, 140px) 0 clamp(80px, 10vw, 128px);
}
.preis-karte {
  position: relative;
  display: grid;
  gap: 28px;
  background: var(--pd-weiss);
  border: 1px solid var(--pd-linie);
  border-radius: var(--pd-radius-l);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--pd-shadow);
}
@media (min-width: 860px) {
  .preis-karte {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
}
.inklusive {
  margin: 0;
  font-size: 14px;
  color: var(--pd-bleistift);
}
.inklusiv-liste {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.inklusiv-liste b {
  display: inline-block;
  min-width: 3.6em;
  font-weight: 500;
}
.preis-hinweis {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  color: var(--pd-bleistift);
}
.preis-haupt {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.preis-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pd-messband);
}
.preis-zahl {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 500;
  line-height: 1;
}
.preis-zahl span {
  font-size: 18px;
  color: var(--pd-bleistift);
}
.preis-haupt p:not(.preis-name):not(.preis-zahl) {
  color: #2a3348;
  margin-bottom: 8px;
}
.preis-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.preis-liste li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--pd-linie);
}
.preis-liste li:last-child {
  border-bottom: 0;
}

/* ---------- Abschluss ---------- */
.abschluss {
  padding: clamp(96px, 11vw, 140px) 0 clamp(80px, 10vw, 120px);
  overflow: hidden;
}
.abschluss-row {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .abschluss-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
.abschluss h2 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 780;
  max-width: 15em;
  margin-bottom: 18px;
}
.abschluss p {
  color: var(--pd-kreide);
  font-size: 19px;
  margin-bottom: 30px;
}
.stempel {
  position: relative;
  width: 200px;
  height: 200px;
  justify-self: center;
}
.stempel svg {
  width: 100%;
  height: 100%;
  animation: drehen 22s linear infinite;
}
.stempel text {
  font-family: var(--pd-font-mono);
  font-size: 12.5px;
  letter-spacing: 2.6px;
  fill: var(--pd-meterstab);
}
.stempel img {
  position: absolute;
  inset: 0;
  margin: auto;
}
@keyframes drehen {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Fußzeile, Dock ---------- */
.fuss-zeile {
  background: var(--pd-nachtplan);
  color: var(--pd-kreide);
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom));
  font-size: 15px;
}
.fuss-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.fuss-row nav {
  display: flex;
  gap: 22px;
}
.fuss-row a {
  color: var(--pd-planpapier);
  text-decoration: none;
  padding: 10px 0;
}
.fuss-row a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.dock {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 40;
  box-shadow: 0 12px 34px rgb(4 9 18 / 0.35);
  transform: translateY(140%);
  transition: transform 0.5s var(--pd-ease);
}
.dock.show {
  transform: none;
}
@media (min-width: 900px) {
  .dock {
    display: none;
  }
}

/* ---------- Einblenden beim Scrollen ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s var(--pd-ease),
    transform 0.9s var(--pd-ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Rechtliche Seiten, Kontakt ---------- */
.legal {
  padding: clamp(48px, 8vw, 96px) 0;
}
.legal .wrap {
  max-width: 780px;
}
.legal h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 780;
  margin-bottom: 10px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 720;
  margin: 34px 0 10px;
}
.legal p {
  margin-bottom: 12px;
  color: #2a3348;
}
.legal .stand {
  color: var(--pd-bleistift);
  margin-bottom: 30px;
}
.legal a {
  color: var(--pd-bauplan);
  text-underline-offset: 3px;
}
.back {
  display: inline-block;
  margin-top: 36px;
  font-weight: 700;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 560px;
}
.form label {
  font-weight: 650;
  margin-top: 12px;
}
.form input,
.form textarea,
.form select {
  font: inherit;
  font-size: 17px;
  color: var(--pd-bauplan);
  background: var(--pd-weiss);
  border: 1.5px solid #cfc9bb;
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 48px;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--pd-bauplan);
  outline: 3px solid rgb(242 178 27 / 0.6);
  outline-offset: 0;
}
.form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form .hint {
  font-size: 14px;
  color: var(--pd-bleistift);
  margin-top: 10px;
}
.form .btn {
  align-self: flex-start;
  margin-top: 14px;
}
.status {
  min-height: 1.5em;
  font-weight: 650;
}

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .stempel svg {
    animation: none;
  }
}

/* ---------- Feinschliff schmale Schirme ---------- */
.zeile .mono,
.kk .mono,
.preis-liste .mono {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .glied-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }
  .glied {
    padding: 28px 14px 18px;
  }
  .glied::before {
    left: 12px;
    right: 12px;
  }
  .glied h3 {
    font-size: 17px;
    hyphens: auto;
  }
  .glied p {
    font-size: 14.5px;
  }
}

/* ---------- Videos: link, teaser, questions page ---------- */
.play {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 0.72em solid currentColor;
  border-top: 0.42em solid transparent;
  border-bottom: 0.42em solid transparent;
  margin-right: 0.55em;
  vertical-align: -0.05em;
}
.video-link {
  color: inherit;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 2px solid var(--pd-meterstab);
  padding-bottom: 2px;
}
.video-link:hover,
.video-link:focus-visible {
  border-bottom-color: currentColor;
}
.dunkel .video-link .play {
  color: var(--pd-meterstab);
}
.hero-video {
  margin: -8px 0 22px;
  font-size: 16px;
}
.video-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: 760px;
  margin: 0 0 40px;
  border-radius: var(--pd-radius-l);
  overflow: hidden;
  background: var(--pd-planpapier);
  color: var(--pd-bauplan);
  text-decoration: none;
  position: relative;
  box-shadow: var(--pd-shadow);
}
.video-teaser img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.video-teaser-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px 18px;
}
.video-teaser-text b {
  font-size: 20px;
}
.video-teaser-knopf {
  position: absolute;
  left: 20px;
  top: 20px;
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--pd-meterstab);
  color: var(--pd-bauplan);
  font-weight: 700;
  box-shadow: 0 6px 20px rgb(22 34 56 / 0.35);
  transition: transform 0.2s ease;
}
.video-teaser:hover .video-teaser-knopf,
.video-teaser:focus-visible .video-teaser-knopf {
  transform: scale(1.06);
}
.video-dialog .video-hinweis a {
  color: inherit;
}
.info-seite {
  padding: clamp(48px, 8vw, 96px) 0;
}
.info-seite .wrap {
  max-width: 860px;
}
.info-seite h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 780;
  margin: 6px 0 12px;
}
.info-lead {
  font-size: 19px;
  margin: 0 0 40px;
}
.info-seite h2 {
  font-size: 24px;
  font-weight: 720;
  margin: 0 0 16px;
}
.video-folgen {
  margin: -24px 0 48px;
  font-size: 15px;
  color: var(--pd-bleistift);
}
.faq details {
  border-top: 1px solid var(--pd-linie);
  padding: 4px 0;
}
.faq details:last-of-type {
  border-bottom: 1px solid var(--pd-linie);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 19px;
  font-weight: 680;
  padding: 16px 32px 16px 0;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 26px;
  font-weight: 400;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  margin: 0 0 14px;
  max-width: 70ch;
}
.fragen-schluss {
  margin-top: 40px;
}

/* ---------- Topic pages, setup guide ---------- */
.info-seite section {
  margin: 0 0 48px;
}
.info-seite .video-teaser {
  margin-bottom: 48px;
}
.krumen {
  font-size: 14px;
  color: var(--pd-bleistift);
  margin: 0 0 18px;
}
.krumen a {
  color: inherit;
}
.schritte-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.schritte-liste li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: var(--pd-weiss);
  border: 1px solid var(--pd-linie);
  border-radius: var(--pd-radius);
  padding: 16px 18px;
}
.schritte-liste p {
  margin: 4px 0 0;
}
.schritt-zahl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pd-meterstab);
  color: var(--pd-bauplan);
  font-weight: 600;
}
.dauer {
  font-size: 14px;
  color: var(--pd-bleistift);
}
.info-zwei {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.info-kasten {
  border: 1px solid var(--pd-linie);
  border-radius: var(--pd-radius);
  padding: 20px 22px;
}
.info-kasten h2 {
  font-size: 20px;
}
.info-kasten ul,
.info-kasten ol {
  margin: 0 0 12px;
  padding-left: 20px;
}
.info-kasten li + li {
  margin-top: 6px;
}
.weiter {
  margin-top: 40px;
}
.themen-raster {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.themen-karte {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  box-sizing: border-box;
  padding: 18px 18px 20px;
  background: var(--pd-weiss);
  border: 1px solid var(--pd-linie);
  border-radius: var(--pd-radius);
  color: var(--pd-bauplan);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.themen-karte:hover,
.themen-karte:focus-visible {
  border-color: var(--pd-meterstab);
  transform: translateY(-2px);
}
.themen-karte b {
  font-size: 18px;
}
.themen-karte span:not(.glied-nr):not(.themen-video):not(.play) {
  color: var(--pd-bleistift);
  font-size: 15px;
}
.themen-video {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 650;
}
.wege {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.weg {
  position: relative;
  border: 1px solid var(--pd-linie);
  border-radius: var(--pd-radius-l);
  padding: 24px;
  background: var(--pd-weiss);
}
.weg ul {
  margin: 0 0 16px;
  padding-left: 20px;
}
.weg li + li {
  margin-top: 6px;
}
.weg-empfohlen {
  border-color: var(--pd-meterstab);
  border-width: 2px;
}
.weg-marke {
  position: absolute;
  top: -12px;
  left: 20px;
  margin: 0;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--pd-meterstab);
  font-size: 13px;
}
.weg-preis {
  font-size: 15px;
  color: var(--pd-bleistift);
}
.hilfe-leiter {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: stufe;
}
.hilfe-leiter li {
  display: grid;
  gap: 2px;
  padding: 12px 0 12px 44px;
  position: relative;
  border-bottom: 1px dashed var(--pd-linie);
}
.hilfe-leiter li::before {
  counter-increment: stufe;
  content: counter(stufe);
  position: absolute;
  left: 0;
  top: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--pd-bauplan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.hinweis-klein {
  font-size: 14px;
  color: var(--pd-bleistift);
}
.glied-mehr {
  margin: 12px 0 0;
  font-size: 15px;
}
.glied-mehr a:not(.video-link) {
  color: inherit;
}
.einrichten-teaser {
  margin-top: 24px;
  display: grid;
  gap: 18px 32px;
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  border: 1px dashed var(--pd-bauplan);
  border-radius: var(--pd-radius-l);
}
@media (min-width: 860px) {
  .einrichten-teaser {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
  .einrichten-teaser .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
.einrichten-teaser h3 {
  font-size: 24px;
  margin: 0 0 8px;
}
.einrichten-teaser p {
  margin: 0;
}
.einrichten-teaser ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.einrichten-teaser li {
  display: grid;
  gap: 2px;
}
.einrichten-teaser li span {
  color: var(--pd-bleistift);
}
.nav a[aria-current='page'] {
  color: var(--pd-meterstab);
}
.empfohlen-marke {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--pd-meterstab);
  color: var(--pd-bauplan);
  font-size: 12px;
  font-weight: 500;
  vertical-align: 2px;
}
