/* ---------- Schrift: lokal ausgeliefert ----------
   Outfit lag frueher bei Google Fonts. Damit ging bei jedem Besuch die
   IP-Adresse an Google in den USA - ein Drittanbieter, den die Seite
   sonst gar nicht braucht. Lokal ausgeliefert entfaellt das komplett:
   keine fremde Verbindung, nichts offenzulegen, und es laedt schneller
   (5 Schnitte, zusammen 84 KB). Quelle: npm-Paket @fontsource/outfit,
   Schrift unter SIL Open Font License. */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/outfit-400.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/outfit-500.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/outfit-600.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/outfit-700.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/outfit-800.woff2") format("woff2"); }

/* ============================================================
   masesites Design-System
   Basis: warmes Beige/Creme, Espresso-Text, schwarzer Akzent
   Typo: Outfit (durchgehend); Lila-Verlauf nur für KI-Begriffe
   ============================================================ */

:root {
  --bg: #F6F1E7;
  --bg-soft: #FDFAF4;
  --bg-warm: #EFE6D6;
  --card: #FFFDF8;
  --ink: #2C2118;
  --ink-soft: #6E5E4E;
  --ink-faint: #9C8C7A;
  --line: #E4D9C6;
  --line-strong: #D3C6AE;
  --accent: #1F1A14;
  --accent-dark: #000000;
  --accent-soft: #EAE1D0;
  --green: #3E6B4F;
  --ki: #7C3AED;
  --ki-dark: #6D28D9;
  --ki-soft: #F3EEFC;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-hover: 0 30px 66px rgba(72, 52, 30, 0.17);
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;
  --shadow-s: 0 2px 10px rgba(72, 52, 30, 0.07);
  --shadow-m: 0 10px 30px rgba(72, 52, 30, 0.10);
  --shadow-l: 0 24px 60px rgba(72, 52, 30, 0.14);
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* scrollbar-gutter: der Platz für den Scrollbalken ist IMMER reserviert,
   damit sich Header und Inhalt nie verschieben, wenn er auftaucht */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: rgba(44, 33, 24, 0.3) transparent; }

/* Schlanker, warmer Scrollbalken statt des klobigen Standards */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(44, 33, 24, 0.22);
  border-radius: 999px;
  border: 3.5px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(44, 33, 24, 0.38); background-clip: padding-box; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Seitliches Verschieben komplett unterbinden: overflow-x auf dem Body
   allein reicht in iOS Safari nicht – erst «clip» auf html UND body
   verhindert, dass sich die Seite beim Laden oder durch überstehende
   Deko-Elemente horizontal ziehen lässt. «clip» erzeugt (anders als
   «hidden») keinen Scroll-Container und lässt sticky-Elemente in Ruhe. */
html, body { overflow-x: clip; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

/* Hintergrund-Canvas: warmes Licht + feine Körnung, einmal fix komponiert (performant) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E"),
    radial-gradient(1150px 720px at 84% -8%, rgba(255, 253, 248, 0.92), transparent 55%),
    radial-gradient(760px 640px at 6% 2%, rgba(255, 253, 248, 0.42), transparent 50%),
    radial-gradient(1050px 900px at -12% 108%, rgba(212, 199, 176, 0.55), transparent 55%),
    radial-gradient(820px 700px at 114% 70%, rgba(231, 221, 202, 0.5), transparent 58%),
    linear-gradient(180deg, rgba(253, 250, 244, 0.55), transparent 24%, transparent 70%, rgba(223, 212, 190, 0.42));
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}

/* Warme Aurora auf der GANZEN Website: dieselbe Stimmung wie der Startbereich,
   ruhig treibend - die schwirrenden Elemente bleiben bewusst nur im Hero. */
body::after {
  content: "";
  position: fixed;
  inset: -22%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 38% at 16% 18%, rgba(214, 168, 108, 0.32), transparent 68%),
    radial-gradient(38% 36% at 86% 30%, rgba(64, 46, 30, 0.16), transparent 70%),
    radial-gradient(44% 40% at 60% 88%, rgba(232, 196, 144, 0.28), transparent 66%);
  filter: blur(clamp(40px, 6vw, 90px));
  animation: seiten-aurora 44s ease-in-out infinite alternate;
  will-change: transform;
  transform: translateZ(0);
}
@keyframes seiten-aurora {
  from { transform: translate(0, 0) rotate(0deg) scale(1); }
  to { transform: translate(3%, 4%) rotate(4deg) scale(1.08); }
}

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

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-soft); }

p a, li a, .msg a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
p a:hover, li a:hover, .msg a:hover { text-decoration-color: var(--ink); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

section { padding: 88px 0; }
section.tight { padding: 56px 0; }

.kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }

.section-head { margin-bottom: 44px; }
.section-head h2 { margin-bottom: 12px; }

/* KI-Begriffe: animierter Lila-Verlauf */
.ki-glow {
  background: linear-gradient(100deg, #6D28D9, #A855F7, #7C3AED, #C084FC, #6D28D9);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ki-shift 5s linear infinite;
}
@keyframes ki-shift { to { background-position: 200% center; } }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--accent-soft); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  will-change: transform;
}

.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 22px rgba(44, 33, 24, 0.22); }
.btn-primary:hover { background: #000; color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(44, 33, 24, 0.3); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-faint); color: var(--ink); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--accent-dark); }
.btn-light:hover { transform: translateY(-2px); color: var(--accent-dark); }

.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */

/* Schwebende Glas-Pille: der Header liegt frei über der Seite */
.site-header {
  position: fixed;
  top: 14px; left: 0; right: 0;
  z-index: 60;
  padding: 0 16px;
  background: none;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.header-inner {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 9px 20px 9px 24px;
  background: rgba(255, 254, 250, 0.58);
  backdrop-filter: blur(26px) saturate(1.7);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(44, 33, 24, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled .header-inner {
  background: rgba(255, 254, 250, 0.8);
  box-shadow: 0 14px 40px rgba(44, 33, 24, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Die Pille gleitet nur beim ERSTEN Laden der Sitzung von oben ins Bild
   (site.js setzt die Klasse einmalig); danach steht sie einfach da. */
.header-inner.slide-rein { animation: header-slide 0.65s var(--ease-out) 0.15s backwards; }
@keyframes header-slide {
  from { transform: translateY(-160%); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.28rem; color: var(--ink); letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: var(--ink-soft); font-weight: 500; font-size: 0.98rem; position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--ink); border-radius: 2px; transition: width 0.25s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--ink); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 11px 22px; font-size: 0.95rem; }

.burger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 12px;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Handy-Menü: eine Karte, die sich mit einer Scharnier-Drehung unter der
   schwebenden Kopfzeile auffaltet. Die Seite bleibt dahinter sichtbar,
   nur leicht abgedunkelt und weichgezeichnet – Tipp daneben schliesst. */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(31, 24, 16, 0.28);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.menu-karte {
  position: absolute; top: calc(var(--header-h) + 4px); left: 10px; right: 10px;
  max-height: calc(100dvh - var(--header-h) - 22px);
  overflow-y: auto;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-l);
  padding: 10px 10px calc(12px + env(safe-area-inset-bottom, 0px) / 2);
  display: flex; flex-direction: column;
  transform: perspective(900px) rotateX(-14deg) translateY(-10px) scale(0.98);
  transform-origin: top center;
  transition: transform 0.42s var(--ease-out);
}
.mobile-menu.open .menu-karte { transform: perspective(900px) rotateX(0) translateY(0) scale(1); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink);
  padding: 13px 16px;
  border-radius: 15px;
  position: relative;
  opacity: 0; transform: translateY(8px);
}
.mobile-menu.open a { animation: menue-rein 0.4s var(--ease-out) forwards; }
.mobile-menu.open a:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.open a:nth-child(2) { animation-delay: 0.09s; }
.mobile-menu.open a:nth-child(3) { animation-delay: 0.13s; }
.mobile-menu.open a:nth-child(4) { animation-delay: 0.17s; }
.mobile-menu.open a:nth-child(5) { animation-delay: 0.21s; }
.mobile-menu.open a:nth-child(6) { animation-delay: 0.25s; }
.mobile-menu.open a:nth-child(7) { animation-delay: 0.30s; }
.mobile-menu.open a:nth-child(8) { animation-delay: 0.34s; }
@keyframes menue-rein { to { opacity: 1; transform: none; } }
.mobile-menu a:active { background: var(--bg-soft); }
.mobile-menu a.active { padding-left: 38px; }
.mobile-menu a.active::before {
  content: "";
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 2.5px; border-radius: 2px;
  background: var(--ink);
}
.mobile-menu a.konto-link {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 15px 15px;
  padding-top: 16px;
  font-size: 1rem;
  color: var(--ink-soft);
}
.mobile-menu .btn {
  margin: 8px 6px 4px;
  justify-content: center;
  font-size: 0.98rem; padding: 14px 24px;
  opacity: 1; transform: none;
}
/* Die Menü-Linkfarbe (dunkel) darf nicht auf den dunklen Knopf abfärben –
   sonst steht dort unsichtbare braune Schrift auf braunem Grund */
.mobile-menu a.btn-primary { color: #fff; }
.menu-karte::after {
  content: "Aus der Schweiz — feste Offerte vor Projektstart";
  padding: 10px 6px 2px;
  text-align: center;
  font-size: 0.74rem; font-weight: 500;
  color: var(--ink-faint);
}

/* ---------- Hero ---------- */

.hero {
  padding: calc(var(--header-h) + 56px) 0 40px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 8%, rgba(44, 33, 24, 0.05), transparent 65%),
    radial-gradient(500px 380px at 8% 88%, rgba(44, 33, 24, 0.04), transparent 65%);
}

/* ---------- Startbildschirm: ruhiger Text-Hero (Sektion 1) ---------- */

.hero-start {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 120px;
  overflow: hidden;
}
.hero-mitte {
  position: relative;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.hero-mitte h1 { margin-bottom: 26px; font-size: clamp(2.3rem, 7.5vw, 6rem); line-height: 1.04; letter-spacing: -0.04em; }
/* Unterstreichung des Rotor-Worts wächst mit der grossen Schrift mit */
.hero-mitte .rotor .rotor-word { border-bottom-width: 6px; padding-bottom: 4px; }
/* Knöpfe proportional zur monumentalen Headline */
.hero-mitte .hero-ctas .btn { padding: 15px 30px; font-size: 1.02rem; }
.hero-mitte .lead { margin: 0 auto 34px; max-width: 560px; }
.hero-mitte .hero-ctas { justify-content: center; margin-bottom: 30px; }
.trust-zeile {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px 12px;
  font-size: 0.88rem;
  color: var(--ink-faint);
}
.trust-zeile .punkt { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

/* Lebendiger Auftakt, nur im Startbereich: kräftige warme Aurora-Flächen,
   ein langsam kreisender Lichtstrahl und ein feines Punktraster. Bewusst
   nur warme Töne (kein Blau/Lila), Bewegung rein über transform. */
.hero-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(clamp(60px, 7vw, 110px));
  will-change: transform;
  transform: translateZ(0);
}
.hero-aurora.a1 {
  width: clamp(600px, 58vw, 920px); height: clamp(600px, 58vw, 920px);
  left: -14%; top: -30%;
  background: radial-gradient(circle at 38% 38%, rgba(214, 168, 108, 0.68), rgba(214, 168, 108, 0) 64%);
  animation: aurora-a 15s ease-in-out infinite alternate;
}
.hero-aurora.a2 {
  width: clamp(520px, 50vw, 840px); height: clamp(520px, 50vw, 840px);
  right: -16%; top: -8%;
  background: radial-gradient(circle at 60% 40%, rgba(64, 46, 30, 0.42), rgba(64, 46, 30, 0) 66%);
  animation: aurora-b 21s ease-in-out infinite alternate;
}
.hero-aurora.a3 {
  width: clamp(560px, 54vw, 880px); height: clamp(560px, 54vw, 880px);
  left: 18%; bottom: -34%;
  background: radial-gradient(circle at 50% 55%, rgba(232, 196, 144, 0.62), rgba(232, 196, 144, 0) 62%);
  animation: aurora-c 18s ease-in-out infinite alternate;
}
@keyframes aurora-a { to { transform: translate(14vw, 12vh) scale(1.26) rotate(22deg); } }
@keyframes aurora-b { to { transform: translate(-13vw, 15vh) scale(0.88) rotate(-16deg); } }
@keyframes aurora-c { to { transform: translate(12vw, -13vh) scale(1.2) rotate(12deg); } }

/* Kreisender Lichtstrahl: gibt der Fläche Richtung und Tiefe */
.hero-strahl {
  position: absolute;
  left: 50%; top: 40%;
  width: min(1400px, 170vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 20deg,
    transparent 0deg,
    rgba(214, 168, 108, 0.20) 55deg,
    transparent 115deg,
    rgba(64, 46, 30, 0.13) 180deg,
    transparent 245deg,
    rgba(232, 196, 144, 0.18) 300deg,
    transparent 360deg);
  border-radius: 50%;
  filter: blur(44px);
  animation: strahl-dreh 30s linear infinite;
  will-change: transform;
}
@keyframes strahl-dreh {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Feines Punktraster, das zur Mitte sichtbar ist und langsam wandert
   (Versatz = genau eine Rasterzelle, dadurch nahtlose Schleife) */
.hero-gitter {
  position: absolute; inset: -32px;
  background-image: radial-gradient(rgba(44, 33, 24, 0.13) 1.2px, transparent 1.3px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 40%, #000 16%, transparent 74%);
  mask-image: radial-gradient(ellipse 72% 62% at 50% 40%, #000 16%, transparent 74%);
  animation: gitter-drift 16s linear infinite;
}
@keyframes gitter-drift { to { transform: translate(32px, 32px); } }

/* Heller Halo hinter dem Text: die Headline bleibt immer gut lesbar */
.hero-halo {
  position: absolute;
  left: 50%; top: 45%;
  width: min(920px, 98vw); height: min(580px, 72vh);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(253, 250, 244, 0.92) 0%,
    rgba(253, 250, 244, 0.5) 48%,
    transparent 76%);
}

/* Schwirrende Elemente: Ringe, Punkte, kleine Karten und ein Quadrat treiben
   auf eigenen Bahnen durch den Startbereich, damit die Fläche lebt */
.flieger {
  position: absolute;
  will-change: transform;
  transform: translateZ(0);
}
.flieger.ring { border-radius: 50%; border: 2.5px solid rgba(178, 132, 80, 0.55); }
.flieger.ring.r1 { width: 54px; height: 54px; left: 9%; top: 22%; animation: flug-1 13s ease-in-out infinite; }
.flieger.ring.r2 { width: 30px; height: 30px; right: 12%; top: 30%; border-color: rgba(64, 46, 30, 0.4); animation: flug-2 16s ease-in-out infinite; }
.flieger.ring.r3 { width: 78px; height: 78px; right: 7%; bottom: 20%; border-width: 3px; border-color: rgba(214, 168, 108, 0.5); animation: flug-3 19s ease-in-out infinite; }
.flieger.punkt { border-radius: 50%; background: rgba(64, 46, 30, 0.42); }
.flieger.punkt.p1 { width: 10px; height: 10px; left: 17%; top: 55%; animation: flug-2 11s ease-in-out infinite; }
.flieger.punkt.p2 { width: 14px; height: 14px; left: 30%; top: 16%; background: rgba(178, 132, 80, 0.55); animation: flug-3 14s ease-in-out infinite; }
.flieger.punkt.p3 { width: 8px; height: 8px; right: 26%; top: 18%; animation: flug-1 12s ease-in-out infinite; }
.flieger.punkt.p4 { width: 12px; height: 12px; right: 18%; bottom: 32%; background: rgba(214, 168, 108, 0.6); animation: flug-2 17s ease-in-out infinite; }
/* Mini-Browserfenster: kleine Karte mit Kopfzeile, unser Handwerk als Motiv */
.flieger.karte {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid rgba(178, 132, 80, 0.4);
  box-shadow: 0 10px 26px rgba(44, 33, 24, 0.10);
}
.flieger.karte::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 26%;
  border-bottom: 1.5px solid rgba(178, 132, 80, 0.35);
  background:
    radial-gradient(circle 2.5px at 12% 50%, rgba(64, 46, 30, 0.45) 97%, transparent) no-repeat,
    radial-gradient(circle 2.5px at 26% 50%, rgba(64, 46, 30, 0.35) 97%, transparent) no-repeat,
    radial-gradient(circle 2.5px at 40% 50%, rgba(64, 46, 30, 0.25) 97%, transparent) no-repeat;
}
.flieger.karte.k1 { width: 92px; height: 66px; left: 7%; bottom: 26%; animation: flug-3 15s ease-in-out infinite; }
.flieger.karte.k2 { width: 70px; height: 52px; right: 9%; top: 56%; animation: flug-1 18s ease-in-out infinite; }
.flieger.quadrat {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(214, 168, 108, 0.45);
  left: 24%; bottom: 14%;
  animation: flug-2 14s ease-in-out infinite;
}
/* Drei Schwirr-Bahnen mit Zwischenstationen, sanft und endlos */
@keyframes flug-1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30% { transform: translate(26px, -34px) rotate(9deg); }
  62% { transform: translate(-18px, -12px) rotate(-7deg); }
  84% { transform: translate(12px, 20px) rotate(4deg); }
}
@keyframes flug-2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  28% { transform: translate(-30px, 22px) rotate(-10deg); }
  55% { transform: translate(16px, 38px) rotate(6deg); }
  80% { transform: translate(30px, -14px) rotate(-4deg); }
}
@keyframes flug-3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  26% { transform: translate(22px, 30px) rotate(8deg); }
  58% { transform: translate(-26px, 14px) rotate(-9deg); }
  82% { transform: translate(-8px, -26px) rotate(5deg); }
}
@media (max-width: 720px) {
  /* Auf kleinen Screens nur eine Handvoll Elemente, sonst wird es unruhig */
  .flieger.ring.r3, .flieger.karte.k1, .flieger.punkt.p2, .flieger.quadrat { display: none; }
}

/* Nahtloser Übergang nach unten: der Hero-Hintergrund löst sich per Maske
   in die Seiten-Aurora auf - keine sichtbare Kante zwischen den Bereichen */
.hero-start .hero-bg {
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}

/* ---------- Live-Demos im Beispiel-Fenster (Sektion 2) ---------- */

.showcase { padding: 92px 0 96px; }
.showcase .section-head { margin-bottom: 30px; }

.demo-fenster {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: 0 30px 80px rgba(44, 33, 24, 0.18), 0 4px 16px rgba(44, 33, 24, 0.08);
  overflow: hidden;
}
.demo-fenster[hidden] { display: none; }

.demo-schirm { position: relative; height: clamp(460px, 70vh, 720px); background: var(--bg-soft); overflow: hidden; }
/* Die Demo rendert intern in Desktop-Breite und wird herunterskaliert:
   so wirkt die Vorschau wie eine echte Website am grossen Bildschirm */
.demo-schirm iframe {
  display: block;
  width: 125%; height: 125%;
  border: 0;
  background: #fff;
  transform: scale(0.8);
  transform-origin: 0 0;
  transition: opacity 0.4s ease;
}

/* Auftritt des Fensters: fliegt mit leichtem 3D-Schwung von rechts ins Bild,
   statt nur einzublenden (ersetzt das Standard-Reveal für dieses Element) */
.demo-fenster.reveal {
  opacity: 0;
  transform: perspective(1400px) translateX(150px) rotateY(-14deg) scale(0.94);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.demo-fenster.reveal.in {
  opacity: 1;
  transform: none;
}

/* Abdeckung: die Vorschau ist jetzt direkt bedienbar - man kann IM Fenster
   scrollen und klicken. Die Abdeckung selbst fängt keine Gesten mehr ab
   (pointer-events: none), sie erreichen die Demo darunter. Nur die
   «In voller Grösse»-Pille bleibt klickbar und blendet sich beim Überfahren
   des Fensters ein. */
.demo-abdeckung {
  position: absolute; inset: 0;
  display: grid; place-items: end center;
  padding-bottom: 22px;
  pointer-events: none;
}
.demo-abdeckung span {
  pointer-events: auto;
  opacity: 0; transform: translateY(6px);
  background: rgba(22, 16, 11, 0.84); color: #fff;
  font-size: 0.88rem; font-weight: 600;
  border-radius: 999px;
  padding: 10px 20px;
  box-shadow: var(--shadow-m);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.demo-schirm:hover .demo-abdeckung span,
.demo-abdeckung:focus-visible span { opacity: 1; transform: none; }

/* Taskbar: unten im Fenster integriert, schaltet zwischen den Demos um */
.demo-taskbar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.demo-taskbar::-webkit-scrollbar { display: none; }
.demo-taskbar .chip { flex: none; padding: 9px 17px; font-size: 0.9rem; }
.taskbar-link {
  margin-left: auto; flex: none;
  font-size: 0.88rem; font-weight: 600;
  color: var(--ink-soft);
  padding: 9px 6px 9px 16px;
  white-space: nowrap;
}
.taskbar-link:hover { color: var(--ink); }

/* «Alle Demos ansehen»-Zeile: nur auf dem Handy, dort ersetzt sie die
   Hover-Abdeckung als Weg zur Beispiele-Seite */
.demo-mehr { display: none; }

@media (max-width: 720px) {
  .demo-schirm { height: min(64vh, 520px); }
  .showcase { padding: 68px 0 72px; }

  /* Auf dem Handy sind die Demos direkt bedienbar: die Abdeckung
     (die jeden Fingertipp schluckte) weicht, und die Demo rendert in
     echter Handy-Breite statt als geschrumpfte Desktop-Ansicht */
  .demo-abdeckung { display: none; }
  .demo-schirm iframe { width: 100%; height: 100%; transform: none; }

  .demo-mehr {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
    font-size: 0.9rem; font-weight: 650;
    color: var(--ink);
  }
  .demo-mehr .arrow { transition: transform 0.2s ease; }
  .demo-mehr:active .arrow { transform: translateX(3px); }
}

/* ---------- Intro: Kamerafahrt durch den Bildschirm ----------
   Start: die STARTSEITE selbst steckt klein im bekannten Monitor
   (Bildschirm, Standfuss, Sockel, darunter der Schriftzug).
   Fahrt: der Monitor wächst, bis der Rahmen aus dem Bild schiebt und
   die echte Startseite nahtlos übrig bleibt - kein Ausblenden. */
html.intro-zoom { overflow: hidden; }
html.intro-zoom .hero-start {
  transform: scale(0.36);
  transform-origin: 50% 44%;
  border-radius: 44px;
  box-shadow:
    0 0 0 26px #1F1A14,
    0 0 0 28px rgba(0, 0, 0, 0.18),
    0 60px 140px rgba(44, 33, 24, 0.4);
}
html.intro-zoom.intro-fahrt .hero-start {
  transform: scale(1);
  border-radius: 0;
  box-shadow:
    0 0 0 0 #1F1A14,
    0 0 0 0 rgba(0, 0, 0, 0.18),
    0 0 0 rgba(44, 33, 24, 0);
  transition:
    transform 1.6s cubic-bezier(0.4, 0.05, 0.2, 1),
    border-radius 1.6s cubic-bezier(0.4, 0.05, 0.2, 1),
    box-shadow 1.6s cubic-bezier(0.4, 0.05, 0.2, 1);
}
/* Header und Chat-Knopf halten sich raus, bis die Fahrt vorbei ist */
html.intro-zoom .site-header,
html.intro-zoom .widget-launcher { opacity: 0; pointer-events: none; }

/* Monitor-Deko: Standfuss, Sockel und Schriftzug unter dem Bildschirm */
.hero-deko {
  position: absolute;
  left: 50%;
  top: calc(64.2% + 10px);
  transform: translateX(-50%);
  display: none;
  text-align: center;
  z-index: 5;
  pointer-events: none;
}
/* Während des Intros hängt die Deko fixiert unter dem fixierten Monitor.
   Bei der Fahrt zoomt sie synchron mit dem Monitor mit (gleiche Kurve,
   gleicher Wachstumsfaktor 1/0.36) und fährt unten aus dem Bild, statt
   einfach auszublenden. */
html.intro-zoom .hero-deko {
  display: block;
  position: fixed;
  z-index: 97;
  transform-origin: 50% 0;
  transition:
    top 1.6s cubic-bezier(0.4, 0.05, 0.2, 1),
    transform 1.6s cubic-bezier(0.4, 0.05, 0.2, 1);
}
html.intro-zoom.intro-fahrt .hero-deko {
  top: calc(100% + 30px);
  transform: translateX(-50%) scale(2.78);
}
.hero-deko .deko-stand {
  width: 78px; height: 26px;
  margin: 0 auto;
  background: linear-gradient(#2A211A, #1B1511);
  clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
}
.hero-deko .deko-base {
  width: 170px; height: 9px;
  margin: 0 auto;
  border-radius: 999px;
  background: #241D16;
}
.hero-deko .deko-wort {
  margin-top: 20px;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-deko .deko-wort i { color: var(--accent); font-style: normal; }
/* Home-Balken: sitzt unten IM Bildschirm, nur beim Handy-Rahmen sichtbar */
.hero-deko .deko-griff {
  display: none;
  position: absolute;
  left: 50%; top: -24px;
  transform: translateX(-50%);
  width: 46px; height: 4px;
  border-radius: 999px;
  background: rgba(31, 26, 20, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  html.intro-zoom .hero-start { transform: none; border-radius: 0; box-shadow: none; }
  html.intro-zoom .site-header, html.intro-zoom .widget-launcher { opacity: 1; pointer-events: auto; }
  html.intro-zoom .hero-deko { display: none; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.rotor {
  display: inline-block;
  position: relative;
  color: var(--accent);
  white-space: nowrap;
  text-align: center;
}
.rotor .rotor-word {
  display: inline-block;
  border-bottom: 4px solid var(--accent-soft);
  padding-bottom: 2px;
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.rotor .rotor-word.out { opacity: 0; transform: translateY(14px); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }

.trust-note { font-size: 0.9rem; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; }
.trust-note svg { width: 15px; height: 15px; flex: none; }

/* ---------- Scroll-Hinweis: lädt zum Weiterscrollen ein ---------- */

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 7;
  background: rgba(253, 250, 244, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 8px 18px 6px;
  box-shadow: var(--shadow-s);
  transition: opacity 0.45s ease, color 0.25s ease;
}
.scroll-cue:hover { color: var(--ink); }
.scroll-cue svg { width: 22px; height: 22px; animation: cue-bounce 1.9s var(--ease-out) infinite; }

@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ---------- Browser-Mockup / Live-Preview ---------- */

.preview-shell { position: relative; }

.preview-frame {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  overflow: hidden;
  animation: floaty 5s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.frame-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.frame-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
/* Das Schloss gehörte zur früheren URL-Anzeige – jetzt steht dort ein
   Live-Etikett mit pulsierendem Punkt statt einer rohen Adresse */
.frame-schloss { display: none; }
.frame-bar .dot:nth-child(1) { background: #E8A0A0; }
.frame-bar .dot:nth-child(2) { background: #E8CFA0; }
.frame-bar .dot:nth-child(3) { background: #A9C9A9; }
.frame-url {
  flex: 1; margin-left: 10px;
  display: flex; align-items: center; gap: 7px;
  background: var(--bg);
  border-radius: 999px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--ink-soft);
  padding: 4px 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.3s ease;
}
.frame-url::before {
  content: "";
  width: 7px; height: 7px; flex: none;
  border-radius: 50%;
  background: #4CAF6E;
  animation: live-puls 2.2s ease-in-out infinite;
}
@keyframes live-puls {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 110, 0.45); }
  55% { box-shadow: 0 0 0 5px rgba(76, 175, 110, 0); }
}

/* Die Mini-Beispielseite im Frame, Themes via data-brand */

.preview-site {
  --ps-bg: #FBF7F0;
  --ps-panel: #ffffff;
  --ps-ink: #33291E;
  --ps-muted: #99897A;
  --ps-accent: #2C2118;
  --ps-font: var(--font-sans);
  background: var(--ps-bg);
  color: var(--ps-ink);
  font-family: var(--ps-font);
  padding: 16px;
  min-height: 380px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  transition: background 0.55s ease, color 0.55s ease;
}

.preview-site .ps-inner { display: flex; flex-direction: column; gap: 12px; transition: opacity 0.3s ease, transform 0.3s ease; }
.preview-site.morphing .ps-inner { opacity: 0; transform: scale(0.985) translateY(6px); }

.ps-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ps-logo { font-weight: 700; font-size: 0.86rem; letter-spacing: 0.01em; display: flex; align-items: center; gap: 6px; }
.ps-logo i { width: 8px; height: 8px; border-radius: 3px; background: var(--ps-accent); display: inline-block; }
.ps-links { display: flex; gap: 10px; font-size: 0.62rem; color: var(--ps-muted); }
.ps-btn {
  font-size: 0.62rem; font-weight: 600; color: #fff;
  background: var(--ps-accent);
  padding: 5px 12px; border-radius: 999px;
  transition: background 0.55s ease;
}

.ps-hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 172px;
  background: linear-gradient(120deg, var(--ps-accent), var(--ps-ink));
}
.ps-hero img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ps-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 10, 5, 0.62), rgba(15, 10, 5, 0.05) 60%); }
.ps-hero-text { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; color: #fff; }
.ps-hero-text strong { display: block; font-size: 1.02rem; line-height: 1.25; font-family: var(--ps-font); }
.ps-hero-text span { display: block; font-size: 0.66rem; opacity: 0.85; margin-top: 2px; }
.ps-hero-cta {
  display: inline-block; margin-top: 8px;
  font-size: 0.62rem; font-weight: 700; color: var(--ps-ink);
  background: #fff; padding: 5px 12px; border-radius: 999px;
}

.ps-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ps-card {
  background: var(--ps-panel);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(40, 28, 16, 0.06);
  transition: background 0.55s ease;
}
.ps-card b { display: block; font-size: 0.62rem; margin-bottom: 3px; }
.ps-card span { display: block; font-size: 0.56rem; color: var(--ps-muted); line-height: 1.4; }
.ps-card .ps-tag { display: inline-block; margin-top: 5px; font-size: 0.52rem; font-weight: 700; color: var(--ps-accent); }

/* Bot im Preview */
.ps-bot {
  position: absolute;
  right: 14px; bottom: 14px;
  display: flex; align-items: flex-end; gap: 8px;
  z-index: 5;
}
.ps-bubble {
  background: #fff;
  color: #33291E;
  font-size: 0.66rem;
  line-height: 1.35;
  padding: 8px 11px;
  border-radius: 12px 12px 3px 12px;
  box-shadow: var(--shadow-m);
  max-width: 168px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.ps-bubble.out { opacity: 0; transform: translateY(6px); }
.ps-avatar {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-m);
  position: relative;
}
.ps-avatar svg { width: 17px; height: 17px; }
.ps-avatar .online {
  position: absolute; top: -1px; right: -1px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #4CAF6E; border: 2px solid #fff;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 110, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(76, 175, 110, 0); }
}

/* Preview-Themes pro Branche */

.preview-site[data-brand="restaurant"] {
  --ps-bg: #221A13;
  --ps-panel: #2E2419;
  --ps-ink: #F4EADA;
  --ps-muted: #B9A88F;
  --ps-accent: #C89B5A;
  --ps-font: Georgia, "Times New Roman", serif;
}
.preview-site[data-brand="event"] {
  --ps-bg: #1E2340;
  --ps-panel: #2A3054;
  --ps-ink: #F2F1FA;
  --ps-muted: #A9ACD0;
  --ps-accent: #2FB9A8;
  --ps-font: var(--font-sans);
}
.preview-site[data-brand="friseur"] {
  --ps-bg: #FAF5F2;
  --ps-panel: #ffffff;
  --ps-ink: #4A3F3C;
  --ps-muted: #B4A6A0;
  --ps-accent: #D98E8E;
  --ps-font: var(--font-sans);
}
.preview-site[data-brand="shop"] {
  --ps-bg: #F4F1EC;
  --ps-panel: #ffffff;
  --ps-ink: #26221C;
  --ps-muted: #948C7E;
  --ps-accent: #3E6B4F;
  --ps-font: var(--font-sans);
}
.preview-site[data-brand="app"] {
  --ps-bg: #16130E;
  --ps-panel: #211C15;
  --ps-ink: #F1ECE2;
  --ps-muted: #9C9184;
  --ps-accent: #8A7C68;
  --ps-font: var(--font-sans);
}

/* ---------- Style-Galerie (Chips) ---------- */

.style-gallery { padding: 34px 0 70px; }

.chips-intro { text-align: center; font-size: 1.02rem; color: var(--ink-soft); margin-bottom: 18px; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.chip {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg-soft);
  box-shadow: var(--shadow-s);
}

.gallery-hint { text-align: center; font-size: 0.85rem; color: var(--ink-faint); margin-top: 16px; }

/* ---------- Angebots-Index (3 Produkte als typografische Zeilen) ---------- */

/* Redaktionelle Leistungs-Liste: Nummer, grosser Titel, ein Satz,
   Pfeil-Kreis. Ohne Preise - die stehen auf der Leistungs- und der
   Preisseite, hier zaehlt die Neugier. */
.offer-list { border-top: 1px solid var(--line-strong); }

a.offer-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  grid-template-areas: "nr titel pfeil" "nr text pfeil";
  align-items: center;
  gap: 6px 24px;
  padding: 34px 8px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  transition: background 0.25s ease;
}
/* Jede Leistung traegt die Farbe ihrer Welt auf der Leistungsseite -
   Webapp blaeulich, KI violett wie der ki-glow, Website warm, die
   Ueberarbeitung gruen. Bewusst nur als Akzent (Nummer) und beim
   Ueberfahren (hauchfeine Flaeche + gefuellter Pfeil-Kreis), nicht als
   dauerhafte Farbflaeche - die Liste soll ruhig bleiben. Verdrahtet
   ueber das Sprungziel, damit Farbe und Ziel nie auseinanderlaufen. */
a.offer-row[href$="#website"]        { --of: #A87C4F; --of-tint: rgba(168, 124, 79, 0.07); }
a.offer-row[href$="#ueberarbeitung"] { --of: #3E6B4F; --of-tint: rgba(62, 107, 79, 0.06); }
a.offer-row[href$="#webapp"]         { --of: #3E5F82; --of-tint: rgba(62, 95, 130, 0.07); }
a.offer-row[href$="#ki"]             { --of: #7C3AED; --of-tint: rgba(124, 58, 237, 0.05); }

a.offer-row:hover { background: var(--of-tint, var(--bg-soft)); color: var(--ink); }

.offer-nr {
  grid-area: nr;
  align-self: start;
  padding-top: 8px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--of, var(--ink-faint));
  transition: color 0.25s ease;
}

.offer-row h3 {
  grid-area: titel;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
  transition: transform 0.3s ease;
}
a.offer-row:hover h3 { transform: translateX(8px); }

.offer-row p { grid-area: text; margin: 0; max-width: 56ch; color: var(--ink-soft); font-size: 0.98rem; }

/* Pfeil im Kreis: fuellt sich beim Ueberfahren dunkel und zeigt schraeg
   nach oben - "da geht es weiter" */
.offer-pfeil {
  grid-area: pfeil;
  width: 54px; height: 54px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--ink);
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}
a.offer-row:hover .offer-pfeil {
  background: var(--of, var(--ink));
  border-color: var(--of, var(--ink));
  color: #fff;
  transform: rotate(-45deg);
}

/* Schmale Screens: Nummer klein ueber dem Titel, Pfeil-Kreis kompakter */
@media (max-width: 640px) {
  a.offer-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "nr pfeil" "titel pfeil" "text pfeil";
    gap: 4px 18px;
    padding: 26px 4px;
  }
  .offer-nr { padding-top: 0; margin-bottom: 2px; }
  .offer-row h3 { font-size: 1.55rem; }
  .offer-pfeil { width: 46px; height: 46px; font-size: 1.1rem; align-self: center; }
}

/* ---------- Schritt-Karten (Prozess) ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px 24px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--accent-soft);
  line-height: 1;
  margin-bottom: 14px;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Karten allgemein ---------- */

.card-grid { display: grid; gap: 20px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.info-card .icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.info-card .icon svg { width: 22px; height: 22px; }
.info-card h3 { margin-bottom: 8px; }
.info-card p { font-size: 0.96rem; color: var(--ink-soft); }

/* ---------- KI-Bot Sektion / Chat-Demo ---------- */

/* Kein eigener Rahmen und kein eigenes Padding: Die Sektion (.tight)
   bringt den Rhythmus schon mit, und die Leistungs-Liste darüber
   schliesst bereits mit einer Linie ab. Vorher ergab das eine doppelte
   Trennlinie und 116px Abstand statt der 56px aller anderen Sektionen. */
.bot-section { background: transparent; padding: 0; }
.bot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.steps.cols-3 { grid-template-columns: repeat(3, 1fr); }

.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }

.bot-benefits { list-style: none; margin: 22px 0 28px; display: grid; gap: 12px; }
.bot-benefits li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.bot-benefits svg { width: 20px; height: 20px; flex: none; color: var(--green); margin-top: 3px; }
.bot-benefits b { color: var(--ink); }

.chat-demo {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  overflow: hidden;
  display: flex; flex-direction: column;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}
.chat-demo.large { max-width: 560px; }

.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--card);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.chat-head .ps-avatar { width: 36px; height: 36px; background: linear-gradient(140deg, #2C2118, #000); box-shadow: 0 5px 14px rgba(28, 20, 12, 0.28); }
.chat-head .name { font-weight: 600; font-size: 0.98rem; line-height: 1.2; }
.chat-head .status { font-size: 0.75rem; color: var(--ink-faint); display: flex; align-items: center; gap: 5px; }
.chat-head .status i { width: 7px; height: 7px; border-radius: 50%; background: #4CAF6E; display: inline-block; }

.chat-body {
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  height: 300px;
  overflow-y: auto;
  background: var(--bg-soft);
}
.chat-demo.large .chat-body { height: 340px; }

.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.45;
  animation: msg-in 0.3s ease both;
}
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.typing { display: inline-flex; gap: 4px; align-items: center; padding: 13px 16px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: 0.2s; }
.msg.typing i:nth-child(3) { animation-delay: 0.4s; }

@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; background: var(--bg-soft); }
.chat-chips button {
  font-family: var(--font-sans);
  font-size: 0.8rem; font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.chat-chips button:hover { background: var(--bg-soft); border-color: var(--ink-faint); transform: translateY(-1px); }

.chat-input { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--card); }
.chat-input input {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--bg-soft);
  color: var(--ink);
}
.chat-input input:focus { outline: none; border-color: var(--accent); }
.chat-input button {
  width: 44px; height: 44px; flex: none;
  border: none; border-radius: 50%;
  background: var(--ink); color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.chat-input button:hover { background: var(--accent-dark); transform: scale(1.06); }
.chat-input button svg { width: 18px; height: 18px; }

.chat-note { font-size: 0.8rem; color: var(--ink-faint); text-align: center; padding: 0 18px 14px; background: var(--bg-soft); }

/* ---------- Portfolio ---------- */

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.work-card {
  display: block;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}
a.work-card:hover { color: inherit; }
.work-link { display: inline-block; margin-top: 10px; font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.work-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-l); }

.work-thumb { height: 210px; position: relative; overflow: hidden; padding: 18px; display: flex; flex-direction: column; gap: 8px; }

/* Echte Screenshots statt CSS-Mockup */
.work-thumb.shot { padding: 0; display: block; height: 232px; background: var(--bg-soft); }
.work-thumb.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform 0.6s var(--ease-out); }
.work-card:hover .work-thumb.shot img { transform: scale(1.04); }

.work-badge {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
  box-shadow: var(--shadow-s);
}
.work-badge.real { background: var(--green); color: #fff; }

.work-meta { padding: 18px 20px 20px; }
.work-meta h3 { font-size: 1.12rem; margin-bottom: 3px; }
.work-meta p { font-size: 0.88rem; color: var(--ink-faint); }

/* CSS-Mini-Thumbs pro Projekt */
.thumb-nav { display: flex; justify-content: space-between; align-items: center; font-size: 0.6rem; opacity: 0.9; }
.thumb-nav .t-logo { font-weight: 800; letter-spacing: 0.02em; display: flex; align-items: center; gap: 5px; }
.thumb-nav .t-links { display: flex; gap: 7px; opacity: 0.7; }
.thumb-hero { flex: 1; border-radius: 10px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 10px; }
.thumb-hero .t-title { font-weight: 700; font-size: 0.86rem; line-height: 1.25; }
.thumb-hero .t-sub { font-size: 0.58rem; opacity: 0.8; }
.thumb-row { display: flex; gap: 6px; }
.thumb-row i { flex: 1; height: 20px; border-radius: 6px; display: block; }

/* ---------- Warum masesites ---------- */

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- Über-uns-Teaser ---------- */

.about-teaser {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 48px;
}
.about-photo {
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--bg-warm), var(--accent-soft));
  position: relative;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Großer CTA-Block ---------- */

/* Dunkle Espresso-Karte statt transparent schwebendem Text: Die Seite
   endet damit mit einem klaren Block statt auszufransen. Gilt bewusst
   auf allen Seiten, die den Abschluss-Block nutzen. */
.big-cta {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-xl);
  padding: 64px 44px;
  text-align: center;
}
.big-cta h2 { margin-bottom: 14px; color: var(--bg); }
.big-cta p { color: rgba(246, 241, 231, 0.72); max-width: 520px; margin: 0 auto 30px; }
.big-cta .hero-ctas { justify-content: center; margin-bottom: 0; }
/* Knöpfe auf dunklem Grund umgekehrt */
.big-cta .btn-primary {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
.big-cta .btn-primary:hover { background: #fff; color: var(--ink); }
.big-cta .btn-ghost { color: var(--bg); border-color: rgba(246, 241, 231, 0.35); }
.big-cta .btn-ghost:hover { color: #fff; border-color: rgba(246, 241, 231, 0.7); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-warm);
  margin-top: 88px;
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand p { color: var(--ink-soft); font-size: 0.95rem; margin: 14px 0; max-width: 300px; }
.footer-brand .mail { font-weight: 600; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-soft); font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 0.85rem; color: var(--ink-faint);
}
.footer-bottom .legal { display: flex; gap: 18px; }
.footer-bottom .legal a { color: var(--ink-faint); }
.footer-bottom .legal a:hover { color: var(--accent); }
.swiss { display: inline-flex; align-items: center; gap: 7px; }
.swiss .cross {
  width: 14px; height: 14px; border-radius: 3px; background: #D52B1E; position: relative; display: inline-block;
}
.swiss .cross::before, .swiss .cross::after { content: ""; position: absolute; background: #fff; }
.swiss .cross::before { left: 6px; top: 3px; width: 2px; height: 8px; }
.swiss .cross::after { left: 3px; top: 6px; width: 8px; height: 2px; }

/* ---------- Chat-Widget (global, unten rechts) ---------- */

.widget-launcher {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 80;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(140deg, #2C2118, #000);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(28, 20, 12, 0.34);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), opacity 0.5s ease;
}
.widget-launcher:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 20px 42px rgba(28, 20, 12, 0.42); }
/* Solange das Handy-Menü offen ist, verschwindet der KI-Knopf (und ein
   eventuell offenes Chat-Fenster) – nichts schwebt über der Menü-Karte */
body.menue-offen .widget-launcher,
body.menue-offen .widget-panel { opacity: 0; pointer-events: none; }
.widget-launcher svg { width: 26px; height: 26px; }
.widget-launcher .online {
  position: absolute; top: 2px; right: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #4CAF6E; border: 2.5px solid var(--bg);
  animation: pulse 2s ease-in-out infinite;
}

.widget-panel {
  position: fixed;
  right: 22px; bottom: 96px;
  z-index: 80;
  width: min(380px, calc(100vw - 44px));
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  border: 1px solid var(--line);
  background: var(--card);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.widget-panel.open { opacity: 1; pointer-events: auto; transform: none; }
.widget-panel .chat-body { height: 320px; }
.widget-panel .chat-head { cursor: default; }
.widget-close { margin-left: auto; background: none; border: none; color: #fff; cursor: pointer; opacity: 0.7; padding: 4px; }
.widget-close:hover { opacity: 1; }
.widget-close svg { width: 18px; height: 18px; }

/* ---------- Formulare ---------- */

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 36px;
  box-shadow: var(--shadow-m);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.9rem; font-weight: 600; }
.form-field label .opt { font-weight: 400; color: var(--ink-faint); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 11px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-faint); }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(44, 33, 24, 0.08); }

/* Einzelne Ja/Nein-Option in einem Formular, z. B. "Auf der Startseite
   zeigen" - schlichter als eine Pille, weil es hier nur eine Option ist */
.form-checkbox {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.92rem; font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  padding: 2px 0;
}
.form-checkbox input {
  width: 17px; height: 17px; flex: none;
  accent-color: var(--ink);
  cursor: pointer;
}

.check-row { display: flex; flex-wrap: wrap; gap: 12px; }
.check-pill { position: relative; }
.check-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check-pill span {
  display: inline-block;
  font-size: 0.95rem; font-weight: 500;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  transition: all 0.2s ease;
}
.check-pill input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.check-pill input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-success {
  display: none;
  background: #EAF3EC;
  border: 1.5px solid var(--green);
  color: #2C4A37;
  border-radius: var(--radius-m);
  padding: 18px 22px;
  margin-top: 18px;
}
.form-success.show { display: block; }

.contact-aside { display: grid; gap: 16px; align-content: start; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px 20px; }
.contact-line svg { width: 21px; height: 21px; color: var(--accent); flex: none; margin-top: 2px; }
.contact-line b { display: block; font-size: 0.95rem; }
.contact-line span, .contact-line a.plain { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Preise ---------- */

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }

.price-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-l);
  padding: 34px 30px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 18px 44px rgba(31, 26, 20, 0.14);
}
.price-flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.price-card .desc { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 20px; min-height: 44px; }
.price-value { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1.1; }
.price-value small { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 500; color: var(--ink-faint); display: block; margin-top: 4px; }
.price-features { list-style: none; margin: 22px 0 26px; display: grid; gap: 11px; flex: 1; }
.price-features li { display: flex; gap: 10px; font-size: 0.94rem; color: var(--ink-soft); }
.price-features svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 3px; }
.price-card .btn { justify-content: center; }

.price-note { text-align: center; font-size: 0.85rem; color: var(--ink-faint); margin-top: 22px; }

/* ---------- Paket-Konfigurator (Preise): Karten anklicken, Leiste rechnet zusammen ---------- */

[data-select] { cursor: pointer; position: relative; }
[data-select].selected::after {
  content: "✓";
  position: absolute; top: 14px; right: 14px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 700;
}
.price-card.selected { border-color: var(--ink); box-shadow: var(--shadow-m); }
.addon-card.selected { border-color: var(--ink); }

/* Auswahl-Knopf als anklickbares Feld mit Radio-Anzeige */
.select-btn {
  width: 100%;
  justify-content: center;
  gap: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-m);
  padding: 13px 18px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.select-btn::before {
  content: "";
  width: 19px; height: 19px; flex: none;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.select-btn:hover { border-color: var(--ink-faint); color: var(--ink); background: var(--card); transform: none; }
.selected .select-btn { background: var(--card); color: var(--ink); border-color: var(--ink); }
.selected .select-btn::before { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3px #fff; }

.builder-bar {
  position: fixed;
  left: 50%; bottom: 18px;
  transform: translate(-50%, 180%);
  width: min(960px, calc(100vw - 32px));
  background: var(--ink);
  color: var(--bg-soft);
  border-radius: 22px;
  padding: 16px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px 22px; flex-wrap: wrap;
  box-shadow: var(--shadow-l);
  z-index: 75;
  transition: transform 0.35s ease;
}
.builder-bar.show { transform: translate(-50%, 0); }
.builder-info { display: grid; gap: 2px; }
.builder-info b { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(253, 250, 244, 0.65); }
.builder-sum { font-weight: 700; font-size: 1.05rem; }
.builder-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.builder-reset {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 0.9rem;
  color: rgba(253, 250, 244, 0.7);
  text-decoration: underline; text-underline-offset: 3px;
}
.builder-reset:hover { color: #fff; }

/* Kundenportal: UI bleibt unsichtbar, bis die Sitzung vom Server bestätigt ist.
   Sonst blitzt beim Klick auf Dashboard kurz ein angemeldetes Portal auf. */
body.wartet .app-top,
body.wartet .app-main { visibility: hidden; }

body.builder-active { padding-bottom: 130px; }
body.builder-active .widget-launcher { bottom: 112px; }
body.builder-active .widget-panel { bottom: 186px; }

.builder-bar .btn { background: var(--bg-soft); color: var(--ink); box-shadow: none; padding: 12px 22px; font-size: 0.95rem; }
.builder-bar .btn:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

.price-card.compact .price-value { margin-bottom: 24px; }
.price-card.compact .select-btn { margin-top: auto; }

.addon-actions { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
/* In den Addon-Zeilen (KI-Assistent, Service-Abo) stehen die Knöpfe
   nebeneinander in fester Grösse: kein Stapeln, kein Zucken beim
   Wechsel von "Auswählen" zu "Ausgewählt" */
.addon-actions .select-btn {
  width: auto;
  min-width: 178px;
  flex: none;
  border-radius: 999px;
  padding: 12px 22px;
}
@media (max-width: 720px) {
  .addon-actions { flex-wrap: wrap; }
}

.addon-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 30px 34px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.addon-card h3 { margin-bottom: 4px; }
.addon-card p { color: var(--ink-soft); font-size: 0.95rem; max-width: 520px; }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-sans);
  font-size: 1.02rem; font-weight: 600; text-align: left;
  color: var(--ink);
  background: none; border: none;
  padding: 19px 22px;
  cursor: pointer;
}
.faq-q svg { width: 18px; height: 18px; flex: none; color: var(--accent); transition: transform 0.3s ease; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Anwendungsfälle-Tabelle ---------- */

.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.usecase {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px;
}
.usecase b { display: block; margin-bottom: 6px; font-size: 1.02rem; }
.usecase span { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Werte / Über uns ---------- */

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.page-hero { padding: calc(var(--header-h) + 64px) 0 40px; text-align: center; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lead { margin: 0 auto; }

/* ---------- Legal ---------- */

.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.legal-content p, .legal-content li { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 10px; }
.legal-content ul { padding-left: 22px; }
.placeholder-note {
  background: var(--accent-soft);
  border-radius: var(--radius-m);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--accent-dark);
  margin: 20px 0;
}

/* ---------- Scroll-Reveals ---------- */

.reveal { opacity: 0; transform: translateY(28px) scale(0.985); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Bewegung & Tiefe (Signature-Feinschliff) ---------- */

.info-card, .step-card, .price-card, .work-card, .addon-card {
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.25s ease;
}
.info-card:hover, .step-card:hover, .price-card:hover, .work-card:hover { box-shadow: var(--shadow-hover); }
.addon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--line-strong); }
.chat-demo { transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out); }
.chat-demo:hover { box-shadow: var(--shadow-hover); }
.offer-row { transition: background 0.25s var(--ease-out); }

/* Der Scroll-Hinweis blendet beim ersten Scrollen aus. Getrennt gehalten,
   damit die Zentrier-Transformation (translateX) erhalten bleibt. */
body.gescrollt .scroll-cue { opacity: 0; pointer-events: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps, .steps.cols-3, .why-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .work-grid, .card-grid.cols-3, .usecase-grid, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .bot-grid, .about-teaser { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-card.featured { transform: none; }
}

@media (max-width: 720px) {
  section { padding: 60px 0; }
  /* Sehr lange deutsche Wörter («Datenschutzerklärung», «zusammenzuarbeiten»)
     sind breiter als das Handy-Display und zoomen sonst die ganze Seite
     heraus. Getrennt wird aber nur ab 11 Buchstaben mit mindestens 5 pro
     Zeile – kurze Wörter wie «Restaurant» bleiben ganz, sonst wirken die
     Titel zerhackt. */
  .page-hero h1, .big-cta h2, .section-head h2 {
    overflow-wrap: break-word;
    hyphens: auto;
    hyphenate-limit-chars: 11 5 5;
    -webkit-hyphenate-limit-before: 5;
    -webkit-hyphenate-limit-after: 5;
  }
  .main-nav, .header-cta .btn-ghost { display: none; }
  .header-cta .btn-primary { display: none; }
  .burger { display: flex; }
  .site-header { top: 10px; padding: 0 10px; }
  .header-inner { padding: 7px 8px 7px 18px; }
  .steps, .steps.cols-3, .why-grid, .values-grid, .work-grid, .card-grid.cols-3, .card-grid.cols-2, .usecase-grid, .price-grid, .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .about-teaser { padding: 28px; }
  .big-cta { padding: 52px 24px; }
  .hero { padding-top: calc(var(--header-h) + 32px); }
  .hero-vollbild { min-height: 540px; padding: 0; }
  .scroll-cue { display: none; }
  .hero-overlay { padding: 0 10px 14px; }
  .hero-panel { border-radius: 20px; padding: 14px 14px 12px; gap: 10px; }
  .hero-titel { font-size: 1.12rem; }
  .hero-vollbild .preview-site { padding: calc(var(--header-h) + 6px) 16px 212px; }
  .hero-vollbild .ps-links { display: none; }
  .hero-vollbild .ps-hero-text strong { font-size: 1.3rem; }
  /* Auf dem Handy ist der Rahmen ein Smartphone, kein Monitor: runde
     Ecken, dünner Rand, Home-Balken im Bildschirm - und darunter nur
     der Schriftzug. Standfuss und Sockel gehören dem Desktop.
     (Der frühere Selektor .hero-buehne stammte aus einer alten
     Markup-Fassung und traf nichts mehr - darum sah das Intro auf dem
     Handy wie ein gequetschter Monitor aus.) */
  html.intro-zoom .hero-start {
    transform: scale(0.44);
    border-radius: 76px;
    box-shadow:
      0 0 0 15px #1F1A14,
      0 0 0 17px rgba(0, 0, 0, 0.22),
      0 30px 80px rgba(44, 33, 24, 0.42);
  }
  /* Fahrt: gleicher Wachstumsfaktor wie der Bildschirm (1/0.44) */
  html.intro-zoom.intro-fahrt .hero-deko {
    top: calc(100% + 24px);
    transform: translateX(-50%) scale(2.27);
  }
  .hero-deko { top: calc(68.6% + 8px); }
  .hero-deko .deko-stand,
  .hero-deko .deko-base { display: none; }
  .hero-deko .deko-wort { font-size: 1.15rem; margin-top: 16px; }
  .hero-deko .deko-griff { display: block; }
  .ps-hero { height: 140px; }
  .ps-cards { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-card { padding: 24px; }
  .chat-body { height: 260px; }
}

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .demo-fenster.reveal { opacity: 1; transform: none; transition: none; }
  .preview-frame { animation: none; }
  .intro-overlay { display: none; }
}

/* ---------- Kundenkonto: Login & Dashboard ---------- */

.hidden { display: none !important; }

.konto-link { font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); }
.konto-link:hover { color: var(--ink); }
/* (Handy-Menü-Stil des Dashboard-Links steht jetzt gebündelt beim Menü) */

.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 30px 28px; box-shadow: var(--shadow-s); }
.auth-tabs { display: flex; gap: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 24px; }
.auth-tab { flex: 1; border: none; background: none; cursor: pointer; font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); padding: 10px 0; border-radius: 999px; transition: background 0.18s ease, color 0.18s ease; }
.auth-tab:hover { color: var(--ink); }
.auth-tab.active { background: var(--ink); color: #fff; }
.auth-form { display: grid; gap: 16px; }
.auth-form .btn { justify-content: center; }
.form-error { font-size: 0.88rem; color: #9C3B2E; display: none; margin: 0; }
.form-error.show { display: block; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); font-size: 0.85rem; margin: 22px 0 18px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-slot { display: flex; justify-content: center; }
.google-slot > div { border-radius: 999px !important; overflow: hidden; }
.btn-google { width: 100%; justify-content: center; gap: 10px; background: #fff; border: 1px solid var(--line-strong); color: var(--ink); border-radius: 999px; padding: 12px 24px; box-shadow: var(--shadow-s); }
.btn-google:hover { border-color: var(--ink-faint); transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn-google svg { flex: none; }
#google-hinweis { margin-top: 12px; text-align: center; }
.auth-note { text-align: center; font-size: 0.88rem; color: var(--ink-faint); margin-top: 18px; }
.auth-note a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink-soft); }
.auth-note a:hover { color: var(--ink); }

.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Dashboard: Kopf */
.dash-hero { padding: calc(var(--header-h) + 48px) 0 8px; }
.dash-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 6px; }
.dash-hero .lead { font-size: 1.02rem; }

.dash-shell { padding: 28px 0 72px; }

.dash-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }

/* Dashboard: Seitenleiste */
.dash-side {
  position: sticky; top: calc(var(--header-h) + 18px);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-l);
  padding: 18px;
  display: grid; gap: 16px;
}
.side-profil { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.side-avatar {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.05rem;
}
.side-wer { min-width: 0; display: grid; }
.side-wer b { font-size: 0.97rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-wer small { font-size: 0.8rem; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.side-nav { display: grid; gap: 4px; }
.side-item {
  display: flex; align-items: center; gap: 11px;
  width: 100%;
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500; text-align: left;
  color: var(--ink-soft);
  background: none; border: none; cursor: pointer;
  padding: 10px 12px; border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}
.side-item svg { width: 18px; height: 18px; flex: none; }
.side-item:hover { background: var(--bg-soft); color: var(--ink); }
.side-item.active { background: var(--ink); color: #fff; font-weight: 600; }
.side-badge {
  margin-left: auto;
  min-width: 21px; padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent-soft); color: var(--ink);
  font-size: 0.72rem; font-weight: 700; text-align: center;
}
.side-badge:empty { display: none; }
.side-item.active .side-badge { background: rgba(255, 255, 255, 0.22); color: #fff; }
.side-foot { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 12px; justify-items: start; }
.side-foot .btn { width: 100%; justify-content: center; padding: 11px 18px; font-size: 0.92rem; }

/* Dashboard: Panels */
.dash-panel { display: none; }
.dash-panel.active { display: block; }
.dash-panel > * + * { margin-top: 20px; }
/* Inhalt gestaffelt einblenden, statt alles auf einmal erscheinen zu lassen */
.dash-panel.active > * { animation: dash-in 0.55s var(--ease-out) backwards; }
.dash-panel.active > *:nth-child(1) { animation-delay: 0.03s; }
.dash-panel.active > *:nth-child(2) { animation-delay: 0.09s; }
.dash-panel.active > *:nth-child(3) { animation-delay: 0.15s; }
.dash-panel.active > *:nth-child(4) { animation-delay: 0.21s; }
.dash-panel.active > *:nth-child(n+5) { animation-delay: 0.27s; }
@keyframes dash-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dash-panel.active > * { animation: none; } }

.panel-head h2 { font-size: 1.5rem; margin-bottom: 4px; }
.panel-head p { color: var(--ink-soft); font-size: 0.95rem; }

.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

/* Kennzahlen-Leiste: kompakte Zahlen in einer Reihe */
.dash-card.kennzahlen { padding: 14px 10px; display: flex; flex-wrap: wrap; }
.kennzahl {
  flex: 1; min-width: 130px;
  background: none; border: none; cursor: pointer;
  border-right: 1px solid var(--line);
  font-family: var(--font-sans); text-align: left;
  padding: 6px 20px;
  display: grid; gap: 1px;
}
.kennzahl:last-child { border-right: none; }
.kennzahl b { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; line-height: 1.15; color: var(--ink); }
.kennzahl small { font-size: 0.76rem; font-weight: 600; color: var(--ink-faint); }
.kennzahl:hover small { color: var(--ink-soft); }

/* Klickbare Zeilen-Listen (Übersichten) */
.zeilen-liste { list-style: none; }
.zeile {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s ease;
}
.zeile:hover { background: var(--bg-soft); }
.zeile:last-child { border-bottom: none; }
.z-haupt { min-width: 0; display: grid; gap: 2px; }
.z-haupt b { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z-haupt small { font-size: 0.82rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z-meta { display: flex; align-items: center; gap: 10px; flex: none; font-size: 0.82rem; color: var(--ink-faint); }
.z-pfeil { color: var(--ink-faint); font-size: 1.1rem; line-height: 1; }
.zeile:hover .z-pfeil { color: var(--ink); }

/* Projekt-Zeile in der Übersicht */
.projekt-zeile { display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; transition: border-color 0.2s ease; }
.projekt-zeile:hover { border-color: var(--line-strong); }
.pz-links { min-width: 0; }
.pz-links b { display: block; font-size: 1.02rem; }
.pz-links small { color: var(--ink-soft); font-size: 0.85rem; }
.pz-rechts { display: flex; align-items: center; gap: 14px; flex: none; width: 240px; }
.pz-rechts .fortschritt-bar { flex: 1; margin: 0; }
.pz-rechts b { font-size: 0.95rem; }

.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h3 { margin-bottom: 0; }
.card-link {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--font-sans); font-size: 0.88rem; font-weight: 600;
  color: var(--ink-soft);
  text-decoration: underline; text-underline-offset: 3px;
}
.card-link:hover { color: var(--ink); }

/* Dashboard: Änderungs-Liste */
.akt-liste { list-style: none; }
.akt-item { display: flex; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.akt-item:first-child { padding-top: 0; }
.akt-item:last-child { border-bottom: none; padding-bottom: 0; }
.akt-punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); flex: none; margin-top: 8px; }
.akt-item b { display: block; font-weight: 600; }
.akt-item small { color: var(--ink-faint); font-size: 0.82rem; }

/* Dashboard: Fortschritt */
.fortschritt-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; font-size: 0.9rem; color: var(--ink-soft); }
.fortschritt-kopf b { font-size: 1rem; color: var(--ink); }
.fortschritt-bar { height: 9px; border-radius: 999px; background: var(--bg-warm); overflow: hidden; margin-bottom: 18px; }
.fortschritt-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--ink); transition: width 0.6s ease; }

/* Dashboard: Chat (echter Messenger-Aufbau) */
.chat-karte { padding: 0; overflow: hidden; }
.chat-kopf { display: flex; align-items: center; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--line); background: var(--card); }
.chat-kopf .chat-wer { min-width: 0; display: grid; }
.chat-kopf b { font-size: 0.98rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-kopf small { font-size: 0.78rem; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 6px; }
.chat-kopf small .punkt-online { width: 7px; height: 7px; border-radius: 50%; background: #4CAF6E; display: inline-block; flex: none; }
.chat-avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; }
.chat-verlauf {
  height: 440px; overflow-y: auto;
  padding: 20px;
  background: var(--bg-soft);
  display: flex; flex-direction: column;
}
.chat-verlauf.klein { height: 320px; }
.chat-tag { align-self: center; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em; color: var(--ink-faint); background: var(--bg-warm); border-radius: 999px; padding: 3px 12px; margin: 14px 0 10px; flex: none; }
.chat-tag:first-child { margin-top: 0; }
.chat-zeile { display: flex; align-items: flex-end; gap: 8px; margin-top: 3px; }
.chat-zeile.von-ich { justify-content: flex-end; }
.chat-mini-avatar { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.68rem; font-weight: 700; display: grid; place-items: center; }
.chat-bubble {
  max-width: 72%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 0.93rem; line-height: 1.45;
  overflow-wrap: anywhere;
}
.chat-zeile.von-masesites .chat-bubble { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.chat-zeile.von-ich .chat-bubble { background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.msg-zeit { display: inline-block; font-size: 0.68rem; opacity: 0.55; margin-left: 9px; white-space: nowrap; transform: translateY(1px); }
.chat-leer { margin: auto; text-align: center; color: var(--ink-faint); font-size: 0.9rem; padding: 30px; max-width: 300px; }
.chat-eingabe { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-top: 1px solid var(--line); background: var(--card); }
.chat-eingabe input {
  flex: 1; min-width: 0;
  font-family: var(--font-sans); font-size: 0.97rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 12px 20px;
}
.chat-eingabe input:focus { outline: none; border-color: var(--accent); }
.chat-senden {
  width: 46px; height: 46px; flex: none;
  border: none; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.chat-senden:hover { background: var(--accent-dark); transform: scale(1.05); }
.chat-senden svg { width: 19px; height: 19px; }

/* Detail-Ansichten: Zurück-Knopf und Kopfzeile */
.zurueck {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--font-sans); font-size: 0.88rem; font-weight: 600;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 16px;
}
.zurueck:hover { color: var(--ink); }
.detail-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.detail-kopf b { font-size: 1.08rem; display: block; }
.detail-kopf small { color: var(--ink-faint); font-size: 0.84rem; }

/* Ticket-Verlauf */
.ticket-verlauf { display: grid; gap: 12px; margin: 4px 0 18px; }
.ticket-block { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px 16px; background: #fff; }
.ticket-block.von-uns { background: var(--bg-soft); }
.ticket-block .tb-meta { font-size: 0.78rem; font-weight: 600; color: var(--ink-faint); margin-bottom: 6px; }
.ticket-block p { font-size: 0.94rem; }

.dash-hinweis { margin-top: 14px; font-size: 0.84rem; color: var(--ink-faint); }
.dash-hinweis .card-link { font-size: inherit; font-weight: 500; color: inherit; }
.dash-hinweis .card-link:hover { color: var(--ink); }

/* Dashboard: Wunschliste (ToDos) im Projekt */
.wunsch-liste { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 12px 0 16px; }
.wunsch-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.wunsch-check {
  flex: none; width: 22px; height: 22px;
  border: 2px solid var(--line-strong); border-radius: 7px;
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background 0.2s ease, border-color 0.2s ease;
}
.wunsch-check svg { width: 13px; height: 13px; }
.wunsch-item.erledigt .wunsch-check { background: var(--green); border-color: var(--green); }
.wunsch-text { flex: 1; font-size: 0.95rem; color: var(--ink); word-break: break-word; }
.wunsch-item.erledigt .wunsch-text { text-decoration: line-through; color: var(--ink-faint); }
.wunsch-del {
  flex: none; width: 30px; height: 30px; border: none; background: transparent;
  color: var(--ink-faint); cursor: pointer; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
}
.wunsch-del svg { width: 16px; height: 16px; }
.wunsch-del:hover { color: #B4483F; background: var(--bg-warm); }
.wunsch-form { display: flex; gap: 10px; }
.wunsch-form input {
  flex: 1; font-family: var(--font-sans); font-size: 0.95rem;
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-m);
  background: var(--card); color: var(--ink);
}
.wunsch-form input:focus { outline: none; border-color: var(--ink-faint); }
.wunsch-form .btn { flex: none; }
@media (max-width: 560px) {
  .wunsch-form { flex-direction: column; }
  .wunsch-form .btn { width: 100%; justify-content: center; }
}

/* Dashboard: Konto */
.konto-meta { list-style: none; display: grid; gap: 10px; }
.konto-meta li { display: flex; justify-content: space-between; gap: 16px; font-size: 0.94rem; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.konto-meta li:last-child { border-bottom: none; padding-bottom: 0; }
.konto-meta span { color: var(--ink-faint); flex: none; }
.konto-meta b { text-align: right; overflow-wrap: anywhere; }

.dash-panel .preview-box iframe { height: 460px; }

/* ---------- Admin-Bereich ---------- */

.admin-pill {
  display: inline-block;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  background: var(--ink); color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: 10px;
  vertical-align: middle;
}

.tab-wrap { overflow-x: auto; }
.dash-tabelle { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.dash-tabelle th {
  text-align: left;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.dash-tabelle td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dash-tabelle tr:last-child td { border-bottom: none; }
.dash-tabelle td.klein { font-size: 0.82rem; color: var(--ink-soft); }
.dash-tabelle td.nowrap { white-space: nowrap; }

.mini-select {
  font-family: var(--font-sans); font-size: 0.85rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--line); border-radius: 8px;
  padding: 6px 9px;
}
.mini-select:focus { outline: none; border-color: var(--accent); }

.mini-knopf {
  background: none;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-sans); font-size: 0.82rem; font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.mini-knopf:hover { border-color: var(--ink); color: var(--ink); }
.mini-knopf.gefahr { color: #9C3B2E; border-color: #DCC2B8; }
.mini-knopf.gefahr:hover { border-color: #9C3B2E; color: #9C3B2E; }

.filter-zeile { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filter-zeile input[type="search"], .filter-zeile input[type="text"] {
  flex: 1; min-width: 200px;
  font-family: var(--font-sans); font-size: 0.92rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 16px;
}
.filter-zeile input:focus { outline: none; border-color: var(--accent); }
.klein-label { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }

#ki-liste > * + * { margin-top: 20px; }
.dash-tabelle tbody tr.klickbar { cursor: pointer; }
.dash-tabelle tbody tr.klickbar:hover td { background: var(--bg-soft); }

.projekt-editor .form-field input, .projekt-editor .form-field select {
  font-family: var(--font-sans); font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--line); border-radius: var(--radius-s);
  padding: 10px 14px;
}
.projekt-editor .form-field input:focus, .projekt-editor .form-field select:focus { outline: none; border-color: var(--accent); }
.projekt-editor .btn-primary.projekt-speichern { padding: 11px 22px; font-size: 0.92rem; }
.dash-card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-l); padding: 26px; }
.dash-card h3 { font-size: 1.12rem; margin-bottom: 14px; }
.dash-sub { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 16px; }
.dash-steps { list-style: none; display: grid; }
.dash-step { display: flex; align-items: center; gap: 13px; padding: 9px 0; font-size: 0.95rem; color: var(--ink-faint); }
.dash-step .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: #fff; flex: none; display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; }
.dash-step.done { color: var(--ink-soft); }
.dash-step.done .dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.dash-step.current { color: var(--ink); font-weight: 600; }
.dash-step.current .dot { border-color: var(--ink); }
.preview-box { border: 1.5px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: #fff; }
.preview-box iframe { display: block; width: 100%; height: 340px; border: none; }
.preview-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.dash-list { list-style: none; display: grid; gap: 10px; }
.dash-item { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 13px 15px; display: grid; gap: 5px; }
.dash-item b { font-size: 0.94rem; }
.dash-item .meta { font-size: 0.84rem; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }
.pill.offen { border-color: var(--ink); color: var(--ink); }
.pill.arbeit { background: var(--bg-warm); }
.pill.fertig { background: var(--ink); border-color: var(--ink); color: #fff; }
.leer { font-size: 0.92rem; color: var(--ink-soft); }
.leer a { text-decoration: underline; text-underline-offset: 3px; }
.ticket-form { margin-top: 16px; }
.konto-abmelden { background: none; border: none; cursor: pointer; font-family: var(--font-sans); font-size: 0.92rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.konto-abmelden:hover { color: var(--ink); }

@media (max-width: 1020px) {
  /* minmax(0,1fr) statt 1fr: sonst darf die Spalte nie schmaler werden als die
     komplette Tab-Leiste (~685px) und das ganze Dashboard wird auf dem Handy
     herausgezoomt und winzig dargestellt. */
  .dash-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .dash-main { min-width: 0; }

  /* Seitenleiste wird zur schlanken, klebrigen Tab-Leiste direkt unter dem Kopf.
     Profil, Abschnitts-Labels und Fusszeile blenden aus (Profil/Abmelden stehen
     schon im Kopf) – so beginnt der Inhalt sofort und die Navigation ist klar. */
  .dash-side {
    /* 59px = Höhe der App-Kopfzeile (60px) minus 1px Rand-Überlappung.
       var(--header-h) wäre 76px und liesse beim Scrollen einen Spalt offen. */
    position: sticky; top: 59px; z-index: 40;
    background: rgba(253, 250, 244, 0.95);
    backdrop-filter: blur(10px);
    border: none; border-bottom: 1px solid var(--line); border-radius: 0;
    padding: 8px 0; margin: 0 -24px;
    display: block;
  }
  .side-profil, .side-label, .side-foot { display: none; }
  .side-nav {
    display: flex; gap: 8px;
    overflow-x: auto; scrollbar-width: none;
    padding: 2px 24px 4px;
    -webkit-overflow-scrolling: touch;
  }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-item {
    flex: none; width: auto; gap: 8px;
    padding: 9px 15px;
    border: 1.5px solid var(--line); border-radius: 999px;
    background: var(--card); font-size: 0.9rem; white-space: nowrap;
  }
  .side-item:hover { background: var(--card); }
  .side-item.active { background: var(--ink); color: #fff; border-color: var(--ink); }
  .side-badge { margin-left: 3px; }

  .panel-grid { grid-template-columns: 1fr; }
  .projekt-zeile { flex-direction: column; align-items: stretch; gap: 12px; }
  .pz-rechts { width: auto; }
}

@media (max-width: 720px) {
  .dash-hero { padding-top: calc(var(--header-h) + 32px); }
  .chat-bubble { max-width: 86%; }
  .chat-verlauf { height: 380px; }
  .dash-panel .preview-box iframe { height: 340px; }
  .auth-row { grid-template-columns: 1fr; }

  /* Mehr nutzbare Breite: schmalere Seitenränder, Tab-Leiste zieht mit */
  .app-wrap { padding: 0 16px; }
  .app-top-inner { padding: 0 16px; }
  .dash-side { margin: 0 -16px; }
  .side-nav { padding: 2px 16px 4px; }
  .app-main { padding: 18px 0 56px; }
  .dash-panel > * + * { margin-top: 14px; }
  .dash-card { padding: 18px 16px; }
  .dash-card.schlank { padding: 14px 16px; }
  .chat-kopf { padding: 13px 16px; }
  .chat-verlauf { padding: 16px 14px; }

  /* Kennzahlen: statt 2+1-Kacheln mit hängenden Trennlinien eine ruhige
     Liste – Zahl links, Beschriftung daneben, volle Zeile antippbar */
  .dash-card.kennzahlen { display: grid; padding: 6px 16px; }
  .kennzahl {
    display: flex; align-items: baseline; gap: 14px;
    min-width: 0; padding: 12px 2px;
    border-right: none; border-bottom: 1px solid var(--line);
  }
  .kennzahl:last-child { border-bottom: none; }
  .kennzahl b { font-size: 1.35rem; min-width: 26px; text-align: center; }
  .kennzahl small { font-size: 0.88rem; }

  /* Detail-Köpfe: Titel und Aktionen untereinander statt gequetscht */
  .detail-kopf { flex-direction: column; align-items: stretch; gap: 8px; }
  .konto-meta li { flex-direction: column; gap: 2px; }
  .konto-meta b { text-align: left; }
}

/* ============================================================
   App-Portal: Kundendashboard, Admin-Bereich, Mitarbeiter-Portal
   Schlanke Topbar, Kennzahlen-Leiste, klickbare Übersichten mit
   Detailseiten und Messenger. Nutzt das bestehende Design-System.
   ============================================================ */

body.app { --header-h: 61px; }

.app-top {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253, 250, 244, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.app-top-inner {
  max-width: 1360px; margin: 0 auto; padding: 0 24px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.app-top .logo { font-size: 1.14rem; }
.app-pill {
  display: inline-block;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  background: var(--ink); color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: 10px;
  vertical-align: middle;
}
.app-top-rechts { display: flex; align-items: center; gap: 18px; min-width: 0; }
.app-top-link { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.app-top-link:hover { color: var(--ink); }
.app-top-trenner { width: 1px; height: 22px; background: var(--line); flex: none; }
.app-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-user .side-avatar { width: 31px; height: 31px; font-size: 0.78rem; }
.app-user-name { font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

.app-main { padding: 26px 0 64px; }
.app-wrap { max-width: 1360px; margin: 0 auto; padding: 0 24px; }

.app-fuss { border-top: 1px solid var(--line); padding: 18px 0 26px; }
.app-fuss .app-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; font-size: 0.82rem; color: var(--ink-faint); }
.app-fuss a { color: var(--ink-faint); }
.app-fuss a:hover { color: var(--ink); }
.app-fuss .legal { display: flex; gap: 16px; }

/* Seitenleiste: Abschnitts-Labels */
.side-label {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink-faint);
  padding: 8px 12px 2px;
}

/* Panel-Kopf: Titelzeile mit Aktionen rechts */
.panel-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; }
.panel-kopf h1 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 3px; }
.panel-kopf p { color: var(--ink-soft); font-size: 0.92rem; }
.panel-aktionen { display: flex; align-items: center; gap: 10px; flex: none; }
.btn.klein { padding: 10px 18px; font-size: 0.88rem; }

.dash-card.schlank { padding: 18px 22px; }

/* Zeilen-Listen: Fortschritt und Status rechts */
.zeile.statisch { cursor: default; }
.zeile.statisch:hover { background: none; }
.z-fortschritt { display: flex; align-items: center; gap: 10px; width: 150px; flex: none; }
.z-fortschritt .fortschritt-bar { flex: 1; margin: 0; height: 7px; }
.z-fortschritt b { font-size: 0.8rem; }
.zeile .pill { flex: none; }

/* Tabellen: Fortschritt in der Zelle */
.tab-fortschritt { display: flex; align-items: center; gap: 9px; min-width: 130px; }
.tab-fortschritt .fortschritt-bar { flex: 1; margin: 0; height: 7px; }
.tab-fortschritt b { font-size: 0.8rem; }
.dash-tabelle td .pill { white-space: nowrap; }

/* Detail-Seiten: Metazeile unter dem Titel */
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--ink-soft); font-size: 0.9rem; }

/* Messenger */
.chat-karte .chat-verlauf { height: 520px; }
.chat-zeile.folge { margin-top: 2px; }
.chat-mini-avatar.unsichtbar { visibility: hidden; }
.msg-haken { display: inline-flex; margin-left: 7px; vertical-align: -1px; opacity: 0.55; }
.msg-haken svg { width: 15px; height: 10px; display: block; }
.msg-haken.gelesen { opacity: 1; }
.chat-neu-trenner {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  margin: 14px 0 10px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
  flex: none;
}
.chat-neu-trenner::before, .chat-neu-trenner::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

/* Posteingang (Admin und Mitarbeiter): Liste links, Verlauf rechts */
.inbox-karte { padding: 0; overflow: hidden; display: grid; grid-template-columns: 300px minmax(0, 1fr); height: 600px; }
.inbox-liste { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.inbox-suche { padding: 12px; border-bottom: 1px solid var(--line); }
.inbox-suche input {
  width: 100%;
  font-family: var(--font-sans); font-size: 0.88rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 14px;
}
.inbox-suche input:focus { outline: none; border-color: var(--accent); }
.inbox-eintraege { overflow-y: auto; flex: 1; }
.inbox-item {
  display: flex; align-items: center; gap: 11px;
  width: 100%;
  background: none; border: none; border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  cursor: pointer;
  font-family: var(--font-sans); text-align: left;
}
.inbox-item:hover { background: var(--bg-soft); }
.inbox-item.aktiv { background: var(--bg-warm); }
.inbox-item .side-avatar { width: 38px; height: 38px; font-size: 0.85rem; }
.ib-mitte { min-width: 0; flex: 1; display: grid; gap: 1px; }
.ib-mitte b { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-mitte small { font-size: 0.78rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-item.ungelesen .ib-mitte small { color: var(--ink); font-weight: 600; }
.ib-rechts { flex: none; display: grid; justify-items: end; gap: 5px; }
.ib-zeit { font-size: 0.7rem; color: var(--ink-faint); }
.ib-anzahl {
  min-width: 19px; height: 19px; padding: 0 6px;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 0.68rem; font-weight: 700;
  display: grid; place-items: center;
}
.inbox-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.inbox-thread .chat-kopf { flex: none; }
.inbox-thread .chat-verlauf { flex: 1; height: auto; min-height: 0; }
.inbox-thread .chat-eingabe { flex: none; }
.inbox-leer { margin: auto; padding: 40px; color: var(--ink-faint); font-size: 0.92rem; text-align: center; max-width: 320px; }

/* Zuweisungs-Listen (Mitarbeitern Kunden zuteilen) */
.zuweis-liste { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; }
.zuweis-item {
  display: flex; align-items: center; gap: 11px;
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 10px 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.zuweis-item:hover { background: var(--bg-soft); }
.zuweis-item input { width: 16px; height: 16px; accent-color: var(--ink); flex: none; }
.zuweis-item .zw-text { min-width: 0; display: grid; }
.zuweis-item .zw-text b { font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zuweis-item .zw-text small { font-size: 0.78rem; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zuweis-item.gewaehlt { border-color: var(--ink); background: var(--bg-soft); }

@media (max-width: 1020px) {
  .inbox-karte { grid-template-columns: 1fr; height: auto; }
  .inbox-liste { border-right: none; border-bottom: 1px solid var(--line); max-height: 280px; }
  .inbox-thread .chat-verlauf { height: 360px; flex: none; }
  .z-fortschritt { display: none; }
  .app-top-link { display: none; }
  .chat-karte .chat-verlauf { height: 440px; }
}

@media (max-width: 720px) {
  .app-user-name { display: none; }
  .panel-kopf h1 { font-size: 1.3rem; }
  .app-top-trenner { display: none; }
}

/* Sehr schmale Handys (unter 400px): das «Kundenportal»-Etikett braucht
   zusammen mit Logo und Abmelden mehr Platz als da ist und würde die
   ganze App-Ansicht herauszoomen – deshalb weicht es hier. */
@media (max-width: 400px) {
  .app-pill { display: none; }
  .app-top-inner { gap: 10px; }
  .app-top-rechts { gap: 12px; }
}

/* ============================================================
   Live-Demos im Vollbild und Projekt-Detailseite
   ============================================================ */

/* Beispiele: Demo öffnet gross, aber sichtbar INNERHALB von masesites -
   abgedunkelter Rand ringsum, oben die masesites-Kopfzeile mit Schliessen */
.demo-vollbild {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(30, 22, 14, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: clamp(12px, 2.6vw, 32px);
  display: flex;
}
.demo-vollbild-rahmen {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.4);
}
.demo-vollbild-kopf {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 18px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.dv-marke { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; flex: none; }
.demo-vollbild-kopf b { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-vollbild-kopf .neu-tab { margin-left: auto; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.demo-vollbild-kopf .neu-tab:hover { color: var(--ink); }
.demo-vollbild-kopf .schliessen {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--bg-soft); color: var(--ink);
  font-family: var(--font-sans); font-size: 0.88rem; font-weight: 600;
  padding: 9px 16px;
  cursor: pointer;
}
.demo-vollbild-kopf .schliessen:hover { border-color: var(--ink); background: #fff; }
.demo-vollbild-kopf .schliessen svg { width: 15px; height: 15px; }
.demo-vollbild iframe { flex: 1; width: 100%; border: 0; background: #fff; }
body.demo-offen { overflow: hidden; }
@media (max-width: 720px) {
  .demo-vollbild { padding: 8px; }
  .demo-vollbild-kopf b { display: none; }
  .demo-vollbild-kopf .schliessen span { display: none; }
}
.work-card[role="button"] { cursor: pointer; }

/* Projekte: grosse Vorschau in der Detailansicht */
.pd-medien { background: var(--bg-soft); }
.pd-medien img { display: block; width: 100%; height: auto; }
.pd-medien iframe { display: block; width: 100%; height: min(64vh, 640px); border: 0; background: #fff; }

@media (max-width: 720px) {
  .demo-vollbild-kopf { gap: 10px; padding: 9px 12px; }
  .demo-vollbild-kopf .neu-tab { display: none; }
}

/* Admin-Formular: Trenner "oder", Hinweise, Datei-Upload */
.form-trenner {
  display: flex; align-items: center; gap: 12px;
  margin: 4px 0 2px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint);
}
.form-trenner::before, .form-trenner::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.feld-hinweis { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--ink-faint); }
.feld-status { margin-top: 6px; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.feld-status:empty { display: none; }
input[type="file"] {
  font-family: var(--font-sans); font-size: 0.9rem; color: var(--ink-soft);
  width: 100%;
}
input[type="file"]::file-selector-button {
  font-family: var(--font-sans); font-size: 0.86rem; font-weight: 600;
  color: var(--ink); background: var(--bg-soft);
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 16px; margin-right: 12px; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
input[type="file"]::file-selector-button:hover { border-color: var(--ink); background: #fff; }

/* ============================================================
   Preise: Tab-Schalter zwischen Neue Website / Überarbeitung / Webapp
   ============================================================ */
.preis-tabs {
  display: flex; justify-content: center; gap: 6px;
  width: max-content; max-width: 100%;
  margin: 26px auto 0;
  padding: 6px;
  background: rgba(255, 254, 250, 0.72);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-s);
  overflow-x: auto;
  scrollbar-width: none;
}
.preis-tabs::-webkit-scrollbar { display: none; }
.preis-tab {
  flex: none;
  border: none; background: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 0.98rem; font-weight: 600;
  color: var(--ink-soft);
  padding: 12px 26px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.preis-tab:hover { color: var(--ink); }
.preis-tab.active { background: var(--ink); color: #fff; box-shadow: var(--shadow-s); }
.preis-panel[hidden] { display: none; }
/* Webapp-Panel: zwei Karten mittig statt drei */
.price-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin: 0 auto; }
@media (max-width: 720px) {
  .preis-tab { padding: 10px 16px; font-size: 0.9rem; }
  .price-grid.cols-2 { grid-template-columns: 1fr; }
}

/* Kundenportal: mehr Luft zwischen Fortschritt, Vorschau, Wünschen
   und Änderungen im Projekt-Detail */
#projekt-detail > * + * { margin-top: 30px; }
#projekt-detail .dash-card { padding: 30px; }
#projekt-detail .dash-card h3 { margin-bottom: 18px; }

/* ============================================================
   Über uns: Arbeitsplatz-Illustration und die Betreiber
   ============================================================ */
.arbeitsplatz-bild {
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-l);
  background: var(--card);
}
.arbeitsplatz-bild img { display: block; width: 100%; height: auto; }

/* Echtes Büro: zwei Fotos nebeneinander (ersetzt die frühere Illustration) */
.buero-galerie {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}
.buero-bild {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-l);
  background: var(--card);
}
.buero-bild img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.buero-unterzeile {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.9rem;
  margin-top: 20px;
}
@media (max-width: 720px) {
  .buero-galerie { grid-template-columns: 1fr; gap: 16px; max-width: 460px; }
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}
.team-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px 30px;
}
.team-avatar {
  width: 56px; height: 56px; flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.3rem;
}
.team-card h3 { margin-bottom: 5px; }
.team-card p { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 720px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Einzug-Animationen (2026-07): Listen-Kaskade, KI-Netz,
   Über-uns-Intro ("die Seite codet sich selbst")
   ============================================================ */

/* ---------- Listen-Kaskade: Einträge listen sich schnell nacheinander auf ----------
   site.js markiert bekannte Listen (.stagger-warten) und startet die Kaskade
   beim Hereinscrollen (.stagger-los). Ohne JS bleibt alles normal sichtbar. */

.stagger-warten > * { opacity: 0; }
.stagger-los > * {
  animation: liste-rein 0.5s cubic-bezier(0.2, 0.85, 0.3, 1.06) backwards;
  animation-delay: calc(var(--sx, 0) * 55ms);
}
@keyframes liste-rein {
  from { opacity: 0; transform: translateY(16px) scale(0.99); filter: blur(4px); }
  60% { filter: blur(0); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ---------- KI-Seite: lebendes neuronales Netz im Hero (ki.js) ---------- */

.ki-netz { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Über uns: der Coder baut die Seite auf (ueberuns.js) ----------
   ueberuns.js setzt html.uu-bau vor dem ersten Zeichnen: Inhalt startet leer,
   die Überschrift tippt sich, die Sektionen bauen sich nach unten auf.
   Ohne JS oder mit reduzierter Bewegung bleibt die Seite ganz normal. */

html.uu-bau .uu-teil,
html.uu-bau .uu-hero h1,
html.uu-bau .uu-hero .lead { opacity: 0; }
html.uu-bau .widget-launcher { opacity: 0; pointer-events: none; }

.uu-hero h1.uu-tippt { opacity: 1 !important; }
.uu-hero .lead { transition: opacity 0.6s var(--ease-out); }
.uu-hero .lead.uu-an { opacity: 1 !important; }

.uu-caret {
  display: inline-block; width: 3px; height: 0.92em;
  background: var(--ink); margin-left: 3px; vertical-align: -0.1em;
  animation: uu-blink 0.55s steps(1) infinite;
}
@keyframes uu-blink { 50% { opacity: 0; } }

.uu-teil.uu-baut {
  opacity: 1 !important;
  animation: uu-bauen 0.6s var(--ease-out) both;
}
@keyframes uu-bauen {
  from { opacity: 0; transform: translateY(24px); clip-path: inset(-4% -6% 102% -6%); }
  to { opacity: 1; transform: none; clip-path: inset(-4% -6% -14% -6%); }
}
.uu-teil.uu-fertig { opacity: 1 !important; animation: none; clip-path: none; }

/* Die Szene: Figur am Schreibtisch, tippt durchgehend. Sie gehoert nur zum
   Intro, darum ist sie im Endzustand (und ohne JS / reduzierte Bewegung) aus. */
.uu-szene { display: none; justify-content: center; margin-bottom: 14px; }
html.uu-bau .uu-szene { display: flex; }
.uu-szene svg { width: min(420px, 76vw); height: auto; color: var(--ink); overflow: visible; }

.uu-szene .uu-arm {
  transform-box: view-box; transform-origin: 172px 138px;
  animation: uu-tippen 0.16s ease-in-out infinite alternate;
}
.uu-szene .uu-arm2 {
  transform-box: view-box; transform-origin: 146px 118px;
  animation: uu-tippen2 0.19s ease-in-out infinite alternate;
}
@keyframes uu-tippen { from { transform: rotate(-3.5deg); } to { transform: rotate(2.5deg); } }
@keyframes uu-tippen2 { from { transform: rotate(2.2deg); } to { transform: rotate(-3deg); } }

.uu-szene .uu-zeile {
  transform-box: fill-box; transform-origin: left center;
  animation: uu-zeile 3.6s var(--ease-out) infinite;
}
@keyframes uu-zeile {
  0% { transform: scaleX(0); }
  9% { transform: scaleX(1); }
  78% { transform: scaleX(1); }
  85% { transform: scaleX(0); }
  100% { transform: scaleX(0); }
}
.uu-szene .uu-z2 { animation-delay: 0.28s; }
.uu-szene .uu-z3 { animation-delay: 0.56s; }
.uu-szene .uu-z4 { animation-delay: 0.84s; }
.uu-szene .uu-z5 { animation-delay: 1.12s; }

.uu-szene .uu-caret2 { animation: uu-blink 0.5s steps(1) infinite; }

.uu-szene .uu-dampf { opacity: 0; animation: uu-dampf 2.6s ease-in-out infinite; }
.uu-szene .uu-dampf.d2 { animation-delay: 1.2s; }
@keyframes uu-dampf {
  0% { opacity: 0; transform: translateY(2px); }
  30% { opacity: 0.45; }
  70% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 0; }
}

/* ---------- Finale: der Text schiebt den Coder aus dem Bild ----------
   Frueher blendete die Figur einfach aus - sie verschwand aus dem
   Nichts, ohne dass etwas ihren Platz einnahm. Jetzt faehrt die Szene
   nach oben aus dem Bild, waehrend ihr Platz zusammengeht: Der Inhalt
   darunter rueckt dabei sichtbar nach, als wuerde der Text den Coder
   nach oben hinausschieben. Die Hoehe misst ueberuns.js und setzt sie
   als --uu-hoehe, damit die Bewegung genau passt. */
.uu-szene {
  overflow: hidden;
  transition: margin-top 0.85s var(--ease-out), opacity 0.5s ease 0.2s;
}
.uu-szene.uu-zieht {
  margin-top: calc(var(--uu-hoehe, 260px) * -1);
  opacity: 0;
}
.uu-szene .uu-figur {
  transform-box: view-box; transform-origin: 150px 208px;
}
.uu-szene.uu-steht .uu-arm,
.uu-szene.uu-steht .uu-arm2,
.uu-szene.uu-zieht .uu-arm,
.uu-szene.uu-zieht .uu-arm2 { animation: none; transition: transform 0.5s var(--ease-out); }
/* Kein Aufstehen mehr: die Figur bleibt sitzen und tippt ruhig weiter,
   bis sie am Ende sanft ausblendet. Das Hochrucken wirkte abgehackt. */
/* Die Figur selbst bleibt unveraendert - bewegt wird die ganze Szene,
   damit es aussieht, als schoebe der nachrueckende Text sie hinaus. */

@media (prefers-reduced-motion: reduce) {
  .stagger-warten > *, .stagger-los > * { opacity: 1; animation: none; }
  .uu-szene svg * { animation: none !important; }
  .uu-szene .uu-caret2 { opacity: 0; }
  .uu-caret { display: none; }
}

/* ============================================================
   Handy: iOS-Zoom-Schutz für alle Eingabefelder
   Steht bewusst am DATEIENDE, damit es jede frühere Feld-Regel
   mit gleicher Spezifität übertrumpft. iOS Safari zoomt beim
   Antippen automatisch hinein, sobald ein Feld unter 16px liegt.
   ============================================================ */

@media (max-width: 720px) {
  input, select, textarea, input[type="file"],
  .chat-eingabe input, .filter-zeile input[type="search"], .filter-zeile input[type="text"],
  .inbox-suche input, .wunsch-form input, .mini-select,
  .projekt-editor .form-field input, .projekt-editor .form-field select {
    font-size: max(16px, 1em);
  }
}

/* ============================================================
   Kundendashboard auf dem Handy: App-Navigation unten
   und Vollbild-Chat
   Gilt nur für body.kunde (dashboard.html) – Admin und MCS
   behalten ihre Tab-Leiste oben, weil sie zu viele Bereiche
   für eine Bottom-Bar haben.
   ============================================================ */

@media (max-width: 720px) {

  /* ---------- Kopfzeile: ruhiger und aufgeräumter ---------- */
  body.kunde .app-top-inner { height: 56px; }
  body.kunde .konto-abmelden {
    text-decoration: none;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.84rem; font-weight: 600;
  }

  /* ---------- Navigation: feste Leiste am unteren Rand ---------- */
  body.kunde .dash-side {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 80;
    margin: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(253, 250, 244, 0.93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: none; border-top: 1px solid var(--line); border-radius: 0;
    box-shadow: 0 -8px 30px rgba(72, 52, 30, 0.08);
  }
  body.kunde .side-nav {
    display: flex; gap: 0;
    overflow: visible; padding: 0;
  }
  body.kunde .side-item {
    flex: 1; min-width: 0;
    flex-direction: column; gap: 3px;
    align-items: center; justify-content: flex-start;
    padding: 4px 2px 2px;
    border: none; border-radius: 12px;
    background: none;
    font-size: 0.64rem; font-weight: 600; letter-spacing: 0.01em;
    color: var(--ink-faint);
    white-space: nowrap;
  }
  /* Icon sitzt in einem weichen «Kiesel», der beim aktiven Bereich
     zur schwarzen Pille wird – dieselbe Formsprache wie die Knöpfe */
  body.kunde .side-item svg {
    width: 20px; height: 20px;
    box-sizing: content-box;
    padding: 6px 13px;
    border-radius: 999px;
    transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out);
  }
  body.kunde .side-item.active { background: none; color: var(--ink); font-weight: 700; }
  body.kunde .side-item.active svg { background: var(--ink); color: #fff; }
  body.kunde .side-item:hover { background: none; color: var(--ink); }

  /* Zähler klein ans Icon geheftet statt als eigene Pille daneben */
  body.kunde .side-item { position: relative; }
  body.kunde .side-badge {
    position: absolute; top: -1px; left: calc(50% + 8px);
    margin: 0; min-width: 18px; padding: 1px 5px;
    background: var(--ink); color: #fff;
    border: 2px solid var(--bg-soft);
    font-size: 0.66rem;
  }
  body.kunde .side-item.active .side-badge { background: var(--ink); color: #fff; }

  /* Inhalt bekommt unten Luft, damit die Leiste nichts verdeckt */
  body.kunde .app-main { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  body.kunde .app-fuss { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

  /* ---------- Nachrichten: die Seite IST der Chat ---------- */
  /* Die Panels sind <section>-Elemente und erben sonst die generischen
     60px der Website-Abschnitte – im App-Kontext ist das toter Raum. */
  body.kunde .dash-panel { padding: 12px 0 0; }
  body.kunde #panel-nachrichten.dash-panel { padding: 0; }
  body.kunde #panel-nachrichten .chat-karte { margin-top: 0; }
  body.kunde[data-route="nachrichten"] .dash-side,
  body.kunde[data-route="nachrichten"] .app-fuss { display: none; }
  body.kunde[data-route="nachrichten"] .app-main { padding: 0; }
  body.kunde #panel-nachrichten .panel-kopf { display: none; }
  body.kunde #panel-nachrichten .chat-karte {
    display: flex; flex-direction: column;
    height: calc(100dvh - 57px);   /* Kopfzeile 56px + 1px Rand */
    margin: 0 -16px;
    border: none; border-radius: 0;
  }
  body.kunde #panel-nachrichten .chat-verlauf { flex: 1; height: auto; min-height: 0; }
  body.kunde #panel-nachrichten .chat-eingabe {
    padding-bottom: calc(13px + env(safe-area-inset-bottom, 0px));
  }
  /* Kein Einflug-Effekt im Chatmodus: die Fläche steht sofort */
  body.kunde[data-route="nachrichten"] .dash-panel.active > * { animation: none; }

  /* Zurück-Pfeil im Chat-Kopf (nur Handy) */
  .chat-zurueck {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; flex: none;
    margin-left: -8px;
    border: none; border-radius: 50%;
    background: none; color: var(--ink);
    cursor: pointer;
  }
  .chat-zurueck svg { width: 22px; height: 22px; }
  .chat-zurueck:active { background: var(--bg-warm); }
}

/* Zurück-Pfeil nur auf dem Handy zeigen */
@media (min-width: 721px) {
  .chat-zurueck { display: none; }
}

/* Neunter Menüpunkt (Leistungen) bekommt seine Einflug-Verzögerung */
.mobile-menu.open a:nth-child(9) { animation-delay: 0.38s; }

/* ============================================================
   Header: Hover-Gruppe «Arbeiten» (Beispiele + Projekte)
   und der «Projekt starten»-Knopf
   ============================================================ */

.nav-gruppe { position: relative; display: inline-flex; }
.nav-gruppe-knopf {
  display: inline-flex; align-items: center; gap: 5px;
  border: none; background: none; cursor: pointer;
  color: var(--ink-soft);
  font: 500 0.98rem var(--font-sans);
  padding: 0;
  position: relative;
}
.nav-gruppe-knopf svg { width: 13px; height: 13px; transition: transform 0.25s var(--ease-out); }
.nav-gruppe-knopf::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--ink); border-radius: 2px; transition: width 0.25s ease;
}
.nav-gruppe:hover .nav-gruppe-knopf,
.nav-gruppe:focus-within .nav-gruppe-knopf { color: var(--ink); }
.nav-gruppe:hover .nav-gruppe-knopf::after,
.nav-gruppe:focus-within .nav-gruppe-knopf::after,
.nav-gruppe.aktiv .nav-gruppe-knopf::after { width: 100%; }
.nav-gruppe:hover .nav-gruppe-knopf svg,
.nav-gruppe:focus-within .nav-gruppe-knopf svg { transform: rotate(180deg); }

/* Kleine Karte in derselben Formsprache wie Kopfzeile und Handy-Menü */
.nav-gruppe-menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(-6px) scale(0.97);
  transform-origin: top center;
  min-width: 168px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-l);
  padding: 8px;
  display: grid; gap: 2px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease, transform 0.28s var(--ease-out);
}
/* Unsichtbare Brücke, damit der Hover den Spalt zur Karte übersteht */
.nav-gruppe-menu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.nav-gruppe:hover .nav-gruppe-menu,
.nav-gruppe:focus-within .nav-gruppe-menu {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}
.main-nav .nav-gruppe-menu a {
  padding: 10px 14px;
  border-radius: 11px;
  font-weight: 600; font-size: 0.94rem;
}
.main-nav .nav-gruppe-menu a::after { display: none; }
.main-nav .nav-gruppe-menu a:hover { background: var(--bg-soft); }
.main-nav .nav-gruppe-menu a.active { background: var(--accent-soft); color: var(--ink); }

/* «Projekt starten» in der Kopfzeile: kompakt, ab Tablet sichtbar */
.header-start { padding: 10px 20px; font-size: 0.92rem; white-space: nowrap; }
@media (max-width: 1020px) {
  .header-start { display: none; }
}

/* ---------- Startseite auf dem Handy: Feinschliff ----------
   Gehört zum Handy-Intro-Umbau: Knöpfe und Vertrauens-Zeile sahen auf
   schmalen Bildschirmen zufällig gestapelt aus. */
@media (max-width: 720px) {
  /* Aktions-Knöpfe (Hero und Abschluss): volle Breite statt
     unterschiedlich breiter, linksbündig hängender Stapel */
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Vertrauens-Zeile: untereinander mit Häkchen. Die Trennpunkte
     schwebten nach dem Umbruch verloren am Zeilenanfang. */
  .trust-zeile { flex-direction: column; align-items: center; gap: 9px; }
  .trust-zeile .punkt { display: none; }
  .trust-zeile > span:not(.punkt) { display: inline-flex; align-items: center; gap: 8px; }
  .trust-zeile > span:not(.punkt)::before {
    content: "✓";
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--green);
  }

  /* Chat-Demo einen Tick kompakter, damit die Sektion nicht fast
     anderthalb Bildschirme einnimmt */
  .chat-body { height: 230px; }

  /* Einzelne Sektions-Knöpfe ("Mehr über …") ebenfalls volle Breite,
     damit sie nicht als lose, unterschiedlich breite Klötze hängen */
  .bot-grid .btn, .about-teaser .btn { width: 100%; justify-content: center; }
}

/* Warnhinweis im Admin (z. B. unlesbare Datensätze) */
.hinweis-banner {
  margin: 14px 0 4px;
  padding: 12px 16px;
  background: #FBEFDC;
  border: 1.5px solid #D9A441;
  border-radius: 10px;
  color: #6B4E16;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------- Preise: aufklappbare Fragen (Gut zu wissen) ----------
   Native <details>/<summary>: Antwort bleibt verborgen, bis man die
   Frage antippt - so steht nicht aller Text auf einmal da. */
.pl-faq { max-width: 760px; margin: 0 auto; }
.pl-faq-item {
  border-bottom: 1px solid var(--line-strong);
}
.pl-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s ease;
}
.pl-faq-item summary::-webkit-details-marker { display: none; }
.pl-faq-item summary:hover { color: var(--accent); }
/* Plus-Zeichen rechts, dreht sich beim Öffnen zum Minus */
.pl-faq-item summary::after {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  position: relative;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform 0.28s ease;
  color: var(--ink-faint);
}
.pl-faq-item[open] summary::after { transform: rotate(135deg); }
.pl-faq-item[open] summary { color: var(--accent); }
.pl-faq-a {
  padding: 0 4px 22px;
  max-width: 64ch;
}
.pl-faq-a p { margin: 0; color: var(--ink-soft); line-height: 1.65; }

/* ---------- Cookie-Hinweis ----------
   Volle Breite am unteren Rand, Inhalt auf Lesebreite zentriert. */
.ms-cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--card);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -14px 40px rgba(44, 33, 24, 0.14);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.4s ease, transform 0.45s var(--ease-out);
}
.ms-cookie.ms-an { opacity: 1; transform: none; }
.ms-cookie-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  /* Mit offenen Einstellungen darf das Banner nie den halben Bildschirm
     schlucken - auf dem Handy waeren es sonst 675 von 844px. */
  max-height: min(72vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ms-cookie-zeile {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}

/* Keks in einem warmen Kreis - freundlicher Blickfang statt Deko */
.ms-cookie-keks {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 1.45rem;
  line-height: 1;
  background: var(--bg-warm);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.ms-cookie-text {
  margin: 0; flex: 1 1 320px;
  font-size: 0.92rem; line-height: 1.55;
  color: var(--ink-soft);
}
.ms-cookie-text b { color: var(--ink); font-weight: 650; }
.ms-cookie-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.ms-cookie-knoepfe { display: flex; gap: 10px; flex: none; flex-wrap: wrap; }
.ms-cookie-knoepfe .btn { padding: 10px 22px; font-size: 0.9rem; }

/* Aufgeklappte Einstellungen */
.ms-cookie-details {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
/* Ohne diese Zeile bleibt der Bereich immer sichtbar: Ein eigenes
   display im Stylesheet ueberschreibt das hidden-Attribut, das der
   Browser sonst als display:none umsetzt. Der Knopf schaltete zwar
   korrekt um, man sah davon nur nichts. */
.ms-cookie-details[hidden] { display: none; }
.ms-cookie-kopf {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 7px;
}
.ms-cookie-titel { font-weight: 650; font-size: 0.98rem; color: var(--ink); }
.ms-cookie-stand {
  flex: none;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-warm);
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
}
.ms-cookie-stand.ms-aktiv {
  background: #EAF3EC;
  border-color: #B7D4BF;
  color: #2C4A37;
}
.ms-cookie-gruppe p {
  margin: 0; font-size: 0.86rem; line-height: 1.55; color: var(--ink-soft);
}
.ms-cookie-gruppe ul {
  margin: 9px 0 0; padding-left: 18px;
  font-size: 0.83rem; line-height: 1.6; color: var(--ink-soft);
}
.ms-cookie-gruppe ul b { color: var(--ink); font-weight: 600; }

/* Chat-Knopf ausweichen lassen: das Banner spannt ueber die volle
   Breite und wuerde ihn sonst verdecken. --ms-cookie-h kommt aus
   cookie.js und enthaelt die echte Hoehe (auch mit offenen Details). */
.widget-launcher { transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), opacity 0.5s ease, bottom 0.35s var(--ease-out); }
.widget-panel { transition: opacity 0.28s ease, transform 0.28s ease, bottom 0.35s var(--ease-out); }
body.ms-cookie-offen .widget-launcher { bottom: calc(var(--ms-cookie-h, 90px) + 18px); }
body.ms-cookie-offen .widget-panel { bottom: calc(var(--ms-cookie-h, 90px) + 90px); }

@media (max-width: 720px) {
  .ms-cookie-inner { padding: 15px 16px; }
  .ms-cookie-zeile { gap: 13px; }
  .ms-cookie-keks { width: 40px; height: 40px; font-size: 1.25rem; }
  .ms-cookie-text { flex: 1 1 100%; order: 2; font-size: 0.88rem; }
  .ms-cookie-knoepfe { order: 3; width: 100%; }
  .ms-cookie-knoepfe .btn { flex: 1 1 0; justify-content: center; }
  .ms-cookie-details { grid-template-columns: 1fr; gap: 20px; }
  /* Auf dem Handy strenger begrenzen, damit hinter dem Banner noch
     Seite sichtbar bleibt; die Details lassen sich scrollen. */
  .ms-cookie-inner { max-height: 62vh; }
}

/* ---------- Chat-Bot: hell und ruhig ----------
   Kein farbiger Balken oben, keine dunklen Flaechen: Das Fenster ist
   hell, die Struktur kommt aus feinen Linien und Weissraum. Espresso
   bleibt Akzent (eigene Nachricht, Senden-Knopf) statt Grundfarbe -
   grosse dunkle Flaechen wirkten schwer und altmodisch. */
.chat-head {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 15px 18px;
}
.chat-head .name { color: var(--ink); font-weight: 650; letter-spacing: -0.01em; }
.chat-head .status { color: var(--ink-faint); font-size: 0.74rem; }
.chat-head .status i { background: #4CAF6E; box-shadow: none; }

/* Der Bot hat ein echtes Profilbild (freundliches Gesicht), das seinen
   Kreis selbst ausfuellt. Der Hintergrund muss darum weg - sonst laege
   eine dunkle Flaeche darunter. Drei Klassen, damit diese Regel die per
   JS eingefuegte Avatar-Farbe sicher uebersteuert. */
.widget-panel .chat-head .ps-avatar,
.chat-demo .chat-head .ps-avatar {
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  box-shadow: none;
}
/* Profilbild randlos im Kreis */
.ps-avatar.ms-hat-bild,
.ms-av.ms-hat-bild { overflow: hidden; padding: 0; }
.ps-avatar .ms-avatar-bild,
.ms-av .ms-avatar-bild {
  width: 100%; height: 100%;
  display: block;
  border-radius: 50%;
}

/* Auf hellem Kopf muss der Schliessen-Knopf dunkel sein - als er weiss
   war, war er auf Creme praktisch unsichtbar. */
.widget-close { color: var(--ink-faint); }
.widget-close:hover { color: var(--ink); }

/* "KI"-Abzeichen dezent als Umriss, nicht als bunter Aufkleber */
.chat-head .ki-badge {
  margin-left: auto;
  align-self: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-faint);
}
.widget-panel .chat-head .ki-badge { margin-left: auto; margin-right: 10px; }

/* Verlauf hell, Blasen ruhig: die eigene Nachricht ist der einzige
   dunkle Punkt, damit man den Faden sofort liest. */
.chat-body { background: #fff; gap: 12px; }
.msg { box-shadow: none; }
.msg.bot {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
}
.msg.user { background: var(--ink); color: #fff; border: none; }
.msg.typing { background: var(--bg-soft); border: 1px solid var(--line); }
.msg.typing i { background: var(--ink-faint); }

.chat-input { background: #fff; border-top: 1px solid var(--line); }
.chat-input input { background: var(--bg-soft); border-color: var(--line); }
.chat-input input:focus { border-color: var(--ink-soft); box-shadow: none; background: #fff; }
.chat-input button { background: var(--ink); width: 40px; height: 40px; }
.chat-input button:hover { background: #000; transform: none; }
.chat-input button svg { width: 16px; height: 16px; }

.chat-chips button:hover { border-color: var(--ink-soft); color: var(--ink); }
.chat-note { color: var(--ink-faint); }

/* Fenster selbst: weicher Rahmen, ruhiger Schatten */
.widget-panel { background: #fff; border-color: var(--line); }

/* ---------- Chat-Knopf: Pille statt Sprechblase ----------
   Eine runde Blase sieht aus wie jedes beliebige Chat-Widget. Die
   beschriftete Pille sagt direkt, was einen erwartet. */
.widget-launcher {
  width: auto; height: 54px;
  padding: 0 20px 0 16px;
  gap: 9px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--bg);
  white-space: nowrap;
}
.widget-launcher .wl-funke { display: inline-flex; }
.widget-launcher .wl-funke svg { width: 20px; height: 20px; }
.widget-launcher .wl-text { line-height: 1; }
/* Der Funke dreht sich beim Ueberfahren leicht - lebendig, nicht laut */
.widget-launcher .wl-funke { transition: transform 0.4s var(--ease-out); }
.widget-launcher:hover .wl-funke { transform: rotate(90deg) scale(1.1); }
/* Der Online-Punkt ist am Knopf entfernt (siehe site.js); die Regel
   bleibt als Sicherheitsnetz, falls er je zurueckkommt. */
.widget-launcher .online { display: none; }

@media (max-width: 480px) {
  /* Auf schmalen Handys nur der Funke, damit die Pille nicht ueber den
     halben Bildschirm laeuft */
  .widget-launcher { padding: 0; width: 54px; justify-content: center; }
  .widget-launcher .wl-text { display: none; }
}

/* ---------- Paket-Finder auf der Preisseite ----------
   Ersetzt lange Erklaertexte: eine Frage, vier Antworten, dann direkt
   zum passenden Preisblock. */
.pf {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 34px 30px;
}
.pf-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 9px;
}
.pf h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 22px; letter-spacing: -0.02em; }

.pf-optionen { display: grid; gap: 10px; }
.pf-opt {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  padding: 15px 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.pf-opt:hover { border-color: var(--ink); background: #fff; transform: translateX(3px); }
.pf-opt:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.pf-opt-titel {
  display: block;
  font-weight: 650;
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 3px;
}
.pf-opt-text { display: block; font-size: 0.88rem; line-height: 1.5; color: var(--ink-soft); }

.pf-unsicher {
  margin: 18px 0 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.pf-unsicher button {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* Ergebnis */
.pf-text { margin: 0 0 14px; color: var(--ink-soft); line-height: 1.6; max-width: 58ch; }
.pf-ab {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}
.pf-aktionen { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .pf { padding: 22px 17px; border-radius: var(--radius-l); }
  .pf h2 { margin-bottom: 16px; }
  .pf-optionen { gap: 8px; }
  .pf-opt { padding: 12px 14px; }
  .pf-opt-titel { font-size: 0.97rem; }
  .pf-opt-text { font-size: 0.84rem; }
  .pf-unsicher { margin-top: 14px; font-size: 0.83rem; }
  .pf-aktionen .btn { flex: 1 1 100%; justify-content: center; }
}

/* "Alles optional" neben der Ueberschrift der laufenden Kosten:
   ruhiger als die Preis-Marken in der Liste, damit es als Hinweis
   und nicht als Werbeaufkleber gelesen wird. */
.pl-marke-frei {
  background: var(--bg-warm);
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  vertical-align: middle;
  margin-left: 10px;
}

/* ---------- Ueber uns: Personen als eigene Abschnitte ----------
   Statt zwei kleiner Kaestchen bekommt jede Person einen eigenen
   Abschnitt mit Bild und Text; der zweite ist gespiegelt, damit die
   Seite nicht monoton wirkt. */
.personen { display: grid; gap: 56px; }
.person {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: center;
}
.person-gedreht .person-bild { order: 2; }
/* Beim gespiegelten Layout die Spalten mitspiegeln, damit das Bild in
   derselben schmalen Spalte landet wie bei der normalen Person – sonst
   sitzt es in der breiten 7fr-Spalte und wirkt groesser. */
.person-gedreht { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.person-bild {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-warm);
  border: 1px solid var(--line-strong);
}
.person-bild img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 560;
  object-fit: cover;
}
.person-rolle {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.person-text h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.person-text p { color: var(--ink-soft); line-height: 1.65; margin-bottom: 12px; max-width: 54ch; }
.person-text p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .person { grid-template-columns: 1fr; gap: 22px; }
  /* Auf dem Handy steht das Bild immer oben - gespiegelt zu stapeln
     wuerde die Reihenfolge Bild/Text unvorhersehbar machen. */
  .person-gedreht .person-bild { order: 0; }
  /* Bild mittig statt links angeschlagen */
  .person-bild { max-width: 320px; margin-inline: auto; }
  .person-text { text-align: center; }
  .person-text p { margin-inline: auto; }
  .personen { gap: 44px; }
}

/* ---------- To-do-Liste im Admin ----------
   Prioritaet zeigt sich als farbiger Balken links. Bewusst nicht die
   ganze Zeile einfaerben: Bei zwanzig Aufgaben waere die Liste sonst
   ein Farbteppich, in dem nichts mehr heraussticht. */
.td-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.td-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 13px 14px 13px 11px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.td-item:hover { background: #fff; }
.td-item.prio-hoch { border-left-color: #C0442F; }
.td-item.prio-mittel { border-left-color: #D9A441; }
.td-item.prio-tief { border-left-color: #6E8F76; }

/* Abhak-Knopf */
.td-haken {
  width: 22px; height: 22px; flex: none;
  margin-top: 1px;
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  color: #fff;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.td-haken:hover { border-color: var(--ink); }
.td-haken svg { width: 13px; height: 13px; }
.ist-fertig .td-haken { background: #4C7A5A; border-color: #4C7A5A; }

.td-mitte { min-width: 0; }
.td-titel { font-weight: 600; line-height: 1.4; color: var(--ink); word-break: break-word; }
.td-notiz {
  margin: 4px 0 0;
  font-size: 0.87rem; line-height: 1.5;
  color: var(--ink-soft);
  word-break: break-word;
}
.td-meta { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.td-meta span {
  font-size: 0.71rem; font-weight: 650; letter-spacing: 0.02em;
  padding: 3px 9px; border-radius: 999px;
  background: var(--bg-warm); color: var(--ink-soft);
  border: 1px solid var(--line);
}
.prio-hoch .td-prio { background: #F7E2DE; border-color: #E3B6AC; color: #8A2F1F; }
.prio-mittel .td-prio { background: #FBEFDC; border-color: #E0C68F; color: #6B4E16; }
.prio-tief .td-prio { background: #E6EEE8; border-color: #B7CDBE; color: #33543D; }
.td-wer.offen { opacity: 0.7; font-weight: 500; }
.td-datum { background: transparent; border-color: transparent; color: var(--ink-faint); }

.td-werkzeuge { display: flex; gap: 4px; align-items: center; flex: none; }
.td-pfeil, .td-weg {
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.95rem; line-height: 1;
  display: grid; place-items: center;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.td-pfeil:hover:not(:disabled), .td-weg:hover { border-color: var(--ink); color: var(--ink); }
.td-pfeil:disabled { opacity: 0.3; cursor: default; }
.td-weg:hover { border-color: #C0442F; color: #C0442F; }

/* Ziehen */
.td-item[draggable="true"] { cursor: grab; }
.td-item.wird-gezogen { opacity: 0.45; cursor: grabbing; }
.td-item.ziel-oben { box-shadow: 0 -3px 0 var(--ink); }
.td-item.ziel-unten { box-shadow: 0 3px 0 var(--ink); }

.td-item.ist-fertig { opacity: 0.6; border-left-color: var(--line); }
.td-item.ist-fertig .td-titel { text-decoration: line-through; color: var(--ink-soft); }
.td-liste-fertig { margin-top: 4px; }

.td-leer {
  padding: 22px 14px;
  text-align: center;
  color: var(--ink-faint);
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
}
.td-zahl { color: var(--ink-faint); font-weight: 500; }

@media (max-width: 720px) {
  .td-item { grid-template-columns: auto minmax(0, 1fr); padding: 12px; }
  /* Werkzeuge unter den Text, damit der Titel nicht auf zwei Zeichen
     zusammenschrumpft */
  .td-werkzeuge { grid-column: 2; margin-top: 8px; }
}

/* Bearbeiten direkt in der Zeile */
.td-item.wird-bearbeitet {
  grid-template-columns: 1fr;
  background: #fff;
  border-color: var(--ink-soft);
  cursor: default;
}
.td-edit { display: grid; gap: 8px; }
.td-edit input, .td-edit textarea, .td-edit select {
  width: 100%;
  font-family: inherit;
  font-size: 0.94rem;
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--ink);
}
.td-edit .te-titel { font-weight: 600; }
.td-edit input:focus, .td-edit textarea:focus, .td-edit select:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}
.td-edit textarea { resize: vertical; line-height: 1.5; }
.td-edit-zeile { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px; }
.td-edit-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.td-edit-knoepfe .btn { padding: 8px 18px; font-size: 0.88rem; }
.td-stift svg { width: 14px; height: 14px; }

@media (max-width: 720px) {
  .td-edit-zeile { grid-template-columns: 1fr; }
  .td-edit-knoepfe .btn { flex: 1 1 0; justify-content: center; }
}

/* ---------- To-do: Umschalter Entwickler / KI ---------- */
.td-schalter { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.td-tab {
  border: none; background: none;
  font: inherit; font-weight: 600;
  padding: 10px 16px;
  color: var(--ink-faint);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 7px;
}
.td-tab:hover { color: var(--ink-soft); }
.td-tab.aktiv { color: var(--ink); border-bottom-color: var(--ink); }
.td-tab-zahl:not(:empty) {
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px;
  background: var(--ki); color: #fff;
  font-size: 0.68rem; font-weight: 700;
  display: inline-grid; place-items: center;
}

/* ---------- Assistenten-Chat im Admin ---------- */
.ka-chat {
  max-height: 320px; overflow-y: auto;
  display: grid; gap: 9px;
  padding: 4px 2px 12px;
}
.ka-msg {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 13px;
  font-size: 0.92rem; line-height: 1.5;
  white-space: pre-wrap; word-break: break-word;
}
.ka-msg.ich { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.ka-msg.bot { justify-self: start; background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ka-msg.denkt { opacity: 0.6; font-style: italic; }

.ka-eingabe { display: flex; gap: 8px; }
.ka-eingabe input {
  flex: 1; min-width: 0;
  font-family: inherit; font-size: 0.94rem;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
}
.ka-eingabe input:focus { outline: none; border-color: var(--ink); background: #fff; }
.ka-eingabe .btn { flex: none; padding: 10px 22px; }
.ka-schnell { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* Status der KI-Aufgaben */
.ka-status { font-weight: 700; }
.ka-status-offen { background: var(--bg-warm); }
.ka-status-laeuft { background: #FBEFDC; border-color: #E0C68F; color: #6B4E16; }
.ka-status-fertig { background: #E6EEE8; border-color: #B7CDBE; color: #33543D; }
.ka-status-blockiert { background: #F7E2DE; border-color: #E3B6AC; color: #8A2F1F; }
.td-item.ka-fertig { border-left-color: #4C7A5A; }
.td-item.ka-blockiert { border-left-color: #C0442F; }
.td-item.ka-offen { border-left-color: var(--line-strong); }
.ka-ergebnis {
  margin: 6px 0 0;
  font-size: 0.86rem; line-height: 1.5;
  color: var(--ink-soft);
  padding: 7px 10px;
  background: var(--bg-warm);
  border-radius: 7px;
}
.ka-ergebnis.ist-problem { background: #F7E2DE; color: #8A2F1F; }

/* Protokoll */
.ka-protokoll { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ka-p-zeile {
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: 8px;
}
.ka-p-zeile.ist-problem { border-left-color: #C0442F; background: #FDF6F4; }
.ka-p-kopf { display: flex; justify-content: space-between; gap: 12px; font-size: 0.88rem; }
.ka-p-kopf span { color: var(--ink-faint); font-size: 0.78rem; flex: none; }
.ka-p-zeile p { margin: 4px 0 0; font-size: 0.85rem; line-height: 1.5; color: var(--ink-soft); word-break: break-word; }

@media (max-width: 720px) {
  .ka-msg { max-width: 92%; }
  .ka-eingabe { flex-wrap: wrap; }
  .ka-eingabe .btn { width: 100%; justify-content: center; }
}

/* ---------- Freigabe von KI-Vorschlaegen ---------- */
#ka-freigabe-karte { border-color: #D9A441; background: #FFFDF6; }
.ka-entwuerfe { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ka-entwurf {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
}
.ka-e-kopf { margin-bottom: 10px; font-size: 0.95rem; }
.ka-e-vergleich { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ka-e-alt, .ka-e-neu { padding: 11px 13px; border-radius: 8px; }
.ka-e-alt { background: var(--bg-warm); border: 1px solid var(--line); }
.ka-e-neu { background: #EAF3EC; border: 1px solid #B7D4BF; }
.ka-e-label {
  display: block;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 5px;
}
.ka-e-neu .ka-e-label { color: #2C4A37; }
.ka-e-alt p, .ka-e-neu p {
  margin: 0; font-size: 0.9rem; line-height: 1.55;
  word-break: break-word;
}
.ka-e-alt p { color: var(--ink-soft); }
.ka-e-neu p { color: var(--ink); }
.ka-e-knoepfe { display: flex; gap: 9px; margin-top: 12px; flex-wrap: wrap; }
.ka-e-knoepfe .btn { padding: 9px 18px; font-size: 0.88rem; }

@media (max-width: 720px) {
  .ka-e-vergleich { grid-template-columns: 1fr; }
  .ka-e-knoepfe .btn { flex: 1 1 100%; justify-content: center; }
}

/* Verweis aus der To-do-Liste zum Assistenten */
.ka-sprung {
  border: none; background: none; padding: 0;
  font: inherit; font-weight: 600;
  color: var(--ink);
  text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer;
}

/* Reiner Chat-Bereich: mehr Platz, damit er sich wie ein Gespräch
   anfühlt und nicht wie ein Formularfeld am Seitenrand. */
#panel-assistent .ka-chat { max-height: none; min-height: 340px; }
