/* masesites – Leistungsseite «Vier Welten, eine Bühne».
   Jede Leistung setzt über [data-welt] am <main> ihr eigenes Farbklima
   (Eigenschaften --lw-*). Der Wechsel läuft als Lichtwechsel: eine Fläche
   in der Zielfarbe rollt vom angeklickten Knopf über die Seite (siehe
   leistungen.js). Die KI-Welt ist bewusst die laute – die anderen bleiben
   ruhig, damit sie wirkt. */

/* ---------- Bühne und Farbklimata ---------- */

.lw {
  --lw-bg: var(--bg);
  --lw-bg-tief: var(--bg-warm);
  --lw-ink: var(--ink);
  --lw-ink-soft: var(--ink-soft);
  --lw-linie: var(--line);
  --lw-karte: var(--card);
  --lw-punkt: #C8A265;
  background:
    radial-gradient(900px 520px at 82% 4%, var(--lw-bg-tief), transparent 62%),
    var(--lw-bg);
  color: var(--lw-ink);
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 34px);
  transition: background-color 0.5s ease, color 0.5s ease;
}

.lw[data-welt="ueberarbeitung"] {
  --lw-bg: #F2EDE2;
  --lw-bg-tief: #E4DCCB;
  --lw-ink: #33291D;
  --lw-ink-soft: #77684F;
  --lw-linie: #DCD2BC;
  --lw-karte: #FFFDF7;
  --lw-punkt: #A96A32;
}

.lw[data-welt="webapp"] {
  --lw-bg: #EDF1F5;
  --lw-bg-tief: #DEE6EE;
  --lw-ink: #18202B;
  --lw-ink-soft: #4E5D70;
  --lw-linie: #D4DDE7;
  --lw-karte: #FFFFFF;
  --lw-punkt: #3D7BFA;
}

.lw[data-welt="ki"] {
  --lw-bg: #06060B;
  --lw-bg-tief: #101020;
  --lw-ink: #EEF1FF;
  --lw-ink-soft: #9AA3C7;
  --lw-linie: #23233A;
  --lw-karte: #0D0D18;
  --lw-punkt: #8B5CF6;
}

/* ---------- Kopf: Titel und Welt-Knöpfe ---------- */

.lw-kopf { text-align: center; padding-bottom: 34px; position: relative; z-index: 2; }
.lw-kopf h1 { margin-bottom: 10px; }
.lw-untertitel { color: var(--lw-ink-soft); margin-bottom: 26px; transition: color 0.5s ease; }

.lw-tabs {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  padding: 6px;
  background: color-mix(in srgb, var(--lw-karte) 72%, transparent);
  border: 1.5px solid var(--lw-linie);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.5s ease, border-color 0.5s ease;
}
.lw-tab {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; cursor: pointer;
  background: none;
  color: var(--lw-ink-soft);
  font: 600 0.95rem var(--font-sans);
  padding: 10px 18px;
  border-radius: 999px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s var(--ease-out);
}
.lw-tab:hover { color: var(--lw-ink); }
.lw-tab.active {
  background: var(--lw-ink);
  color: var(--lw-bg);
}
.lw-tab:focus-visible { outline: 2px solid var(--lw-punkt); outline-offset: 2px; }

/* ---------- Welt-Bühne (Panelaufbau) ---------- */

.lw-welt { position: relative; padding: 26px 0 96px; overflow: hidden; }
.lw-buehne {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.lw-text h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  margin-bottom: 16px;
}
.lw-text > p { color: var(--lw-ink-soft); max-width: 52ch; margin-bottom: 26px; transition: color 0.5s ease; }

.lw-merkmale { list-style: none; display: grid; gap: 14px; margin-bottom: 30px; }
.lw-merkmale li {
  background: var(--lw-karte);
  border: 1.5px solid var(--lw-linie);
  border-radius: var(--radius-m);
  padding: 14px 18px;
  display: grid; gap: 3px;
  transition: background-color 0.5s ease, border-color 0.5s ease;
}
.lw-merkmale b { font-size: 1rem; }
.lw-merkmale span { color: var(--lw-ink-soft); font-size: 0.92rem; transition: color 0.5s ease; }

.lw-aktion { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.lw-neben {
  font-weight: 600; font-size: 0.95rem;
  color: var(--lw-ink-soft);
  text-decoration: underline; text-underline-offset: 4px;
  transition: color 0.3s ease;
}
.lw-neben:hover { color: var(--lw-ink); }

/* Der Primärknopf übernimmt in jeder Welt deren Tinte */
.lw-welt .btn-primary {
  background: var(--lw-ink);
  color: var(--lw-bg);
  border-color: var(--lw-ink);
}
.lw[data-welt="ki"] .btn-primary {
  background: linear-gradient(120deg, #8B5CF6, #38E1FF);
  color: #06060B;
  border: none;
  box-shadow: 0 10px 34px rgba(122, 92, 246, 0.35);
}

/* Einflug der Panel-Kinder nach dem Lichtwechsel */
.lw-welt.an .lw-text > *,
.lw-welt.an .lw-schau > * { animation: lw-rein 0.6s var(--ease-out) both; }
.lw-welt.an .lw-text > *:nth-child(2) { animation-delay: 0.06s; }
.lw-welt.an .lw-text > *:nth-child(3) { animation-delay: 0.12s; }
.lw-welt.an .lw-text > *:nth-child(4) { animation-delay: 0.18s; }
.lw-welt.an .lw-schau > * { animation-delay: 0.14s; }
@keyframes lw-rein { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Lichtwechsel-Fläche ---------- */

.lw-wipe {
  /* Unter der Kopfzeile (z-60): sie bleibt beim Weltenwechsel sichtbar */
  position: fixed; inset: 0; z-index: 50;
  pointer-events: none;
  background: var(--wipe-farbe, #000);
  clip-path: circle(0px at 50% 50%);
  opacity: 0;
}
.lw-wipe.laueft {
  opacity: 1;
  transition: clip-path 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.lw-wipe.weg { opacity: 0; transition: opacity 0.35s ease; }

/* ---------- Diorama: Mini-Website (Welt Website + «Nachher») ---------- */

.dio-browser {
  background: var(--lw-karte);
  border: 1.5px solid var(--lw-linie);
  border-radius: 22px;
  box-shadow: var(--shadow-l);
  overflow: hidden;
  animation: dio-schweben 7s ease-in-out infinite;
}
@keyframes dio-schweben { 50% { transform: translateY(-10px); } }
.dio-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--lw-linie);
}
.dio-bar i { width: 10px; height: 10px; border-radius: 50%; }
.dio-bar i:nth-child(1) { background: #E8A0A0; }
.dio-bar i:nth-child(2) { background: #E8CFA0; }
.dio-bar i:nth-child(3) { background: #A9C9A9; }
.dio-bar em {
  font-style: normal; font-size: 0.72rem; font-weight: 600;
  color: var(--lw-ink-soft);
  background: var(--lw-bg);
  border-radius: 999px;
  padding: 3px 12px; margin-left: 8px;
}
.dio-site { padding: 22px; display: grid; gap: 18px; }
.ds-nav { display: flex; justify-content: space-between; align-items: center; }
.ds-logo { width: 74px; height: 12px; border-radius: 6px; background: var(--lw-ink); }
.ds-links { display: flex; gap: 8px; }
.ds-links i { width: 34px; height: 8px; border-radius: 4px; background: var(--lw-linie); }
.ds-hero { display: grid; gap: 10px; justify-items: start; padding: 12px 0 4px; }
.ds-h1 { width: 78%; height: 18px; border-radius: 8px; background: var(--lw-ink); }
.ds-h2 { width: 56%; height: 12px; border-radius: 6px; background: var(--lw-linie); }
.ds-cta { width: 108px; height: 26px; border-radius: 999px; background: var(--lw-ink); margin-top: 4px; }
.ds-karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ds-karten i { height: 58px; border-radius: 12px; background: var(--lw-bg); border: 1px solid var(--lw-linie); }

/* ---------- Diorama: Vorher/Nachher-Schieber ---------- */

.dio-vergleich {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1.5px solid var(--lw-linie);
  box-shadow: var(--shadow-l);
  height: 380px;
  touch-action: none;
  cursor: ew-resize;
  --pos: 55%;
}
.vg-seite { position: absolute; inset: 0; padding: 22px; }
.vg-nachher { background: var(--lw-karte); padding: 0; }
.vg-vorher {
  /* z-index 2: liegt sicher ueber Text und Knopf der Nachher-Seite,
     die wegen des Foto-Verlaufs selbst z-index 1 tragen */
  z-index: 2;
  background: #E9E4D6;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  font-family: Georgia, "Times New Roman", serif;
  color: #6E6455;
}
.alt-titel { font-size: 1.05rem; font-weight: 700; color: #504736; text-decoration: underline; margin-bottom: 12px; }
.alt-zeile { height: 9px; background: #CFC7B2; margin-bottom: 8px; }
.alt-zeile.kurz { width: 62%; }
.alt-bild {
  height: 96px; margin: 12px 0;
  border: 2px dashed #B4AA90;
  display: grid; place-items: center;
  font-size: 0.78rem; color: #8B8069;
}
.vg-tag {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--font-sans);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--lw-ink); color: var(--lw-bg);
  border-radius: 999px; padding: 4px 10px;
}
.vg-vorher .vg-tag { left: 12px; right: auto; background: #6E6455; color: #F4F0E4; }
.vg-griff {
  z-index: 3;
  position: absolute; top: 0; bottom: 0;
  left: var(--pos);
  width: 40px; margin-left: -20px;
  display: grid; place-items: center;
  cursor: ew-resize;
  background: none; border: none;
}
.vg-griff::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2.5px; margin-left: -1.25px;
  background: var(--lw-ink);
}
.vg-griff span {
  position: relative; z-index: 1;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--lw-ink);
  box-shadow: var(--shadow-m);
}
.vg-griff span::before {
  content: "⟷";
  display: grid; place-items: center;
  width: 100%; height: 100%;
  color: var(--lw-bg);
  font-size: 0.9rem;
}
.vg-griff:focus-visible { outline: 2px solid var(--lw-punkt); outline-offset: -4px; }

/* ---------- Diorama: Webapp-Dashboard ---------- */

.dio-app {
  display: grid; grid-template-columns: 60px 1fr;
  background: var(--lw-karte);
  border: 1.5px solid var(--lw-linie);
  border-radius: 22px;
  box-shadow: var(--shadow-l);
  overflow: hidden;
  min-height: 380px;
}
.da-seite {
  background: #18202B;
  padding: 16px 0;
  display: grid; gap: 14px; align-content: start; justify-items: center;
}
.da-logo { width: 26px; height: 26px; border-radius: 8px; background: #3D7BFA; margin-bottom: 8px; }
.da-seite i { width: 22px; height: 22px; border-radius: 7px; background: #2A3546; }
.da-seite i.aktiv { background: #3D7BFA; }
.da-haupt { padding: 20px 22px; display: grid; gap: 16px; align-content: start; }
.da-kopfzeile { display: flex; justify-content: space-between; align-items: center; }
.da-titel { width: 120px; height: 13px; border-radius: 6px; background: var(--lw-ink); }
.da-avatar { width: 26px; height: 26px; border-radius: 50%; background: #3D7BFA; }
.da-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.da-kpi {
  background: var(--lw-bg);
  border: 1px solid var(--lw-linie);
  border-radius: 14px;
  padding: 12px;
  display: grid; gap: 2px;
}
.da-kpi b {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.35rem; letter-spacing: -0.02em;
  color: #18202B;
}
.da-kpi span { font-size: 0.68rem; font-weight: 600; color: var(--lw-ink-soft); }
.da-chart {
  display: flex; align-items: flex-end; gap: 8px;
  height: 110px;
  padding: 12px;
  background: var(--lw-bg);
  border: 1px solid var(--lw-linie);
  border-radius: 14px;
}
.da-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #3D7BFA, #7FA8FB);
  transform-origin: bottom;
  animation: da-balken 0.9s var(--ease-out) both;
}
.da-chart i:nth-child(2) { animation-delay: 0.06s; }
.da-chart i:nth-child(3) { animation-delay: 0.12s; }
.da-chart i:nth-child(4) { animation-delay: 0.18s; }
.da-chart i:nth-child(5) { animation-delay: 0.24s; }
.da-chart i:nth-child(6) { animation-delay: 0.30s; }
.da-chart i:nth-child(7) { animation-delay: 0.36s; }
.da-chart i:nth-child(8) { animation-delay: 0.42s; }
@keyframes da-balken { from { transform: scaleY(0); } }
.da-zeilen { display: grid; gap: 8px; }
.da-zeilen i { height: 12px; border-radius: 6px; background: var(--lw-bg); border: 1px solid var(--lw-linie); }

/* ---------- Welt KI: «Nachtschicht» ----------
   Bewusst kein Neon-Orb und kein Leuchtnebel: EIN langsamer Lichtstrahl
   zieht wie ein Leuchtturm hinter der Szene durch, davor arbeitet das
   echte Chat-Widget – daneben das Protokoll einer einzigen Nacht. */

.lw-strahlen {
  position: absolute; inset: -10%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.lw-strahlen i {
  position: absolute;
  left: 50%; top: 42%;
  width: 160vmax; height: 160vmax;
  margin: -80vmax 0 0 -80vmax;
  background: conic-gradient(from 0deg,
    transparent 0deg 8deg,
    rgba(139, 92, 246, 0.14) 16deg,
    rgba(139, 92, 246, 0.05) 24deg,
    transparent 32deg 360deg);
  filter: blur(18px);
  animation: strahlen-dreh 46s linear infinite;
}
@keyframes strahlen-dreh { to { transform: rotate(360deg); } }

.lw[data-welt="ki"] .lw-merkmale li {
  background: rgba(17, 16, 28, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lw[data-welt="ki"] .lw-tabs { background: rgba(13, 13, 24, 0.6); }
.lw[data-welt="ki"] .lw-merkmale b { color: #EEF1FF; }

.dio-ki { position: relative; display: grid; gap: 18px; }

/* Das Chat-Widget in der Formsprache des echten masesites-Widgets */
.ki-fenster {
  background: rgba(15, 14, 24, 0.92);
  border: 1.5px solid #262640;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(139, 92, 246, 0.12);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.kf-kopf {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 18px;
  border-bottom: 1px solid #262640;
}
.kf-avatar {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #8B5CF6, #5B33C4);
  color: #fff; font-weight: 700; font-size: 0.95rem;
}
.kf-name { display: grid; font-weight: 650; font-size: 0.94rem; color: #EEF1FF; }
.kf-name em {
  font-style: normal; font-size: 0.72rem; font-weight: 500;
  color: #8FE3B0;
  display: inline-flex; align-items: center; gap: 5px;
}
.kf-name em::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #4CAF6E;
  animation: live-puls 2.2s ease-in-out infinite;
}
.ki-chat { display: grid; gap: 10px; padding: 18px; }
.kc-zeile {
  max-width: 84%;
  padding: 10px 15px;
  border-radius: 17px;
  font-size: 0.92rem;
  line-height: 1.45;
}
.kc-zeile.bot {
  justify-self: start;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.34);
  color: #EEF1FF;
  border-bottom-left-radius: 6px;
}
.kc-zeile.gast {
  justify-self: end;
  background: #EEF1FF;
  color: #10101C;
  border-bottom-right-radius: 6px;
}
.kc-zeile.tippt { display: inline-flex; gap: 5px; padding: 13px 16px; }
.kc-zeile.tippt i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #9AA3C7;
  animation: tipp-huepf 1.1s ease-in-out infinite;
}
.kc-zeile.tippt i:nth-child(2) { animation-delay: 0.15s; }
.kc-zeile.tippt i:nth-child(3) { animation-delay: 0.3s; }
@keyframes tipp-huepf { 30% { transform: translateY(-4px); opacity: 1; } 60% { opacity: 0.4; } }
.kc-zeile.spaeter { display: none; }
.ki-chat.fertig .tippt { display: none; }
.ki-chat.fertig .spaeter { display: block; animation: lw-rein 0.4s var(--ease-out) both; }

/* Das Nachtprotokoll: Glas-Chips mit Zeitstempeln in Mono */
.ki-protokoll { display: grid; gap: 8px; }
.kp-titel {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: #9AA3C7;
  margin-bottom: 2px;
}
.kp-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 15px;
  background: rgba(17, 16, 28, 0.66);
  border: 1px solid #23233A;
  border-radius: 13px;
  font-size: 0.88rem;
  color: #C9CFEA;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.kp-chip b {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 600; font-size: 0.8rem;
  color: #A88BFA;
  flex: none;
}
.lw-welt.an .kp-chip { animation: lw-rein 0.55s var(--ease-out) both; }
.lw-welt.an .kp-chip:nth-of-type(1) { animation-delay: 0.5s; }
.lw-welt.an .kp-chip:nth-of-type(2) { animation-delay: 0.72s; }
.lw-welt.an .kp-chip:nth-of-type(3) { animation-delay: 0.94s; }

/* ---------- Handy ---------- */

@media (max-width: 900px) {
  .lw-buehne { grid-template-columns: 1fr; gap: 34px; }
  .lw-schau { order: -1; }
  .lw-welt { padding-bottom: 72px; }
}

@media (max-width: 720px) {
  .lw { padding-top: calc(var(--header-h) + 18px); }
  .lw-kopf { padding-bottom: 24px; }
  .lw-tabs { border-radius: 24px; }
  .lw-tab { padding: 9px 14px; font-size: 0.88rem; }
  .dio-vergleich { height: 320px; }
  .dio-app { grid-template-columns: 48px 1fr; min-height: 0; }
  .da-haupt { padding: 14px; }
  .kp-chip { font-size: 0.84rem; }
  .lw-strahlen { filter: blur(30px); }
}

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  .dio-browser, .lw-strahlen i,
  .kc-zeile.tippt i, .da-chart i { animation: none; }
  .lw-wipe { display: none; }
}

/* ============================================================
   Echte Bilder, Details-Band und die grosse KI-Inszenierung
   ============================================================ */

/* ---------- Foto-basierte Mini-Site (Website + «Nachher») ---------- */

.foto-site { position: relative; overflow: hidden; }
.foto-site img { display: block; width: 100%; height: 340px; object-fit: cover; }
.foto-site::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 14, 8, 0.18), rgba(20, 14, 8, 0.62) 82%);
}
.fs-inhalt {
  position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 1;
  display: grid; gap: 7px; justify-items: start;
  color: #fff;
}
.fs-marke { font-family: var(--font-display); font-weight: 750; font-size: 1.5rem; letter-spacing: -0.02em; }
.fs-claim { font-size: 0.92rem; opacity: 0.88; }
.fs-knopf {
  margin-top: 6px;
  background: #fff; color: #241C12;
  font-weight: 650; font-size: 0.85rem;
  border-radius: 999px;
  padding: 9px 18px;
}
.foto-site.klein img { height: 100%; position: absolute; inset: 0; }
.foto-site.klein { position: absolute; inset: 0; }
.foto-site.klein .fs-marke { font-size: 1.2rem; }

/* Echte Bildschirmaufnahme (Webapp) */
.dio-browser.ruhig { animation: none; }

/* ---------- Details-Band unter der Bühne ---------- */

.lw-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(40px, 6vw, 68px);
  position: relative; z-index: 2;
}
.lw-spalte {
  background: var(--lw-karte);
  border: 1.5px solid var(--lw-linie);
  border-radius: var(--radius-l);
  padding: 24px;
  transition: background-color 0.5s ease, border-color 0.5s ease;
}
.lw[data-welt="ki"] .lw-spalte {
  background: rgba(15, 14, 24, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lw-spalte h3 {
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--lw-ink-soft);
  margin-bottom: 16px;
}
.lw-ablauf { list-style: none; display: grid; gap: 14px; counter-reset: schritt; }
.lw-ablauf li {
  counter-increment: schritt;
  display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto;
  column-gap: 12px;
  font-size: 0.9rem; color: var(--lw-ink-soft);
}
.lw-ablauf li::before {
  content: counter(schritt);
  grid-row: 1 / 3;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--lw-linie);
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.8rem;
  color: var(--lw-ink);
}
.lw-ablauf b { color: var(--lw-ink); font-size: 0.95rem; }
.lw-preise { list-style: none; display: grid; gap: 12px; }
.lw-preise li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--lw-linie);
}
.lw-preise li:last-child { border-bottom: none; padding-bottom: 0; }
.lw-preise b { display: block; font-size: 0.95rem; color: var(--lw-ink); }
.lw-preise em { font-style: normal; font-size: 0.85rem; color: var(--lw-ink-soft); }
.lw-preise i {
  font-style: normal; white-space: nowrap; flex: none;
  font-weight: 750; font-size: 0.95rem;
  color: var(--lw-ink);
}
.lw-notiz {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--lw-ink-soft);
  border-top: 1px dashed var(--lw-linie);
  padding-top: 14px;
}
.lw-welt.an .lw-details { animation: lw-rein 0.6s var(--ease-out) 0.2s both; }

/* ---------- KI: Partikelnetz + Neon-Blitz beim Wechsel ---------- */

.ki-netz {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Zwei Neon-Klingen fegen beim Wechsel zu KI quer durchs Bild */
.lw-blitz {
  position: fixed; inset: 0; z-index: 52;
  pointer-events: none;
  overflow: hidden;
  display: none;
}
.lw-blitz.zuendet { display: block; }
.lw-blitz i {
  position: absolute; top: -20%; bottom: -20%;
  width: 22vw;
  transform: translateX(-60vw) skewX(-18deg);
  filter: blur(6px);
}
.lw-blitz i:nth-child(1) {
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.85), transparent);
  animation: blitz-fege 0.55s cubic-bezier(0.3, 0, 0.2, 1) 0.05s both;
}
.lw-blitz i:nth-child(2) {
  background: linear-gradient(90deg, transparent, rgba(56, 225, 255, 0.7), transparent);
  animation: blitz-fege 0.6s cubic-bezier(0.3, 0, 0.2, 1) 0.22s both;
}
@keyframes blitz-fege { to { transform: translateX(160vw) skewX(-18deg); } }

@media (max-width: 900px) {
  .lw-details { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .foto-site img { height: 260px; }
  .fs-inhalt { left: 18px; right: 18px; bottom: 16px; }
  .lw-spalte { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .lw-blitz { display: none !important; }
  .ki-netz { display: none; }
}



/* ============================================================
   «tavolo» – Beispiel-Oberfläche einer Restaurant-Software.

   Bewusst fast monochrom: neutrale Graustufen-Leiter, Haarlinien,
   enge Radien. EINE semantische Farbe (ein zurückhaltendes Grün für
   bestätigte Zustände), sonst nichts Buntes – so arbeiten heutige
   Profi-Werkzeuge, und so wirkt es wie ein echtes Produkt statt wie
   ein buntes Website-Element.
   ============================================================ */

.tavolo {
  --t-canvas: #FAFAFA;
  --t-flaeche: #FFFFFF;
  --t-linie: #E7E7E9;
  --t-linie-zart: #F0F0F1;
  --t-ink: #16181D;
  --t-ink-2: #5C6068;
  --t-ink-3: #90949B;
  --t-ink-4: #B4B7BC;
  /* Dunkle Flaechen-Leiter der Seitenleiste */
  --t-d1: #141519;
  --t-d2: #1D1F24;
  --t-d3: #2A2C32;
  --t-d-ink: #9A9EA6;
  /* Die einzige semantische Farbe */
  --t-gruen: #3C7D52;
  --t-gruen-hell: #EAF1EC;

  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  background: var(--t-canvas);
  font-family: "Inter", "Outfit", system-ui, sans-serif;
  color: var(--t-ink);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: -0.004em;
  font-variant-numeric: tabular-nums;
  min-height: 400px;
}

/* ---------- Seitenleiste ---------- */

.tv-seite {
  background: var(--t-d1);
  padding: 13px 8px 10px;
  display: grid; gap: 1px; align-content: start;
}
.tv-marke {
  display: flex; align-items: center; gap: 8px;
  padding: 2px 7px 14px;
  font-weight: 600; font-size: 12.5px; letter-spacing: -0.015em;
  color: #F2F3F5;
}
.tv-logo {
  width: 21px; height: 21px; flex: none;
  border-radius: 6px;
  background: #F2F3F5;
  display: grid; place-items: center;
  color: var(--t-d1);
}
.tv-logo svg { width: 15px; height: 15px; display: block; }
.tv-gruppe {
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: #5B5F67;
  padding: 12px 7px 4px;
}
.tv-punkt {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 7px;
  border-radius: 5px;
  font-size: 11.5px; font-weight: 450;
  color: var(--t-d-ink);
  cursor: default;
}
.tv-punkt svg { width: 13px; height: 13px; flex: none; color: #6E727A; }
/* Aktiv = leicht aufgehellte Flaeche, KEINE Farbe, keine fettere Schrift.
   Nur der Text wird hell – so machen es Linear, Raycast und Attio. */
.tv-punkt.aktiv { background: var(--t-d2); color: #F2F3F5; font-weight: 500; }
.tv-punkt.aktiv svg { color: #C3C6CB; }
.tv-punkt i {
  margin-left: auto;
  font-style: normal;
  font-size: 10px; font-weight: 500;
  color: #7E828A;
}
.tv-konto {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 10px 7px 0;
  border-top: 1px solid #22242A;
}
.tv-avatar {
  width: 22px; height: 22px; flex: none;
  border-radius: 50%;
  background: var(--t-d3);
  display: grid; place-items: center;
  font-size: 9px; font-weight: 600; color: #C3C6CB;
}
.tv-wer { display: grid; font-size: 10.5px; font-weight: 500; color: #D8DADE; min-width: 0; }
.tv-wer em { font-style: normal; font-weight: 400; font-size: 9.5px; color: #6E727A; }

/* ---------- Kopfleiste ---------- */

.tv-haupt { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.tv-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 14px;
  background: var(--t-flaeche);
  border-bottom: 1px solid var(--t-linie);
}
.tv-pfad { font-size: 11px; color: var(--t-ink-3); font-weight: 450; min-width: 0; }
.tv-pfad span { margin: 0 4px; color: var(--t-ink-4); }
.tv-pfad b { color: var(--t-ink); font-weight: 550; }
.tv-werkzeuge { display: flex; align-items: center; gap: 7px; flex: none; }
.tv-suche {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--t-linie);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 10.5px; color: var(--t-ink-3);
  background: var(--t-flaeche);
}
.tv-suche svg { width: 12px; height: 12px; }
/* Primaeraktion in Tinte statt Farbe – wie die schwarzen/weissen CTAs
   der aktuellen Profi-Oberflaechen */
.tv-knopf {
  background: var(--t-ink);
  color: #fff;
  border-radius: 6px;
  padding: 6px 11px;
  font-size: 10.5px; font-weight: 550;
  white-space: nowrap;
}

/* ---------- Inhalt ---------- */

.tv-inhalt { padding: 12px 14px 14px; display: grid; gap: 10px; align-content: start; }

.tv-kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tv-kachel {
  background: var(--t-flaeche);
  border: 1px solid var(--t-linie);
  border-radius: 8px;
  padding: 10px 11px;
  display: grid; gap: 2px;
}
.tv-kachel > span { font-size: 10px; font-weight: 500; color: var(--t-ink-3); }
.tv-kachel > b { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.tv-kachel .trend { font-style: normal; font-size: 10px; font-weight: 500; color: var(--t-gruen); }
.tv-kachel .trend.warn { color: var(--t-ink-3); }
.tv-kachel .balken {
  display: block; height: 4px; margin-top: 4px;
  background: var(--t-linie-zart);
  border-radius: 999px; overflow: hidden;
}
.tv-kachel .balken u {
  display: block; height: 100%; width: var(--f);
  background: var(--t-ink-2);
  border-radius: 999px;
}

.tv-filter { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.tv-filter .chip {
  font-size: 10.5px; font-weight: 500;
  border: 1px solid var(--t-linie);
  background: var(--t-flaeche);
  color: var(--t-ink-2);
  border-radius: 5px;
  padding: 3px 9px;
}
.tv-filter .chip.an { background: var(--t-ink); border-color: var(--t-ink); color: #fff; font-weight: 500; }
.tv-filter .chip.weit { margin-left: auto; border: none; background: none; color: var(--t-ink-3); padding-right: 0; }

/* Datentabelle */
.tv-tabelle {
  background: var(--t-flaeche);
  border: 1px solid var(--t-linie);
  border-radius: 8px;
  overflow: hidden;
}
.tv-kopf, .tv-zeile {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px 74px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}
.tv-kopf {
  background: #FCFCFD;
  border-bottom: 1px solid var(--t-linie);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--t-ink-3);
}
.tv-zeile { border-bottom: 1px solid var(--t-linie-zart); }
.tv-zeile:last-child { border-bottom: none; }
/* Offener Posten: neutrale Hervorhebung mit Randstrich, keine Signalfarbe */
.tv-zeile.hervor { background: #FAFAFA; box-shadow: inset 2px 0 0 var(--t-ink-4); }
.tv-zeile .zeit {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; font-weight: 500; color: var(--t-ink-2);
}
.tv-zeile .gast {
  display: grid; grid-template-columns: 21px 1fr;
  column-gap: 8px;
  min-width: 0;
  font-size: 11.5px; font-weight: 550;
}
.tv-zeile .gast u {
  grid-row: 1 / 3;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: #F1F1F3;
  border: 1px solid var(--t-linie);
  display: grid; place-items: center;
  text-decoration: none;
  font-size: 8.5px; font-weight: 600; color: var(--t-ink-2);
}
.tv-zeile .gast em {
  font-style: normal; font-weight: 400; font-size: 10.5px; color: var(--t-ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tv-zeile .tisch { font-size: 11px; font-weight: 500; color: var(--t-ink-2); }
.badge {
  font-style: normal;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 500;
  border-radius: 4px;
  padding: 3px 8px;
  white-space: nowrap;
  border: 1px solid var(--t-linie);
  color: var(--t-ink-2);
  background: var(--t-flaeche);
}
.badge::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--t-ink-4);
}
/* Die einzige Farbe im ganzen Fenster */
.badge.ok { background: var(--t-gruen-hell); border-color: #D3E2D8; color: #2F6742; }
.badge.ok::before { background: var(--t-gruen); }

/* ---------- Handy ---------- */

@media (max-width: 720px) {
  .tavolo { grid-template-columns: 1fr; min-height: 0; font-size: 11.5px; }
  /* Reiterzeile ohne Seitwaertsscrollen: nur so viele Punkte, wie sicher
     aufs Display passen – wie in echten Apps, die ihre Navigation auf
     dem Handy zusammenklappen. */
  .tv-seite {
    display: flex; align-items: center; gap: 3px;
    overflow: hidden;
    padding: 8px 9px;
  }
  .tv-marke { padding: 0 7px 0 2px; flex: none; font-size: 0; gap: 0; }
  .tv-gruppe, .tv-konto { display: none; }
  .tv-punkt {
    flex: 1 1 0; min-width: 0;
    justify-content: center;
    white-space: nowrap; padding: 5px 7px;
    font-size: 11px;
  }
  .tv-punkt svg { width: 13px; height: 13px; }
  .tv-punkt i { display: none; }
  .tv-punkt:nth-of-type(n+4) { display: none; }
  .tv-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .tv-kachel { padding: 8px 9px; }
  .tv-kachel > b { font-size: 16px; }
  .tv-inhalt { padding: 11px; }
  .tv-topbar { padding: 9px 11px; }
  .tv-pfad { font-size: 10.5px; }
  .tv-suche { display: none; }
  .tv-filter .chip.weit { display: none; }
  .tv-kopf, .tv-zeile { grid-template-columns: 40px minmax(0, 1fr) 70px; padding: 7px 10px; }
  .tv-kopf span:nth-child(3), .tv-zeile .tisch { display: none; }
}

/* Abgrenzung: sagt, was eine Leistung NICHT ist. Bewusst ohne Kasten –
   im Textteil sind allein die Merkmal-Karten gerahmt, alles andere
   ordnet sich typografisch unter. */
.lw-abgrenzung {
  font-size: 0.94rem;
  color: var(--lw-ink-soft);
  margin-bottom: 26px;
}
.lw-abgrenzung b { color: var(--lw-ink); font-weight: 650; }
.lw-abgrenzung a {
  color: var(--lw-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Kurzfassung direkt unter der Überschrift: trägt die Aussage, darum
   etwas grösser als Fliesstext. */
.lw-kurz {
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--lw-ink);
}

/* Website oder Webapp? Die häufigste Verwechslung – als direkte
   Gegenüberstellung statt als Absatz zum Durchlesen. */
.lw-vergleich {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  margin: 2px 0 18px;
}
.lw-vs-titel {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 7px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--lw-linie);
  color: var(--lw-ink);
}
.lw-vergleich ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.lw-vergleich li {
  font-size: 0.9rem;
  color: var(--lw-ink-soft);
  padding-left: 14px;
  position: relative;
}
.lw-vergleich li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--lw-ink-soft);
  opacity: 0.55;
}
.lw-vergleich b { color: var(--lw-ink); font-weight: 700; }
.lw-vs-trenn { display: none; }

/* Hinweis, der aktiv Geld sparen kann. Ohne Rahmen – die Auszeichnung
   passiert im Text selbst. */
.lw-hinweis-stark { color: var(--lw-ink-soft); }
.lw-hinweis-stark b { color: var(--lw-ink); }
.lw-hinweis-stark a {
  color: var(--lw-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .lw-kurz { font-size: 1rem; }
  .lw-vergleich { grid-template-columns: 1fr 1fr; gap: 6px 16px; }
  .lw-vergleich li { font-size: 0.85rem; }
}
