/* KI-Office.at, gemeinsame Grundlage für Startseite und Unterseiten: Farben (CI Blau), Schrift, Knöpfe,
   Simulationen, Sprechblasen, Anfrage und Fuß. Startseite dazu seite.css, Unterseiten ablauf/ablauf.css.
   Kontraste (WCAG 2.2 AA) stehen in docs/CI-DESIGN.md. */

@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-variabel.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* CI Blau: Königsblau, Textmarker-Gelb nur für die Freigabe. */
:root {
  --haupt: #234caf;
  --haupt-druck: #1a3a8a;
  --haupt-hell: #77a4f6;
  --haupt-zart: #ebeff8;
  --tief: #111d3e;
  --tief-rgb: 17 29 62;
  --tief-neben: #bac4d8;
  --tief-flaeche: #222d4b;
  --akzent: #f7e954;
  --grund: #ffffff;
  --flaeche: #f3f6fb;
  --tinte: #141a29;
  --neben: #535b6c;
  --linie: #e2e5eb;
  --linie-stark: #778093;
  --linie-tief: #37415d;
  --glow: #6a9cfb;

  --kurve: cubic-bezier(0.16, 1, 0.3, 1);
  --kurve-weich: cubic-bezier(0.25, 1, 0.5, 1);
  --rand: max(20px, 4.5vw);
  --breite: 1360px;
  --radius: 14px;
  --radius-klein: 8px;

  /* Abstände (4er-Raster) */
  --a-1: 4px;
  --a-2: 8px;
  --a-3: 12px;
  --a-4: 16px;
  --a-5: 24px;
  --a-6: 32px;
  --a-7: 48px;
  --a-8: 64px;
  --a-9: 96px;
  --a-10: clamp(96px, 11vw, 160px);

  /* Schriftgrößen (Verhältnis etwa 1,33) */
  --s-klein: 0.9375rem;
  --s-text: 1.0625rem;
  --s-lead: clamp(1.125rem, 1rem + 0.35vw, 1.3125rem);
  --s-h3: clamp(1.25rem, 1.1rem + 0.4vw, 1.4375rem);
  --s-h2: clamp(2.125rem, 1.4rem + 2.3vw, 3.5rem);

  --fokus: var(--haupt);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Geist', system-ui, sans-serif;
  color: var(--tinte);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  overflow-x: clip;
}

h1,
h2,
h3,
.blase {
  text-wrap: balance;
}

p,
li,
label,
figcaption {
  text-wrap: pretty;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Fokusrahmen: Königsblau auf hellem Grund, Textmarker-Gelb auf dunklem Grund. */
:focus-visible {
  outline: 2px solid var(--fokus);
  outline-offset: 3px;
}

.ist-dunkel {
  --fokus: var(--akzent);
  color: #fff;
  background: var(--tief);
}

.innen {
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin: 0 auto;
  padding: 0 var(--rand);
}

/* Textmarker: Hervorhebung hinter dem Wort, wächst beim Hereinscrollen von links nach rechts. */
mark {
  padding: 0 0.1em;
  margin: 0 -0.04em;
  color: var(--tinte);
  background: linear-gradient(var(--akzent), var(--akzent)) no-repeat 0 62% / 100% 74%;
  border-radius: 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    mark {
      animation: markieren linear both;
      animation-timeline: view();
      animation-range: entry 40% cover 40%;
    }
  }
}

@keyframes markieren {
  from {
    background-size: 0% 74%;
  }
}

/* Knöpfe: rechteckig mit kleiner Rundung, der Text sagt, was passiert. Beim Drücken geben sie leicht nach. */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-klein);
  background: var(--haupt);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 620;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.16s var(--kurve-weich);
}

.knopf:active {
  transform: scale(0.97);
}

.knopf svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.3s var(--kurve);
}

.knopf-klein {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

.knopf-rand {
  background: transparent;
  color: var(--tinte);
  box-shadow: inset 0 0 0 1.5px var(--linie-stark);
}

/* Auf dunklem Grund: hell gefüllt oder heller Rand. */
.knopf-hell {
  background: #fff;
  color: var(--tief);
}

.knopf-hell-rand {
  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:hover {
    background: var(--haupt-druck);
  }

  .knopf:hover svg {
    transform: translateX(3px);
  }

  .knopf-rand:hover {
    background: var(--haupt-zart);
    box-shadow: inset 0 0 0 1.5px var(--haupt);
  }

  .knopf-hell:hover {
    background: var(--haupt-zart);
  }

  .knopf-hell-rand:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1.5px #fff;
  }
}

.knopf-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: var(--a-3);
}

.marke {
  display: inline-flex;
  align-items: center;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}

/* ---------- Simulationen (Startseite und Unterseiten) ---------- */

.sim-flaeche {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--b) * 1px);
  height: calc(var(--h) * 1px);
  transform: scale(var(--skala, 1));
  transform-origin: top left;
  font-size: 14px;
  line-height: 1.45;
  color: var(--tinte);
}

.fenster {
  position: absolute;
  overflow: hidden;
  border-radius: 12px;
  background: var(--grund);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 24px 60px -20px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.18);
}

.fenster-leiste {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--linie);
  background: var(--flaeche);
  font-size: 13px;
  font-weight: 600;
  color: var(--neben);
}

.fenster-punkte {
  display: flex;
  gap: 6px;
}

.fenster-punkte i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d3d9e3;
}

.fenster-titel {
  color: var(--tinte);
}

.sim svg {
  display: block;
}

/* Mailfenster */

.mail-fenster {
  top: 0;
  left: 0;
  width: 520px;
  height: 448px;
  display: flex;
  flex-direction: column;
}

.mail-inhalt {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.mail-feld {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding: 0 18px;
  border-bottom: 1px solid var(--linie);
}

.mail-feld-name {
  width: 52px;
  flex: none;
  color: var(--neben);
}

.mail-kontakt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 3px 3px;
  border-radius: 6px;
  background: var(--haupt-zart);
  font-weight: 560;
}

.mail-kontakt-kreis {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--haupt);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.mail-betreff {
  font-weight: 600;
}

.mail-text {
  flex: 1;
  padding: 16px 18px 6px;
  white-space: pre-wrap;
  font-size: 14.5px;
  line-height: 1.55;
  overflow: hidden;
}

.schreibmarke {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: -0.2em;
  background: var(--haupt);
  animation: blinken 1s steps(2, start) infinite;
}

@keyframes blinken {
  to { visibility: hidden; }
}

.mail-anhang {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  margin: 0 18px 12px;
  padding: 7px 12px 7px 9px;
  border: 1px solid var(--linie);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 560;
}

.mail-anhang svg {
  width: 18px;
  height: 18px;
  color: #b0523a;
}

.mail-anhang small {
  color: var(--neben);
  font-weight: 450;
}

.mail-fuss {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
  padding: 0 14px 0 18px;
  border-top: 1px solid var(--linie);
  background: var(--flaeche);
}

.mail-status {
  position: relative;
  flex: 1;
  height: 22px;
}

.status {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  visibility: hidden;
}

.status svg {
  width: 18px;
  height: 18px;
}

.status-freigabe {
  color: #8a5d0c;
}

.status-frei,
.status-gesendet {
  color: var(--haupt);
}

.mail-senden {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px 0 13px;
  border-radius: 6px;
  background: var(--haupt);
  color: #fff;
  font-weight: 620;
}

.mail-senden svg {
  width: 16px;
  height: 16px;
}

.flieger {
  position: absolute;
  right: 40px;
  bottom: 18px;
  width: 30px;
  height: 30px;
  color: var(--haupt-hell);
  visibility: hidden;
}

.mail-gesendet {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  visibility: hidden;
}

.gesendet-kreis {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--haupt-zart);
  color: var(--haupt);
}

.gesendet-kreis svg {
  width: 34px;
  height: 34px;
}

.mail-gesendet strong {
  font-size: 17px;
  font-weight: 640;
}

.mail-gesendet span {
  color: var(--neben);
}

/* Handy der Freigabe (ohne Hand, getippt wird wie im ersten Bildschirm) */

.handy {
  position: absolute;
  left: 368px;
  top: -4px;
  width: 228px;
  height: 470px;
  padding: 9px;
  border-radius: 40px;
  background: linear-gradient(140deg, #3a3f4a, #12151c 60%);
  box-shadow: 0 0 0 1.5px #5a606d inset, 0 30px 60px -18px rgba(0, 0, 0, 0.7);
  transform-origin: 50% 100%;
  visibility: hidden;
}

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

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

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

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

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

.handy-app {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 20px 4px 14px;
  font-size: 13px;
  font-weight: 700;
}

.handy-logo {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: conic-gradient(from 200deg, var(--haupt), var(--haupt-hell), var(--haupt));
}

.freigabe {
  padding: 14px 13px 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px -12px rgba(20, 26, 41, 0.35);
}

.freigabe-titel {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.freigabe-text {
  margin: 5px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--neben);
}

.freigabe-vorschau {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 10px 11px;
  border-radius: 10px;
  background: var(--flaeche);
  font-size: 11.5px;
  line-height: 1.4;
}

.freigabe-vorschau strong {
  font-size: 12.5px;
  text-wrap: balance;
}

.freigabe-vorschau span {
  color: var(--neben);
}

.freigabe-vorschau small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--neben);
}

.freigabe-vorschau small svg {
  width: 13px;
  height: 13px;
}

.freigabe-knopf {
  position: relative;
  display: grid;
  place-items: center;
  height: 46px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--haupt);
  color: #fff;
  font-size: 14.5px;
  font-weight: 650;
}

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

.fk-ok {
  visibility: hidden;
}

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

.freigabe-zweit {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--neben);
}

/* Schnittfenster */

.schnitt-fenster {
  top: 0;
  left: 0;
  width: 620px;
  height: 450px;
  display: flex;
  flex-direction: column;
  background: #1d2233;
  color: #e6e9f0;
}

.schnitt-fenster .fenster-leiste {
  background: #282e40;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: rgba(230, 233, 240, 0.6);
}

.schnitt-fenster .fenster-titel {
  color: #f0f2f7;
}

.schnitt-fenster .fenster-punkte i {
  background: #474e60;
}

.zeitraffer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(119, 164, 246, 0.16);
  color: var(--haupt-hell);
  font-size: 12px;
  font-weight: 650;
}

.zeitraffer svg {
  width: 14px;
  height: 14px;
}

.schnitt-oben {
  display: flex;
  gap: 12px;
  height: 214px;
  padding: 12px;
}

.schnitt-medien {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: start;
  width: 254px;
}

.medium {
  display: grid;
  gap: 5px;
  padding: 5px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.medium-bild {
  display: block;
  height: 54px;
  border-radius: 3px;
  overflow: hidden;
}

.medium-name {
  font-size: 11.5px;
  font-weight: 560;
  color: rgba(230, 233, 240, 0.75);
}

.schnitt-vorschau {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 6px;
  background: #0c0f1a;
}

.vorschau-bild {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(var(--zoom, 1.05));
  transition: opacity 0.18s linear;
}

.vorschau-bild.ist-sichtbar {
  opacity: 1;
}

.bild-deko {
  position: absolute;
  inset: 0;
}

/* Vorschaubilder der vier Clips: einfache Bad-Motive aus Flächen */
.bild-0 {
  background:
    linear-gradient(180deg, transparent 0 62%, rgba(80, 60, 30, 0.22) 62% 66%, transparent 66%),
    repeating-linear-gradient(90deg, rgba(120, 100, 70, 0.35) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(120, 100, 70, 0.35) 0 1px, transparent 1px 22px),
    #d6c7a6;
}

.bild-0 .bild-deko {
  background:
    radial-gradient(ellipse 22% 16% at 30% 70%, #f2efe8 0 96%, transparent 100%),
    radial-gradient(circle at 72% 30%, rgba(95, 75, 45, 0.28) 0 8%, transparent 9%);
}

.bild-1 {
  background:
    repeating-linear-gradient(-35deg, rgba(90, 70, 50, 0.25) 0 6px, transparent 6px 20px),
    linear-gradient(180deg, #b9a58b, #8f7a62);
}

.bild-1 .bild-deko {
  background:
    radial-gradient(circle at 22% 78%, #6b5848 0 7%, transparent 8%),
    radial-gradient(circle at 48% 84%, #7a6656 0 5%, transparent 6%),
    radial-gradient(circle at 70% 80%, #5d4c3f 0 9%, transparent 10%),
    radial-gradient(80% 60% at 50% 30%, rgba(255, 250, 240, 0.35), transparent 70%);
}

.bild-2 {
  background:
    linear-gradient(90deg, transparent 0 55%, #a8987f 55%),
    repeating-linear-gradient(90deg, rgba(90, 100, 100, 0.4) 0 1.5px, transparent 1.5px 30px),
    repeating-linear-gradient(0deg, rgba(90, 100, 100, 0.4) 0 1.5px, transparent 1.5px 30px),
    #cdd3d0;
}

.bild-2 .bild-deko {
  background: linear-gradient(115deg, transparent 0 58%, #6d7a78 58% 66%, transparent 66%);
  opacity: 0.6;
}

.bild-3 {
  background:
    linear-gradient(90deg, transparent 0 70%, #3f8a82 70% 76%, transparent 76%),
    repeating-linear-gradient(90deg, rgba(160, 160, 150, 0.3) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(160, 160, 150, 0.3) 0 1px, transparent 1px 46px),
    #efeee9;
}

.bild-3 .bild-deko {
  background:
    radial-gradient(circle at 38% 33%, rgba(255, 255, 255, 0.92) 0 10%, #c3cecb 10.5% 11.6%, transparent 12%),
    radial-gradient(ellipse 8% 3.5% at 38% 61%, #ffffff 0 92%, transparent 100%),
    linear-gradient(#b48a5c, #a57c50) 24% 66% / 30% 9% no-repeat,
    radial-gradient(ellipse 4% 11% at 87% 66%, #5f8f55 0 92%, transparent 100%),
    linear-gradient(#d4cec3, #d4cec3) 85.5% 84% / 5% 9% no-repeat,
    radial-gradient(90% 70% at 30% 20%, rgba(255, 252, 240, 0.5), transparent 70%);
}

.schnitt-vorschau::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.vorschau-titel {
  position: absolute;
  z-index: 1;
  left: 16px;
  bottom: 14px;
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.vorschau-zeit {
  position: absolute;
  z-index: 1;
  right: 10px;
  top: 8px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.45);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.schnitt-zeitleiste {
  position: relative;
  flex: 1;
  padding: 4px 12px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.zl-reihe {
  display: flex;
  align-items: center;
  height: 34px;
}

.zl-lineal-reihe {
  height: 22px;
}

.zl-name {
  width: 60px;
  flex: none;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(230, 233, 240, 0.55);
}

.zl-flaeche {
  position: relative;
  flex: 1;
  height: 28px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
}

.zl-lineal {
  height: 18px;
  background: none;
}

.zl-lineal span {
  position: absolute;
  top: 2px;
  padding-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: rgba(230, 233, 240, 0.5);
}

.zl-clip {
  position: absolute;
  top: 2px;
  bottom: 2px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 7px;
  font-size: 11px;
  white-space: nowrap;
  color: #fff;
  visibility: hidden;
  transform-origin: center;
}

.zl-clip b {
  position: relative;
  font-weight: 620;
}

.rund-l {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.rund-r {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.clip-0 { background: #7c847a; }
.clip-1 { background: #a06a4a; }
.clip-2 { background: #ad8d45; }
.clip-3 { background: #3f8a82; }

.clip-titel {
  background: #e9e3d6;
  color: var(--tinte);
}

.clip-ton {
  background: #4f6b84;
}

.welle {
  position: absolute;
  inset: 3px 6px 3px 54px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.welle i {
  flex: 1;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.45);
  transform-origin: center;
}

.zl-schnitt {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 2px;
  margin-left: -1px;
  background: #ff7a59;
  box-shadow: 0 0 10px #ff7a59;
  visibility: hidden;
  z-index: 2;
}

.zl-schere {
  position: absolute;
  top: -22px;
  left: 0;
  width: 18px;
  height: 18px;
  color: #ff9a7e;
  visibility: hidden;
  z-index: 3;
}

.zl-kopf {
  position: absolute;
  top: 4px;
  bottom: 6px;
  left: 72px;
  width: 2px;
  background: var(--haupt-hell);
  box-shadow: 0 0 8px rgba(119, 164, 246, 0.8);
  opacity: 0;
  z-index: 4;
}

.zl-kopf::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -5px;
  width: 12px;
  height: 10px;
  border-radius: 2px 2px 6px 6px;
  background: var(--haupt-hell);
}

.schnitt-fuss {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #252b3c;
  font-size: 13px;
  font-weight: 600;
}

.export-name,
.export-balken,
.export-zahl {
  visibility: hidden;
}

.export-balken {
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.export-balken i {
  display: block;
  height: 100%;
  background: var(--haupt-hell);
  transform: scaleX(0);
  transform-origin: left;
}

.export-zahl {
  width: 42px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.schnitt-status {
  position: absolute;
  left: 14px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: -10px;
  color: var(--haupt-hell);
  visibility: hidden;
}

.schnitt-status svg {
  width: 18px;
  height: 18px;
}

/* Meeting: Ergebnis als Nachrichten auf dem dunklen Verlauf */

.verlauf {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 16px, #000 52px, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0, transparent 16px, #000 52px, #000 100%);
}

.verlauf-inhalt {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 52px;
}

.live-karte {
  padding: 14px 16px 16px;
  border: 1px solid var(--linie-hell);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--grund);
  visibility: hidden;
}

.live-kopf {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.live-punkt {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b57;
  box-shadow: 0 0 0 4px rgba(255, 107, 87, 0.2);
}

.live-status {
  position: relative;
  display: grid;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.live-laeuft,
.live-ende {
  grid-area: 1 / 1;
  justify-self: end;
}

.live-ende {
  visibility: hidden;
}

.teilnehmer-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.teilnehmer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px 6px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 600;
  visibility: hidden;
}

.teilnehmer i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--farbe, var(--haupt-hell));
}

.mitschrift {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--linie-hell);
  list-style: none;
}

.mitschrift li {
  display: grid;
  grid-template-columns: 158px 1fr;
  gap: 12px;
  font-size: 17.5px;
  line-height: 1.4;
  visibility: hidden;
}

.mitschrift strong {
  position: relative;
  padding-left: 15px;
  font-weight: 620;
  color: rgba(255, 255, 255, 0.62);
}

.mitschrift strong::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--farbe, var(--haupt-hell));
}

.mitschrift span {
  color: var(--grund);
}

.nachricht {
  padding: 14px 16px 16px;
  border-radius: 12px;
  background: var(--grund);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  visibility: hidden;
}

.nachricht-kopf {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
}

.nachricht-kopf time {
  margin-left: auto;
  color: var(--neben);
}

.nachricht-avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--haupt-zart);
  color: var(--haupt);
}

.nachricht-avatar svg {
  width: 17px;
  height: 17px;
}

.nachricht-titel {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 640;
  line-height: 1.35;
}

.empfehlung {
  margin: 8px 0 0;
  padding: 9px 12px;
  border-radius: var(--radius-klein);
  background: var(--flaeche);
  font-size: 17px;
}

.ideen {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: idee;
}

.ideen li {
  position: relative;
  padding: 7px 10px 7px 36px;
  border-radius: 6px;
  background: var(--flaeche);
  font-size: 17px;
  counter-increment: idee;
}

.ideen li::before {
  content: counter(idee);
  position: absolute;
  left: 10px;
  top: 9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--haupt);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.frage {
  margin: 12px 0 0;
  font-size: 17.5px;
  font-weight: 600;
}

.antworten {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.antwort {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 92px;
  height: 42px;
  padding: 0 20px;
  border: 1.5px solid #cfd6e2;
  border-radius: 8px;
  font-size: 16.5px;
  font-weight: 650;
}

.antwort-ja {
  border-color: transparent;
  background: var(--haupt-zart);
  color: var(--haupt-druck);
}

.tipp {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: var(--haupt-hell);
  visibility: hidden;
}

.eigene {
  align-self: flex-end;
  margin: 0;
  padding: 8px 18px;
  border-radius: 14px 14px 4px 14px;
  background: var(--haupt-hell);
  color: var(--tinte);
  font-size: 17px;
  font-weight: 650;
  visibility: hidden;
}

.nachricht-hinweis {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--haupt-zart);
}

.nachricht-hinweis p {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

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

.hinweis-symbol svg {
  width: 20px;
  height: 20px;
}

.tippt {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 10px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  visibility: hidden;
}

.tippt i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  animation: tippen 1s ease-in-out infinite;
}

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

/* Die Tipp-Anzeige sitzt an der Stelle der folgenden Nachricht und hält keinen eigenen Platz frei. */
.verlauf-inhalt .tippt {
  margin-bottom: -38px;
}

.chat-inhalt .tippt {
  margin-bottom: -36px;
}

.tippt-hell {
  background: var(--flaeche);
}

.tippt-hell i {
  background: #7a8296;
}

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

/* Zentrale: Chat mit dem Orchestrator */

.chat-fenster {
  top: 0;
  left: 0;
  width: calc(var(--b) * 1px);
  height: calc(var(--h) * 1px);
  display: flex;
  flex-direction: column;
}

.chat-kopf {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 72px;
  padding: 0 20px;
  border-bottom: 1px solid var(--linie);
  background: var(--flaeche);
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--haupt);
  color: #fff;
}

.chat-avatar svg {
  width: 25px;
  height: 25px;
}

.chat-name {
  display: grid;
  line-height: 1.25;
}

.chat-name strong {
  font-size: 18px;
}

.chat-name span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  color: var(--neben);
}

.chat-name i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fb38f;
}

.chat-verlauf {
  position: relative;
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 100%);
}

.chat-inhalt {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 6px;
}

.chat-blase {
  max-width: 84%;
  margin: 0;
  padding: 11px 16px;
  font-size: 17.5px;
  line-height: 1.45;
  visibility: hidden;
}

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

.chat-orch {
  align-self: flex-start;
  border-radius: 14px 14px 14px 4px;
  background: var(--flaeche);
}

.chat-ergebnis p {
  margin: 0;
  font-weight: 560;
}

.chat-knopf {
  display: inline-flex;
  align-items: center;
  height: 42px;
  margin-top: 12px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--haupt);
  color: #fff;
  font-size: 16px;
  font-weight: 650;
}

.aufgaben {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.aufgabe {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--linie);
  border-radius: 10px;
  visibility: hidden;
}

.aufgabe-punkt {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: #c3cad6;
}

.aufgabe-text {
  display: grid;
  line-height: 1.3;
}

.aufgabe-text strong {
  font-size: 17px;
}

.aufgabe-text span {
  font-size: 15.5px;
  color: var(--neben);
}

.aufgabe-status {
  display: grid;
  margin-left: auto;
  font-size: 15px;
  font-weight: 650;
}

.status-arbeit,
.status-fertig {
  grid-area: 1 / 1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  visibility: hidden;
}

.status-arbeit {
  color: #8a5d0c;
}

.status-fertig {
  color: var(--haupt);
}

.status-fertig svg {
  width: 18px;
  height: 18px;
}

.dreher {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(138, 93, 12, 0.25);
  border-top-color: #8a5d0c;
  border-radius: 50%;
  animation: drehen 0.8s linear infinite;
}

@keyframes drehen {
  to { transform: rotate(360deg); }
}

.chat-eingabe {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--linie);
}

.chat-feld {
  position: relative;
  flex: 1;
  height: 48px;
  padding: 0 16px;
  overflow: hidden;
  border: 1px solid var(--linie);
  border-radius: 24px;
  background: #f8fafd;
  font-size: 16.5px;
  line-height: 46px;
  white-space: nowrap;
}

.chat-platzhalter {
  position: absolute;
  left: 16px;
  color: #848b9a;
}

.chat-senden {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--haupt);
  color: #fff;
}

.chat-senden svg {
  width: 20px;
  height: 20px;
}

/* Sprechblasen und Namensschilder der Figuren (wie im Demoraum) */

.figur {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.blase {
  position: relative;
  display: none;
  max-width: 200px;
  margin: 0 0 4px;
  padding: 7px 11px;
  border-radius: 12px;
  background: var(--grund);
  box-shadow: 0 1px 2px rgba(20, 26, 41, 0.14), 0 10px 26px -12px rgba(20, 26, 41, 0.42);
  font-size: 12.5px;
  font-weight: 560;
  line-height: 1.3;
  text-align: center;
  color: var(--tinte);
}

/* --versatz kommt aus seite.js (Blase am Bildrand), der Pfeil bleibt über dem Kopf. */
.blase {
  translate: var(--versatz, 0px) 0;
}

.blase::after {
  content: '';
  position: absolute;
  left: clamp(14px, calc(50% - var(--versatz, 0px)), calc(100% - 14px));
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: var(--grund);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}

.figur.mit-blase .blase {
  display: block;
  transform-origin: 50% 100%;
  animation: blase-auf 0.3s var(--kurve);
}

.figur.ist-fern .blase {
  max-width: 168px;
  padding: 5px 9px;
  font-size: 11px;
}

.figur.ist-erzaehlt .blase {
  max-width: 230px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 0 0 2px var(--haupt), 0 14px 30px -12px rgba(10, 18, 40, 0.5);
}

/* Blasen mit höchstens drei Wörtern stehen in einer Zeile, sonst bliebe ein Wort allein in der zweiten. */
.figur.ist-erzaehlt.ist-kurz .blase {
  max-width: none;
  white-space: nowrap;
}

@keyframes blase-auf {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.92);
  }
}

.namensschild {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 2px rgba(20, 26, 41, 0.14), 0 10px 26px -12px rgba(20, 26, 41, 0.42);
  font: inherit;
  font-size: 12px;
  font-weight: 620;
  color: var(--tinte);
  white-space: nowrap;
}

.namenspunkt {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--figur-farbe);
}

.figur.mit-name .namensschild {
  display: inline-flex;
}

/* ---------- Anfrage ---------- */

/* Ränder der Browser-Grundeinstellung aus, die Abstände unten gelten (gleich auf Startseite und Unterseiten). */
:where(.anfrage, .fuss) :where(h2, p, ul) {
  margin-top: 0;
  margin-bottom: 0;
}

.anfrage {
  padding: var(--a-10) 0;
}

.anfrage-innen {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--a-5);
  row-gap: var(--a-7);
  align-items: start;
}

.anfrage-text {
  grid-column: 1 / span 5;
  display: grid;
  align-content: start;
  justify-items: start;
}

/* „Jetzt anfragen“ steht in einer Zeile, ein Wort allein pro Zeile soll es nicht geben. */
.anfrage h2 {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 4.25rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}

.anfrage-lead {
  max-width: 32ch;
  margin-top: var(--a-5);
  font-size: var(--s-lead);
  line-height: 1.55;
  color: var(--tief-neben);
}

.anfrage-text .anfrage-buero {
  justify-self: stretch;
  height: clamp(240px, 26vw, 360px);
  margin: var(--a-4) calc(-1 * var(--a-6)) 0;
  background: transparent center / contain no-repeat;
}

.versprechen {
  max-width: 26ch;
  margin-top: var(--a-4);
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
  font-weight: 560;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.anfrage-text .knopf {
  margin-top: var(--a-6);
}

.formular {
  position: sticky;
  top: 104px;
  grid-column: 7 / -1;
  margin-top: clamp(8px, 1.4vw, 20px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--a-5) var(--a-4);
  --pad: clamp(28px, 3.6vw, 56px);
  padding: var(--pad);
  border-radius: 18px;
  background: var(--grund);
  color: var(--tinte);
  --fokus: var(--haupt);
}

/* Fensterleiste wie beim Mailfenster der Simulation: Die Anfrage ist eine Nachricht an KI-Office. */
.formular-leiste {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) var(--a-2);
  padding: 0 clamp(20px, 2.4vw, 28px);
  height: 52px;
  border-bottom: 1px solid var(--linie);
  border-radius: 18px 18px 0 0;
  background: var(--flaeche);
  font-size: var(--s-klein);
  font-weight: 620;
}

.leiste-punkte {
  display: flex;
  gap: 7px;
}

.leiste-punkte i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--linie-stark);
  opacity: 0.45;
}

.feld {
  display: grid;
  gap: var(--a-2);
  align-content: start;
}

.feld-breit {
  grid-column: 1 / -1;
}

.feld label {
  font-size: var(--s-klein);
  font-weight: 620;
}

.optional {
  font-weight: 450;
  color: var(--neben);
}

.feld input[type='text'],
.feld input[type='email'],
.feld input[type='tel'] {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1px solid var(--linie-stark);
  border-radius: var(--radius-klein);
  background: var(--grund);
  color: var(--tinte);
  font: inherit;
  font-size: 1.0625rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#f-gewerk {
  height: 64px;
  font-size: 1.1875rem;
  background: var(--flaeche);
}

.feld input::placeholder {
  color: var(--neben);
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .feld input:hover {
    border-color: var(--tinte);
  }
}

.feld input:focus {
  outline: none;
  border-color: var(--haupt);
  background: var(--grund);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--haupt) 24%, white);
}

.feld input[aria-invalid='true'] {
  border-color: #b42318;
  box-shadow: 0 0 0 3px #fbe1de;
}

.feld input[aria-invalid='true']:focus {
  border-color: #b42318;
  box-shadow: 0 0 0 3px #f2b8b1;
}

.feld-haken {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--a-3);
  align-items: start;
  padding: var(--a-4);
  border-radius: var(--radius-klein);
  background: var(--flaeche);
}

.feld-haken input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--haupt);
  cursor: pointer;
}

.feld-haken label {
  font-weight: 450;
  line-height: 1.5;
  cursor: pointer;
}

.feld-haken:has(input[aria-invalid='true']) {
  box-shadow: inset 0 0 0 1.5px #b42318;
}

.honig {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formular-fuss {
  display: grid;
  gap: var(--a-4);
  justify-items: start;
}

.knopf-senden {
  min-height: 60px;
  padding: 0 28px;
  font-size: 1.0625rem;
}

.knopf-senden:disabled {
  opacity: 0.6;
  cursor: progress;
}

.formular-meldung {
  font-size: var(--s-klein);
  line-height: 1.5;
}

.formular-meldung:not(:empty) {
  padding: var(--a-3) var(--a-4);
  border-radius: var(--radius-klein);
  background: var(--flaeche);
}

/* Meldung erscheint weich statt schlagartig, damit das Auge sie bemerkt. */
.formular-meldung.ist-fehler,
.formular-meldung.ist-ok {
  animation: meldung-auf 0.22s var(--kurve);
}

@keyframes meldung-auf {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.formular-meldung.ist-fehler {
  background: #fdeceb;
  color: #9b1c12;
}

.formular-meldung.ist-ok {
  background: var(--haupt-zart);
  color: var(--tinte);
}

/* Fuß */
.fuss {
  padding: var(--a-8) var(--rand) var(--a-6);
}

.fuss-innen {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--a-6) var(--a-7);
  max-width: var(--breite);
  margin: 0 auto;
}

.fuss .marke {
  font-size: clamp(1.75rem, 1rem + 2.6vw, 3rem);
  letter-spacing: -0.035em;
}

.fuss-wege {
  display: flex;
  flex-wrap: wrap;
  gap: var(--a-2) var(--a-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.fuss-wege a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 560;
  text-decoration: none;
  color: var(--tief-neben);
}

.fuss-wege a:focus-visible,
.fuss-wege a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.fuss-recht {
  grid-column: 1 / -1;
  padding-top: var(--a-5);
  border-top: 1px solid var(--linie-tief);
  font-size: var(--s-klein);
  color: var(--tief-neben);
}

@media (max-width: 960px) {
  .anfrage-text,
  .formular {
    grid-column: 1 / -1;
  }

  .formular {
    position: relative;
    top: 0;
  }
}

@media (max-width: 640px) {
  .fuss-innen {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .formular {
    grid-template-columns: 1fr;
    --pad: var(--a-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .knopf:active {
    transform: none;
  }

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