/* ============================================================
   RaVia Design System — Update 85
   Basis: Claude Design Vorlage (oklch-Farbraum)
   RaVia-Auge-Marke bleibt durchgängig erhalten.
   ============================================================ */

/* Schriftarten werden lokal ausgeliefert statt per @import von Google
   nachgeladen (Update 176) - beim reinen Seitenaufruf würde sonst schon
   vor jeder Einwilligung die Besucher-IP an Google übertragen (siehe
   Chat, Rechts-Check). Beide Dateien sind Variable Fonts - eine Datei
   deckt alle benötigten Schriftschnitte ab. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/fonts/inter-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('/static/fonts/jbmono-variable.woff2') format('woff2');
}

/* --- Tokens --- */
:root {
  --bg-base:       oklch(15% 0.02 240);
  --bg-sidebar:    oklch(12.5% 0.02 240);
  --bg-panel:      oklch(18% 0.02 240);
  --bg-panel-light:oklch(22% 0.02 240);
  --bg-input:      oklch(13% 0.02 240);
  --bg-hover:      oklch(20% 0.02 240);

  --teal:          oklch(70% 0.14 193);
  --teal-dark:     oklch(56% 0.14 193);
  --teal-muted:    oklch(70% 0.14 193 / 0.14);
  --teal-glow:     oklch(19% 0.03 193 / 0.5);

  --text-light:    oklch(93% 0.005 240);
  --text-muted:    oklch(56% 0.01 240);
  --text-faint:    oklch(46% 0.01 240);

  --border:        oklch(28% 0.02 240 / 0.6);
  --border-hover:  oklch(38% 0.02 240);

  --gold:          oklch(75% 0.13 70);
  --gold-muted:    oklch(60% 0.1 70 / 0.4);
  --danger:        oklch(60% 0.2 25);

  --radius-sm:     9px;
  --radius-md:     12px;
  --radius-lg:     16px;

  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   LAYOUT: Sidebar + Hauptbereich
   ============================================================ */

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */
.app-sidebar {
  width: 264px;
  flex: none;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.app-main-with-sidebar {
  margin-left: 264px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Sidebar Logo */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px 26px;
  text-decoration: none;
}

.sidebar-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: oklch(19% 0.03 240);
  border: 1px solid oklch(32% 0.03 240);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.sidebar-logo-text strong {
  display: block;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text-light);
}

.sidebar-logo-text span {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Aktives Projekt in Sidebar */
.sidebar-projekt {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-projekt-name {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-projekt-label {
  font-size: 11.5px;
  color: var(--teal);
  font-weight: 600;
}

/* Sidebar-Abschnittstitel */
.sidebar-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
  padding: 0 8px 10px;
}

/* Sidebar-Schritte */
.sidebar-schritt {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 10px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 2px;
  text-decoration: none;
  color: var(--text-muted);
  transition: background 0.12s;
}

.sidebar-schritt:hover {
  background: var(--bg-hover);
  color: var(--text-light);
}

.sidebar-schritt.aktiv {
  background: var(--teal-muted);
  color: var(--text-light);
}

.sidebar-schritt-punkt {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
}

.sidebar-schritt-punkt.offen {
  border: 1.5px solid var(--border-hover);
  color: var(--text-muted);
}

.sidebar-schritt.aktiv .sidebar-schritt-punkt.offen {
  border-color: var(--teal);
  color: var(--teal);
}

.sidebar-schritt-punkt.fertig {
  background: var(--teal);
  color: oklch(14% 0.02 240);
}

.sidebar-schritt-label {
  font-size: 14.5px;
  font-weight: 500;
}

.sidebar-schritt.aktiv .sidebar-schritt-label {
  font-weight: 700;
  color: var(--text-light);
}

.sidebar-schritt-optional {
  font-size: 10.5px;
  color: var(--text-faint);
  margin-left: auto;
}

/* Ravia-Helden-Badge (goldenes Augen-Logo + "Hero"-Schriftzug, direkt
   unter dem Sidebar-Logo, siehe base.html) */
.sidebar-helden-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin: -14px 0 20px;
  width: fit-content;
}

.sidebar-helden-badge-text {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Einklappbare Sidebar-Abschnitte ("Werkzeuge"/"Verwaltung", natives
   <details>/<summary>, siehe base.html) */
.sidebar-collapsible {
  display: block;
}

.sidebar-collapsible-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.sidebar-collapsible-summary::-webkit-details-marker {
  display: none;
}

.sidebar-collapsible-summary::after {
  content: "▾";
  font-size: 10px;
  color: var(--text-faint);
  transition: transform 0.15s;
  margin-left: 6px;
}

.sidebar-collapsible:not([open]) .sidebar-collapsible-summary::after {
  transform: rotate(-90deg);
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid oklch(26% 0.02 240 / 0.6);
}

.sidebar-footer-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.12s;
}

.sidebar-footer-link:hover {
  background: var(--bg-hover);
  color: var(--text-light);
}

/* --- Topbar --- */
.app-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  /* Update (siehe Chat: "das eigentliche Tool ... als Header oben in
     den Ravia-Farben") - dezenter Marken-Akzent statt der zuvor
     schlichten grauen Trennlinie: ein feiner Teal->Gold-Verlauf, der
     sich an das Logo (Teal/Gold, siehe .sidebar-logo-icon) anlehnt,
     ohne die Topbar selbst laut/aufdringlich zu machen. */
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--teal), var(--gold)) 1;
  font-size: 13.5px;
  color: var(--text-muted);
  background: var(--bg-base);
  position: sticky;
  top: 0;
  z-index: 50;
}

.app-topbar-crumb {
  color: var(--text-light);
  font-weight: 600;
}

.app-topbar-sep { color: var(--text-faint); }

.app-topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  /* Update (Ravia-Farben-Akzent, siehe .app-topbar-Kommentar oben):
     dezenter Teal->Gold-Verlauf statt schlichtem Grau, passend zum
     Logo-Farbschema. */
  background: linear-gradient(135deg, var(--teal), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  color: oklch(14% 0.02 240);
}

/* Status-Warnung in Topbar */
.app-status-warnung {
  font-size: 12px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Hauptinhalt --- */
.app-content {
  flex: 1;
  padding: 40px;
  max-width: 1180px;
  width: 100%;
}

/* ============================================================
   PANELS / CARDS
   ============================================================ */

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 16px;
}

.panel-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 18px;
}

.panel-teal {
  background: var(--teal-glow);
  border-color: oklch(70% 0.14 165 / 0.4);
}

.panel-gold {
  background: oklch(28% 0.06 70 / 0.14);
  border-color: var(--gold-muted);
}

/* fieldset compat */
fieldset.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 16px;
  background: var(--bg-panel);
}

fieldset.panel legend {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--teal);
  padding: 0 4px;
}

/* ============================================================
   FORMULARE
   ============================================================ */

label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
  margin-top: 16px;
}

label:first-child { margin-top: 0; }

label.inline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-light);
  cursor: pointer;
  margin-top: 8px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid oklch(32% 0.02 240);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 14.5px;
  color: var(--text-light);
  font-family: var(--font-sans);
  transition: border-color 0.15s;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 2px var(--teal-muted);
}

textarea { resize: vertical; min-height: 80px; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 36px;
}

input[type="checkbox"], input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
  flex: none;
  margin-top: 2px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  background: var(--teal);
  color: oklch(14% 0.02 240);
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.btn:hover { background: oklch(76% 0.14 165); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn.secondary {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--border-hover);
}
.btn.secondary:hover { background: var(--bg-hover); }

.btn.danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
  font-size: 13px;
  padding: 7px 12px;
}
.btn.danger:hover { background: oklch(60% 0.2 25 / 0.12); }

.btn.sm { font-size: 13px; padding: 8px 16px; border-radius: 8px; }

.btn-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Tab-Buttons (Gebäude/Räume) */
.tab-switcher {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 11px;
  margin-bottom: 26px;
}

.tab-btn {
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}

.tab-btn.aktiv {
  background: var(--teal);
  color: oklch(14% 0.02 240);
}

/* ============================================================
   NAVIGATION (compat mit alter Fortschritts-Leiste)
   ============================================================ */

.fortschritt-leiste { display: none; } /* In Sidebar ersetzt */
.app-header .app-nav { display: none; }
.app-status-bar { display: none; }

/* ============================================================
   ACCORDIONS
   ============================================================ */

details.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  background: oklch(17.5% 0.02 240);
  transition: border-color 0.15s;
}

details.accordion[open] { border-color: var(--teal-dark); }

details.accordion > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-light);
}

details.accordion > summary::-webkit-details-marker { display: none; }

details.accordion > summary:hover { background: var(--bg-hover); }

.acc-icon { font-size: 16px; }

.acc-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-panel-light);
  color: var(--text-muted);
  margin-left: auto;
}

.acc-badge.aktiv {
  background: var(--teal-muted);
  color: var(--teal);
}

.acc-arrow {
  color: var(--text-muted);
  font-size: 11px;
  transition: transform 0.15s;
  flex: none;
}

details.accordion[open] .acc-arrow { transform: rotate(180deg); }

.accordion-body {
  padding: 4px 18px 18px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   RAUM-KARTEN
   ============================================================ */

details.raum-karte {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 13px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

details.raum-karte[open] {
  background: var(--teal-glow);
  border-color: oklch(70% 0.14 165 / 0.4);
}

details.raum-karte > summary {
  list-style: none;
  display: block;
  cursor: pointer;
}

details.raum-karte > summary::-webkit-details-marker { display: none; }

.raum-karte-kopf {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}

.raum-karte-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.raum-nr {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
}

.raum-name {
  font-size: 15.5px;
  font-weight: 600;
  flex: 1;
}

.raum-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

.raum-load {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
  font-family: var(--font-mono);
}

.raum-pfeil {
  color: var(--text-muted);
  font-size: 11px;
  transition: transform 0.15s;
  flex: none;
}

details.raum-karte[open] .raum-pfeil { transform: rotate(180deg); }

.raum-karte-body {
  padding: 0 20px 18px;
  border-top: 1px solid var(--border);
  margin-top: 0;
}

/* ============================================================
   KACHELN
   ============================================================ */

.start-kacheln {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

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

.start-kachel {
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  display: block;
  text-decoration: none;
  transition: border-color 0.15s;
  cursor: pointer;
}

.start-kachel:hover { border-color: var(--border-hover); }

.start-kachel.primaer {
  background: var(--teal-glow);
  border-color: oklch(70% 0.14 165 / 0.4);
}

.start-kachel.primaer:hover { border-color: var(--teal); }

.kachel-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.start-kachel:not(.primaer) .kachel-icon-box {
  background: var(--bg-panel-light);
}

.kachel-titel {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-light);
}

.kachel-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Auslegungs-Statuskacheln */
.auslegung-kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.auslegung-kachel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 16px;
}

.auslegung-kachel .ak-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--bg-panel-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.auslegung-kachel.erledigt .ak-icon-box { background: var(--teal); }

.auslegung-kachel .ak-titel {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-light);
}

.auslegung-kachel .ak-status {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ============================================================
   HERO-ERGEBNIS
   ============================================================ */

.hero-ergebnis {
  position: relative;
  text-align: center;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 24px 28px;
  margin-bottom: 20px;
  overflow: hidden;
}

.hero-ergebnis::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 220px;
  background: radial-gradient(closest-side, oklch(70% 0.14 165 / 0.3), transparent 70%);
  pointer-events: none;
}

.he-kw {
  position: relative;
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: oklch(85% 0.13 165);
  line-height: 1;
}

.he-label {
  position: relative;
  font-size: 14.5px;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 20px;
}

/* ============================================================
   VERLUST-CHART
   ============================================================ */

.verlust-chart-row {
  margin-bottom: 12px;
}

.vc-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 5px;
}

.vc-label { color: var(--text-muted); }
.vc-wert { font-family: var(--font-mono); color: var(--text-muted); }

.vc-bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-input);
}

.vc-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* ============================================================
   PROJEKT-KARTEN
   ============================================================ */

.projekt-karten {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.projekt-karte {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: oklch(17.5% 0.02 240);
  border-bottom: 1px solid oklch(26% 0.02 240 / 0.5);
  transition: background 0.12s;
}

.projekt-karte:last-child { border-bottom: none; }
.projekt-karte:hover { background: oklch(19.5% 0.02 240); }

.projekt-karte-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-panel-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--text-muted);
}

.pk-name {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}

.pk-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.pk-date {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ============================================================
   TABELLEN
   ============================================================ */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 0 10px;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 9px 0;
  border-bottom: 1px solid oklch(26% 0.02 240 / 0.5);
  vertical-align: middle;
  font-size: 14px;
}

tr:last-child td { border-bottom: none; }

.num { text-align: right; font-family: var(--font-mono); font-size: 13.5px; }
.meta { color: var(--text-muted); font-size: 12.5px; }

/* ============================================================
   SONSTIGES
   ============================================================ */

.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--teal-muted);
  color: var(--teal);
}

.hinweis {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 8px;
}

.hinweis a { color: var(--teal); text-decoration: none; }
.hinweis a:hover { text-decoration: underline; }

.fehler-box {
  background: oklch(60% 0.2 25 / 0.1);
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13.5px;
  color: oklch(80% 0.15 25);
  margin-bottom: 16px;
}

.erfolg-box {
  background: var(--teal-muted);
  border: 1px solid var(--teal-dark);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--teal);
  margin-bottom: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 700px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.row {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.add-row {
  font-size: 13px;
  padding: 8px 14px;
  margin-top: 8px;
}

.remove-row {
  background: none;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: 7px;
  padding: 6px 9px;
  cursor: pointer;
  font-size: 13px;
  flex: none;
}

.seitentab-versteckt { display: none !important; }

/* Login */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
}

.login-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

/* Checkbox-Zeile (z.B. Unternehmer-Bestätigung bei der Registrierung,
   Update 176) */
.checkbox-zeile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.checkbox-zeile input[type="checkbox"] {
  margin-top: 2px;
  flex: none;
  width: 15px;
  height: 15px;
  accent-color: var(--teal);
  cursor: pointer;
}

/* login.html nutzt "login-wrap" statt "login-wrapper" und einen
   eigenen "btn-gold"-Button - beides fehlte bisher komplett in dieser
   Datei (gefunden beim Bau der Landing-Page-CSS, siehe Update 175) und
   wurde daher bislang ungestylt (Standard-Browser-Button) ausgeliefert. */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  padding: 24px;
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  background: var(--gold);
  color: oklch(14% 0.02 240);
  transition: filter 0.15s;
  margin-top: 6px;
}
.btn-gold:hover { filter: brightness(1.06); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: oklch(30% 0.02 240); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: oklch(40% 0.02 240); }

/* Footer */
footer {
  text-align: center;
  padding: 24px 16px;
  font-size: 11px;
  color: var(--text-faint);
}

footer a { color: var(--text-faint); text-decoration: none; }
footer a:hover { color: var(--text-muted); }

/* Sonstiger Compat */
.raum-detail { margin-bottom: 12px; }
.chart-row, .verlust-chart-row-old {
  display: grid;
  grid-template-columns: 160px 1fr 90px;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.chart-bar-track { background: var(--bg-input); border-radius: 6px; height: 8px; overflow: hidden; }
.chart-bar-fill { height: 100%; border-radius: 6px; }

/* Abmelden-Button rechts in Topbar */
.topbar-abmelden {
  font-size: 12.5px;
  padding: 7px 14px;
}


/* ============================================================
   MOBILE-ANSICHT (Update 88)
   Breakpoints: < 768px = Smartphone, 768–1024px = Tablet
   ============================================================ */

/* --- Mobile Hamburger-Button --- */
.sidebar-hamburger {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  gap: 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.sidebar-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.sidebar-hamburger.offen span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.sidebar-hamburger.offen span:nth-child(2) { opacity: 0; }
.sidebar-hamburger.offen span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Mobile Overlay wenn Sidebar offen --- */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 150;
}
.sidebar-overlay.aktiv { display: block; }

@media (max-width: 768px) {
  /* Hamburger-Button zeigen */
  .sidebar-hamburger { display: flex; }

  /* Sidebar: standardmäßig versteckt, ausgeklappt per Klasse */
  .app-sidebar {
    left: -280px;
    transition: left 0.25s ease;
    z-index: 160;
    box-shadow: 4px 0 20px rgba(0,0,0,0.4);
  }
  .app-sidebar.mobile-offen {
    left: 0;
  }

  /* Hauptinhalt: kein Margin, volle Breite */
  .app-main-with-sidebar {
    margin-left: 0;
  }

  /* Topbar: Platz für Hamburger-Button */
  .app-topbar {
    padding-left: 64px;
  }

  /* Content: schmalere Ränder */
  .app-content {
    padding: 16px 14px;
  }

  /* 2-Spalten-Grid → eine Spalte */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: 2fr 1fr 1fr"],
  [style*="grid-template-columns:2fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:repeat(5,1fr)"],
  [style*="grid-template-columns: repeat(5,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Auslegungs-Kacheln: 1 Spalte */
  [style*="grid-template-columns:repeat(auto-fill"],
  [style*="grid-template-columns: repeat(auto-fill"] {
    grid-template-columns: 1fr !important;
  }

  /* Formulare: volle Breite */
  .row { grid-template-columns: 1fr !important; }

  /* Tabellen horizontal scrollbar */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Panel-Padding reduzieren */
  .panel { padding: 14px; }
  fieldset.panel { padding: 14px 14px 16px; }

  /* Buttons: volle Breite auf Mobile */
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; text-align: center; }

  /* Topbar-Avatar kleiner */
  .app-topbar-avatar { width: 30px; height: 30px; font-size: 13px; }

  /* Login-Card */
  .login-card { padding: 28px 20px; border-radius: 14px; }
}

/* Tablet-Ansicht (768–1024px): Sidebar bleibt, aber schmaler */
@media (min-width: 769px) and (max-width: 1024px) {
  .app-sidebar { width: 220px; padding: 18px 14px; }
  .app-main-with-sidebar { margin-left: 220px; }
  .app-content { padding: 20px 24px; }
  .sidebar-logo-text span { display: none; }  /* Subtitle verstecken */
  .sidebar-schritt-optional { display: none; }
}

/* ============================================================
   MARKETING-WEBSITE / LANDING PAGE (Update 175)
   Eigene Klassen für die öffentliche Marketing-Seite (landing.html
   und spätere Feature-/Preis-/FAQ-Seiten) - bewusst getrennt von den
   App-internen Klassen oben, nutzt aber dieselben Tokens (Farben,
   Radien, Schrift), damit alles wie aus einem Guss aussieht. Diese
   Seiten sind noch NICHT live (siehe app.py: webseite_vorschau()) -
   die Klassen hier sind trotzdem schon vollständig, damit die Vorschau
   direkt wie das spätere Endergebnis aussieht.
   ============================================================ */

.landing-body { background: var(--bg-base); margin: 0; }

/* --- Nav --- */
/* Update (siehe Chat: "die Kopfleiste ist zu klein, das muss prominenter
   damit man es nicht übersieht") - vorher komplett hintergrundlos/ohne
   Trennlinie, dadurch verschwamm die Nav optisch einfach mit dem Rest
   der Seite. Jetzt: deutlich sichtbare Trennlinie + dezenter,
   abgesetzter Hintergrund (dieselben Farbwerte wie die App-eigene
   Sidebar, --bg-sidebar/--border, für Konsistenz mit dem Rest von
   RaVia), plus größere Schrift für Logo und Links. */
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 32px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 14px 14px;
}
.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}
.landing-logo .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
}
.landing-navlinks { display: flex; gap: 30px; }
.landing-navlinks a { color: var(--text-muted); text-decoration: none; font-size: 15px; }
.landing-navlinks a:hover { color: var(--text-light); }
.landing-navlinks a.aktiv { color: var(--teal); }

/* --- Buttons (spiegeln .btn / .btn.secondary für Konsistenz mit der App) --- */
.btn-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  background: var(--teal);
  color: oklch(14% 0.02 240);
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-teal:hover { background: oklch(76% 0.14 165); }
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 23px;
  border-radius: 10px;
  border: 1px solid var(--border-hover);
  color: var(--text-light);
  text-decoration: none;
  background: transparent;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-outline-light:hover { background: var(--bg-hover); border-color: var(--teal); }
.hero-preis-badge {
  display: inline-flex;
  align-items: center;
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px dashed var(--border-hover);
  color: var(--text-muted);
}

/* --- Hero --- */
.hero-landing {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 32px 88px;
}
.hero-landing > * { position: relative; z-index: 1; }

/* Parallax-Augenhintergrund (siehe Chat, Design-Vorlage aus Claude
   Design/Canva): das RaVia-Auge sitzt fix im Hintergrund von Hero und
   Schluss-CTA - der Seiteninhalt scrollt optisch "darüber hinweg". Nutzt
   background-attachment:fixed, deshalb bewusst niedrige Deckkraft, damit
   Text/Buttons darüber jederzeit lesbar bleiben. Auf Mobilgeräten wird
   der Effekt unten in der Media-Query deaktiviert (viele mobile Browser
   ignorieren fixed-Backgrounds ohnehin bzw. sie ruckeln beim Scrollen). */
.hero-landing::before,
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/static/logo_ravia.png");
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.09;
  z-index: 0;
  pointer-events: none;
}
.hero-landing::before { background-position: 78% 50%; background-size: 640px; }
/* background-attachment:fixed positioniert relativ zum Viewport, nicht
   zur Box (siehe Chat) - "center 55%" trifft die CTA-Box zuverlässig,
   weil sie beim Scrollen typischerweise nahe der Viewport-Mitte zur
   Ruhe kommt, wenn der Nutzer bis zum Seitenende liest. */
.cta-banner::before { background-position: center 55%; background-size: 480px; }
.hero-badge {
  display: inline-block;
  background: var(--teal-muted);
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-landing h1 {
  color: var(--text-light);
  font-size: 40px;
  line-height: 1.16;
  font-weight: 700;
  margin: 0 0 18px;
}
.hero-landing h1 .highlight { color: var(--teal); }
.hero-landing .lead {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 0 28px;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; color: var(--text-faint); font-size: 12.5px; }

/* --- Dashboard-Mockup (Hero-Bild rechts) --- */
.dashboard-mockup {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
}
.dashboard-mockup-head { display: flex; justify-content: space-between; align-items: flex-start; }
.objekt-titel { color: var(--text-light); font-size: 13.5px; font-weight: 600; }
.dashboard-badge {
  background: var(--teal-muted);
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.objekt-meta { color: var(--text-faint); font-size: 12px; }
.kw-label { color: var(--text-muted); font-size: 12px; margin-top: 6px; }
.kw-value { color: var(--text-light); font-size: 34px; font-weight: 700; margin-bottom: 18px; }
.kw-value span { font-size: 15px; color: var(--text-muted); font-weight: 500; margin-left: 4px; }
.dashboard-row { margin-bottom: 12px; }
.dashboard-row-labels { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-muted); margin-bottom: 5px; }
.dashboard-row-labels .val { color: var(--text-light); font-weight: 600; }
.bar-track { background: var(--bg-input); border-radius: 6px; height: 7px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--teal); border-radius: 6px; }
.dashboard-mockup-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.dashboard-mockup-footer .dot { color: var(--teal); }

/* --- Stats-Leiste --- */
.stats-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-sidebar); }
.stats-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-item { text-align: center; }
.stat-value { color: var(--teal); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.stat-label { color: var(--text-faint); font-size: 11.5px; }

/* --- Allgemeine Abschnitte --- */
.section-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 84px 32px; }
.section-eyebrow { color: var(--teal); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.section-heading { color: var(--text-light); font-size: 27px; font-weight: 700; max-width: 620px; margin: 0 0 40px; }

/* --- Öffentliches Schnellrechner-Widget (Startseite) --- */
.schnellrechner-widget {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 720px;
}
.schnellrechner-form {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.4fr auto;
  gap: 16px;
  align-items: end;
}
.schnellrechner-form label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.schnellrechner-form button { white-space: nowrap; }
.schnellrechner-ergebnis {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
@media (max-width: 720px) {
  .schnellrechner-form { grid-template-columns: 1fr; }
}

/* --- Funktionen-Grid --- */
.feature-grid-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; }
.feature-card .icon { font-size: 23px; margin-bottom: 12px; }
.feature-card h3 { color: var(--text-light); font-size: 15.5px; margin: 0 0 8px; }
.feature-card p { color: var(--text-muted); font-size: 13.5px; line-height: 1.6; margin: 0; }

/* --- Für-wen-Grid --- */
.fuer-wen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fuer-wen-item { text-align: center; padding: 28px 22px; }
.fuer-wen-item .icon { font-size: 25px; margin-bottom: 12px; }
.fuer-wen-item h3 { color: var(--text-light); font-size: 15px; margin: 0 0 8px; }
.fuer-wen-item p { color: var(--text-muted); font-size: 13.5px; line-height: 1.6; margin: 0; }

/* --- Protokoll-Sektion --- */
.protokoll-section { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.protokoll-checkliste { list-style: none; padding: 0; margin: 0 0 28px; }
.protokoll-checkliste li { color: var(--text-muted); font-size: 13.5px; padding-left: 24px; position: relative; margin-bottom: 10px; }
.protokoll-checkliste li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

.pdf-mockup {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
}
.pdf-mockup-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.pdf-mockup-head .titel { color: var(--text-light); font-weight: 700; font-size: 14.5px; }
.pdf-mockup-head .norm { color: var(--text-faint); font-size: 11px; }
.pdf-mockup-meta { color: var(--text-faint); font-size: 11.5px; line-height: 1.5; margin-bottom: 18px; }
.pdf-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.pdf-table th { text-align: left; color: var(--text-faint); font-size: 11px; font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.pdf-table td { color: var(--text-muted); font-size: 12.5px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.pdf-table .num { text-align: right; color: var(--text-light); }
.pdf-mockup-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.pdf-mockup-total .label { color: var(--text-muted); font-size: 13px; }
.pdf-mockup-total .value { color: var(--teal); font-size: 20px; font-weight: 700; }
.pdf-export-pill { background: var(--bg-input); border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; text-align: center; color: var(--text-muted); font-size: 12.5px; }

/* --- CTA-Banner & Footer --- */
.cta-banner { position: relative; overflow: hidden; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 56px 48px; text-align: center; }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--text-light); font-size: 25px; margin: 0 0 12px; }
.cta-banner p { color: var(--text-muted); font-size: 14.5px; margin: 0 0 28px; }
.cta-banner .hero-cta-row { justify-content: center; }
.kontakt-zeile { margin: 18px 0 0 !important; font-size: 13.5px; }
.kontakt-zeile a { color: var(--teal); text-decoration: none; }
.kontakt-zeile a:hover { text-decoration: underline; }

/* --- Preise-Seite (Update 182, siehe Chat) --- */
.preise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.preis-karte {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}
.preis-karte-name { color: var(--text-light); font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.preis-karte-betrag { color: var(--text-light); font-size: 30px; font-weight: 700; margin-bottom: 18px; }
.preis-karte-betrag span { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.preis-karte-merkmale { list-style: none; padding: 0; margin: 0 0 24px; flex-grow: 1; }
.preis-karte-merkmale li { color: var(--text-muted); font-size: 13.5px; padding-left: 22px; position: relative; margin-bottom: 10px; line-height: 1.5; }
.preis-karte-merkmale li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.preis-karte-cta { text-align: center; }
.preis-hinweis-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 560px;
  margin: 0 auto;
}
.preis-hinweis-panel a { color: var(--teal); text-decoration: none; }
.preis-hinweis-panel a:hover { text-decoration: underline; }

.landing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 32px;
  color: var(--text-faint);
  font-size: 12px;
  border-top: 1px solid var(--border);
}
.landing-logo-icon { height: 28px; width: auto; display: block; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.landing-footer-icon { height: 18px; width: auto; opacity: 0.8; }
.landing-footer-links { display: flex; align-items: center; gap: 18px; }
.landing-footer-links a { color: var(--text-faint); text-decoration: none; }
.landing-footer-links a:hover { color: var(--text-light); }

/* Preis-Teaser unter dem Hero-CTA (Update 176) */
.preis-teaser {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 18px;
}
.preis-teaser strong { color: var(--text-light); }
.preis-teaser a { color: var(--teal); text-decoration: none; }
.preis-teaser a:hover { text-decoration: underline; }

/* Haftungshinweis unter dem Protokoll-CTA (Update 176) */
.disclaimer-hinweis {
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.55;
  margin-top: 14px;
  max-width: 440px;
}

/* --- Mobile (< 768px) --- */
@media (max-width: 768px) {
  .landing-nav { padding: 16px 20px; }
  .landing-navlinks { display: none; }
  .hero-landing { grid-template-columns: 1fr; padding: 24px 20px 56px; gap: 36px; }
  .hero-landing h1 { font-size: 30px; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); padding: 24px 20px; }
  .section-container { padding: 56px 20px; }
  .feature-grid-v2, .fuer-wen-grid, .preise-grid { grid-template-columns: 1fr; }
  .protokoll-section { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner { padding: 40px 24px; }
  .landing-footer { flex-direction: column; gap: 8px; text-align: center; }
  .footer-brand, .landing-footer-links { justify-content: center; }

  /* Parallax-Augenhintergrund auf Mobil deaktivieren (siehe Chat):
     background-attachment:fixed ruckelt auf vielen mobilen Browsern beim
     Scrollen bzw. wird ignoriert - lieber sauber ausblenden, als einen
     halbfunktionierenden Effekt zeigen. */
  .hero-landing::before, .cta-banner::before { display: none; }
}
