/* KI-Office.at Startseite: Scroll-Story vor dem 3D-Büro. Links das Büro, rechts auf dunklem Verlauf die Simulation.
   Grundlage (Farben, Schrift, Knöpfe, Simulationen, Anfrage, Fuß) steht in basis.css. */

:root {
  --rand: max(24px, 5vw);
  --hero-text: var(--tinte);
  --hero-neben: #3a4152;
  --linie-hell: rgba(255, 255, 255, 0.14);
  /* Grund des ersten Bildschirms und der Felder, Leuchtfarbe der Figur im ersten Bildschirm. */
  --seitengrund: #edf0f6;
  --neon: var(--glow);
}

.variante-a {
  --seitengrund: #f1efeb;
}

.variante-c {
  --hero-text: #f6efe6;
  --hero-neben: #d8cdbf;
  --seitengrund: #3a3531;
}

/* Kein Überscrollen: Sonst zöge der Browser die Seite oben über den Rand, und über dem ersten Bildschirm stünde
   das Büro ohne Überblendung. Sprünge zu Abschnitten sind sofort am Ziel (seite.js). */
html,
body {
  overscroll-behavior: none;
}

body {
  font-size: 18px;
  line-height: 1.55;
  background: radial-gradient(120% 90% at 50% 42%, #f6f8fb 0%, #e4e9f1 52%, #ced6e2 100%) fixed;
}

.variante-a body {
  background: radial-gradient(120% 90% at 50% 42%, #f7f6f3 0%, #e8e6e2 52%, #d4d1cb 100%) fixed;
}

.variante-c body {
  background: radial-gradient(120% 90% at 50% 42%, #6d655d 0%, #4a443f 52%, #2b2825 100%) fixed;
}

/* Fokusrahmen auf dunklem Grund in Textmarker-Gelb. */
.kopf.ist-dunkel,
.kopf.ist-seite .knopf,
.kapitel-rechts,
.schluss,
.variante-c .hero,
.variante-c .kopf:not(.ist-flaeche) {
  --fokus: var(--akzent);
}

/* „Mehr dazu“ in den Abschnitten: heller Rand auf dem dunklen Verlauf. */
.knopf-mehr {
  margin-top: 18px;
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.62);
}

@media (hover: hover) and (pointer: fine) {
  .knopf-mehr:hover {
    background: #fff;
    color: var(--tief);
  }
}

.knopf-mehr svg {
  width: 17px;
  height: 17px;
}

main {
  position: relative;
  z-index: 3;
}

/* 3D-Büro im Hintergrund */

.buehne {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.buehne.ist-bereit {
  opacity: 1;
}

.buehne canvas {
  display: block;
}

/* Schilder über dem Schleier: Blasen und Namen der Geschichte bleiben auch am Rand des Verlaufs hell. */
.schilder-ebene {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.schleier {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

.schleier-seite {
  background: linear-gradient(90deg,
    rgb(var(--tief-rgb) / 0) 0%,
    rgb(var(--tief-rgb) / 0) 40%,
    rgb(var(--tief-rgb) / 0.5) 49%,
    rgb(var(--tief-rgb) / 0.84) 58%,
    rgb(var(--tief-rgb) / 0.92) 100%);
}

.schleier-voll {
  background:
    radial-gradient(70% 62% at 50% 50%, rgb(var(--tief-rgb) / 0.86) 0%, rgb(var(--tief-rgb) / 0.62) 100%),
    rgb(var(--tief-rgb) / 0.12);
}

/* Kopfzeile */

.kopf {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--rand);
  pointer-events: none;
  color: var(--hero-text);
  transition: color 0.25s ease;
}

.kopf > * {
  pointer-events: auto;
}

.kopf.ist-dunkel {
  color: var(--grund);
}

.kopf.ist-flaeche {
  background: var(--grund);
  box-shadow: 0 1px 0 var(--linie);
  color: var(--tinte);
}

.kopf .marke {
  font-size: 21px;
  font-weight: 720;
}


/* Erster Bildschirm (Variante F „Handy steuert Büro“): Oben das 3D-Büro mit weichem Übergang in Kopfzeile, Text
   und Seitengrund, links die Überschrift, rechts das Handy. Darunter die Fragen als anklickbare Felder. */

.start {
  position: relative;
  display: grid;
  grid-template-rows: minmax(500px, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
}

/* Rückfalllösung für Browser, die trotzdem überscrollen: Über dem ersten Bildschirm liegt Seitengrund statt Büro. */
.start::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 100vh;
  background: var(--seitengrund);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--hero-text);
}

/* Die Leinwand liegt fest hinter der Seite, die Szene ist der sichtbare Ausschnitt im ersten Bildschirm. */
.hero-szene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Überblendung: oben in die Kopfzeile, links unter die Überschrift, unten in die Felder. */
.hero-schleier {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--seitengrund) 0, color-mix(in srgb, var(--seitengrund) 86%, transparent) 70px, transparent 190px),
    linear-gradient(0deg, var(--seitengrund) 0, color-mix(in srgb, var(--seitengrund) 70%, transparent) 34px, transparent 120px),
    linear-gradient(90deg, var(--seitengrund) 0, color-mix(in srgb, var(--seitengrund) 95%, transparent) 31%, color-mix(in srgb, var(--seitengrund) 62%, transparent) 42%, transparent 54%);
}

.ohne-3d .hero-schleier {
  background: none;
}

/* Lichtspur vom Handy zur Figur und zurück */
.hero-impuls {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-impuls-linie {
  fill: none;
  stroke: var(--neon);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 0 1;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(106, 156, 251, 0.9));
}

.hero-impuls-punkt {
  fill: #fff;
  stroke: var(--neon);
  stroke-width: 3;
  opacity: 0;
  filter: drop-shadow(0 0 7px rgba(106, 156, 251, 1));
}

/* Mailfenster: wächst aus dem Monitor der leuchtenden Figur, damit die E-Mail lesbar ist. Lage und Größe setzt
   hero.js über transform. */
.hero-mail {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 220px;
  overflow: hidden;
  visibility: hidden;
  border-radius: 9px;
  background: #fbfcfe;
  box-shadow: 0 0 0 2px var(--neon), 0 0 26px -4px rgba(106, 156, 251, 0.7), 0 22px 40px -18px rgba(10, 18, 40, 0.55);
  color: var(--tinte);
  font-size: 12px;
  line-height: 1.4;
  transform-origin: 0 0;
}

.hm-leiste {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 25px;
  padding: 0 9px;
  background: #e8ecf3;
  font-size: 11px;
  font-weight: 620;
  color: var(--hero-neben);
}

.hm-punkte {
  display: flex;
  gap: 4px;
}

.hm-punkte i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cdd4e0;
}

.hm-feld {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 27px;
  padding: 5px 10px;
  border-bottom: 1px solid rgba(20, 26, 41, 0.1);
  font-size: 11.5px;
}

.hm-feld > span {
  flex: none;
  width: 42px;
  color: var(--neben);
}

.hm-feld b {
  font-weight: 620;
}

.hm-betreff {
  font-weight: 700;
}

.hm-text {
  min-height: calc(7 * 1.4em + 12px);
  margin: 0;
  padding: 8px 10px 4px;
  white-space: pre-line;
  text-wrap: wrap;
}

.hm-marke {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--haupt);
}

.hm-anhang {
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  margin: 0 10px 10px;
  padding: 5px 8px;
  border: 1px solid rgba(20, 26, 41, 0.18);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 620;
}

.hm-anhang svg {
  width: 13px;
  height: 13px;
  color: #b0523a;
}

.hero-text {
  position: absolute;
  z-index: 4;
  left: var(--rand);
  top: calc(50% + 34px);
  width: min(36vw, 560px);
  transform: translateY(-50%);
  /* --kante kommt aus seite.js: So weit liegt der Text schon unter der Kopfzeile. */
  -webkit-mask-image: linear-gradient(180deg, transparent var(--kante, -40px), #000 calc(var(--kante, -40px) + 40px));
  mask-image: linear-gradient(180deg, transparent var(--kante, -40px), #000 calc(var(--kante, -40px) + 40px));
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 4.3vw, 66px);
  font-weight: 720;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-text > p {
  max-width: 27em;
  margin: 22px 0 0;
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--hero-neben);
}

.hero .knopf-reihe {
  margin-top: 28px;
}

/* ---------- Handy im ersten Bildschirm (Klassen hh-, damit nichts mit den Simulationen kollidiert) ---------- */

/* Ebene für das Handy: blendet unter der Kopfzeile und am unteren Rand der Szene weich aus. Das herangezoomte
   Handy reicht so nie unter die Kopfzeile. --maske-oben setzt hero.js (Unterkante der Kopfzeile). */
.hh-maske {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent var(--maske-oben, 86px), #000 calc(var(--maske-oben, 86px) + 34px), #000 calc(100% - 30px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, transparent var(--maske-oben, 86px), #000 calc(var(--maske-oben, 86px) + 34px), #000 calc(100% - 30px), transparent 100%);
}

/* Größe und Lage setzt hero.js über --skala und top. */
.hh-rahmen {
  position: absolute;
  right: var(--rand);
  top: 50%;
  width: calc(228px * var(--skala, 1));
  height: calc(492px * var(--skala, 1));
  visibility: hidden;
}

/* Zoom-Ebene: hero.js vergrößert hier um den wichtigen Bereich (Eingabe, Entwurf). */
.hh-zoom {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
}

.hh-flaeche {
  position: absolute;
  top: 0;
  left: 0;
  width: 228px;
  height: 492px;
  transform: scale(var(--skala, 1));
  transform-origin: top left;
  font-size: 12px;
  line-height: 1.4;
  color: var(--tinte);
}

.hh-handy {
  position: absolute;
  inset: 0;
  padding: 9px;
  border-radius: 40px;
  background: linear-gradient(140deg, #3a3f4a, #12151c 60%);
  box-shadow: 0 0 0 1.5px #5a606d inset, 0 44px 80px -28px rgba(20, 26, 41, 0.6), 0 10px 24px -12px rgba(20, 26, 41, 0.35);
}

.hh-bildschirm {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  padding-top: 12px;
  background: linear-gradient(180deg, #eef2fa 0%, #f6f8fc 40%);
}

.hh-oben {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 22px;
  padding: 0 20px;
  font-size: 11.5px;
  font-weight: 650;
}

.hh-insel {
  width: 62px;
  height: 18px;
  border-radius: 10px;
  background: #0e1016;
}

.hh-akku {
  width: 20px;
  height: 10px;
  padding: 1.5px;
  border: 1.2px solid var(--tinte);
  border-radius: 3px;
}

.hh-akku i {
  display: block;
  width: 70%;
  height: 100%;
  border-radius: 1px;
  background: var(--tinte);
}

.hh-kopf {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0 14px 8px;
  border-bottom: 1px solid var(--linie);
  font-size: 13.5px;
  letter-spacing: -0.01em;
}

.hh-bild {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--haupt);
  color: #fff;
}

.hh-bild svg {
  width: 16px;
  height: 16px;
}

/* Chat wächst von unten wie in einem Messenger: Neue Nachrichten stehen direkt über dem Eingabefeld. */
.hh-fenster {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 100%);
}

.hh-liste {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 6px;
  padding: 6px 11px 8px;
}

.hh-nachricht {
  margin: 0;
  padding: 8px 11px;
  font-size: 12px;
  line-height: 1.4;
}

.hh-eigen {
  align-self: flex-end;
  max-width: 90%;
  border-radius: 14px 14px 4px 14px;
  background: var(--haupt);
  color: #fff;
}

.hh-buero {
  align-self: flex-start;
  max-width: 92%;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  box-shadow: 0 6px 18px -12px rgba(20, 26, 41, 0.4);
}

.hh-entwurf {
  align-self: stretch;
  max-width: none;
  padding: 9px 10px 8px;
}

.hh-entwurf-titel {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hh-entwurf-text {
  margin: 3px 0 0;
  font-size: 12px;
  color: #3a4152;
}

.hh-karte {
  display: grid;
  gap: 3px;
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--flaeche);
  font-size: 11px;
  line-height: 1.38;
}

.hh-karte strong {
  font-size: 11.5px;
  text-wrap: balance;
}

.hh-karte small {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--neben);
}

.hh-karte small svg {
  width: 13px;
  height: 13px;
  flex: none;
  color: #b0523a;
}

.hh-freigabe {
  position: relative;
  display: grid;
  place-items: center;
  height: 38px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 11px;
  background: var(--haupt);
  color: #fff;
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
}

.hh-fk-text,
.hh-fk-ok {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hh-fk-ok {
  visibility: hidden;
}

.hh-fk-ok svg {
  width: 17px;
  height: 17px;
}

.hh-aendern {
  display: block;
  margin-top: 3px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--neben);
}

.hh-versendet {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: none;
  white-space: nowrap;
  font-weight: 600;
  color: var(--haupt);
}

.hh-versendet svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.hh-tippt {
  display: inline-flex;
  align-self: flex-start;
  gap: 4px;
  padding: 11px 13px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  box-shadow: 0 6px 18px -12px rgba(20, 26, 41, 0.4);
}

.hh-tippt i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #848b9a;
  animation: hh-punkte 1.1s ease-in-out infinite;
}

.hh-tippt i:nth-child(2) {
  animation-delay: 0.15s;
}

.hh-tippt i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes hh-punkte {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* Eingabefeld wächst mit, damit der ganze Auftrag beim Tippen zu lesen ist. */
.hh-eingabe {
  display: flex;
  flex: none;
  align-items: flex-end;
  gap: 7px;
  padding: 8px 10px 14px;
  border-top: 1px solid var(--linie);
  background: #f6f8fc;
}

.hh-feld {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid var(--linie);
  border-radius: 16px;
  background: #fff;
  font-size: 12px;
  line-height: 1.4;
}

.hh-platzhalter {
  position: absolute;
  top: 7px;
  left: 11px;
  color: #848b9a;
}

.hh-senden {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--haupt);
  color: #fff;
}

.hh-senden svg {
  width: 15px;
  height: 15px;
}

/* Tipp-Effekt ohne Hand: grauer Berührungspunkt und Welle, wie in Bildschirmaufnahmen vom Handy. Gilt auch für
   die Freigabe in der Mail-Simulation (fk-). */
.hh-punkt,
.hh-welle,
.fk-punkt,
.fk-welle {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  visibility: hidden;
  pointer-events: none;
}

.hh-punkt,
.fk-punkt {
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  background: rgba(20, 26, 41, 0.3);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.hh-welle,
.fk-welle {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  background: rgba(255, 255, 255, 0.9);
}

.hh-senden .hh-welle {
  background: rgba(35, 76, 175, 0.45);
}

.hh-freigabe .hh-punkt,
.hh-freigabe .hh-welle,
.fk-punkt,
.fk-welle {
  left: 72%;
}

/* Tastatur: fährt beim Tippen hoch, die gerade getippte Taste ist kurz gedrückt. */
.hh-tastatur {
  flex: none;
  height: 0;
  overflow: hidden;
  background: #d4d9e2;
}

.hh-tasten {
  display: flex;
  flex-direction: column;
  gap: 7px;
  height: 150px;
  padding: 8px 3px 22px;
}

.hh-reihe {
  display: flex;
  justify-content: center;
  gap: 3px;
}

.hh-taste {
  display: grid;
  flex: 0 0 15.8px;
  place-items: center;
  height: 25px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(20, 26, 41, 0.3);
  font-size: 11.5px;
  line-height: 1;
  color: var(--tinte);
}

.hh-taste-breit {
  flex: 1 1 0;
}

.hh-taste-leer {
  flex: 4 1 0;
  font-size: 9.5px;
  color: var(--neben);
}

.hh-taste-grau {
  background: #b6bdca;
  font-size: 10px;
}

.hh-taste svg {
  width: 14px;
  height: 14px;
}

.hh-taste.ist-gedrueckt {
  background: #aab2c0;
  box-shadow: none;
  transform: translateY(1px);
}

.hh-taste-grau.ist-gedrueckt {
  background: #fff;
}

/* Sprechblase über der leuchtenden Figur: groß genug zum Lesen, Rand in Neon. */
.figur.ist-neon.ist-erzaehlt .blase {
  max-width: 260px;
  padding: 8px 13px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 0 0 2px var(--neon), 0 0 22px -2px rgba(106, 156, 251, 0.75), 0 14px 30px -12px rgba(10, 18, 40, 0.45);
}

/* ---------- Fragen als Felder: sichtbar anklickbar (Pfeil, Bewegung beim Drüberfahren) ---------- */

/* Unten läuft der Grund in 90 px weich ins 3D-Büro der Abschnitte aus (ohne die Seite zu verlängern). Beim
   Wegscrollen blenden die Felder an der Kopfzeile aus, --kante kommt aus seite.js. */
.schmerz {
  position: relative;
  z-index: 4;
  margin-bottom: -90px;
  padding: 6px var(--rand) calc(26px + 90px);
  background: linear-gradient(180deg, var(--seitengrund) calc(100% - 90px), transparent);
  color: var(--hero-text);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent var(--kante, -40px), #000 calc(var(--kante, -40px) + 40px));
  mask-image: linear-gradient(180deg, transparent var(--kante, -40px), #000 calc(var(--kante, -40px) + 40px));
}

.schmerz-felder a {
  pointer-events: auto;
}

.schmerz-felder {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.schmerz-felder li {
  display: flex;
}

.schmerz-feld {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-height: 118px;
  padding: 17px 18px 18px;
  border-radius: var(--radius-klein);
  background: var(--haupt);
  box-shadow: 0 18px 32px -24px rgba(17, 29, 62, 0.8);
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s var(--kurve), background-color 0.2s ease, box-shadow 0.25s var(--kurve);
}

.schmerz-zeichen {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.schmerz-zeichen > svg:first-child {
  width: 26px;
  height: 26px;
  flex: none;
  color: #bcd2ff;
}

.schmerz-pfeil {
  width: 30px;
  height: 30px;
  flex: none;
  padding: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: transform 0.25s var(--kurve), background-color 0.2s ease, color 0.2s ease;
}

.schmerz-frage {
  font-size: clamp(16.5px, 1.4vw, 21px);
  font-weight: 680;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.schmerz-feld:focus-visible {
  outline-color: var(--tinte);
}

@media (hover: hover) and (pointer: fine) {
  .schmerz-feld:hover {
    background: var(--haupt-druck);
    box-shadow: 0 26px 38px -22px rgba(17, 29, 62, 0.9);
    transform: translateY(-4px);
  }

  .schmerz-feld:hover .schmerz-pfeil {
    background: var(--haupt-hell);
    color: var(--tinte);
    transform: translateX(4px);
  }
}

.schmerz-feld:focus-visible .schmerz-pfeil {
  background: var(--haupt-hell);
  color: var(--tinte);
}

.schmerz-feld:active {
  transform: scale(0.98);
  transition-duration: 0.12s;
}

.schmerz-loesung {
  margin: 16px 0 0;
  font-size: 19px;
  font-weight: 620;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* Abschnitte mit festgehaltener Bühne */

.kapitel {
  position: relative;
  height: calc(var(--laenge, 400) * 1vh);
}

.kapitel-buehne {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.kapitel-rechts {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 54%;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 112px var(--rand) 36px 0;
  color: var(--grund);
}

.kapitel-text {
  max-width: 560px;
}

.kapitel-text h2 {
  margin: 0;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 630;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.kapitel-text p {
  max-width: 33em;
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.74);
}

/* Simulationen: feste Entwurfsgröße, per --skala eingepasst */

.sim {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 30px;
}

/* Der Meeting-Verlauf hat oben Platz für die Ausblendung, daher etwas höher ansetzen. */
.sim[data-sim='meeting'] {
  margin-top: -14px;
}


/* Schluss */

.schluss {
  position: relative;
  height: 220vh;
}

.schluss-buehne {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px var(--rand) 60px;
  text-align: center;
  color: var(--grund);
}

.schluss-titel {
  margin: 0;
  font-size: clamp(40px, 6vw, 92px);
  font-weight: 660;
  line-height: 1.0;
  letter-spacing: -0.045em;
}

.zeile {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.zeile > span {
  display: inline-block;
}

.schluss-lead {
  max-width: 30em;
  margin: 28px auto 0;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.schluss-knoepfe {
  justify-content: center;
  margin-top: 40px;
}


/* Anfrage: mindestens bildschirmhoch, sonst stünde am Seitenende ein Rest des Schlusses darüber. Der dunkle Grund
   hat ein Loch, durch das man das ganze Büro sieht: seite.js zeichnet es dort in einem zweiten Durchgang und setzt
   --loch-x/-y/-b/-h (hier relativ zum Abschnitt, am Schleier relativ zum Bildschirm). */
.anfrage {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 100vh;
  min-height: 100svh;
  background: none;
}

.anfrage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--tief);
}

.anfrage::before,
.schleier-voll {
  -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  -webkit-mask-position: var(--loch-x, 0) var(--loch-y, 0), 0 0;
  -webkit-mask-size: var(--loch-b, 0px) var(--loch-h, 0px), 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: xor;
  mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  mask-position: var(--loch-x, 0) var(--loch-y, 0), 0 0;
  mask-size: var(--loch-b, 0px) var(--loch-h, 0px), 100% 100%;
  mask-repeat: no-repeat;
  mask-composite: exclude;
}

/* Der Fuß liegt über der festen Leinwand. */
.fuss {
  position: relative;
  z-index: 3;
}

.ohne-3d .anfrage-buero {
  background-image: url('images/raum-zentrale.webp');
}

/* Schmale Bildschirme und Hochformat: Büro oben, Simulation unten */

@media (max-width: 860px), (max-aspect-ratio: 4/5) {
  .schleier-seite {
    background: linear-gradient(180deg,
      rgb(var(--tief-rgb) / 0) 0%,
      rgb(var(--tief-rgb) / 0) 30%,
      rgb(var(--tief-rgb) / 0.72) 42%,
      rgb(var(--tief-rgb) / 0.92) 54%,
      rgb(var(--tief-rgb) / 0.95) 100%);
  }

  .kapitel-rechts {
    left: 0;
    padding: 40vh var(--rand) 20px;
  }

  .kapitel-text h2 {
    font-size: clamp(23px, 6vw, 30px);
  }

  .kapitel-text p {
    margin-top: 8px;
    font-size: 15px;
  }

  .sim,
  .sim[data-sim='meeting'] {
    margin-top: 16px;
  }

  /* Erster Bildschirm: Szene oben über die volle Breite, das Handy überlappt sie rechts unten, Text und Felder
     darunter auf dem Seitengrund (die Leinwand liegt fest dahinter). */
  .start {
    display: block;
    min-height: 0;
  }

  .hero {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .hero-szene {
    position: relative;
    inset: auto;
    flex: none;
    height: 58vh;
    height: 58svh;
    min-height: 360px;
  }

  .hero-schleier {
    background:
      linear-gradient(180deg, var(--seitengrund) 0, color-mix(in srgb, var(--seitengrund) 86%, transparent) 56px, transparent 140px),
      linear-gradient(0deg, var(--seitengrund) 0, transparent 90px);
  }

  .hero-mail {
    display: none;
  }

  .hh-rahmen {
    top: auto;
    right: 16px;
  }

  .hero-text {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    padding: 18px var(--rand) 0;
    transform: none;
    background: var(--seitengrund);
  }

  .hero h1 {
    font-size: clamp(34px, 9vw, 46px);
  }

  .hero-text > p {
    font-size: 17px;
  }

  .schmerz {
    padding-top: 28px;
  }

  .schmerz-felder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schmerz-feld {
    min-height: 0;
  }

  .schmerz-felder li:last-child {
    grid-column: 1 / -1;
  }

  .knopf-mehr {
    margin-top: 12px;
  }

  .schluss-buehne {
    padding: 84px var(--rand) 28px;
  }

  .schluss-lead {
    margin-top: 18px;
    font-size: 17px;
  }

  .schluss-knoepfe {
    margin-top: 28px;
  }
}

@media (max-width: 560px) {
  .kopf .knopf-klein {
    padding: 8px 14px;
    min-height: 38px;
    font-size: 14px;
  }

  .kopf .marke {
    font-size: 18px;
  }

  .kapitel-text p {
    display: none;
  }

  .schmerz-felder {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .buehne,
  .kopf,
  .knopf,
  .schmerz-feld,
  .schmerz-pfeil,
  .knopf-mehr svg {
    transition: none;
  }

  .schmerz-feld:hover,
  .schmerz-feld:active,
  .schmerz-feld:hover .schmerz-pfeil,
  .knopf-mehr:hover svg {
    transform: none;
  }

  .hero-impuls {
    display: none;
  }

  .hh-tippt i,
  .schreibmarke,
  .tippt i,
  .dreher,
  .figur.mit-blase .blase {
    animation: none;
  }
}


/* Häufige Fragen: dunkle Fläche zwischen Formular und Fuß, Titel links, aufklappbare Fragen rechts. */
.fragen {
  padding: 0 0 var(--a-10);
}

.fragen-innen {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--a-5);
  row-gap: var(--a-6);
  align-items: start;
  padding-top: var(--a-9);
  border-top: 1px solid var(--linie-tief);
}

.fragen h2 {
  grid-column: 1 / span 5;
  margin: 0;
  font-size: var(--s-h2);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.fragen-liste {
  grid-column: 6 / span 7;
  border-top: 1px solid var(--linie-tief);
}

.fragen-eintrag {
  border-bottom: 1px solid var(--linie-tief);
}

.fragen-eintrag summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--a-5);
  min-height: 44px;
  padding: var(--a-5) 0;
  font-size: var(--s-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.fragen-eintrag summary::-webkit-details-marker {
  display: none;
}

/* Plus, das sich beim Aufklappen zum Minus dreht. */
.frage-zeichen {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
}

.frage-zeichen::before,
.frage-zeichen::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.52s var(--kurve);
}

.frage-zeichen::after {
  transform: rotate(90deg);
}

html:not(.mit-js) .fragen-eintrag[open] .frage-zeichen::after,
.fragen-eintrag.ist-offen .frage-zeichen::after {
  transform: rotate(0deg);
}

/* Eigener Block für die Antwort: Das Skript animiert seine Höhe, flow-root hält die Ränder darin. */
.fragen-antwort {
  display: flow-root;
}

.fragen-eintrag p {
  max-width: 58ch;
  margin: 0;
  padding-bottom: var(--a-5);
  font-size: var(--s-text);
  line-height: 1.65;
  color: var(--tief-neben);
}

.fragen-eintrag .knopf {
  margin-bottom: var(--a-5);
}

@media (hover: hover) and (pointer: fine) {
  .fragen-eintrag summary:hover {
    color: var(--haupt-hell);
  }
}

@media (max-width: 860px) {
  .fragen h2,
  .fragen-liste {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .frage-zeichen::before,
  .frage-zeichen::after {
    transition: none;
  }
}
