/* ============================================================
   Corpvex · Windows 11 Fluent Design System
   ------------------------------------------------------------
   Authentic Mica & Acrylic Materials, Segoe UI Variable,
   Precision Controls, Dual-Theme (Fluent Light & Fluent Dark).
   Engineered for modern craft businesses.
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS & DUAL-THEME VARIABLES
   ============================================================ */

:root {
  /* Default font stack: Windows 11 Segoe UI Variable with fallbacks */
  --font-display: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
  --font-mono: "Cascadia Code", "Cascadia Mono", Consolas, ui-monospace, monospace;

  /* Geometry & Motion */
  --r-control: 4px;       /* Windows 11 standard control radius */
  --r-card: 8px;          /* Windows 11 card / flyout radius */
  --r-overlay: 8px;       /* Dialogs & overlays */
  --ease-fluent: cubic-bezier(0, 0, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- LIGHT THEME (Windows 11 Mica Light / White) --- */
:root,
[data-theme="light"] {
  --bg-color: #f3f3f3;                       /* Windows 11 Mica base light */
  --mica-tint: rgba(255, 255, 255, 0.65);
  --surface: #ffffff;                        /* Card & panel surface */
  --surface-hover: rgba(0, 0, 0, 0.04);
  --surface-active: rgba(0, 0, 0, 0.07);
  --surface-2: #f7f7f7;                      /* Control background */
  --surface-3: #efefef;
  --panel-bg: #ffffff;
  --panel-border: rgba(0, 0, 0, 0.08);       /* Fluent card stroke */
  --divider: rgba(0, 0, 0, 0.08);
  --control-border: rgba(0, 0, 0, 0.12);
  --control-border-bottom: rgba(0, 0, 0, 0.42);

  /* Typography */
  --text-main: #1b1b1b;                      /* High contrast neutral charcoal */
  --text-muted: #5d5d5d;
  --text-soft: #8a8a8a;
  --text-disabled: rgba(0, 0, 0, 0.36);

  /* Accent (Windows 11 System Blue) */
  --accent-1: #005fb8;
  --accent-hover: #1877d5;
  --accent-active: #005fb8;
  --accent-text: #0067c0;
  --accent-fg: #ffffff;                      /* Text on accent */
  --accent-soft: rgba(0, 103, 192, 0.08);
  --accent-2: #0078d4;
  --accent-3: #b45309;                       /* Warm Amber */

  /* Semantic Feedback */
  --success: #107c10;
  --success-bg: rgba(16, 124, 16, 0.10);
  --success-border: rgba(16, 124, 16, 0.25);
  --danger: #c42b1c;
  --danger-bg: rgba(196, 43, 28, 0.09);
  --danger-border: rgba(196, 43, 28, 0.25);
  --warning: #d97706;
  --warning-bg: rgba(217, 119, 6, 0.10);
  --warning-border: rgba(217, 119, 6, 0.25);

  /* Elevation */
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-flyout: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-dialog: 0 18px 48px rgba(0, 0, 0, 0.18);
  --glass-shadow: var(--shadow-card);
}

/* --- DARK THEME (Windows 11 Mica Dark) --- */
[data-theme="dark"] {
  --bg-color: #1c1c1c;                       /* Windows 11 Mica base dark */
  --mica-tint: rgba(255, 255, 255, 0.03);
  --surface: #282828;                        /* Card & panel surface */
  --surface-hover: rgba(255, 255, 255, 0.05);
  --surface-active: rgba(255, 255, 255, 0.08);
  --surface-2: #2f2f2f;                      /* Control background */
  --surface-3: #363636;
  --panel-bg: #282828;
  --panel-border: rgba(255, 255, 255, 0.08); /* Fluent card stroke */
  --divider: rgba(255, 255, 255, 0.08);
  --control-border: rgba(255, 255, 255, 0.08);
  --control-border-bottom: rgba(255, 255, 255, 0.45);

  /* Typography */
  --text-main: #f5f5f5;
  --text-muted: #c2c2c2;
  --text-soft: #959595;
  --text-disabled: rgba(255, 255, 255, 0.36);

  /* Accent (Windows 11 System Blue Dark) */
  --accent-1: #0078d4;
  --accent-hover: #1084d9;
  --accent-active: #006cbe;
  --accent-text: #60cdff;
  --accent-fg: #ffffff;
  --accent-soft: rgba(96, 205, 255, 0.12);
  --accent-2: #0078d4;
  --accent-3: #f59e0b;

  /* Semantic Feedback */
  --success: #6ccb5f;
  --success-bg: rgba(108, 203, 95, 0.14);
  --success-border: rgba(108, 203, 95, 0.3);
  --danger: #ff99a4;
  --danger-bg: rgba(255, 107, 107, 0.14);
  --danger-border: rgba(255, 107, 107, 0.3);
  --warning: #f5c451;
  --warning-bg: rgba(245, 158, 11, 0.15);
  --warning-border: rgba(245, 158, 11, 0.3);

  /* Elevation */
  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-flyout: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-dialog: 0 24px 60px rgba(0, 0, 0, 0.65);
  --glass-shadow: var(--shadow-card);
}

/* Fallback for system dark mode when no data-theme is explicitly stored */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-color: #1c1c1c;
    --mica-tint: rgba(255, 255, 255, 0.03);
    --surface: #282828;
    --surface-hover: rgba(255, 255, 255, 0.05);
    --surface-active: rgba(255, 255, 255, 0.08);
    --surface-2: #2f2f2f;
    --surface-3: #363636;
    --panel-bg: #282828;
    --panel-border: rgba(255, 255, 255, 0.08);
    --divider: rgba(255, 255, 255, 0.08);
    --control-border: rgba(255, 255, 255, 0.08);
    --control-border-bottom: rgba(255, 255, 255, 0.45);
    --text-main: #f5f5f5;
    --text-muted: #c2c2c2;
    --text-soft: #959595;
    --text-disabled: rgba(255, 255, 255, 0.36);
    --accent-1: #0078d4;
    --accent-hover: #1084d9;
    --accent-active: #006cbe;
    --accent-text: #60cdff;
    --accent-fg: #ffffff;
    --accent-soft: rgba(96, 205, 255, 0.12);
    --accent-2: #0078d4;
    --accent-3: #f59e0b;
    --success: #6ccb5f;
    --success-bg: rgba(108, 203, 95, 0.14);
    --success-border: rgba(108, 203, 95, 0.3);
    --danger: #ff99a4;
    --danger-bg: rgba(255, 107, 107, 0.14);
    --danger-border: rgba(255, 107, 107, 0.3);
    --warning: #f5c451;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --warning-border: rgba(245, 158, 11, 0.3);
    --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.35);
    --shadow-flyout: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-dialog: 0 24px 60px rgba(0, 0, 0, 0.65);
    --glass-shadow: var(--shadow-card);
  }
}

/* ============================================================
   2. GLOBAL BASE & RESET
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-main);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Fluent Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--text-disabled);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
  background-clip: content-box;
}

/* Headings */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0;
  color: var(--text-main);
}
.muted { color: var(--text-muted); }
.gradient-text { color: var(--text-main); display: inline-block; }

/* Focus Ring: Windows 11 style */
:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 2px;
}

/* ============================================================
   3. SURFACES & PANELS (Mica & Acrylic)
   ============================================================ */

.glass-panel {
  background: var(--surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  transition: background 0.15s var(--ease-fluent), border-color 0.15s var(--ease-fluent);
}

.card {
  background: var(--surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
  margin-bottom: 16px;
}

/* ============================================================
   4. BUTTONS & CONTROLS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
  border-radius: var(--r-control);
  padding: 7px 15px;
  min-height: 32px;
  border: 1px solid var(--control-border);
  border-bottom: 1px solid var(--control-border-bottom);
  cursor: pointer;
  background: var(--surface);
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background 0.12s var(--ease-fluent), border-color 0.12s var(--ease-fluent), transform 0.08s ease;
  user-select: none;
  text-decoration: none;
}
.btn:hover {
  background: var(--surface-hover);
  border-color: var(--control-border);
}
.btn:active {
  transform: scale(0.98);
  background: var(--surface-active);
}

.btn.primary {
  background: var(--accent-1);
  color: var(--accent-fg);
  border-color: transparent;
  border-bottom-color: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.12);
}
.btn.primary:hover {
  background: var(--accent-hover);
}
.btn.primary:active {
  background: var(--accent-active);
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}
.btn.ghost:hover {
  background: var(--surface-hover);
  border-color: var(--panel-border);
}
.btn.ghost:active {
  background: var(--surface-active);
}

.btn.danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-border);
}
.btn.danger:hover {
  background: rgba(196, 43, 28, 0.18);
}

.btn.lg {
  width: 100%;
  padding: 11px 20px;
  min-height: 40px;
  font-size: 0.95rem;
  border-radius: var(--r-control);
}

.btn.tiny {
  padding: 3px 10px;
  min-height: 24px;
  font-size: 0.8rem;
  border-radius: var(--r-control);
}

.btn.feier-btn {
  background: var(--accent-3);
  color: #1a1205;
  font-weight: 700;
  padding: 14px 28px;
  font-size: 1.05rem;
  border: none;
  border-radius: var(--r-control);
}
.btn.feier-btn:hover {
  filter: brightness(1.08);
}

.link {
  background: none;
  border: none;
  color: var(--accent-text);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.88rem;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link:hover { opacity: 0.85; }

/* Theme Toggle Button (Light / Dark) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-control);
  border: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--control-border-bottom);
  background: var(--surface);
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, transform 0.08s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.theme-toggle:hover { background: var(--surface-hover); }
.theme-toggle:active { transform: scale(0.96); }
.theme-toggle .theme-icon { font-size: 1.05rem; line-height: 1; }

[data-theme="dark"] .theme-icon.moon { display: inline-block; }
[data-theme="dark"] .theme-icon.sun { display: none; }
[data-theme="light"] .theme-icon.moon { display: none; }
[data-theme="light"] .theme-icon.sun { display: inline-block; }

/* Default fallback before JS sets attribute */
:root:not([data-theme="dark"]) .theme-icon.moon { display: none; }
:root:not([data-theme="dark"]) .theme-icon.sun { display: inline-block; }

/* ============================================================
   5. FORMS & INPUTS (Windows Fluent Bottom-Border)
   ============================================================ */

.fld {
  display: block;
  margin-bottom: 14px;
}
.fld > span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

input[type=text],
input[type=password],
input[type=email],
input[type=number],
input[type=search],
input[type=date],
input[type=url],
input[type=time],
input[type=datetime-local],
input[type=month],
input[type=tel],
textarea,
select,
.premium-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-main);
  background: var(--surface-2);
  border: 1px solid var(--control-border);
  border-bottom: 2px solid var(--control-border-bottom);
  border-radius: var(--r-control);
  padding: 7px 11px;
  min-height: 32px;
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}

input:hover, textarea:hover, select:hover, .premium-input:hover {
  background: var(--surface-hover);
}

input:focus, textarea:focus, select:focus, .premium-input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--control-border);
  border-bottom-color: var(--accent-1);
  border-bottom-width: 2px;
  box-shadow: none;
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.65;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin: 8px 0 14px;
  color: var(--text-main);
  cursor: pointer;
}
.check-row input {
  accent-color: var(--accent-1);
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

/* ============================================================
   6. AUTH / LOGIN STAGE
   ============================================================ */

.login-stage {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg-color);
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-dialog);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.logo {
  width: 44px;
  height: 44px;
  border-radius: var(--r-card);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--accent-1);
  color: var(--accent-fg);
}
.logo svg { width: 24px; height: 24px; }
.logo img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.logo.sm { width: 32px; height: 32px; border-radius: 6px; }
.logo.sm svg { width: 18px; height: 18px; }

.login-brand .name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
}
.login-brand .name b { color: var(--accent-text); }
.login-brand .tag { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

.login-err, .modal-err {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
  border-radius: var(--r-control);
  padding: 10px 12px;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.login-hint {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}
.switch-line { text-align: center; margin-top: 14px; font-size: 0.88rem; color: var(--text-muted); }
.form-h { font-size: 1.2rem; margin-bottom: 16px; font-weight: 600; }
hr.soft { border: none; border-top: 1px solid var(--divider); margin: 18px 0; }

.logo-upload { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.logo-preview {
  width: 60px; height: 60px; flex: 0 0 auto; border-radius: var(--r-control);
  border: 1px dashed var(--panel-border); display: grid; place-items: center;
  color: var(--text-muted); font-size: 0.72rem; text-transform: uppercase;
  overflow: hidden; background: var(--surface-2);
}
.logo-preview.big { width: 80px; height: 80px; }
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   7. APP SHELL & TOPBAR
   ============================================================ */

.app { min-height: 100dvh; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  padding-top: max(8px, env(safe-area-inset-top));
  position: sticky;
  top: 0;
  z-index: 40;
  border-radius: 0;
  margin-bottom: 16px;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid var(--divider);
  background: var(--panel-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hamb { display: none; background: none; border: none; font-size: 1.3rem; color: var(--text-main); cursor: pointer; padding: 4px; }
.topbar .brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.topbar .brand .name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.topbar .brand .name b { color: var(--accent-text); }

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-control);
  padding: 4px 10px 4px 5px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background 0.12s;
}
.user-chip:hover { background: var(--surface-hover); }
.av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-fg);
  background: var(--accent-1);
  flex: 0 0 auto;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.user-meta b { font-size: 0.85rem; }
.user-meta small { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }

.user-menu {
  position: absolute; top: 56px; right: 20px; z-index: 50; min-width: 220px;
  padding: 8px; border-radius: var(--r-card); box-shadow: var(--shadow-flyout);
  background: var(--surface); border: 1px solid var(--panel-border);
}
.um-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--divider); margin-bottom: 6px; }
.um-head b { display: block; font-size: 0.95rem; }
.um-head small { color: var(--text-muted); display: block; margin-top: 2px; }
.um-item {
  width: 100%; text-align: left; background: none; border: none; padding: 8px 10px;
  border-radius: var(--r-control); cursor: pointer; color: var(--text-main); font-size: 0.88rem; transition: background 0.12s;
}
.um-item:hover { background: var(--surface-hover); color: var(--danger); }

/* ============================================================
   8. NAVIGATION RAIL (Sidebar)
   ============================================================ */

.shell {
  flex: 1; display: grid; grid-template-columns: 240px 1fr; max-width: 1440px; width: 100%;
  margin: 0 auto; gap: 20px; padding: 0 16px;
}
.side {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 6px; align-self: start;
  position: sticky; top: 76px; height: calc(100vh - 96px); overflow-y: auto;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-card);
}
.side-group-wrap { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.side-label {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); padding: 8px 10px 4px; margin-top: 4px;
}
.side-item {
  position: relative;
  display: flex; align-items: center; gap: 10px; background: transparent; border: none;
  cursor: pointer; padding: 8px 12px; border-radius: var(--r-control);
  color: var(--text-muted); font-family: var(--font-body); font-weight: 500; font-size: 0.9rem;
  transition: background 0.1s var(--ease-fluent), color 0.1s var(--ease-fluent); text-align: left;
}
.side-item .i { font-size: 1.05rem; width: 20px; text-align: center; }
.side-item:hover { background: var(--surface-hover); color: var(--text-main); }
.side-item:active { background: var(--surface-active); }
.side-item.active {
  background: var(--surface-hover);
  color: var(--text-main);
  font-weight: 600;
}
/* Fluent Active Indicator: signature 3px left pill */
.side-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--accent-1);
}
.side-sep { height: 1px; background: var(--divider); margin: 6px 0; }
.side-backdrop { display: none; }

/* ============================================================
   9. CONTENT AREA & VIEWS
   ============================================================ */

.content { padding-bottom: 60px; min-width: 0; }
.view { display: none; }
.view.active { display: block; animation: fluentIn 0.18s var(--ease-fluent); }
@keyframes fluentIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 1.75rem; font-weight: 600; }
.page-head .sub { color: var(--text-muted); margin: 4px 0 0; font-size: 0.92rem; line-height: 1.4; }
.sec { font-size: 1.15rem; margin: 24px 0 12px; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

/* ============================================================
   10. DASHBOARD, KPI CARDS & PROGRESS
   ============================================================ */

.progress .c-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.progress .c-head h3 { font-size: 1.2rem; }
.pct { font-family: var(--font-display); font-weight: 700; font-size: 2.8rem; font-variant-numeric: tabular-nums; line-height: 1; }
.bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 16px 0 12px; border: 1px solid var(--panel-border); }
.bar > span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent-1); transition: width 0.8s var(--ease-fluent); }

.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.mini-stats > div {
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-control);
  padding: 14px 8px;
}
.mini-stats b { font-family: var(--font-display); font-size: 1.6rem; display: block; font-variant-numeric: tabular-nums; color: var(--text-main); }
.mini-stats span { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; display: block; }

.saved {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
  border-radius: var(--r-control);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.next { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.next .tag-badge {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--control-border);
  padding: 4px 10px;
  border-radius: var(--r-control);
  font-weight: 600;
}
.next h3 { font-size: 1.35rem; line-height: 1.3; }
.next .btn { margin-top: auto; }

/* KPI Grid */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .kpi-grid { grid-template-columns: 1fr; } }
.kpi {
  background: var(--surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-card);
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.kpi::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--accent-1);
}
.kpi.gewinn::after { background: var(--success); }
.kpi.warn::after { background: var(--warning); }
.kpi.danger::after { background: var(--danger); }
.kpi .k-ic { font-size: 1.3rem; }
.kpi b {
  display: block; font-family: var(--font-display); font-size: 1.75rem; font-weight: 700;
  margin: 6px 0 2px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.kpi.gewinn b { color: var(--success); }
.kpi.danger b { color: var(--danger); }
.kpi .k-l { display: block; font-size: 0.82rem; color: var(--text-main); font-weight: 600; }
.kpi small { display: block; color: var(--text-muted); font-size: 0.74rem; margin-top: 3px; }

/* Zeitkonto */
.zeitkonto { padding: 20px; margin-bottom: 20px; }
.zk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 640px) { .zk-grid { grid-template-columns: repeat(2, 1fr); } }
.zk-grid > div {
  background: var(--surface-2);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-control);
  padding: 12px;
  text-align: center;
}
.zk-grid b { display: block; font-family: var(--font-display); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.zk-grid span { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.zk-grid .gesamt { background: var(--accent-soft); border-color: var(--control-border); }
.zk-grid .gesamt b { color: var(--accent-text); }

/* Nachfassen */
.nachfass-card {
  background: var(--surface);
  border: 1px solid var(--warning-border);
  border-left: 4px solid var(--warning);
  border-radius: var(--r-card);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}
.nachfass-card h3 { color: var(--warning); margin-bottom: 6px; }
.nf-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.nf-row {
  background: var(--surface-2);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-control);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nf-main strong { display: block; font-size: 0.95rem; }
.nf-main span { font-size: 0.76rem; color: var(--text-muted); }
.nf-actions { display: flex; gap: 8px; }

/* Onboarding & Gründer */
.founder-card {
  padding: 16px 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--accent-1);
}
.founder-card .fc-badge {
  display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-text); margin-bottom: 4px;
}
.founder-card p { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

.onboarding-step {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--panel-border);
  border-radius: var(--r-control); cursor: pointer; transition: background 0.12s;
}
.onboarding-step:hover { background: var(--surface-hover); }
.step-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--control-border); display: grid; place-items: center; font-size: 11px;
}

/* ============================================================
   11. DATA LISTS & ROWS (Tasks, Offers, Users, Absences)
   ============================================================ */

.task-list, .user-table, .company-list, .abs-list { display: flex; flex-direction: column; gap: 8px; }

.task, .urow, .offer-row, .company-card, .abs-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-control);
  padding: 12px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: background 0.1s var(--ease-fluent), border-color 0.1s var(--ease-fluent);
}
.task:hover, .urow:hover, .offer-row:hover, .company-card:hover, .abs-row:hover {
  background: var(--surface-hover);
}
.offer-row { cursor: pointer; }

/* Tasks */
.task .chk {
  width: 22px; height: 22px; flex: 0 0 auto; border-radius: 4px;
  border: 1.5px solid var(--control-border-bottom); display: grid; place-items: center;
  cursor: pointer; color: transparent; transition: all 0.15s; font-size: 0.85rem;
}
.task .chk:hover { border-color: var(--accent-1); }
.task.done .chk { background: var(--accent-1); border-color: var(--accent-1); color: var(--accent-fg); }
.task .t-main { flex: 1; min-width: 0; }
.task .t-main h4 { font-size: 0.95rem; font-weight: 500; }
.task.done .t-main h4 { text-decoration: line-through; color: var(--text-muted); }
.task .t-main p { margin: 2px 0 0; font-size: 0.82rem; color: var(--text-muted); display: flex; gap: 8px; align-items: center; }

/* Offers */
.offer-row .o-ic { font-size: 1.4rem; }
.offer-row .o-main { flex: 1; min-width: 0; }
.offer-row .o-main b { font-size: 1rem; }
.offer-row .o-main small { display: block; color: var(--text-muted); font-size: 0.82rem; margin-top: 2px; }
.offer-row .o-sum { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; color: var(--text-main); font-variant-numeric: tabular-nums; }
.offer-row .o-go { color: var(--text-muted); font-size: 1.2rem; }
.offer-row:hover .o-go { color: var(--accent-text); }
.o-actions { display: flex; gap: 6px; margin-left: 8px; }

/* Users */
.urow .uav { width: 36px; height: 36px; border-radius: 50%; font-size: 1rem; }
.urow .uinfo { flex: 1; min-width: 0; }
.urow .uinfo b { font-size: 0.95rem; }
.urow .uinfo small { display: block; color: var(--text-muted); font-size: 0.8rem; margin-top: 2px; }
.urow .uactions { display: flex; gap: 8px; flex: 0 0 auto; }

/* Absences */
.abs-row .abs-ic { font-size: 1.4rem; }
.abs-row .abs-main { flex: 1; min-width: 0; }
.abs-row .abs-main b { font-size: 0.95rem; }
.abs-row .abs-main small { display: block; color: var(--text-muted); font-size: 0.8rem; margin-top: 2px; }
.abs-row .abs-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Status Badges (Windows 11 InfoBadges) */
.pill, .role-badge, .tag-badge, .preview-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-control);
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--panel-border);
}
.pill.st-offen, .role-badge.admin { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-border); }
.pill.st-erledigt { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.pill.st-abgelehnt, .role-badge.inactive { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }
.pill.st-angenommen { background: rgba(16, 185, 129, 0.15); color: #10b981; border-color: rgba(16, 185, 129, 0.35); font-weight: 700; }
.pill.st-bezahlt { background: rgba(6, 182, 212, 0.15); color: #06b6d4; border-color: rgba(6, 182, 212, 0.35); font-weight: 700; }

/* Platform Stats */
.platform-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.pstat { background: var(--surface); border: 1px solid var(--panel-border); border-radius: var(--r-card); padding: 18px; text-align: center; box-shadow: var(--shadow-card); }
.pstat b { font-family: var(--font-display); font-size: 2.2rem; display: block; color: var(--text-main); font-variant-numeric: tabular-nums; }
.pstat span { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 6px; display: block; }

/* ============================================================
   12. ARTIKEL & STOCK DATA GRID
   ============================================================ */

.art-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.art-toolbar input[type="search"] { flex: 1; min-width: 220px; }

.art-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.astat { background: var(--surface); border: 1px solid var(--panel-border); border-radius: var(--r-card); padding: 12px; text-align: center; box-shadow: var(--shadow-card); }
.astat b { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.astat span { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.astat.warn b { color: var(--danger); }
@media (max-width: 640px) { .art-stats { grid-template-columns: repeat(2, 1fr); } }

.art-list { display: flex; flex-direction: column; gap: 4px; }
.art-row {
  display: grid; grid-template-columns: 90px 1fr 90px 90px 100px 100px 140px;
  gap: 10px; align-items: center;
  background: var(--surface); border: 1px solid var(--panel-border);
  border-radius: var(--r-control); padding: 8px 14px;
  font-size: 0.88rem;
  transition: background 0.1s;
}
.art-row:hover { background: var(--surface-hover); }
.art-row.head {
  background: transparent; border: none; border-bottom: 1px solid var(--divider); border-radius: 0;
  padding: 6px 14px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600;
}
.art-row.inaktiv { opacity: 0.5; }
.artnr {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent-text);
  padding: 2px 6px; border-radius: 4px; border: 1px solid var(--control-border);
}
.art-row .c-name b { display: block; font-size: 0.92rem; }
.art-row .c-name small { color: var(--text-muted); font-size: 0.75rem; }
.art-row .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
.art-row .mono.strong { font-weight: 600; }
.art-row .c-num2 { text-align: right; color: var(--text-muted); }
.c-marge { text-align: right; }
.marge { font-weight: 700; font-size: 0.82rem; padding: 2px 6px; border-radius: 4px; }
.marge.gut { background: var(--success-bg); color: var(--success); }
.marge.okay { background: var(--warning-bg); color: var(--warning); }
.marge.schwach { background: var(--danger-bg); color: var(--danger); }
.c-stock { text-align: right; font-size: 0.85rem; }
.stock { font-variant-numeric: tabular-nums; }
.stock.knapp { color: var(--danger); font-weight: 700; }
.c-act { display: flex; gap: 6px; justify-content: flex-end; }

@media (max-width: 900px) {
  .art-row { grid-template-columns: 1fr auto; grid-auto-rows: auto; row-gap: 6px; }
  .art-row.head { display: none; }
  .c-act { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Material Inventory Cards */
.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.mat-card {
  background: var(--surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-card);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s, box-shadow 0.15s;
}
.mat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-flyout);
}
.mat-head { display: flex; justify-content: space-between; align-items: flex-start; }
.mat-nr { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }
.mat-name { font-size: 1.05rem; font-weight: 600; color: var(--text-main); }
.mat-status { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.mat-status.ok { background: var(--success); box-shadow: 0 0 6px var(--success); }
.mat-status.low { background: var(--danger); box-shadow: 0 0 6px var(--danger); }
.mat-stock {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--surface-2); border-radius: var(--r-control); padding: 14px 0;
  border: 1px solid var(--panel-border);
}
.mat-val { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.mat-unit { font-size: 0.9rem; color: var(--text-muted); margin-left: 4px; }
.mat-min { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.mat-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.mat-btn-sub { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-border); }
.mat-btn-add { color: var(--success); background: var(--success-bg); border-color: var(--success-border); }

/* ============================================================
   13. BUCHHALTUNG & DATEV (Accounting Center)
   ============================================================ */

.acc-range { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.fld.inline { margin-bottom: 0; }
.fld.inline input { width: auto; min-width: 160px; }
.acc-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

.acc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.acc-tile {
  background: var(--surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-card);
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.acc-tile b { display: block; font-size: 1.3rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.acc-tile span { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.acc-tile.good b { color: var(--success); }
.acc-tile.warn b { color: var(--warning); }
.acc-tile.bad b { color: var(--danger); }
.acc-tile.bad { background: var(--danger-bg); border-color: var(--danger-border); }

.acc-hint {
  margin-top: 16px; padding: 12px 14px; border-radius: var(--r-control);
  background: var(--accent-soft); border: 1px solid var(--control-border);
  font-size: 0.88rem; line-height: 1.5;
}
.acc-hint.warn {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning);
}

.acc-exports { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.acc-scroll { overflow-x: auto; }
.acc-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; white-space: nowrap; }
.acc-table th {
  text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); font-weight: 600; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--divider);
}
.acc-table td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--divider); }
.acc-table th.r, .acc-table td.r { text-align: right; padding-right: 0; }
.acc-table td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.acc-table tr:hover td { background: var(--surface-hover); }

.acc-pill {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  padding: 2px 8px; border-radius: var(--r-control);
  background: var(--surface-2); color: var(--text-muted); margin-right: 4px;
}
.acc-pill.ok { background: var(--success-bg); color: var(--success); }
.acc-pill.bad { background: var(--danger-bg); color: var(--danger); }

.iban-state { font-size: 0.82rem; color: var(--text-muted); margin: -10px 0 16px; line-height: 1.5; }
.iban-state.good { color: var(--success); }
.iban-state.bad { color: var(--danger); }

/* ============================================================
   14. CONTENT DIALOGS & MODALS (Windows 11 ContentDialog)
   ============================================================ */

.modal-back {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0, 0, 0, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
}
.modal {
  max-width: 480px; width: 100%; padding: 28px; margin: auto;
  background: var(--surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-dialog);
  animation: fluentPop 0.2s var(--ease-fluent) both;
}
@keyframes fluentPop {
  from { opacity: 0; transform: scale(0.96) translateY(6px); }
  to { opacity: 1; transform: none; }
}
.modal h3 { font-size: 1.3rem; margin-bottom: 20px; font-weight: 600; }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* Quick Add Hub */
.quick-add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.quick-add-item {
  background: var(--surface-2); border: 1px solid var(--panel-border);
  padding: 14px; border-radius: var(--r-control);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text-main); cursor: pointer; transition: background 0.12s;
  text-align: center;
}
.quick-add-item:hover { background: var(--surface-hover); border-color: var(--control-border); }
.quick-add-item .i { font-size: 1.6rem; }

/* Combo Search */
.combo { position: relative; }
.combo-list {
  position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--surface); border: 1px solid var(--panel-border);
  border-radius: var(--r-card); box-shadow: var(--shadow-flyout);
  max-height: 280px; overflow-y: auto;
}
.combo-item {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; border-bottom: 1px solid var(--divider);
  padding: 9px 12px; color: var(--text-main); font-family: var(--font-body); font-size: 0.9rem;
}
.combo-item:last-child { border-bottom: none; }
.combo-item:hover, .combo-item.hi { background: var(--surface-hover); }

/* ============================================================
   15. TOASTS & NOTIFICATIONS (Windows InfoBar / Toast)
   ============================================================ */

.toasts {
  position: fixed; right: 24px; top: 24px; left: auto; bottom: auto;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  z-index: 300; pointer-events: none;
}
.toast {
  background: var(--surface);
  color: var(--text-main);
  border-radius: var(--r-control);
  border: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--control-border-bottom);
  font-size: 0.9rem; font-weight: 500;
  box-shadow: var(--shadow-flyout);
  opacity: 0; transform: translateX(20px);
  transition: all 0.25s var(--ease-fluent);
  min-width: 280px; max-width: 380px; overflow: hidden; pointer-events: auto;
}
.toast.show { opacity: 1; transform: none; }
.t-msg { padding: 12px 16px; }
.t-bar { height: 3px; background: var(--accent-1); width: 100%; transform-origin: left; animation: tBar 4s linear forwards; }
@keyframes tBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ============================================================
   16. FULLCALENDAR (Terminplanung an Fluent angepasst)
   ============================================================ */

#apptsContainer {
  background: var(--surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.fc {
  --fc-border-color: var(--divider);
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: transparent;
  --fc-today-bg-color: var(--accent-soft);
  --fc-now-indicator-color: var(--danger);
  --fc-highlight-color: var(--accent-soft);
  --fc-event-bg-color: var(--accent-1);
  --fc-event-border-color: transparent;
  --fc-event-text-color: var(--accent-fg);
  --fc-small-font-size: 0.76rem;
  font-family: var(--font-body);
  color: var(--text-main);
}
.fc .fc-toolbar.fc-header-toolbar { margin-bottom: 16px; gap: 8px; flex-wrap: wrap; }
.fc .fc-toolbar-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--text-main); }
.fc .fc-button {
  font-family: var(--font-body); font-weight: 600; font-size: 0.85rem;
  border-radius: var(--r-control); padding: 5px 12px; min-height: 30px;
  border: 1px solid var(--control-border); border-bottom: 1px solid var(--control-border-bottom);
  background: var(--surface-2); color: var(--text-main);
  transition: background 0.12s;
}
.fc .fc-button:hover { background: var(--surface-hover); }
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  background: var(--accent-1); border-color: var(--accent-1); color: var(--accent-fg);
}
.fc .fc-col-header-cell-cushion {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); text-decoration: none; padding: 6px;
}
.fc .fc-day-today .fc-col-header-cell-cushion { color: var(--accent-text); }
.fc .fc-event { border-radius: var(--r-control); border: none; padding: 2px 6px; cursor: pointer; }

/* ============================================================
   17. DOCUMENT PREVIEW & PRINT (PDF / Beleg)
   Always Pure White Paper for Perfect Print & High Contrast
   ============================================================ */

.doc-modal { max-width: 680px; padding: 24px; }
.doc-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.doc-tab {
  flex: 1; background: var(--surface-2); border: 1px solid var(--panel-border);
  padding: 8px 12px; border-radius: var(--r-control); cursor: pointer;
  font-family: var(--font-body); font-weight: 600; color: var(--text-muted); font-size: 0.88rem;
  transition: all 0.12s;
}
.doc-tab.active { background: var(--accent-1); color: var(--accent-fg); border-color: var(--accent-1); }
#docArea { max-height: 55vh; overflow-y: auto; margin-bottom: 20px; border-radius: var(--r-control); }

.doc {
  background: #ffffff !important;
  color: #282828 !important;
  border-radius: var(--r-control);
  padding: 40px;
  font-size: 13.5px;
  line-height: 1.55;
  font-family: var(--font-body);
  border: 1px solid #e3e3e3;
}
.doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 2px solid #1b1b1b; }
.doc-brand { display: flex; align-items: center; gap: 14px; }
.doc-logo { width: 64px; height: 64px; object-fit: contain; }
.doc-logo-ph { width: 56px; height: 56px; border-radius: 8px; background: #0067c0; display: grid; place-items: center; font-weight: 800; font-size: 24px; color: #fff; }
.dc-name { font-weight: 700; font-size: 19px; color: #1b1b1b; line-height: 1.2; }
.dc-trade { color: #8a8a8a; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.doc-meta { text-align: right; flex: 0 0 auto; }
.dm-title { font-weight: 800; font-size: 26px; color: #1b1b1b; margin-bottom: 8px; }
.dm-line { display: flex; justify-content: flex-end; gap: 10px; font-size: 12.5px; color: #5d5d5d; }
.dm-line span { color: #a0a0a0; }
.dm-line b { color: #282828; font-variant-numeric: tabular-nums; }

.doc-to { margin-bottom: 28px; }
.doc-to small { display: block; color: #a0a0a0; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.doc-to b { font-size: 16px; color: #1b1b1b; }
.doc-addr { margin-top: 4px; color: #5d5d5d; font-size: 13px; line-height: 1.45; }

.doc-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.doc-table th { text-align: left; border-bottom: 2px solid #e3e3e3; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #8a8a8a; padding: 0 8px 8px; }
.doc-table td { padding: 10px 8px; border-bottom: 1px solid #f5f5f5; font-variant-numeric: tabular-nums; color: #363636; }
.doc-table th.r, .doc-table td.r { text-align: right; }

.doc-sum { margin-left: auto; width: 300px; }
.doc-sum .r { display: flex; justify-content: space-between; padding: 5px 0; color: #5d5d5d; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.doc-sum .r.tot { font-weight: 800; font-size: 18px; color: #1b1b1b; border-top: 2px solid #1b1b1b; margin-top: 6px; padding-top: 10px; }

/* GiroCode QR Block */
.doc-pay { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; margin-top: 24px; padding-top: 16px; border-top: 1px solid #e3e3e3; }
.doc-pay:empty { display: none; }
.doc-pay-info { font-size: 12.5px; line-height: 1.6; color: #5d5d5d; }
.doc-pay-info b { display: block; margin-bottom: 3px; color: #1b1b1b; }
.doc-pay-qr { flex: 0 0 auto; text-align: center; background: #fff; padding: 6px; border-radius: 4px; border: 1px solid #e3e3e3; }
.doc-pay-qr svg { width: 160px; height: 160px; display: block; }
.doc-pay-qr span { display: block; font-size: 10px; color: #8a8a8a; margin-top: 4px; max-width: 160px; }

.doc-note { margin-top: 28px; font-size: 12px; color: #8a8a8a; line-height: 1.5; }
.doc-footer { margin-top: 32px; padding: 14px 0; border-top: 1px solid #f5f5f5; text-align: center; font-size: 11px; color: #a0a0a0; }
.doc-worklog {
  margin-top: 22px;
  padding: 12px 16px;
  background: #f7f7f7;
  border: 1px solid #c2c2c2;
  border-radius: 6px;
  page-break-inside: avoid;
  break-inside: avoid;
}
.doc-worklog b {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #1b1b1b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#workLogPrint {
  white-space: pre-wrap !important;
  font-size: 11.5px;
  line-height: 1.6;
  color: #282828;
  font-family: inherit;
}

#printArea { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff !important; margin: 0; padding: 0; color: #000 !important; }
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block !important; width: 100%; }
  #printArea .doc { border: none; border-radius: 0; padding: 15mm 16mm 12mm; font-size: 12px; box-shadow: none; margin: 0; max-width: 100%; }
  .doc-sum, .doc-sign, .doc-note, .doc-pay, .doc-footer, .doc-worklog { page-break-inside: avoid; break-inside: avoid; }
}

/* ============================================================
   17.1 DOCUMENT PORTAL & KUNDEN-LINK (Modal Action Hub)
   ============================================================ */

.doc-portal {
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-card {
  background: var(--surface-2);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-card);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.portal-card.block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.portal-card.ok { border-left: 4px solid var(--success); }
.portal-card.bad { border-left: 4px solid var(--danger); }
.portal-card.info { border-left: 4px solid var(--accent-1); }
.portal-card.muted-card { border-left: 4px solid var(--text-muted); }
.portal-card.warn-card { border-left: 4px solid var(--warning); }

.pc-ic {
  font-size: 1.5rem;
  flex: 0 0 auto;
  line-height: 1;
}

.pc-head, .pc-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.portal-card b, .pc-head b, .pc-text b {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 2px;
}
.portal-card small, .pc-head small, .pc-text small {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.row-btns {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.pc-head small.note {
  font-style: italic;
  color: var(--text-main);
  background: var(--surface);
  padding: 4px 8px;
  border-radius: var(--r-control);
  margin-top: 4px;
  display: inline-block;
}

.link-row {
  display: flex;
  gap: 8px;
  width: 100%;
}
.link-row input {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--control-border);
  border-radius: var(--r-control);
  color: var(--text-main);
}

.pc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.pay-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.pay-row select,
.pay-row input {
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--control-border);
  border-radius: var(--r-control);
  color: var(--text-main);
  font-size: 0.9rem;
}
.pay-row input {
  width: 120px;
}

/* ============================================================
   17.2 OFFER WIZARD: STEP 2 (Positionen & Artikel-Picker)
   ============================================================ */

.add-pos-card {
  background: var(--surface-2);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-card);
  padding: 16px;
  margin-top: 14px;
}
.add-pos-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.add-pos-grid {
  display: grid;
  grid-template-columns: 80px 100px 1fr 130px 130px auto;
  gap: 10px;
  align-items: end;
}
/* Neben dem Seitenmenü reichen die festen Spalten erst ab ca. 1200 px Fensterbreite */
@media (max-width: 1200px) {
  .add-pos-grid {
    grid-template-columns: 1fr 1fr;
  }
  .add-pos-grid .desc-fld {
    grid-column: span 2;
  }
  .add-pos-grid .add-pos-btn-wrap {
    grid-column: span 2;
  }
  .add-pos-grid .add-pos-btn-wrap button {
    width: 100%;
  }
}
.doc-type-segmented {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 5px;
  background: var(--surface-2);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-card);
}
.doc-type-btn {
  flex: 1;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.doc-type-btn:hover {
  color: var(--text-main);
  background: var(--surface);
}
.doc-type-btn.active {
  background: var(--accent-1);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.add-pos-fld {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.add-pos-fld label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}
.opt-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: normal;
}
.input-unit-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-unit-wrap input {
  padding-right: 28px;
  width: 100%;
}
.input-unit {
  position: absolute;
  right: 10px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  pointer-events: none;
}

/* Added items list */
.items {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.empty-items-hint {
  padding: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--surface-2);
  border: 1px dashed var(--panel-border);
  border-radius: var(--r-control);
}
.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-control);
  padding: 10px 14px;
  gap: 12px;
  transition: background 0.12s;
}
.item:hover {
  background: var(--surface-hover);
}
.item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.item-qty {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 4px;
}
.item-desc {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-ek {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.8;
}
.item-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.item-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}
.item-del {
  width: 28px;
  height: 28px;
  border-radius: var(--r-control);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: all 0.12s;
}
.item-del:hover {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-border);
}

.margin-hint {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--text-main);
  border-radius: var(--r-control);
  padding: 10px 14px;
  font-size: 0.88rem;
  margin: 10px 0;
}
.margin-hint .profit-highlight {
  color: var(--success);
  font-weight: 700;
}

/* Article Picker Chips */
.artpick-group {
  margin-top: 18px;
}
.apg-head {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.apg-head span {
  font-size: 0.72rem;
  background: var(--surface-2);
  border: 1px solid var(--panel-border);
  padding: 1px 7px;
  border-radius: 999px;
}
.chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.chip {
  background: var(--surface);
  border: 1px solid var(--control-border);
  border-radius: var(--r-card);
  padding: 13px;
  text-align: left;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.15s var(--ease-fluent);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}
.chip:hover {
  background: var(--surface-hover);
  border-color: var(--accent-1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-flyout);
}
.chip-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.chip-nr {
  font-size: 0.75rem;
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.chip-add-ic {
  font-size: 1.2rem;
  line-height: 1;
  color: var(--accent-1);
  font-weight: bold;
}
.chip-title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text-main);
}
.chip-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.chip-price {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}
.chip-cost {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   17.3 OFFER WIZARD: STEP 3 (Voransicht / Review)
   ============================================================ */

.quote-preview {
  background: var(--surface-2);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  color: var(--text-main);
}
.qp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 18px;
}
.qp-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}
.qp-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.qp-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--accent-1);
}
.qp-customer {
  margin-bottom: 20px;
  font-size: 1rem;
}
.qp-lbl {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.qp-customer b {
  color: var(--text-main);
  font-size: 1.15rem;
}
.qp-table {
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  margin-bottom: 18px;
}
.qp-th {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--divider);
}
.qp-th .r { text-align: right; }
.qp-tr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.qp-tr:last-child { border-bottom: none; }
.qp-desc {
  font-size: 0.95rem;
  color: var(--text-main);
}
.qp-qty {
  font-weight: 700;
  color: var(--accent-text);
  margin-right: 4px;
}
.qp-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}
.qp-summary {
  width: 280px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
@media (max-width: 560px) {
  .qp-summary { width: 100%; }
}
.qp-sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.qp-sum-row .p { color: var(--text-main); font-weight: 600; }
.qp-sum-row.tot {
  border-top: 2px solid var(--panel-border);
  padding-top: 8px;
  margin-top: 4px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}
.qp-sum-row.tot .p {
  color: var(--accent-text);
  font-size: 1.25rem;
}
.qp-profit {
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--r-control);
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--text-main);
  font-size: 0.9rem;
}
.qp-profit b { color: var(--success); }
.qp-profit small { color: var(--text-muted); font-size: 0.78rem; }

/* ============================================================
   18. FEIERABEND MODUS & SUNSET OVERLAY
   ============================================================ */

/* Launch card on view-feierabend */
.feier-launch {
  text-align: center;
  padding: 44px 24px;
  background: var(--surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  max-width: 680px;
  margin: 0 auto 20px;
}
.fl-sun {
  font-size: 5rem;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 24px rgba(245, 158, 11, 0.45));
  animation: pulseSun 2.5s infinite alternate ease-in-out;
}
.feier-launch h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.feier-launch p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.6;
  font-size: 1.02rem;
}
.side-item.feier {
  color: var(--accent-3) !important;
  font-weight: 600;
}
.side-item.feier:hover {
  background: rgba(245, 158, 11, 0.12) !important;
  color: var(--accent-3) !important;
}

/* Fullscreen Sunset Overlay */
.feier-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  flex-direction: column;
  color: #ffffff;
  background: #1b1b1b;
  overflow: hidden;
}
.feier-overlay.show {
  display: flex;
  animation: foFade 0.22s var(--ease-fluent) both;
}
@keyframes foFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

#confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  display: none;
}

.fo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  padding-top: max(18px, env(safe-area-inset-top));
  z-index: 5;
}
.fo-title {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.85;
  color: #ffffff;
}
.fo-close {
  width: 36px;
  height: 36px;
  border-radius: var(--r-control);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  transition: all 0.15s;
}
.fo-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.fo-body {
  flex: 1;
  overflow-y: auto;
  z-index: 4;
  padding: 10px 24px 40px;
  text-align: center;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  color: #ffffff;
}
.fo-sun {
  font-size: 4.8rem;
  margin: 8px 0;
  filter: drop-shadow(0 0 35px rgba(251, 191, 36, 0.75));
  animation: pulseSun 2.5s infinite alternate ease-in-out;
}
@keyframes pulseSun {
  from { transform: scale(1); filter: drop-shadow(0 0 25px rgba(251, 191, 36, 0.5)); }
  to { transform: scale(1.06); filter: drop-shadow(0 0 45px rgba(251, 191, 36, 0.85)); }
}

.fo-checking {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 24px 0;
  color: #ffffff;
}
.dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.dots i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  animation: bnc 1.2s infinite ease-in-out;
}
.dots i:nth-child(2) { animation-delay: 0.18s; }
.dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes bnc {
  0%, 80%, 100% { transform: scale(0.4); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

#feierResult {
  animation: foPop 0.25s var(--ease-fluent) both;
}
@keyframes foPop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: none; }
}

.fo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 14px;
  color: #ffffff;
}

.fo-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 8px 0 6px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  color: #ffffff;
}
.fo-sub {
  opacity: 0.9;
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

.fo-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-card);
  padding: 16px 20px;
  margin-bottom: 14px;
  color: #ffffff;
}
.fo-time .cl { font-size: 2.2rem; }
.fo-time .tn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}
.fo-time .tl {
  font-size: 0.75rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.fo-card {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-card);
  padding: 16px 18px;
  margin-bottom: 14px;
  text-align: left;
  color: #ffffff;
}
.fo-card h5 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  margin: 0 0 10px;
  color: #c2c2c2;
  font-weight: 600;
}
.fo-line {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.92rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #f5f5f5;
}
.fo-line:last-child { border-bottom: none; }
.fo-line.strike .tx { text-decoration: line-through; opacity: 0.6; }

.fo-motiv {
  font-style: italic;
  opacity: 0.95;
  margin: 20px 4px 18px;
  line-height: 1.5;
  font-size: 1rem;
  color: #f7f7f7;
}

.fo-btn {
  width: 100%;
  background: #ffffff;
  color: #831843;
  font-family: var(--font-body);
  font-weight: 700;
  border: none;
  border-radius: var(--r-control);
  padding: 13px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.1s, filter 0.15s;
  margin-top: 8px;
}
.fo-btn:hover { filter: brightness(1.05); }
.fo-btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }
.fo-btn:active { transform: scale(0.98); }
.fo-btn.open {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 8px;
}
.fo-btn.open:hover { background: rgba(255, 255, 255, 0.2); }

/* ============================================================
   20. ABO & TARIFE (Windows 11 Fluent Design System)
   ============================================================ */

.page-head-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* Firmen-Status Banner */
.abo-status-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--panel-border);
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}
.abo-status-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.abo-status-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
  color: var(--text-main);
}
.abo-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-bg);
  animation: pulse-dot 2s infinite ease-in-out;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
}
.abo-status-details {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.abo-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--surface-2);
  border: 1px solid var(--control-border);
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.abo-status-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Billing Cycle Toggle Switch */
.billing-cycle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 10px 0 32px;
  gap: 10px;
}
.billing-cycle-switch {
  display: inline-flex;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  gap: 4px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}
.cycle-pill {
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0, 0, 0, 1);
}
.cycle-pill:hover {
  color: var(--text-main);
}
.cycle-pill.active {
  background: var(--surface);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--panel-border);
}
.cycle-discount-tag {
  background: #107c10;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.billing-cycle-hint {
  font-size: 0.88rem;
  color: var(--accent-text);
}

/* Pricing Grid & Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-card);
  padding: 34px 26px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s cubic-bezier(0, 0, 0, 1), box-shadow 0.22s cubic-bezier(0, 0, 0, 1), border-color 0.22s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-flyout);
}
.price-card.featured {
  border: 2px solid var(--accent-1);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 220px);
  box-shadow: 0 4px 24px var(--accent-soft), var(--shadow-card);
}
.price-card.current {
  box-shadow: 0 0 0 2px var(--success), var(--shadow-card);
}
.card-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-1);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}
.card-current-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--success);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.card-head {
  margin-bottom: 16px;
}
.card-tier-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}
.card-tier-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 4px;
  min-height: 38px;
}
.card-pricing {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--divider);
}
.price-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
}
.price-number {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-period {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-left: 2px;
}
.price-vat {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.price-save-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}
.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 20px;
  min-height: 42px;
}
.card-action {
  margin-bottom: 8px;
}
.card-action .btn {
  width: 100%;
  justify-content: center;
  padding: 11px 16px;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn-current-plan {
  background: var(--success-bg) !important;
  color: var(--success) !important;
  border: 1px solid var(--success-border) !important;
  cursor: default;
  opacity: 1 !important;
}
.card-features-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.card-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.card-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.87rem;
  line-height: 1.4;
}
.card-features-list li.feat-yes .feat-icon {
  color: var(--success);
  font-weight: 800;
  font-size: 0.95rem;
}
.card-features-list li.feat-yes .feat-text {
  color: var(--text-main);
}
.card-features-list li.feat-no {
  opacity: 0.42;
}
.card-features-list li.feat-no .feat-icon {
  color: var(--text-soft);
  font-size: 0.85rem;
}
.feat-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.02em;
  margin-left: auto;
  white-space: nowrap;
}
.feat-tag.danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}
.feat-tag.accent {
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--accent-soft);
}

/* Mikrofon Puls-Animation für Sprachaufnahme */
@keyframes recordingPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  60% { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.recording-pulse {
  animation: recordingPulse 1.4s infinite !important;
}

/* Trust Grid */
.abo-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.trust-box {
  padding: 22px 20px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-card);
}
.trust-icon {
  font-size: 1.85rem;
  margin-bottom: 8px;
}
.trust-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}
.trust-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Matrix Table */
.matrix-card {
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-card);
  margin-bottom: 36px;
}
.matrix-header {
  margin-bottom: 20px;
}
.matrix-header h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}
.matrix-table th, .matrix-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--divider);
}
.matrix-table thead th {
  background: var(--surface-2);
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 2;
}
.matrix-feature-head {
  width: 38%;
  color: var(--text-main);
}
.matrix-col {
  text-align: center;
  width: 20%;
}
.m-head-tier {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}
.m-head-price {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: normal;
  margin-top: 2px;
}
.m-head-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--accent-1);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.matrix-col.highlight-featured {
  background: var(--accent-soft);
}
.matrix-col.highlight-active {
  outline: 2px solid var(--success);
  outline-offset: -2px;
}
.matrix-sec-row td {
  background: var(--surface-2);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-main);
  padding: 14px 16px 8px;
  border-top: 1px solid var(--panel-border);
}
.matrix-table tbody tr:hover td {
  background: var(--surface-hover);
}
.m-yes {
  color: var(--success);
  font-weight: bold;
  font-size: 1.1rem;
}
.m-no {
  color: var(--text-soft);
  font-size: 1.1rem;
}
.m-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
}
.m-tag.danger {
  background: var(--danger-bg);
  color: var(--danger);
}
.m-tag.accent {
  background: var(--accent-soft);
  color: var(--accent-text);
}

/* FAQs Accordion */
.faq-card {
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-card);
  margin-bottom: 40px;
}
.faq-header {
  margin-bottom: 20px;
}
.faq-header h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--panel-border);
  border-radius: var(--r-card);
  background: var(--surface-2);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item:hover {
  border-color: rgba(0, 95, 184, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.faq-item.open {
  border-color: var(--accent-1);
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  line-height: 1.4;
}
.faq-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  background: rgba(0, 95, 184, 0.2);
  color: var(--accent-1);
}
.faq-a {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 20px;
  font-size: 0.90rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.35s ease;
}
.faq-item.open .faq-a {
  max-height: 500px;
  opacity: 1;
  padding: 0 20px 18px 20px;
}

/* Modal Details */
.plan-summary-card {
  background: var(--surface-2);
  border: 1px solid var(--control-border);
  border-radius: var(--r-control);
  padding: 16px;
  margin: 16px 0;
}
.plan-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.plan-sum-label {
  color: var(--text-muted);
}
.plan-sum-val {
  font-weight: 600;
  color: var(--text-main);
}
.plan-price-calc {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.calc-row.total {
  font-size: 1.05rem;
  color: var(--text-main);
  border-top: 1px solid var(--divider);
  padding-top: 8px;
  margin-top: 4px;
}
.plan-modal-terms {
  margin-top: 14px;
  color: var(--text-muted);
}

/* ============================================================
   18. ZAHLUNG HINTERLEGEN & PAYWALL DESIGN
   ============================================================ */

/* Paywall Modal */
.paywall-modal {
  border-radius: var(--r-card-lg, 16px);
  padding: 28px 26px;
  background: var(--surface-glass, rgba(20, 24, 33, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}
.paywall-lock-banner {
  display: flex;
  justify-content: center;
}
.paywall-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255, 171, 0, 0.25), rgba(255, 107, 0, 0.25));
  color: #ffb300;
  border: 1px solid rgba(255, 171, 0, 0.4);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.paywall-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}
@media (max-width: 580px) {
  .paywall-benefits-grid { grid-template-columns: 1fr; }
}
.pw-benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-control, 8px);
}
.pw-benefit-icon {
  font-size: 1.3rem;
  line-height: 1;
}
.pw-benefit-text b {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
}
.pw-benefit-text small {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.paywall-pricing-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.12), rgba(0, 204, 153, 0.08));
  border: 1px solid rgba(0, 120, 212, 0.3);
  border-radius: 8px;
  margin-top: 14px;
}
.pw-price-box .pw-price-tag {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.pw-price-box .pw-price-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}
.pw-price-box .pw-price-val small {
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--text-muted);
}
.pw-price-box .pw-price-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--success);
}
.paywall-cta-btn {
  box-shadow: 0 4px 18px rgba(0, 120, 212, 0.4);
}

/* Paywall In-Line Card */
.paywall-unlock-btn {
  transition: transform 0.2s, box-shadow 0.2s;
}
.paywall-unlock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 120, 212, 0.5);
}

/* Hero Status Cards in view-zahlung */
.pay-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.pay-hero-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-card, 12px);
  background: var(--surface-glass, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--panel-border);
  transition: all 0.2s ease;
}
.pay-hero-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.hero-card-icon {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  flex-shrink: 0;
}
.hero-card-content {
  overflow: hidden;
}
.hero-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.hero-card-status {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 2px 0;
}
.hero-card-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Live Vorschau Slip */
.pay-live-slip {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.85rem;
}
.live-slip-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--panel-border);
}
.live-slip-grid {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.live-slip-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.4;
}
.live-slip-info b {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-right: 6px;
}
.live-slip-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.live-qr-box {
  width: 74px;
  height: 74px;
  background: #fff;
  color: #000;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.live-qr-box small {
  font-size: 0.55rem;
  line-height: 1;
  margin-top: 2px;
  color: #333;
}
.live-note {
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--accent-1);
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Pay Card in share.js */
.pay-portal-card {
  padding: 18px 20px;
}
.pay-card-header {
  margin-bottom: 14px;
}
.pay-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.pay-status-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pay-tag-amount {
  font-size: 0.88rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--panel-border);
}
.pay-tag-due {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.pay-tag-due.warn {
  color: #ff5252;
  font-weight: 600;
}
.pay-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.pay-section-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.pay-method-section {
  margin-bottom: 14px;
}
.pay-method-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pay-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--control-border);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pay-pill:hover {
  border-color: var(--accent-1);
  background: rgba(0, 120, 212, 0.08);
}
.pay-pill.active {
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
  box-shadow: 0 2px 10px rgba(0, 120, 212, 0.35);
}

.pay-amount-section {
  margin-bottom: 14px;
}
.pay-amount-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pay-amount-input-wrap {
  position: relative;
  width: 140px;
}
.pay-amount-input-wrap input {
  width: 100%;
  padding: 8px 24px 8px 12px;
  background: var(--surface);
  border: 1px solid var(--control-border);
  border-radius: var(--r-control, 8px);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
}
.pay-amount-input-wrap .currency-sign {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-weight: 600;
}
.pay-preset-pills {
  display: flex;
  gap: 8px;
}
.preset-pill {
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.preset-pill:hover {
  color: var(--text-main);
  border-color: var(--control-border);
}
.preset-pill.active {
  background: rgba(0, 204, 153, 0.15);
  color: var(--success);
  border-color: var(--success);
  font-weight: 600;
}

.pay-action-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid var(--panel-border);
}
.pay-date-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pay-date-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.pay-date-wrap input {
  padding: 7px 10px;
  background: var(--surface);
  border: 1px solid var(--control-border);
  border-radius: var(--r-control, 8px);
  color: var(--text-main);
  font-size: 0.85rem;
}
.pay-submit-btn {
  padding: 8px 18px;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(0, 120, 212, 0.3);
}

.pay-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--panel-border);
}
.pay-card-footer .link-btn {
  background: none;
  border: none;
  color: var(--accent-1);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pay-card-footer .link-btn:hover {
  color: #fff;
}

/* Pay Receipt Box in share.js */
.pay-receipt-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pay-receipt-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pay-receipt-badge {
  background: rgba(0, 204, 153, 0.2);
  color: var(--success);
  border: 1px solid var(--success);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}
.pay-receipt-details {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}
.receipt-amount {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
}
.receipt-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}
.receipt-date {
  color: var(--text-muted);
  font-size: 0.82rem;
}
.pay-receipt-foot {
  display: flex;
  justify-content: flex-end;
}

/* ============================================================
   19. RESPONSIVE DESIGN (Mobile & Tablet)
   ============================================================ */

/* Mobile Drawer Header */
.side-mobile-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 14px 6px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--divider);
}

.side-mobile-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.side-mobile-brand .logo {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0067c0, #005fb8);
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0, 103, 192, 0.35);
}

.side-mobile-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.side-mobile-name b {
  color: var(--accent-1);
}

.side-mobile-close {
  background: var(--surface-2);
  border: 1px solid var(--control-border);
  color: var(--text-main);
  font-size: 1.1rem;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.side-mobile-close:active {
  transform: scale(0.92);
  background: var(--surface-active);
}

@media (max-width: 900px) {
  .side-mobile-head { display: flex; }
  .hamb {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 6px;
    border-radius: 8px;
    font-size: 1.4rem;
    -webkit-tap-highlight-color: transparent;
  }
  .shell { grid-template-columns: 1fr; padding: 0 12px; }
  .side {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: min(310px, 86vw);
    background: var(--surface);
    z-index: 1500;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 16px 14px;
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--panel-border);
    height: 100vh;
    height: 100dvh;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: none;
  }
  .side.open {
    transform: translateX(0);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.55);
  }
  .side-item {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.92rem;
    border-radius: 8px;
  }
  .side-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    z-index: 1490;
    opacity: 1;
    transition: opacity 0.25s ease;
  }
  .side-backdrop[hidden] {
    display: none !important;
    opacity: 0;
    pointer-events: none;
  }
  .content { padding-bottom: 80px; }
}

@media (max-width: 768px) {
  /* Prevent iOS Safari & Android Chrome auto-zoom on form focus */
  input, select, textarea {
    font-size: 16px !important;
  }
  .fld input, .fld select, .fld textarea {
    min-height: 44px;
    border-radius: 8px;
  }
  .btn {
    min-height: 42px;
  }
  .btn.lg {
    min-height: 48px;
  }
  .quick-add-item {
    min-height: 52px;
  }
  .table-wrap, .dash-orders-card, .euer-tx-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 560px) {
  .topbar { gap: 6px; padding: 6px 10px; min-height: 52px; }
  .topbar .brand .name { font-size: 0.96rem; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .user-chip { padding: 3px; gap: 0; min-width: 40px; min-height: 40px; justify-content: center; }
  .user-chip .user-meta { display: none; }
  .shell { padding: 0 8px; }
  .card { padding: 14px 12px; border-radius: 10px; }
  .modal { padding: 18px 14px; }
  .offer-row { flex-wrap: wrap; row-gap: 8px; padding: 12px; border-radius: 10px; }
  .offer-row .o-go { display: none; }
  .offer-row .o-actions { margin-left: auto; }
  .doc-modal { padding: 12px 10px; }
  .doc { padding: 16px 12px; }
}

/* ============================================================
   21. EXCHANGE WEB ADMIN CENTER (Mail-Zentrale)
   ============================================================ */

.exchange-admin-card {
  position: relative;
  overflow: hidden;
}

.exchange-kpi-box {
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.exchange-kpi-box:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 205, 255, 0.4) !important;
}

.exchange-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  overflow-x: auto;
}

.ex-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.ex-tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.ex-tab-btn.active {
  color: #60cdff;
  border-bottom-color: #60cdff;
  background: rgba(96, 205, 255, 0.08);
}

.ex-tab-pane {
  display: block;
  animation: exTabFade 0.2s ease;
}

.ex-tab-pane[hidden] {
  display: none !important;
}

@keyframes exTabFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.quota-preset-btn, .ex-quota-set-btn {
  transition: all 0.15s ease;
  font-size: 0.8rem;
}

.quota-preset-btn.active, .ex-quota-set-btn.active {
  background: #60cdff !important;
  color: #1b1b1b !important;
  font-weight: 700;
  border-color: #60cdff !important;
}

.alias-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(96, 205, 255, 0.12);
  border: 1px solid rgba(96, 205, 255, 0.3);
  color: #7dd3fc;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}

.alias-badge .alias-del-btn {
  background: none;
  border: none;
  color: #a0a0a0;
  cursor: pointer;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1;
  transition: color 0.1s;
}

.alias-badge .alias-del-btn:hover {
  color: var(--danger);
}

.ex-copy-val {
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-family: monospace;
  color: #60cdff;
  user-select: all;
  cursor: pointer;
}

.ex-copy-val:hover {
  border-color: #60cdff;
  background: rgba(96, 205, 255, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   COOKIE / DSGVO CONSENT BANNER (Windows 11 Acrylic Flyout)
   ============================================================ */
.cookie-banner {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 32px) !important;
  max-width: 680px !important;
  z-index: 999999 !important;
  background: var(--panel-bg) !important;
  border: 1px solid var(--panel-border) !important;
  border-radius: 8px !important;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  padding: 18px 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  box-sizing: border-box !important;
  animation: cookieFlyoutIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.cookie-banner[hidden] {
  display: none !important;
}

@keyframes cookieFlyoutIn {
  from {
    opacity: 0;
    transform: translate(-50%, 25px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.cookie-main {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.cookie-icon-wrap {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(0, 95, 184, 0.12);
  border: 1px solid rgba(0, 95, 184, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-content {
  flex: 1;
  min-width: 0;
}

.cookie-content h4 {
  margin: 0 0 4px 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.cookie-content p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.cookie-content a.legal-link {
  color: var(--accent-1);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-content a.legal-link:hover {
  filter: brightness(1.2);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions .btn {
  white-space: nowrap;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

@media (max-width: 680px) {
  .cookie-banner {
    bottom: 12px !important;
    padding: 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }
  .cookie-main {
    align-items: flex-start;
  }
  .cookie-actions {
    flex-direction: column-reverse;
    width: 100%;
    gap: 8px;
  }
  .cookie-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   MOBILE STANDALONE APP BAR & NAVIGATION
   ============================================================ */
body.is-standalone-app #cookieBanner,
body.is-mobile-app #cookieBanner {
  display: none !important;
}

body.is-standalone-app .web-only,
body.is-mobile-app .web-only {
  display: none !important;
}

#app[hidden] ~ #mobileBottomNav,
#app[hidden] .mobile-bottom-nav,
.mobile-bottom-nav {
  display: none !important;
}

@media (max-width: 768px) {
  #app:not([hidden]) .mobile-bottom-nav,
  #app:not([hidden]) ~ .mobile-bottom-nav,
  body.is-mobile-app #app:not([hidden]) .mobile-bottom-nav {
    display: flex !important;
  }

  #app:not([hidden]) #content {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #app:not([hidden]) .topbar {
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
  }
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1400;
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding: 0 8px env(safe-area-inset-bottom, 0px);
  background: var(--surface);
  border-top: 1px solid var(--panel-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  align-items: center;
  justify-content: space-around;
}

[data-theme="dark"] .mobile-bottom-nav {
  background: rgba(28, 28, 28, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
}

.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.1, 0.9, 0.2, 1);
  min-width: 56px;
  min-height: 48px;
  gap: 3px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.mob-nav-item:active {
  transform: scale(0.92);
  background: var(--surface-active);
}

.mob-nav-item .mob-icon {
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.mob-nav-item.active {
  color: var(--accent-1);
  font-weight: 700;
}

.mob-nav-item.active .mob-icon {
  transform: translateY(-2px) scale(1.08);
  filter: drop-shadow(0 2px 8px rgba(0, 103, 192, 0.35));
}

.mob-nav-item.mob-add-btn {
  background: linear-gradient(135deg, #005fb8 0%, #005fb8 100%);
  color: #ffffff;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  margin-top: -18px;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 3px solid var(--surface);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .mob-nav-item.mob-add-btn {
  border-color: #1b1b1b;
}

.mob-nav-item.mob-add-btn .mob-icon-add {
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 300;
  display: block;
}

.mob-nav-item.mob-add-btn:active {
  transform: scale(0.9);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}



/* Verweis "Engine & Sicherung" im Nutzermenü (nur im lokalen Betrieb sichtbar) */
a.um-item { display: block; text-decoration: none; box-sizing: border-box; }
a.um-item:hover { color: var(--accent, #005fb8); }

/* ============================================================
   HAUPTSEITE / LANDING PAGE (SaaS & Hosting Style wie Xionhosting)
   ============================================================ */

.landing-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: #1c1c1c;
  color: #f5f5f5;
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* 1. Top Banner (Beta-Hinweis) */
.landing-top-banner {
  background: #004c93;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 18px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 101;
  position: relative;
}

.landing-top-banner .banner-badge {
  background: #f59e0b;
  color: #111827;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.landing-top-banner .banner-link {
  color: #93c5fd;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 700;
}
.landing-top-banner .banner-link:hover {
  color: #ffffff;
}

/* 2. Fixed Navbar */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
  background: rgba(28, 28, 28, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.landing-brand .brand-logo-svg {
  width: 34px;
  height: 34px;
  background: #005fb8;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 95, 184, 0.35);
}

.landing-brand .brand-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.landing-brand .brand-title b {
  color: #60cdff;
}

.landing-brand .beta-tag {
  background: rgba(0, 95, 184, 0.25);
  color: #a5b4fc;
  border: 1px solid rgba(0, 95, 184, 0.45);
  font-size: 0.70rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.landing-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-links a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

.landing-links a:hover {
  color: #ffffff;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-btn-login {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f5f5f5;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.landing-btn-login:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.landing-btn-reg {
  background: #005fb8;
  border: 1px solid rgba(0, 95, 184, 0.5);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 95, 184, 0.35);
  transition: all 0.2s ease;
}

.landing-btn-reg:hover {
  background: #004c93;
  box-shadow: 0 6px 20px rgba(0, 95, 184, 0.55);
  transform: translateY(-1px);
}

/* 3. Hero Section */
.landing-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 24px 60px;
  text-align: center;
  position: relative;
}

.landing-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 95, 184, 0.12);
  border: 1px solid rgba(0, 95, 184, 0.35);
  color: #a5b4fc;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.landing-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 auto 22px;
  letter-spacing: -0.025em;
  color: #ffffff;
  max-width: 960px;
}

.landing-gradient {
  color: #60cdff;
}

.landing-hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: #a0a0a0;
  max-width: 820px;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.65;
}

.landing-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.landing-cta-primary {
  background: #005fb8;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 95, 184, 0.45);
  cursor: pointer;
  transition: all 0.2s ease;
}

.landing-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(0, 95, 184, 0.6);
  background: #004c93;
}

.landing-cta-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #f5f5f5;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 16px 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.landing-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.landing-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 18px 24px;
  background: rgba(28, 28, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  max-width: 1040px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #c2c2c2;
  font-weight: 500;
}

/* 4. Interactive Live Preview Card */
.landing-preview-wrap {
  max-width: 1060px;
  margin: 40px auto 70px;
  background: rgba(28, 28, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 95, 184, 0.15);
  overflow: hidden;
  text-align: left;
}

.preview-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(10, 15, 28, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-dots {
  display: flex;
  gap: 7px;
}
.preview-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.preview-dot.red { background: #ef4444; }
.preview-dot.yellow { background: #f59e0b; }
.preview-dot.green { background: #10b981; }

.preview-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #a0a0a0;
}

.preview-body {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.preview-card-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-chip {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
}
.preview-chip.green { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.preview-chip.blue { background: rgba(0, 95, 184, 0.18); color: #60cdff; }
.preview-chip.purple { background: rgba(168, 85, 247, 0.18); color: #c084fc; }

/* 5. Features Grid */
.landing-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 24px;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.section-head p {
  font-size: 1.05rem;
  color: #a0a0a0;
  line-height: 1.6;
}

.landing-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.landing-feature-card {
  background: rgba(28, 28, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 28px 24px;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.landing-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 95, 184, 0.35);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 95, 184, 0.12);
}

.feat-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-feature-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
}

.landing-feature-card p {
  font-size: 0.92rem;
  color: #a0a0a0;
  margin: 0;
  line-height: 1.55;
}

/* 6. Special Callout Box (E-Rechnung & Kleingewerbe) */
.landing-callout {
  background: linear-gradient(135deg, rgba(0, 76, 147, 0.4) 0%, rgba(28, 28, 28, 0.8) 100%);
  border: 1px solid rgba(0, 95, 184, 0.3);
  border-radius: 8px;
  padding: 36px 32px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

@media (max-width: 768px) {
  .landing-callout {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.landing-callout-text h3 {
  font-size: 1.45rem;
  color: #ffffff;
  margin: 0 0 10px;
}

.landing-callout-text p {
  font-size: 0.96rem;
  color: #c2c2c2;
  margin: 0;
  line-height: 1.6;
}

/* 7. Pricing Section */
.landing-pricing-card {
  max-width: 580px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(40, 40, 40, 0.7) 0%, rgba(28, 28, 28, 0.95) 100%);
  border: 2px solid rgba(0, 95, 184, 0.4);
  border-radius: 8px;
  padding: 40px 36px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(0, 95, 184, 0.2);
}

.pricing-badge {
  display: inline-block;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #111827;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.pricing-amount {
  font-size: 3.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin: 10px 0 6px;
}

.pricing-amount span {
  font-size: 1.2rem;
  font-weight: 500;
  color: #a0a0a0;
}

.pricing-note {
  font-size: 0.88rem;
  color: #60cdff;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-ustg-hint {
  font-size: 0.78rem;
  color: #a0a0a0;
  margin-bottom: 24px;
}

.pricing-features-list {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  color: #e3e3e3;
}

.pricing-features-list li span.check {
  color: #34d399;
  font-weight: 700;
  font-size: 1.05rem;
}

/* 8. Premium Q&A / FAQ Accordion */
.faq-accordion-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.faq-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 95, 184, 0.12);
  border: 1px solid rgba(0, 95, 184, 0.3);
  color: #a5b4fc;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.faq-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.faq-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(28, 28, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 18px;
  transition: all 0.22s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.faq-search-row:focus-within {
  border-color: rgba(0, 95, 184, 0.6);
  box-shadow: 0 4px 20px rgba(0, 95, 184, 0.2), 0 0 0 1px rgba(0, 95, 184, 0.4);
}

.faq-search-icon {
  font-size: 1.15rem;
  color: #8a8a8a;
  flex-shrink: 0;
}

.faq-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.96rem;
  font-family: inherit;
}

.faq-search-input::placeholder {
  color: #8a8a8a;
}

.faq-search-clear {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0a0a0;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.faq-search-clear:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.faq-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.faq-filter-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-pill-btn {
  background: rgba(28, 28, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a0a0a0;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.faq-pill-btn:hover {
  border-color: rgba(0, 95, 184, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

.faq-pill-btn.active {
  background: rgba(0, 95, 184, 0.35);
  border-color: rgba(0, 95, 184, 0.65);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 95, 184, 0.25);
}

.faq-actions-quick {
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-quick-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a0a0a0;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.faq-quick-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e3e3e3;
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-accordion-item {
  background: rgba(28, 28, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.faq-accordion-item:hover {
  border-color: rgba(0, 95, 184, 0.35);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35), 0 0 16px rgba(0, 95, 184, 0.1);
  transform: translateY(-1px);
}

.faq-accordion-item.open {
  border-color: rgba(0, 95, 184, 0.55);
  background: rgba(20, 30, 54, 0.85);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 95, 184, 0.18);
}

.faq-accordion-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.45;
}

.faq-q-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  flex-wrap: wrap;
}

.faq-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-beta { background: rgba(168, 85, 247, 0.16); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-kleingewerbe { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-erechnung { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-nachweis { background: rgba(0, 95, 184, 0.16); color: #60cdff; border: 1px solid rgba(0, 95, 184, 0.3); }
.badge-datev { background: rgba(236, 72, 153, 0.16); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.badge-gobd { background: rgba(0, 103, 192, 0.16); color: #60cdff; border: 1px solid rgba(0, 103, 192, 0.3); }

.faq-q-text {
  flex: 1;
  min-width: 220px;
}

.faq-q-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.92rem;
  color: #a0a0a0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-accordion-item:hover .faq-q-icon {
  color: #ffffff;
  border-color: rgba(0, 95, 184, 0.4);
}

.faq-accordion-item.open .faq-q-icon {
  transform: rotate(180deg);
  background: rgba(0, 95, 184, 0.3);
  border-color: rgba(0, 95, 184, 0.6);
  color: #a5b4fc;
}

.faq-accordion-a {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.4s ease;
  padding: 0 22px;
}

.faq-accordion-item.open .faq-accordion-a {
  max-height: 800px;
  opacity: 1;
  padding: 0 22px 22px 22px;
}

.faq-a-inner {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  color: #c2c2c2;
  font-size: 0.94rem;
  line-height: 1.68;
}

.faq-a-inner p {
  margin: 0 0 12px;
}

.faq-a-inner p:last-child {
  margin-bottom: 0;
}

.faq-a-inner strong {
  color: #ffffff;
}

.faq-a-inner ul {
  margin: 8px 0 12px 18px;
  padding: 0;
}

.faq-a-inner li {
  margin-bottom: 6px;
}

.faq-callout {
  background: rgba(40, 40, 40, 0.6);
  border-left: 3px solid #005fb8;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 0.88rem;
  color: #e3e3e3;
}

.faq-callout.green {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  color: #a7f3d0;
}

.faq-callout.amber {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  color: #fde68a;
}

.faq-no-results {
  text-align: center;
  padding: 40px 20px;
  background: rgba(28, 28, 28, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #a0a0a0;
}

.faq-contact-box {
  margin-top: 48px;
  background: linear-gradient(135deg, rgba(40, 40, 40, 0.7) 0%, rgba(28, 28, 28, 0.9) 100%);
  border: 1px solid rgba(0, 95, 184, 0.3);
  border-radius: 8px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.faq-contact-box h3 {
  font-size: 1.35rem;
  color: #ffffff;
  margin: 0 0 8px;
}

.faq-contact-box p {
  font-size: 0.94rem;
  color: #a0a0a0;
  max-width: 540px;
  margin: 0 auto 20px;
  line-height: 1.55;
}

.faq-contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Visual Figures in FAQ */
.faq-visual {
  margin: 18px 0 14px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 15, 29, 0.85);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.faq-visual img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-visual:hover img {
  transform: scale(1.02);
}

.faq-visual figcaption {
  padding: 10px 16px;
  background: rgba(28, 28, 28, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  color: #a0a0a0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-visual figcaption span {
  font-size: 1rem;
}

/* Guides Section */
.landing-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 26px;
  margin-top: 36px;
}

@media (max-width: 640px) {
  .landing-guides-grid {
    grid-template-columns: 1fr;
  }
}

.guide-card {
  background: rgba(28, 28, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.guide-card:hover {
  border-color: rgba(0, 95, 184, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(0, 95, 184, 0.15);
}

.guide-card-media {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #1c1c1c;
}

.guide-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.guide-card:hover .guide-card-media img {
  transform: scale(1.04);
}

.guide-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.guide-card-readtime {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(28, 28, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #c2c2c2;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
}

.guide-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.guide-card-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
  line-height: 1.38;
}

.guide-card-body p.guide-desc {
  font-size: 0.92rem;
  color: #a0a0a0;
  margin: 0 0 14px;
  line-height: 1.55;
}

.guide-toggle-btn {
  background: rgba(0, 95, 184, 0.12);
  border: 1px solid rgba(0, 95, 184, 0.35);
  color: #60cdff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 16px;
  transition: all 0.22s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.guide-toggle-btn:hover {
  background: rgba(0, 95, 184, 0.25);
  border-color: #005fb8;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 95, 184, 0.3);
}

.guide-collapsible-wrapper {
  display: none;
  margin-top: 10px;
  animation: guideFadeIn 0.25s ease-in-out forwards;
}

.guide-card.expanded .guide-collapsible-wrapper {
  display: block;
}

.guide-card.expanded {
  border-color: rgba(0, 95, 184, 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 95, 184, 0.2);
}

@keyframes guideFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.guide-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.guide-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 14px;
}

.guide-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #005fb8;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 95, 184, 0.4);
}

.guide-step-content {
  flex: 1;
}

.guide-step-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f5f5f5;
  margin-bottom: 2px;
}

.guide-step-text {
  font-size: 0.82rem;
  color: #a0a0a0;
  line-height: 1.45;
}

.guide-pro-tip {
  margin-top: auto;
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid #10b981;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: 0.84rem;
  color: #a7f3d0;
  line-height: 1.5;
}

.guide-pro-tip strong {
  color: #34d399;
}

/* 9. Landing Footer */
.landing-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 24px 30px;
  background: rgba(28, 28, 28, 0.95);
}

.landing-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.18s;
  cursor: pointer;
}

.footer-links a:hover {
  color: #ffffff;
}

.reg-btn-short { display: none; }

@media (max-width: 860px) {
  .landing-links { display: none; }
  .landing-nav { padding: 12px 18px; }
  .landing-hero h1 { font-size: 2.2rem; }
}

@media (max-width: 640px) {
  .reg-btn-full { display: none; }
  .reg-btn-short { display: inline; }

  .landing-top-banner {
    padding: 7px 12px;
    font-size: 0.78rem;
    gap: 6px;
    line-height: 1.35;
  }
  .landing-top-banner .banner-badge {
    font-size: 0.68rem;
    padding: 2px 7px;
  }
  
  .landing-nav {
    padding: 10px 14px;
    gap: 8px;
  }
  .landing-brand {
    gap: 6px;
  }
  .landing-brand .brand-logo-svg {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }
  .landing-brand .brand-title {
    font-size: 1.05rem;
  }
  .landing-brand .beta-tag {
    font-size: 0.65rem;
    padding: 1px 5px;
  }
  .landing-nav-actions {
    gap: 6px;
  }
  .landing-btn-login {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 6px;
  }
  .landing-btn-reg {
    padding: 6px 12px;
    font-size: 0.82rem;
    border-radius: 6px;
    white-space: nowrap;
  }

  .landing-hero {
    padding: 32px 16px 26px;
  }
  .landing-pill {
    font-size: 0.74rem;
    padding: 4px 12px;
    margin-bottom: 16px;
  }
  .landing-hero h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.35rem);
    line-height: 1.18;
    margin-bottom: 14px;
  }
  .landing-hero-sub {
    font-size: 0.94rem;
    line-height: 1.55;
    margin-bottom: 22px;
  }
  .landing-hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 30px;
  }
  .landing-cta-primary,
  .landing-cta-secondary {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 0.96rem;
    box-sizing: border-box;
  }
  .landing-trust-bar {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 14px;
  }
  .trust-item {
    font-size: 0.78rem;
  }

  .preview-top-bar {
    padding: 8px 12px;
    gap: 8px;
  }
  .preview-title {
    font-size: 0.74rem;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .preview-status {
    font-size: 0.72rem;
    padding: 2px 7px;
    white-space: nowrap;
  }
  .preview-body {
    padding: 14px;
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .landing-pricing-card {
    padding: 24px 16px;
    border-radius: 8px;
    margin: 0 10px;
  }

  .faq-accordion-q {
    padding: 14px 16px;
    font-size: 0.95rem;
    gap: 10px;
  }
  .faq-accordion-a {
    padding: 0 16px;
  }
  .faq-accordion-item.open .faq-accordion-a {
    padding: 0 16px 16px 16px;
  }

  .landing-footer {
    padding: 30px 16px 24px;
  }
  .landing-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-links {
    gap: 12px 16px;
  }
}

@media (max-width: 380px) {
  .landing-brand .beta-tag {
    display: none;
  }
  .landing-nav {
    padding: 8px 10px;
  }
  .landing-nav-actions {
    gap: 4px;
  }
  .landing-btn-login {
    padding: 6px 8px;
    font-size: 0.76rem;
  }
  .landing-btn-reg {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
}

/* 10. EÜR & Kleinunternehmer Steuer-Dashboard */
.euer-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--r-card);
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.euer-banner.standard {
  background: linear-gradient(135deg, rgba(0, 95, 184, 0.15) 0%, rgba(0, 95, 184, 0.08) 100%);
  border-color: rgba(0, 95, 184, 0.4);
}

.euer-banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.euer-banner-content h4 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
}

.euer-banner-content p {
  font-size: 0.88rem;
  color: #c2c2c2;
  margin: 0;
  line-height: 1.5;
}

.euer-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.euer-kpi-card {
  background: rgba(28, 28, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-card);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.euer-kpi-card.highlight {
  border-color: rgba(245, 158, 11, 0.4);
}

.euer-kpi-card.green {
  border-color: rgba(16, 185, 129, 0.4);
}

.euer-kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #a0a0a0;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.euer-kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 4px;
}

.euer-kpi-sub {
  font-size: 0.78rem;
  color: #a0a0a0;
}

.euer-meters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.euer-meter-card {
  background: rgba(28, 28, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-card);
  padding: 22px;
}

.euer-meter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.euer-meter-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.euer-meter-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}

.euer-meter-tag.amber {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.euer-progress-track {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.euer-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.euer-progress-fill.amber {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.euer-meter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #a0a0a0;
  margin-bottom: 8px;
}

.euer-meter-hint {
  font-size: 0.8rem;
  color: #8a8a8a;
  line-height: 1.45;
  margin: 0;
}

.euer-chart-card {
  background: rgba(28, 28, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-card);
  padding: 22px;
  margin-bottom: 24px;
}

.euer-bars-wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  align-items: flex-end;
  height: 160px;
  padding-top: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}

.euer-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 4px;
}

.euer-bar-inner {
  width: 100%;
  max-width: 28px;
  background: #005fb8;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.4s ease;
}

.euer-bar-month {
  font-size: 0.72rem;
  color: #a0a0a0;
  text-align: center;
}

/* ============================================================
   11. Meister-Werbung & Kleingewerbe Spotlight
   ============================================================ */
.meister-werbung-card {
  background: linear-gradient(135deg, rgba(40, 40, 40, 0.85) 0%, rgba(28, 28, 28, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 95, 184, 0.1);
  overflow: hidden;
}

.meister-werbung-grid {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 1080px) {
  .meister-werbung-grid {
    grid-template-columns: 1fr;
  }
}

.meister-werbung-photo-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(96, 205, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.meister-werbung-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.meister-photo-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(28, 28, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
}

.meister-badge-star {
  color: #fbbf24;
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: 2px;
}

.meister-photo-badge strong {
  color: #ffffff;
  font-size: 0.95rem;
}

.meister-photo-badge span {
  color: #a0a0a0;
  font-size: 0.75rem;
}

.meister-quote-callout {
  margin: 0 0 20px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 4px solid #f59e0b;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #e3e3e3;
}

.kleingewerbe-grid-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .kleingewerbe-grid-perks {
    grid-template-columns: 1fr;
  }
}

.kg-perk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.kg-perk-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  padding-top: 2px;
}

.kg-perk strong {
  display: block;
  font-size: 0.92rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.kg-perk p {
  margin: 0;
  font-size: 0.8rem;
  color: #a0a0a0;
  line-height: 1.4;
}

/* ============================================================
   12. E-Rechnung Generator Pro (Image 2 Match)
   ============================================================ */
.erechnung-pro-grid {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 18px;
  align-items: start;
}

@media (max-width: 1050px) {
  .erechnung-pro-grid {
    grid-template-columns: 1fr;
  }
}

.erechnung-col {
  background: rgba(28, 28, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-card);
  padding: 18px;
}

.xml-glowing-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  margin: 16px auto 0;
  border-radius: 50%;
  background: #1b1b1b;
  border: 2px solid #06b6d4;
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.45);
  text-align: center;
  color: #ffffff;
}

.xml-glowing-badge .xml-icon {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.xml-glowing-badge .xml-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #67e8f9;
}

.xml-glowing-badge .xml-sub {
  font-size: 0.65rem;
  color: #c2c2c2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   13. EÜR Cockpit & Categories Donut (Image 1 & 2 Match)
   ============================================================ */
.euer-top-duo {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

@media (max-width: 860px) {
  .euer-top-duo {
    grid-template-columns: 1fr;
  }
}

.euer-kpi-card {
  background: rgba(28, 28, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.euer-kpi-card.highlight {
  background: rgba(28, 28, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.euer-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.euer-kpi-label-text {
  font-size: 0.88rem;
  color: #a0a0a0;
  font-weight: 600;
}

.euer-kpi-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.euer-kpi-sub {
  font-size: 0.78rem;
  color: #8a8a8a;
  margin-top: 4px;
}

/* Solid Golden Kleinunternehmer Card (Image 1 Exact Match) */
.euer-golden-card {
  background: #e5a43b !important;
  background: linear-gradient(135deg, #f59e0b 0%, #e5a43b 100%) !important;
  border: none !important;
  border-radius: var(--r-card);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.3);
}

.euer-golden-content h4 {
  margin: 0 0 6px;
  color: #1e1302 !important;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.euer-golden-content p {
  margin: 0;
  color: #3b2203 !important;
  font-size: 0.98rem;
  font-weight: 600;
}

/* Middle Grid: EÜR Chart (65%) + Categories Donut (35%) */
.euer-mid-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  margin-bottom: 20px;
}

@media (max-width: 980px) {
  .euer-mid-grid {
    grid-template-columns: 1fr;
  }
}

.euer-chart-card {
  background: rgba(28, 28, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.euer-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.euer-chart-header h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #ffffff;
  font-weight: 700;
}

.euer-chart-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  color: #a0a0a0;
}

.leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.leg-box.gold {
  width: 10px;
  height: 10px;
  background: #f59e0b;
  border-radius: 2px;
}

.leg-box.amber {
  width: 10px;
  height: 10px;
  background: #b45309;
  border-radius: 2px;
}

.leg-line {
  width: 14px;
  height: 2px;
  background: #f59e0b;
  border-radius: 1px;
}

.euer-chart-canvas-wrap {
  display: grid;
  grid-template-columns: 65px 1fr 65px;
  gap: 8px;
  align-items: stretch;
  position: relative;
  min-height: 155px;
  margin: 10px 0;
}

.euer-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #8a8a8a;
  user-select: none;
}

.euer-axis-left {
  text-align: right;
  padding-right: 4px;
}

.euer-axis-right {
  text-align: left;
  padding-left: 4px;
}

.euer-chart-center {
  position: relative;
  width: 100%;
  height: 100%;
}

.euer-profit-curve-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: calc(100% - 24px);
  pointer-events: none;
  z-index: 2;
}

.euer-bars-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 100%;
  position: relative;
  z-index: 1;
  padding-top: 10px;
}

.euer-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.euer-bar-inner {
  width: 9px;
  transition: height 0.3s ease;
}

.euer-bar-month {
  font-size: 0.72rem;
  color: #a0a0a0;
  margin-top: 6px;
  text-align: center;
}

/* Timeline Slider Track with Endpoints (Image 1 Match) */
.euer-timeline-slider {
  margin-top: 16px;
  padding: 6px 12px;
}

.euer-slider-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  position: relative;
  display: flex;
  align-items: center;
}

.euer-slider-active-segment {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 100%;
  background: #f59e0b;
  border-radius: 999px;
}

.euer-slider-handle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #f59e0b;
  position: absolute;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
  z-index: 3;
}

.euer-slider-handle.left {
  left: 10%;
  transform: translateX(-50%);
}

.euer-slider-handle.right {
  right: 10%;
  transform: translateX(50%);
}

/* Donut Card with Direct Callout Tags */
.euer-donut-card {
  background: rgba(28, 28, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.euer-donut-card h4 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  color: #ffffff;
  font-weight: 700;
}

.euer-donut-display {
  position: relative;
  width: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.euer-donut-svg-wrap {
  width: 140px;
  height: 140px;
  position: relative;
}

.euer-donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.euer-donut-callouts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.donut-callout {
  position: absolute;
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  line-height: 1.25;
}

.donut-callout .c-name {
  color: #a0a0a0;
}

.donut-callout .c-val {
  color: #ffffff;
  font-weight: 700;
}

.donut-callout.c-top-left {
  top: 15px;
  left: 6px;
  text-align: left;
}

.donut-callout.c-top-right {
  top: 15px;
  right: 6px;
  text-align: right;
}

.donut-callout.c-bot-left {
  bottom: 15px;
  left: 6px;
  text-align: left;
}

.donut-callout.c-bot-right {
  bottom: 15px;
  right: 6px;
  text-align: right;
}

/* Bottom Grid: 3 Cards (Image 2 Exact Match) */
.euer-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
  margin-top: 6px;
  margin-bottom: 24px;
}

@media (max-width: 980px) {
  .euer-bottom-grid {
    grid-template-columns: 1fr;
  }
}

.euer-bottom-card {
  background: rgba(28, 28, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.euer-bottom-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.euer-bottom-card-head h4 {
  margin: 0;
  font-size: 1rem;
  color: #ffffff;
  font-weight: 700;
}

.euer-alert-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
}

.euer-tax-deadlines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.euer-tax-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.euer-tax-info {
  display: flex;
  flex-direction: column;
}

.euer-tax-info strong {
  font-size: 0.85rem;
  color: #f7f7f7;
}

.euer-tax-info small {
  font-size: 0.74rem;
  color: #a0a0a0;
}

.euer-tx-table-wrap {
  overflow-x: auto;
}

.euer-tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.euer-tx-table th {
  text-align: left;
  padding: 6px 8px;
  color: #a0a0a0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.euer-tx-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.euer-tx-table td.ok {
  color: #10b981;
  font-weight: 700;
}

.euer-tx-table td.bad {
  color: #f59e0b;
  font-weight: 600;
}

.euer-gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.euer-gauge-val {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.euer-gauge-val strong {
  font-size: 1.45rem;
  color: #ffffff;
  line-height: 1.1;
}

.euer-gauge-val span {
  font-size: 0.75rem;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.euer-gauge-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
}

.euer-gauge-footer span {
  font-size: 0.88rem;
  color: #f7f7f7;
  font-weight: 700;
}

.euer-gauge-footer small {
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 600;
}

/* ============================================================
   14. Dashboard Orders Table (Image 3 Match)
   ============================================================ */
.dash-orders-card {
  background: rgba(28, 28, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-card);
  overflow: hidden;
  margin-top: 20px;
}

.dash-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.dash-orders-table th {
  background: rgba(28, 28, 28, 0.95);
  text-align: left;
  padding: 12px 18px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a0a0a0;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-orders-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #f7f7f7;
}

.dash-orders-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.dash-order-nr {
  font-weight: 700;
  color: #ffffff;
}

.dash-order-proj {
  color: #c2c2c2;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.dash-order-cust {
  font-weight: 600;
  color: #ffffff;
}

.dash-order-sum {
  font-weight: 700;
  color: #ffffff;
  text-align: right;
}





/* ---------- Landing: "Auf einen Blick" (Karten mit farbiger Kante) ---------- */
.ub-group { margin-top: 34px; }
.ub-group:first-of-type { margin-top: 0; }
.ub-title {
  font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px; color: #e3e3e3;
}
.ub-title::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--ub-accent); }
.ub-group.blue  { --ub-accent: #005fb8; --ub-soft: rgba(0, 95, 184, 0.10); --ub-line: rgba(0, 95, 184, 0.28); }
.ub-group.green { --ub-accent: #22c55e; --ub-soft: rgba(34, 197, 94, 0.09);  --ub-line: rgba(34, 197, 94, 0.26); }
.ub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.ub-card {
  background: var(--ub-soft); border: 1px solid var(--ub-line); border-left: 4px solid var(--ub-accent);
  border-radius: 10px; padding: 16px 18px 16px 18px; transition: transform .2s ease, box-shadow .2s ease;
}
.ub-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); }
.ub-card h3 { font-size: 1rem; font-weight: 700; color: #ffffff; margin: 0 0 6px; }
.ub-card p { font-size: 0.9rem; color: #c2c2c2; line-height: 1.5; margin: 0; }
@media (max-width: 560px) { .ub-grid { grid-template-columns: 1fr; } }

/* Unterschriftszeilen im Beleg (Arbeitsnachweis / Lieferschein) */
.doc-sign { display: flex; gap: 40px; margin: 28px 0 10px; }
.doc-sign .sig { flex: 1; font-size: 0.8rem; color: #8a8a8a; }
.doc-sign .sig .line { display: block; border-top: 1px solid #a0a0a0; margin: 34px 0 4px; }
.doc-sign .sig svg + .line { margin-top: 2px; }
@media print { .no-print { display: none !important; } }

/* PDF-Anleitungen (FAQ, Startseite, Hilfe) */
.faq-pdf { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 4px; padding: 7px 12px; border-radius: 8px; font-size: 0.88rem; font-weight: 600;
  color: #7dd3fc; background: rgba(96, 205, 255, 0.12); border: 1px solid rgba(96, 205, 255, 0.4); text-decoration: none; }
.faq-pdf:hover { background: rgba(96, 205, 255, 0.22); }
.pdf-guides { margin: 0 auto 26px; max-width: 1100px; padding: 16px 18px; border-radius: 8px; border: 1px solid rgba(0, 103, 192, 0.35); background: rgba(0, 103, 192, 0.06); }
.pdf-guides.landing { background: rgba(28, 28, 28, 0.6); border-color: rgba(96, 205, 255, 0.35); color: #e3e3e3; }
.pdf-guides-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 12px; }
.pdf-guides-head span { opacity: 0.75; font-size: 0.88rem; }
.pdf-guides-all { margin-left: auto; font-weight: 700; font-size: 0.9rem; color: inherit; text-decoration: none; padding: 6px 12px; border-radius: 8px; border: 1px solid currentColor; }
.pdf-guides-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.pdf-guides-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; text-decoration: none; color: inherit; font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(148, 163, 184, 0.35); }
.pdf-guides.landing .pdf-guides-list a { background: rgba(255, 255, 255, 0.05); }
.pdf-guides-list a:hover { border-color: #0067c0; }
.pdf-guides-list .n { flex: 0 0 24px; height: 24px; border-radius: 50%; background: #0067c0; color: #fff; font-size: 0.78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
[data-theme="dark"] .pdf-guides-list a { background: rgba(255, 255, 255, 0.05); }
[data-theme="dark"] .faq-pdf { color: #7cc0ff; }

/* Zeiterfassung */
.zt-stempel { margin-bottom: 20px; }
.zt-status { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.zt-status b { font-size: 1.05rem; }
.zt-punkt { width: 14px; height: 14px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.2); flex: 0 0 14px; }
.zt-punkt.aus { background: #a0a0a0; box-shadow: none; }
.zt-reihe { display: flex; gap: 12px; flex-wrap: wrap; }
.zt-reihe .fld { margin: 6px 0; }
.zt-reihe input, .zt-reihe select, .zt-werkzeug input, .zt-werkzeug select { width: 100%; }
.zt-knopf { width: 100%; padding: 14px; font-size: 1.05rem; font-weight: 700; margin-top: 8px; }
.zt-werkzeug { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.zt-werkzeug .fld { margin: 0; }
.zt-summe { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.zt-summe > div { flex: 1 1 140px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--panel-border, rgba(148,163,184,.3)); }
.zt-summe b { display: block; font-size: 1.3rem; }
.zt-summe span { font-size: 0.8rem; opacity: 0.7; }
.zt-tabelle { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.zt-tabelle th, .zt-tabelle td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--panel-border, rgba(148,163,184,.25)); white-space: nowrap; }
.zt-tabelle td:nth-last-child(2) { white-space: normal; min-width: 180px; }
.zt-laeuft { color: #10b981; font-weight: 700; }
.zt-auftrag { font-family: monospace; font-size: 0.82rem; padding: 1px 6px; border-radius: 5px; background: rgba(0, 103, 192, 0.1); }

/* Handy-Ansicht: nichts darf rechts über den Rand ragen (2026-09-26) */
.euer-mid-grid > * { min-width: 0; }
.euer-chart-legend { flex-wrap: wrap; }
.doc-type-btn { min-width: 0; }
@media (max-width: 480px) {
  .doc-type-segmented { gap: 4px; padding: 4px; }
  .doc-type-btn { font-size: 0.82rem; padding: 9px 6px; }
  .doc-type-btn small { display: block; }
  .euer-chart-card { padding: 16px; }
  .euer-bars-wrap { gap: 3px; }
  #cloudAddonActionBox > * { flex: 1 1 auto; }
}
/* Dialoge und Vollbild-Ansichten liegen über der Handy-Leiste (1400) und dem Hilfe-Knopf (1450) */
.modal-back { z-index: 1600; }
.feier-overlay { z-index: 1650; }
.toasts { z-index: 1700; }
.feier-overlay .fo-body { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
/* Breite Tabellen auf dem Handy seitlich wischbar statt abgeschnitten */
@media (max-width: 768px) {
  .dash-orders-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .euer-bars-wrap { min-width: 0; }
  .euer-bar-col { min-width: 0; }
  .euer-chart-center { min-width: 0; flex: 1 1 auto; }
  .fc .fc-ev-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; max-width: 100%; }
}
.euer-chart-canvas-wrap { grid-template-columns: 65px minmax(0, 1fr); }
@media (max-width: 480px) {
  .euer-chart-canvas-wrap { grid-template-columns: 44px minmax(0, 1fr); gap: 4px; }
  .euer-bar-month { font-size: 0.6rem; }
  .euer-bar-inner { width: 6px; }
}

/* ============================================================
   AUTOMATIK, WARTUNGSVERTRÄGE, ONLINE-ANFRAGEN (2026-09-26)
   ============================================================ */
.side-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--warning); color: #fff; font-size: 0.72rem; font-weight: 700; display: inline-grid; place-items: center; }
.side-badge[hidden] { display: none; }

.auto-banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin-bottom: 14px; border-radius: var(--r-card); background: var(--accent-soft); border: 1px solid var(--panel-border); font-size: 0.9rem; line-height: 1.5; }
.auto-banner.warn { background: var(--warning-bg); border-color: var(--warning-border); }
.auto-banner .btn { margin-left: 8px; }
.auto-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; margin-bottom: 16px; }
.auto-raster .auto-karte { margin: 0; }
.auto-karte { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; border-left: 3px solid transparent; transition: border-color 0.2s var(--ease-fluent); }
.auto-karte.an { border-left-color: var(--success); }
.auto-kopf { display: flex; gap: 12px; align-items: flex-start; }
.auto-icon { font-size: 1.5rem; width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: var(--r-card); background: var(--accent-soft); }
.auto-titel { flex: 1; min-width: 0; }
.auto-titel h3 { margin: 0 0 4px; font-size: 1.05rem; }
.auto-titel p { margin: 0; font-size: 0.87rem; line-height: 1.5; }
.auto-schalter { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; flex: none; user-select: none; position: relative; }
.auto-schalter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.auto-bahn { width: 40px; height: 20px; border-radius: 10px; border: 1px solid var(--control-border-bottom); background: var(--surface-2); position: relative; transition: background 0.15s; }
.auto-bahn::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-muted); transition: transform 0.2s var(--ease-fluent), background 0.15s; }
.auto-schalter input:checked + .auto-bahn { background: var(--accent-1); border-color: var(--accent-1); }
.auto-schalter input:checked + .auto-bahn::after { transform: translateX(20px); background: #fff; }
.auto-schalter input:focus-visible + .auto-bahn { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.auto-status { font-size: 0.85rem; font-weight: 600; min-width: 24px; }
.auto-felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 14px; }
.auto-felder .fld { margin: 0; }
.auto-felder .auto-breit { grid-column: 1 / -1; }
.auto-felder input, .auto-felder select, .auto-felder textarea { width: 100%; }
.auto-einheit { display: flex; align-items: center; gap: 6px; }
.auto-einheit input { width: 84px !important; flex: none; }
.auto-einheit em { font-style: normal; font-size: 0.82rem; color: var(--text-muted); }
.auto-stufen { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.auto-stufe { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: var(--r-card); border: 1px solid var(--panel-border); background: var(--surface-2); }
.auto-stufe .fld { margin: 0; }
.auto-stufe > .muted { font-size: 0.8rem; }
.auto-klein { font-size: 0.8rem; line-height: 1.5; margin: 0; grid-column: 1 / -1; }
.auto-beispiel summary { cursor: pointer; font-size: 0.85rem; color: var(--accent-text); }
.auto-beispiel pre { white-space: pre-wrap; font-family: var(--font-body); font-size: 0.83rem; line-height: 1.5; background: var(--surface-2); border: 1px solid var(--panel-border); border-radius: var(--r-card); padding: 12px; margin: 8px 0 0; color: var(--text-main); }
.auto-fuss { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: auto; }
.auto-hinweis { font-size: 0.82rem; color: var(--success) !important; }
.auto-tage { display: flex; gap: 6px; flex-wrap: wrap; }
.auto-tage label { cursor: pointer; position: relative; }
.auto-tage input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.auto-tage span { display: inline-block; min-width: 42px; text-align: center; padding: 6px 8px; border-radius: var(--r-control); border: 1px solid var(--control-border); background: var(--surface-2); font-weight: 600; font-size: 0.85rem; }
.auto-tage input:checked + span { background: var(--accent-1); border-color: var(--accent-1); color: #fff; }
.auto-tage input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 1px; }
.auto-link { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--r-card); background: var(--accent-soft); font-size: 0.85rem; }
.auto-link[hidden] { display: none; }
.auto-link-reihe { display: flex; gap: 6px; flex-wrap: wrap; }
.auto-link-reihe input { flex: 1 1 260px; min-width: 0; font-family: var(--font-mono); font-size: 0.82rem; }
.auto-log-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.auto-log { display: flex; flex-direction: column; }
.auto-log-zeile { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--divider); font-size: 0.88rem; }
.auto-log-zeile:last-child { border-bottom: 0; }
.auto-log-zeile.fehler .auto-log-text { color: var(--danger); }
.auto-log-art { flex: 0 0 22px; text-align: center; }
.auto-log-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.auto-log-zeit { flex: none; font-size: 0.78rem; white-space: nowrap; }

.wt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.wt-kpis .card { margin: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.wt-kpis b { font-size: 1.5rem; }
.wt-kpis .muted { font-size: 0.82rem; }
.wt-liste { display: flex; flex-direction: column; gap: 10px; }
.wt-zeile { display: flex; gap: 16px; align-items: center; margin: 0 !important; padding: 14px 16px; }
.wt-zeile.aus { opacity: 0.6; }
.wt-haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wt-titel { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wt-meta { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 0.83rem; color: var(--text-muted); }
.wt-status { font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.wt-status.gruen { background: var(--success-bg); color: var(--success); }
.wt-status.gelb { background: var(--warning-bg); color: var(--warning); }
.wt-status.rot { background: var(--danger-bg); color: var(--danger); }
.wt-status.blau { background: var(--accent-soft); color: var(--accent-text); }
.wt-status.grau { background: var(--surface-3); color: var(--text-muted); }
.wt-aktionen { display: flex; gap: 6px; flex: none; }
.wt-leer { text-align: center; padding: 36px 20px; }
.wt-leer p { max-width: 520px; margin: 0 auto; }
.wt-pos { display: grid; grid-template-columns: 1fr 70px 64px 96px 34px; gap: 6px; margin-bottom: 6px; }
.wt-pos input { width: 100%; min-width: 0; }
.wt-check { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; margin: 8px 0 0; cursor: pointer; }

.appt-anfragen { border-left: 3px solid var(--warning); margin-bottom: 16px; }
.appt-anfrage-zeile { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--divider); font-size: 0.9rem; }
.appt-anfrage-zeile .row-btns { flex: none; margin: 0; }
.appt-anfrage { padding: 12px; border-radius: var(--r-card); background: var(--warning-bg); border: 1px solid var(--warning-border); margin-bottom: 10px; font-size: 0.9rem; }
.appt-anfrage[hidden] { display: none; }
.appt-anfrage p { margin: 4px 0 8px; }
.mahn-stand { margin-top: 10px; padding: 8px 12px; border-radius: var(--r-control); background: var(--warning-bg); font-size: 0.85rem; }

@media (max-width: 640px) {
  .wt-zeile, .appt-anfrage-zeile { flex-direction: column; align-items: stretch; }
  .wt-aktionen .btn { flex: 1; }
  .wt-pos { grid-template-columns: 1fr 64px 84px 34px; }
  .wt-pos .wt-pu { display: none; }
  .auto-kopf { flex-wrap: wrap; }
  .auto-titel { flex: 1 1 calc(100% - 60px); }
  .auto-schalter { margin-left: 56px; }
  .auto-log-zeile { flex-wrap: wrap; }
  .auto-log-zeit { margin-left: 32px; }
}

/* ============================================================
   STARTSEITE: Funktionsbereiche, Automatik, Ablauf (2026-09-27)
   Die Startseite ist immer dunkel – feste Farben wie im restlichen Landing-Block.
   ============================================================ */
.lp-nav-neu { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 8px; background: #f59e0b; color: #111; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; vertical-align: 1px; }
.lp-neu { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 8px; background: rgba(245, 158, 11, 0.16); border: 1px solid rgba(245, 158, 11, 0.4); color: #fbbf24; font-size: 0.7rem; font-weight: 700; white-space: nowrap; }

.lp-bereiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.lp-bereich { background: rgba(28, 28, 28, 0.65); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; padding: 24px; transition: border-color 0.2s, transform 0.2s; }
.lp-bereich:hover { border-color: rgba(96, 165, 250, 0.4); transform: translateY(-2px); }
.lp-bereich-kopf { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.lp-bereich-icon { font-size: 1.5rem; width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.lp-bereich h3 { margin: 0 0 4px; font-size: 1.2rem; color: #fff; }
.lp-bereich-kopf p { margin: 0; color: #a0a0a0; font-size: 0.9rem; line-height: 1.45; }
.lp-bereich ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.lp-bereich li { position: relative; padding-left: 22px; color: #c2c2c2; font-size: 0.92rem; line-height: 1.5; }
.lp-bereich li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #34d399; font-weight: 800; }
.lp-bereich li strong { color: #fff; }

.lp-auto { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 36px; align-items: center; background: linear-gradient(135deg, rgba(28, 28, 28, 0.95), rgba(40, 40, 40, 0.85)); border: 1px solid rgba(245, 158, 11, 0.3); border-radius: 8px; padding: 40px; box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45); }
.lp-auto h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: #fff; margin: 14px 0 12px; letter-spacing: -0.02em; line-height: 1.2; }
.lp-auto-lead { color: #c2c2c2; font-size: 1.02rem; line-height: 1.6; margin: 0 0 24px; }
.lp-auto-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lp-auto-kachel { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.lp-auto-kachel > span { font-size: 1.35rem; line-height: 1; }
.lp-auto-kachel b { color: #fff; font-size: 0.98rem; }
.lp-auto-kachel p { margin: 4px 0 0; color: #a0a0a0; font-size: 0.85rem; line-height: 1.45; }
.lp-mail { background: #f7f7f7; color: #1b1b1b; border-radius: 8px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); overflow: hidden; transform: rotate(1.2deg); }
.lp-mail-kopf { display: flex; gap: 12px; align-items: center; padding: 16px 18px; background: #e3e3e3; border-bottom: 1px solid #c2c2c2; }
.lp-mail-kopf b { display: block; font-size: 0.92rem; }
.lp-mail-kopf small { color: #5d5d5d; font-size: 0.76rem; }
.lp-mail-punkt { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: linear-gradient(135deg, #0067c0, #60cdff); }
.lp-mail-liste { list-style: none; margin: 0; padding: 10px 18px; }
.lp-mail-liste li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #e3e3e3; font-size: 0.86rem; line-height: 1.4; color: #282828; }
.lp-mail-liste li:last-child { border-bottom: 0; }
.lp-mail-fuss { padding: 12px 18px; background: #ecfdf5; color: #047857; font-size: 0.8rem; font-weight: 600; }

.lp-ablauf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.lp-ablauf li { position: relative; background: rgba(28, 28, 28, 0.65); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; padding: 20px 18px; }
.lp-ablauf b { display: block; color: #fff; font-size: 1.05rem; margin: 10px 0 6px; }
.lp-ablauf p { margin: 0; color: #a0a0a0; font-size: 0.88rem; line-height: 1.5; }
.lp-schritt { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #005fb8, #004c93); color: #fff; font-weight: 800; font-size: 0.9rem; box-shadow: 0 4px 12px rgba(0, 95, 184, 0.4); }

@media (max-width: 980px) {
  .lp-auto { grid-template-columns: 1fr; padding: 28px 22px; }
  .lp-mail { transform: none; }
  .lp-ablauf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .lp-auto { padding: 22px 16px; border-radius: 8px; }
  .lp-auto-raster { grid-template-columns: 1fr; }
  .lp-ablauf { grid-template-columns: 1fr; }
  .lp-bereich { padding: 18px; }
}

/* Korrekturen 2026-09-27: Menü der Startseite bricht nicht mehr um, Kalendereinträge lesbar, Einheit im Wartungs-Dialog */
.landing-links a { white-space: nowrap; }
@media (max-width: 1320px) { .landing-links { gap: 18px; } .landing-links a { font-size: 0.88rem; } }
@media (max-width: 1180px) { .landing-links .lp-nav-extra { display: none; } }
/* Seit dem Hell/Dunkel-Schalter ist die Leiste voller: Zusatzpunkte früher ausblenden, Knöpfe nie umbrechen */
@media (max-width: 1440px) { .landing-links .lp-nav-extra { display: none; } }
.landing-btn-reg, .landing-btn-login { white-space: nowrap; }
@media (max-width: 1380px) { .landing-theme { width: 34px; height: 34px; margin-right: 2px; } }
.fc .fc-ev { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; overflow: hidden; min-width: 0; }
.fc .fc-ev-time { font-size: 0.72rem; opacity: 0.9; white-space: nowrap; }
.fc .fc-ev-title { font-weight: 600; font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; }
.fc .fc-ev-who { font-size: 0.72rem; opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 641px) { .wt-pos { grid-template-columns: 1fr 64px 84px 96px 34px; } }

/* ============================================================
   KONTOAUSZUG, NACHKALKULATION, QR/WEBSITE-KNOPF, KÜNDIGUNG, NEU-HINWEIS (2026-09-27)
   ============================================================ */
.bank-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; border: 2px dashed var(--control-border-bottom); border-radius: var(--r-card); background: var(--surface-2); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.bank-drop:hover, .bank-drop.ueber { border-color: var(--accent-1); background: var(--accent-soft); }
.bank-drop.laedt { opacity: .6; pointer-events: none; }
.bank-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bank-drop-icon { font-size: 2rem; }
.bank-hilfe { margin-top: 12px; font-size: .88rem; }
.bank-hilfe summary { cursor: pointer; color: var(--accent-text); }
.bank-hilfe p { margin: 8px 0 0; line-height: 1.5; }
.bank-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.bank-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.bank-chip { font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 8px; }
.bank-chip.ok, .bank-stufe.ok { background: var(--success-bg); color: var(--success); }
.bank-chip.gelb, .bank-stufe.gelb { background: var(--warning-bg); color: var(--warning); }
.bank-chip.grau, .bank-stufe.grau { background: var(--surface-3); color: var(--text-muted); }
.bank-liste { display: flex; flex-direction: column; border-top: 1px solid var(--divider); }
.bank-zeile { display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(200px, 34%); gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--divider); }
.bank-zeile.fertig { opacity: .6; }
.bank-zeile input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent-1); }
.bank-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bank-oben { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.bank-oben b { font-size: 1.02rem; }
.bank-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.bank-zweck { font-size: .85rem; color: var(--text-muted); overflow-wrap: anywhere; }
.bank-unten { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .8rem; }
.bank-stufe { font-weight: 700; padding: 1px 8px; border-radius: 10px; }
.bank-rechnung { width: 100%; }
.bank-fuss { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.bank-fuss .muted { font-size: .84rem; flex: 1 1 260px; }

.nk-werkzeug { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.nk-werkzeug .fld { margin: 0; }
.nk-schnell { display: flex; gap: 6px; flex-wrap: wrap; }
.nk-satz { margin-left: auto !important; }
.nk-kpis .card b { font-size: 1.4rem; }
.nk-tabelle th.r, .nk-tabelle td.r { text-align: right; }
.nk-tabelle td { vertical-align: top; }
.nk-tabelle td:first-child { white-space: normal; min-width: 200px; }
.nk-klein { font-size: .78rem; }
.nk-gruen { color: var(--success); } .nk-gelb { color: var(--warning); } .nk-rot { color: var(--danger); }
.nk-marge { font-weight: 700; padding: 1px 8px; border-radius: 10px; }
.nk-marge.nk-gruen { background: var(--success-bg); } .nk-marge.nk-gelb { background: var(--warning-bg); } .nk-marge.nk-rot { background: var(--danger-bg); }

.qr-box { display: grid; place-items: center; margin: 10px 0 14px; }
.qr-box svg { width: 220px; height: 220px; border-radius: 8px; background: #fff; padding: 6px; }
.knopf-vorschau { padding: 18px; border-radius: var(--r-card); background: #f5f5f5; text-align: center; margin: 8px 0 10px; }
.knopf-code { width: 100%; font-family: var(--font-mono); font-size: .78rem; }

.kuendigung-gruende { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.kuendigung-gruende label { display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: .92rem; }

.neu-hinweis { position: fixed; right: 20px; bottom: 20px; z-index: 1450; width: min(380px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--panel-border); border-radius: var(--r-card); box-shadow: var(--shadow-flyout); padding: 14px 14px 10px; animation: neuRein .35s var(--ease-fluent); }
@keyframes neuRein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.neu-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.neu-zu { border: 0; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 1rem; padding: 4px; }
.neu-hinweis ul { list-style: none; margin: 0; padding: 0; }
.neu-hinweis li button { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; border: 0; background: transparent; color: var(--text-main); font: inherit; font-size: .88rem; padding: 7px 6px; border-radius: var(--r-control); cursor: pointer; }
.neu-hinweis li button:hover { background: var(--surface-hover); }
.neu-fuss { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; font-size: .84rem; }
.neu-fuss a { color: var(--accent-text); }

@media (max-width: 768px) {
  .bank-zeile { grid-template-columns: 24px minmax(0, 1fr); }
  .bank-rechnung { grid-column: 2; }
  .nk-satz { margin-left: 0 !important; }
  .neu-hinweis { right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .kuendigung-gruende { grid-template-columns: 1fr; }
}

/* ---------- Import (Kunden/Artikel) & Kalender-Abo ---------- */
.imp-modal { max-height: 92vh; overflow: auto; }
.imp-fuss { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.bank-drop.klein { padding: 12px; }
.bank-drop.klein .bank-drop-icon, .bank-drop.klein .muted { display: none; }
.imp-zahlen { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 14px 0 8px; }
.imp-pill { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--glass, rgba(127,127,127,.12)); }
.imp-pill.ok { background: rgba(34,197,94,.16); color: #16a34a; }
.imp-pill.warn { background: rgba(245,158,11,.18); color: #b45309; }
.imp-spalten { margin: 8px 0; }
.imp-spalten summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.imp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 12px; margin-top: 6px; }
.imp-grid label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.imp-tabelle { overflow-x: auto; margin-top: 8px; }
.imp-tabelle table { width: 100%; border-collapse: collapse; font-size: 13px; }
.imp-tabelle th, .imp-tabelle td { text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(127,127,127,.18); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.imp-tabelle tr.doppelt td { opacity: .55; }
.imp-tabelle tr.fehler .imp-st { color: #b45309; }
.imp-tabelle .imp-st { font-weight: 600; }
.kal-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 16px; }
.kal-knoepfe .btn { text-decoration: none; }
.kal-link { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.kal-zeile { display: flex; gap: 8px; }
.kal-zeile .input { flex: 1; min-width: 0; font-size: 12px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent, #005fb8); text-decoration: underline; cursor: pointer; font: inherit; }

/* Startseite: Verweis auf die Funktionen-Checkliste */
.lp-alle { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 28px; text-align: center; }
.lp-alle a { text-decoration: none; display: inline-block; }
.lp-alle span { font-size: 14px; opacity: .75; }
.lp-hero-alle { display: inline-block; margin: 14px 0 4px; font-weight: 600; text-decoration: none; color: var(--accent-1, #60cdff); border-bottom: 1px dashed currentColor; }
.lp-hero-alle:hover { border-bottom-style: solid; }

/* ---------- Geld-Radar ---------- */
.gr-ampel { display: flex; gap: 14px; align-items: center; padding: 14px 18px; margin-bottom: 14px; border-radius: var(--r-card); border: 1px solid var(--panel-border); background: var(--surface-2); line-height: 1.5; }
.gr-ampel-licht { flex: 0 0 18px; height: 18px; border-radius: 50%; background: #a0a0a0; box-shadow: 0 0 0 5px rgba(148,163,184,.2); }
.gr-ampel.gruen .gr-ampel-licht { background: #22c55e; box-shadow: 0 0 0 5px rgba(34,197,94,.2); }
.gr-ampel.gelb { border-color: rgba(245,158,11,.5); } .gr-ampel.gelb .gr-ampel-licht { background: #f59e0b; box-shadow: 0 0 0 5px rgba(245,158,11,.22); }
.gr-ampel.rot { border-color: rgba(239,68,68,.55); background: rgba(239,68,68,.08); } .gr-ampel.rot .gr-ampel-licht { background: #ef4444; box-shadow: 0 0 0 5px rgba(239,68,68,.22); animation: gr-puls 1.6s ease-in-out infinite; }
.gr-ampel.info .gr-ampel-licht { background: var(--accent-1); }
@keyframes gr-puls { 50% { box-shadow: 0 0 0 9px rgba(239,68,68,.08); } }
@media (prefers-reduced-motion: reduce) { .gr-ampel.rot .gr-ampel-licht { animation: none; } }
.gr-kpis b.rot, .gr-kpis .rot, .gr-betrag.rot { color: #dc2626; } .gr-kpis b.gelb { color: #d97706; }
.gr-konto-zeile { display: flex; align-items: center; gap: 6px; }
.gr-konto-zeile input { width: 100%; min-width: 0; font-size: 1.25rem; font-weight: 700; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--control-border-bottom, rgba(127,127,127,.3)); background: var(--surface-2); color: inherit; }
.gr-konto-zeile em { font-style: normal; opacity: .7; }
.gr-diagramm { padding: 12px 10px 8px; margin-bottom: 14px; }
.gr-svg { width: 100%; height: auto; display: block; }
.gr-raster { stroke: rgba(127,127,127,.15); stroke-width: 1; }
.gr-null { stroke: rgba(127,127,127,.55); stroke-width: 1.2; }
.gr-puffer { stroke: #f59e0b; stroke-width: 1.2; stroke-dasharray: 5 4; }
.gr-achse { font-size: 11px; fill: currentColor; opacity: .6; }
.gr-ein { fill: #22c55e; opacity: .75; } .gr-aus { fill: #ef4444; opacity: .7; }
.gr-linie { fill: none; stroke: var(--accent-1); stroke-width: 2.5; stroke-linejoin: round; }
.gr-p { fill: var(--accent-1); } .gr-p-gelb { fill: #f59e0b; } .gr-p-rot { fill: #ef4444; }
.gr-legende { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-size: 12px; opacity: .8; margin-top: 4px; }
.gr-legende i { display: inline-block; width: 12px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.gr-l-linie { background: var(--accent-1); height: 3px !important; vertical-align: 2px !important; } .gr-l-ein { background: #22c55e; } .gr-l-aus { background: #ef4444; }
.gr-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.gr-tabs button { border: 1px solid var(--panel-border); background: var(--surface-2); color: inherit; border-radius: 99px; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.gr-tabs button.an { background: var(--accent-1); border-color: var(--accent-1); color: #fff; }
.gr-tab { padding: 14px 16px; }
.gr-liste { display: flex; flex-direction: column; }
.gr-zeile { display: grid; grid-template-columns: 22px 64px 1fr auto 110px; gap: 10px; align-items: center; padding: 9px 2px; border-bottom: 1px solid rgba(127,127,127,.15); cursor: pointer; }
.gr-zeile.weg { opacity: .45; } .gr-zeile.weg .gr-betrag { text-decoration: line-through; }
.gr-datum { font-weight: 600; font-size: 14px; } .gr-datum small, .gr-was small { display: block; font-weight: 400; font-size: 12px; opacity: .65; }
.gr-was { min-width: 0; } .gr-was b { font-weight: 600; }
.gr-marken { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.gr-m { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: rgba(127,127,127,.15); white-space: nowrap; }
.gr-m.rot { background: rgba(239,68,68,.15); color: #dc2626; } .gr-m.gelb { background: rgba(245,158,11,.18); color: #b45309; }
.gr-betrag { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.gr-form { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 8px; margin-bottom: 10px; }
.gr-vorlagen { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; margin-bottom: 8px; }
.gr-tabelle { overflow-x: auto; } .gr-tabelle table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gr-tabelle th, .gr-tabelle td { text-align: left; padding: 8px; border-bottom: 1px solid rgba(127,127,127,.15); white-space: nowrap; }
.gr-punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: #a0a0a0; }
.gr-punkt.gruen { background: #22c55e; } .gr-punkt.gelb { background: #f59e0b; } .gr-punkt.rot { background: #ef4444; }
.gr-warn-form { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin: 12px 0; }
.gr-schalter { display: flex; gap: 8px; align-items: center; font-weight: 600; padding-bottom: 8px; }
@media (max-width: 640px) {
  .gr-zeile { grid-template-columns: 22px 1fr auto; grid-template-areas: "c was betrag" "c datum marken"; row-gap: 2px; }
  .gr-zeile > input, .gr-zeile > span:first-child { grid-area: c; } .gr-datum { grid-area: datum; font-size: 12px; } .gr-datum small { display: inline; margin-left: 4px; }
  .gr-was { grid-area: was; } .gr-marken { grid-area: marken; } .gr-betrag { grid-area: betrag; }
  .gr-form { grid-template-columns: 1fr 1fr; } .gr-form input[name=name] { grid-column: 1 / -1; }
  .gr-ampel { padding: 12px 14px; }
}
@media (max-width: 640px) {
  .gr-kpis { grid-template-columns: 1fr 1fr; gap: 8px; } .gr-kpis .gr-konto { grid-column: 1 / -1; }
  .gr-kpis .card { padding: 10px 12px; } .gr-kpis b { font-size: 1.15rem; }
  .gr-diagramm { overflow-x: auto; } .gr-diagramm .gr-svg { min-width: 560px; }
}

/* ---------- Menü: zusammenklappbare Gruppen & Schnellsuche ---------- */
.side-items { display: flex; flex-direction: column; gap: 2px; }
.side-kopf { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit; border-radius: var(--r-control); }
.side-kopf:hover { color: var(--text-main); background: var(--surface-hover); }
.side-kopf:focus-visible { outline: 2px solid var(--accent-1); outline-offset: 1px; }
.side-pfeil { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); margin: 0 4px 3px 0; transition: transform .15s var(--ease-fluent); opacity: .7; }
.side-group-wrap.zu .side-pfeil { transform: rotate(-45deg); margin-bottom: 0; }
/* zugeklappt: nur der geöffnete Punkt und Punkte mit Hinweis-Zahl bleiben sichtbar */
.side-group-wrap.zu .side-item:not(.active) { display: none; }
.side-group-wrap.zu .side-item:has(.side-badge:not([hidden])) { display: flex; }
.side-group-wrap.klapp { margin-bottom: 2px; }
.side-suche { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin: 0 0 12px; padding: 7px 10px; border-radius: var(--r-control); border: 1px solid var(--panel-border); background: var(--surface-2); color: var(--text-muted); font: inherit; font-size: .85rem; cursor: pointer; }
.side-suche:hover { border-color: var(--accent-1); color: var(--text-main); }
.side-suche kbd, .nav-suche-fuss kbd { font-family: inherit; font-size: .7rem; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--panel-border); background: var(--surface); opacity: .85; }
@media (hover: none) { .side-suche kbd { display: none; } }
.nav-suche-back { align-items: flex-start !important; padding-top: 12vh; }
.nav-suche { width: min(560px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--panel-border); border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.35); overflow: hidden; }
.nav-suche-feld { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid var(--panel-border); padding: 16px 18px; font: inherit; font-size: 1.05rem; background: transparent; color: var(--text-main); outline: none; }
.nav-suche-liste { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.nav-suche-liste li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; cursor: pointer; color: var(--text-main); }
.nav-suche-liste li.an, .nav-suche-liste li[data-i]:hover { background: var(--accent-soft); }
.nav-suche-liste li.leer { color: var(--text-muted); cursor: default; }
.nav-suche-i { width: 22px; text-align: center; } .nav-suche-t { flex: 1; font-weight: 500; }
.nav-suche-g { font-size: .75rem; color: var(--text-muted); }
.nav-suche-fuss { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--panel-border); font-size: .75rem; color: var(--text-muted); }
@media (max-width: 640px) { .nav-suche-fuss { display: none; } .nav-suche-back { padding-top: 8vh; } }
.side .legal-links { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--panel-border); }



/* Startseite: Hell/Dunkel-Schalter */
.landing-theme { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05); cursor: pointer; font-size: 17px; margin-right: 6px; }
.landing-theme .lt-dunkel { display: none; }
html[data-theme="light"] .landing-theme { border-color: rgba(28,28,28,.15); background: #fff; }
html[data-theme="light"] .landing-theme .lt-hell { display: none; } html[data-theme="light"] .landing-theme .lt-dunkel { display: inline; }



/* Hinweis-Banner (Wartung/Störung) aus dem Intranet */
.mk-hinweis { position: sticky; top: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 44px 9px 16px; font-size: 14px; font-weight: 600; line-height: 1.4; text-align: center; background: #004c93; color: #fff; }
.mk-hinweis.wartung { background: #b45309; } .mk-hinweis.stoerung { background: #b91c1c; }
.mk-hinweis-zu { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: 0; color: #fff; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.mk-hinweis-zu:hover { background: rgba(255,255,255,.3); }



/* ---------- Wünsche & Ideen ---------- */
.wu-neu form { display: flex; flex-direction: column; gap: 10px; }
.wu-form-fuss { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.wu-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 10px; }
.wu-filter button { border: 1px solid var(--panel-border); background: var(--surface-2); color: inherit; border-radius: 99px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.wu-filter button.an { background: var(--accent-1); border-color: var(--accent-1); color: #fff; }
.wu-liste { display: flex; flex-direction: column; gap: 10px; }
.wu-karte { display: grid; grid-template-columns: 62px 1fr auto; gap: 14px; align-items: start; padding: 14px 16px; margin: 0; }
.wu-karte.fertig { opacity: .85; } .wu-karte.abgelehnt { opacity: .6; }
.wu-stimme { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--panel-border); background: var(--surface-2); color: var(--text-muted); cursor: pointer; font: inherit; }
.wu-stimme b { font-size: 1.1rem; color: var(--text-main); } .wu-pfeil { font-size: 12px; }
.wu-stimme.an { background: var(--accent-soft); border-color: var(--accent-1); color: var(--accent-1); }
.wu-stimme:disabled { cursor: default; }
.wu-text h3 { margin: 2px 0 4px; font-size: 1rem; } .wu-text p { margin: 4px 0 0; font-size: 14px; }
.wu-antwort { background: var(--surface-2); border-left: 3px solid var(--accent-1); padding: 6px 10px; border-radius: 0 6px 6px 0; }
.wu-eigen { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-1); vertical-align: 2px; }
.wu-status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(127,127,127,.15); white-space: nowrap; }
.wu-status.ok { background: rgba(34,197,94,.16); color: #15803d; } .wu-status.warn { background: rgba(245,158,11,.18); color: #b45309; }
.wu-status.lila { background: rgba(124,58,237,.14); color: #6d28d9; } .wu-status.info { background: rgba(0,95,184,.12); color: #004c93; }
@media (max-width: 640px) { .wu-karte { grid-template-columns: 54px 1fr; } .wu-status { grid-column: 2; justify-self: start; } }

/* ---------- Support-Zugriff ---------- */
.sp-karte { margin-top: 18px; }
.sp-status { display: inline-block; padding: 7px 12px; border-radius: 8px; background: var(--surface-2); font-size: 14px; margin: 4px 0 12px; }
.sp-status.an { background: rgba(34,197,94,.14); }
.sp-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sp-tabelle { width: 100%; border-collapse: collapse; font-size: 13px; }
.sp-tabelle th, .sp-tabelle td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--panel-border); }
.mk-support { position: sticky; top: 0; z-index: 3001; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 9px 16px; background: #7c2d12; color: #fff; font-size: 14px; text-align: center; }
.mk-support .btn { background: #fff; color: #7c2d12; border: 0; }



/* ---------- „Heute“ auf der Startseite ---------- */
.heute-box { display: grid; grid-template-columns: 1.1fr 1.3fr 0.9fr; gap: 14px; margin-bottom: 22px; }
.ht-karte { background: var(--surface); border: 1px solid var(--panel-border); border-radius: var(--r-card); padding: 14px 16px; min-width: 0; }
.ht-karte h3 { margin: 0 0 10px; font-size: 1rem; }
.ht-karte ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ht-zeile { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--text-main); font: inherit; font-size: 14px; text-align: left; cursor: pointer; line-height: 1.35; }
.ht-zeile:hover { background: var(--accent-soft); }
.ht-zeile b { flex: 0 0 auto; min-width: 22px; } .ht-zeile span { flex: 1; min-width: 0; }
.ht-zeile small { display: block; color: var(--text-muted); font-size: 12px; }
.ht-zeile em { font-style: normal; font-size: 12px; color: var(--text-muted); } .ht-zeile i { font-style: normal; color: var(--text-muted); }
.ht-zeile.ht-rot { background: rgba(239,68,68,.10); } .ht-zeile.ht-gelb { background: rgba(245,158,11,.12); }
.ht-leer { color: var(--text-muted); font-size: 14px; padding: 6px 2px; }
.ht-gut { padding: 10px; border-radius: 8px; background: rgba(34,197,94,.12); font-size: 14px; }
.ht-ampel { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.ht-ampel span { width: 12px; height: 12px; border-radius: 50%; background: #22c55e; }
.ht-ampel.gelb span { background: #f59e0b; } .ht-ampel.rot span { background: #ef4444; }
.ht-geld dl { display: grid; grid-template-columns: auto auto; gap: 4px 10px; margin: 0 0 10px; font-size: 14px; }
.ht-geld dt { color: var(--text-muted); } .ht-geld dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; } .ht-geld dd.rot { color: #dc2626; }
.ht-wb { display: flex; gap: 8px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--panel-border); font-size: 13px; color: var(--text-muted); cursor: pointer; }
.dash-mehr { margin-top: 18px; }
.dash-mehr > summary { cursor: pointer; font-weight: 600; color: var(--text-muted); padding: 10px 2px; list-style: none; }
.dash-mehr > summary::-webkit-details-marker { display: none; }
.dash-mehr > summary::before { content: "▸ "; } .dash-mehr[open] > summary::before { content: "▾ "; }
@media (max-width: 1100px) { .heute-box { grid-template-columns: 1fr 1fr; } .ht-geld { grid-column: 1 / -1; } }
@media (max-width: 700px) { .heute-box { grid-template-columns: 1fr; } }



/* ---------- Angebots-Pakete ---------- */
.pk-leiste { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.pk-liste { display: flex; flex-direction: column; gap: 6px; max-height: 55vh; overflow-y: auto; }
.pk-zeile { display: flex; gap: 6px; align-items: stretch; }
.pk-wahl { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--panel-border); background: var(--surface-2); color: var(--text-main); font: inherit; text-align: left; cursor: pointer; }
.pk-wahl:hover { border-color: var(--accent-1); background: var(--accent-soft); }
.pk-wahl small { color: var(--text-muted); font-size: 12px; }

/* ---------- Kundenbewertungen & Widget ---------- */
.bw-karte { margin-top: 18px; }
.bw-kopf { display: flex; align-items: center; gap: 10px; margin: 10px 0 12px; }
.bw-schnitt { font-size: 1.8rem; } .bw-st { color: #f59e0b; letter-spacing: 1px; }
.bw-liste { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.bw-zeile { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.bw-zeile p { margin: 4px 0 0; font-size: 14px; }
.bw-aktionen { display: flex; gap: 6px; align-items: flex-start; flex-shrink: 0; }
.bw-frei { display: flex; gap: 6px; align-items: center; font-size: 13px; white-space: nowrap; }
.bw-code { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: 12px; box-sizing: border-box; }
.bw-knoepfe { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
@media (max-width: 600px) { .bw-zeile { flex-direction: column; } }

/* ---------- Baustellenmappe ---------- */
.mappe-btn.hat { border-color: var(--accent-1); color: var(--accent-1); }
.mp-modal { max-height: 92vh; overflow: auto; }
.mp-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.mp-knoepfe label { cursor: pointer; }
.mp-notiz { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 8px; }
.mp-notiz textarea { flex: 1; }
.mp-status { margin: 4px 0 10px; }
.mp-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.mp-fotos figure { margin: 0; }
.mp-bild { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.mp-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-fotos figcaption { font-size: 11px; color: var(--text-muted); margin-top: 3px; display: flex; justify-content: space-between; gap: 4px; }
.mp-zeile { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); margin-bottom: 6px; }
.mp-zeile > div { flex: 1; min-width: 0; } .mp-zeile p { margin: 0 0 2px; font-size: 14px; }
.mp-weg { background: none; border: 0; cursor: pointer; font-size: 13px; opacity: .7; } .mp-weg:hover { opacity: 1; }
.mp-leer { padding: 14px; text-align: center; }
@media (max-width: 600px) { .mp-notiz { flex-direction: column; align-items: stretch; } .mp-fotos { grid-template-columns: repeat(2, 1fr); } }

/* ==== HELL-STARTSEITE (generiert) ==== */
html[data-theme="light"] :is(#landing, #app) .pill.st-angenommen { color:#047857!important }
html[data-theme="light"] :is(#landing, #app) .modal-back { background:rgba(255,255,255,0.75)!important }
html[data-theme="light"] :is(#landing, #app) .doc-logo-ph { background:#f3f3f3!important }
html[data-theme="light"] :is(#landing, #app) .dc-trade { color:#526072!important }
html[data-theme="light"] :is(#landing, #app) .dm-line span { color:#5d5d5d!important }
html[data-theme="light"] :is(#landing, #app) .doc-to small { color:#5d5d5d!important }
html[data-theme="light"] :is(#landing, #app) .doc-table th { color:#526072!important }
html[data-theme="light"] :is(#landing, #app) .doc-pay-qr span { color:#526072!important }
html[data-theme="light"] :is(#landing, #app) .doc-note { color:#526072!important }
html[data-theme="light"] :is(#landing, #app) .doc-footer { color:#5d5d5d!important }
html[data-theme="light"] :is(#landing, #app) .doc-type-btn.active { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .qp-tr { border-bottom:1px solid rgba(28,28,28,0.08)!important }
html[data-theme="light"] :is(#landing, #app) .feier-overlay { color:#1b1b1b!important; background:#f3f3f3!important }
html[data-theme="light"] :is(#landing, #app) .fo-title { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .fo-close { background:rgba(28,28,28,0.08)!important; border:1px solid rgba(28,28,28,0.20)!important; color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .fo-close:hover { background:rgba(28,28,28,0.08)!important }
html[data-theme="light"] :is(#landing, #app) .fo-body { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .fo-checking { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .fo-badge { background:rgba(28,28,28,0.08)!important; border:1px solid rgba(28,28,28,0.20)!important; color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .fo-headline { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .fo-time { background:rgba(255,255,255,0.75)!important; border:1px solid rgba(28,28,28,0.19)!important; color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .fo-time .tn { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .fo-card { background:rgba(28,28,28,0.06)!important; border:1px solid rgba(28,28,28,0.16)!important; color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .fo-card h5 { color:#363636!important }
html[data-theme="light"] :is(#landing, #app) .fo-line { border-bottom:1px solid rgba(28,28,28,0.10)!important; color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .fo-motiv { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .fo-btn.open { background:rgba(28,28,28,0.08)!important; color:#1b1b1b!important; border:1px solid rgba(28,28,28,0.20)!important }
html[data-theme="light"] :is(#landing, #app) .fo-btn.open:hover { background:rgba(28,28,28,0.08)!important }
html[data-theme="light"] :is(#landing, #app) .cycle-discount-tag { background:#f3f3f3!important; color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .card-ribbon { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .card-current-badge { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .m-head-badge { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .paywall-modal { border:1px solid rgba(28,28,28,0.16)!important; box-shadow:0 10px 30px rgba(28,28,28,.08)!important }
html[data-theme="light"] :is(#landing, #app) .pw-benefit { background:rgba(28,28,28,0.03)!important }
html[data-theme="light"] :is(#landing, #app) .pay-hero-card:hover { border-color:rgba(28,28,28,0.20)!important }
html[data-theme="light"] :is(#landing, #app) .pay-live-slip { background:rgba(28,28,28,0.06)!important }
html[data-theme="light"] :is(#landing, #app) .live-note { background:rgba(28,28,28,0.04)!important }
html[data-theme="light"] :is(#landing, #app) .pay-tag-amount { background:rgba(28,28,28,0.05)!important }
html[data-theme="light"] :is(#landing, #app) .pay-pill.active { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .preset-pill { background:rgba(28,28,28,0.04)!important }
html[data-theme="light"] :is(#landing, #app) .pay-card-footer .link-btn:hover { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .receipt-chip { background:rgba(28,28,28,0.05)!important }
@media (max-width: 900px) {
html[data-theme="light"] :is(#landing, #app) .side.open { box-shadow:0 10px 30px rgba(28,28,28,.08)!important }
html[data-theme="light"] :is(#landing, #app) .side-backdrop { background:rgba(255,255,255,0.75)!important }
}
html[data-theme="light"] :is(#landing, #app) .ex-tab-btn:hover { background:rgba(28,28,28,0.04)!important }
html[data-theme="light"] :is(#landing, #app) .ex-tab-btn.active { color:#0369a1!important }
html[data-theme="light"] :is(#landing, #app) .alias-badge { color:#0369a1!important }
html[data-theme="light"] :is(#landing, #app) .alias-badge .alias-del-btn { color:#5d5d5d!important }
html[data-theme="light"] :is(#landing, #app) .ex-copy-val { background:rgba(28,28,28,0.06)!important; color:#0369a1!important }
html[data-theme="light"] :is(#landing, #app) .cookie-banner { box-shadow:0 10px 30px rgba(28,28,28,.08)!important }
html[data-theme="light"] :is(#landing, #app) .euer-banner-content h4 { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .euer-banner-content p { color:#363636!important }
html[data-theme="light"] :is(#landing, #app) .euer-kpi-card { background:rgba(255,255,255,0.75)!important; border:1px solid rgba(28,28,28,0.12)!important }
html[data-theme="light"] :is(#landing, #app) .euer-kpi-label { color:#5d5d5d!important }
html[data-theme="light"] :is(#landing, #app) .euer-kpi-value { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .euer-kpi-sub { color:#5d5d5d!important }
html[data-theme="light"] :is(#landing, #app) .euer-meter-card { background:rgba(255,255,255,0.75)!important; border:1px solid rgba(28,28,28,0.12)!important }
html[data-theme="light"] :is(#landing, #app) .euer-meter-header h4 { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .euer-meter-tag { color:#047857!important }
html[data-theme="light"] :is(#landing, #app) .euer-meter-tag.amber { color:#b45309!important }
html[data-theme="light"] :is(#landing, #app) .euer-progress-track { background:rgba(28,28,28,0.08)!important }
html[data-theme="light"] :is(#landing, #app) .euer-meter-footer { color:#5d5d5d!important }
html[data-theme="light"] :is(#landing, #app) .euer-meter-hint { color:#526072!important }
html[data-theme="light"] :is(#landing, #app) .euer-chart-card { background:rgba(255,255,255,0.75)!important; border:1px solid rgba(28,28,28,0.12)!important }
html[data-theme="light"] :is(#landing, #app) .euer-bars-wrap { border-bottom:1px solid rgba(28,28,28,0.14)!important }
html[data-theme="light"] :is(#landing, #app) .euer-bar-month { color:#5d5d5d!important }
html[data-theme="light"] :is(#landing, #app) .erechnung-col { background:rgba(255,255,255,0.80)!important; border:1px solid rgba(28,28,28,0.12)!important }
html[data-theme="light"] :is(#landing, #app) .xml-glowing-badge .xml-sub { color:#363636!important }
html[data-theme="light"] :is(#landing, #app) .euer-kpi-card { background:rgba(255,255,255,0.85)!important; border:1px solid rgba(28,28,28,0.12)!important }
html[data-theme="light"] :is(#landing, #app) .euer-kpi-card.highlight { background:rgba(255,255,255,0.95)!important; border:1px solid rgba(28,28,28,0.16)!important }
html[data-theme="light"] :is(#landing, #app) .euer-kpi-label-text { color:#5d5d5d!important }
html[data-theme="light"] :is(#landing, #app) .euer-kpi-value { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .euer-kpi-sub { color:#526072!important }
html[data-theme="light"] :is(#landing, #app) .euer-chart-card { background:rgba(255,255,255,0.80)!important; border:1px solid rgba(28,28,28,0.12)!important }
html[data-theme="light"] :is(#landing, #app) .euer-chart-header h4 { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .euer-chart-legend { color:#5d5d5d!important }
html[data-theme="light"] :is(#landing, #app) .euer-axis { color:#526072!important }
html[data-theme="light"] :is(#landing, #app) .euer-bar-month { color:#5d5d5d!important }
html[data-theme="light"] :is(#landing, #app) .euer-slider-track { background:rgba(28,28,28,0.08)!important }
html[data-theme="light"] :is(#landing, #app) .euer-donut-card { background:rgba(255,255,255,0.80)!important; border:1px solid rgba(28,28,28,0.12)!important }
html[data-theme="light"] :is(#landing, #app) .euer-donut-card h4 { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .donut-callout .c-name { color:#5d5d5d!important }
html[data-theme="light"] :is(#landing, #app) .donut-callout .c-val { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .euer-bottom-card { background:rgba(255,255,255,0.80)!important; border:1px solid rgba(28,28,28,0.12)!important }
html[data-theme="light"] :is(#landing, #app) .euer-bottom-card-head h4 { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .euer-tax-row { background:rgba(28,28,28,0.02)!important; border:1px solid rgba(28,28,28,0.09)!important }
html[data-theme="light"] :is(#landing, #app) .euer-tax-info strong { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .euer-tax-info small { color:#5d5d5d!important }
html[data-theme="light"] :is(#landing, #app) .euer-tx-table th { color:#5d5d5d!important; border-bottom:1px solid rgba(28,28,28,0.12)!important }
html[data-theme="light"] :is(#landing, #app) .euer-tx-table td { border-bottom:1px solid rgba(28,28,28,0.08)!important }
html[data-theme="light"] :is(#landing, #app) .euer-tx-table td.ok { color:#047857!important }
html[data-theme="light"] :is(#landing, #app) .euer-gauge-val strong { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .euer-gauge-footer span { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .euer-gauge-footer small { color:#047857!important }
html[data-theme="light"] :is(#landing, #app) .dash-orders-card { background:rgba(255,255,255,0.80)!important; border:1px solid rgba(28,28,28,0.12)!important }
html[data-theme="light"] :is(#landing, #app) .dash-orders-table th { background:rgba(255,255,255,0.97)!important; color:#5d5d5d!important; border-bottom:1px solid rgba(28,28,28,0.14)!important }
html[data-theme="light"] :is(#landing, #app) .dash-orders-table td { border-bottom:1px solid rgba(28,28,28,0.08)!important; color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .dash-orders-table tr:hover td { background:rgba(28,28,28,0.03)!important }
html[data-theme="light"] :is(#landing, #app) .dash-order-nr { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .dash-order-proj { color:#363636!important }
html[data-theme="light"] :is(#landing, #app) .dash-order-cust { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .dash-order-sum { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .ub-title { color:#282828!important }
html[data-theme="light"] :is(#landing, #app) .ub-card h3 { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .ub-card p { color:#363636!important }
html[data-theme="light"] :is(#landing, #app) .doc-sign .sig { color:#526072!important }
html[data-theme="light"] :is(#landing, #app) [data-theme="dark"] .pdf-guides-list a { background:rgba(28,28,28,0.05)!important }
html[data-theme="light"] :is(#landing, #app) .zt-punkt { background:#f3f3f3!important }
html[data-theme="light"] :is(#landing, #app) .zt-laeuft { color:#047857!important }
html[data-theme="light"] :is(#landing, #app) .side-badge { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .auto-tage input:checked + span { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .gr-tabs button.an { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .mk-hinweis { background:#f3f3f3!important }
html[data-theme="light"] :is(#landing, #app) .mk-hinweis-zu { background:rgba(28,28,28,0.08)!important; color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .mk-hinweis-zu:hover { background:rgba(28,28,28,0.08)!important }
html[data-theme="light"] :is(#landing, #app) .wu-filter button.an { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) .mk-support { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) [style*="color:#ffffff"] { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) [style*="color:#a0a0a0"] { color:#5d5d5d!important }
html[data-theme="light"] :is(#landing, #app) [style*="color:#fbbf24"] { color:#b45309!important }
html[data-theme="light"] :is(#landing, #app) [style*="background:rgba(40,40,40,0.5)"] { background:rgba(255,255,255,0.75)!important }
html[data-theme="light"] :is(#landing, #app) [style*="color:#60cdff"] { color:#004c93!important }
html[data-theme="light"] :is(#landing, #app) [style*="color:#e3e3e3"] { color:#282828!important }
html[data-theme="light"] :is(#landing, #app) [style*="color: #34d399"] { color:#047857!important }
html[data-theme="light"] :is(#landing, #app) [style*="box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(96, 205, 255, 0.15)"] { box-shadow:0 10px 30px rgba(28,28,28,.08)!important }
html[data-theme="light"] :is(#landing, #app) [style*="border-bottom: 2px solid rgba(255, 255, 255, 0.1)"] { border-bottom:2px solid rgba(28,28,28,0.14)!important }
html[data-theme="light"] :is(#landing, #app) [style*="color: #ffffff"] { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) [style*="color: #a0a0a0"] { color:#5d5d5d!important }
html[data-theme="light"] :is(#landing, #app) [style*="color: #f5f5f5"] { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) [style*="color: #60cdff"] { color:#0369a1!important }
html[data-theme="light"] :is(#landing, #app) [style*="background: rgba(40, 40, 40, 0.7)"] { background:rgba(255,255,255,0.80)!important }
html[data-theme="light"] :is(#landing, #app) [style*="color: #60cdff"] { color:#004c93!important }
html[data-theme="light"] :is(#landing, #app) [style*="color: #c2c2c2"] { color:#363636!important }
html[data-theme="light"] :is(#landing, #app) [style*="border-top: 1px solid rgba(255, 255, 255, 0.12)"] { border-top:1px solid rgba(28,28,28,0.16)!important }
html[data-theme="light"] :is(#landing, #app) [style*="background: rgba(28, 28, 28, 0.85)"] { background:rgba(255,255,255,0.95)!important }
html[data-theme="light"] :is(#landing, #app) [style*="box-shadow: 0 10px 30px rgba(0,0,0,0.4)"] { box-shadow:0 10px 30px rgba(28,28,28,.08)!important }
html[data-theme="light"] :is(#landing, #app) [style*="border-top: 1px solid rgba(255, 255, 255, 0.1)"] { border-top:1px solid rgba(28,28,28,0.14)!important }
html[data-theme="light"] :is(#landing, #app) [style*="border-color:rgba(255,255,255,0.25)"] { border-color:rgba(28,28,28,0.20)!important }
html[data-theme="light"] :is(#landing, #app) [style*="color:#8a8a8a"] { color:#526072!important }
html[data-theme="light"] :is(#landing, #app) [style*="color: #c2c2c2"],
html[data-theme="light"] :is(#landing, #app) [style*="color:#c2c2c2"],
html[data-theme="light"] :is(#landing, #app) [style*="color: #e3e3e3"],
html[data-theme="light"] :is(#landing, #app) [style*="color:#e3e3e3"],
html[data-theme="light"] :is(#landing, #app) [style*="color: #f5f5f5"],
html[data-theme="light"] :is(#landing, #app) [style*="color:#f5f5f5"] { color:#363636!important }
html[data-theme="light"] :is(#landing, #app) [style*="color: #ffffff"],
html[data-theme="light"] :is(#landing, #app) [style*="color:#ffffff"],
html[data-theme="light"] :is(#landing, #app) [style*="color: #fff"],
html[data-theme="light"] :is(#landing, #app) [style*="color:#fff"] { color:#1b1b1b!important }
html[data-theme="light"] :is(#landing, #app) [style*="color: #a0a0a0"],
html[data-theme="light"] :is(#landing, #app) [style*="color:#a0a0a0"],
html[data-theme="light"] :is(#landing, #app) [style*="color: #8a8a8a"],
html[data-theme="light"] :is(#landing, #app) [style*="color:#8a8a8a"] { color:#526072!important }
html[data-theme="light"] :is(#landing, #app) [style*="color: #34d399"],
html[data-theme="light"] :is(#landing, #app) [style*="color:#34d399"] { color:#047857!important }
html[data-theme="light"] :is(#landing, #app) [style*="color: #60cdff"],
html[data-theme="light"] :is(#landing, #app) [style*="color:#60cdff"] { color:#004c93!important }
html[data-theme="light"] :is(#landing, #app) [style*="color: #60cdff"],
html[data-theme="light"] :is(#landing, #app) [style*="color:#60cdff"] { color:#0369a1!important }
html[data-theme="light"] :is(#landing, #app) [style*="color: #fbbf24"],
html[data-theme="light"] :is(#landing, #app) [style*="color:#fbbf24"] { color:#b45309!important }
html[data-theme="light"] :is(#landing, #app) [style*="background: rgba(40, 40, 40, 0.7)"],
html[data-theme="light"] :is(#landing, #app) [style*="background:rgba(40, 40, 40, 0.7)"],
html[data-theme="light"] :is(#landing, #app) [style*="background: rgba(40,40,40,0.7)"],
html[data-theme="light"] :is(#landing, #app) [style*="background:rgba(40,40,40,0.7)"],
html[data-theme="light"] :is(#landing, #app) [style*="background: rgba(28, 28, 28, 0.7)"],
html[data-theme="light"] :is(#landing, #app) [style*="background:rgba(28, 28, 28, 0.7)"],
html[data-theme="light"] :is(#landing, #app) [style*="background: rgba(28,28,28,0.6)"],
html[data-theme="light"] :is(#landing, #app) [style*="background:rgba(28,28,28,0.6)"] { background:#ffffff!important }
html[data-theme="light"] :is(#landing, #app) [style*="border-top: 1px solid rgba(255, 255, 255"] { border-top-color: rgba(28,28,28,.1)!important }
html[data-theme="light"] :is(#landing, #app) a .n.n.n { background:#004c93!important; color:#fff!important }
/* ==== ENDE HELL-STARTSEITE ==== */

/* ============================================================
   STARTSEITE IN DER INTRANET-LINIE
   Gleiche Flächen, Linien, Radien und Schriftgrößen wie /intranet.
   Nutzt die Theme-Variablen, daher hell und dunkel ohne Extra-Regeln.
   ============================================================ */
/* Startseite: Stil jetzt in /landing.css */

/* App-Kopfzeilen wie im Intranet: normale Schreibweise statt Großbuchstaben */
.page-head h1, #hello, .dash-head h1 { text-transform: none !important; letter-spacing: -0.01em !important; font-family: var(--font-display); font-weight: 600; }
.page-head .sub, #helloSub { text-transform: none !important; letter-spacing: 0 !important; font-size: 0.92rem; color: var(--text-muted); }

/* Seitenleiste wie im Intranet: bündig am Rand, eigene Nav-Fläche statt schwebender Karte */
:root, [data-theme="light"] { --nav-bg: #ebebeb; }
[data-theme="dark"] { --nav-bg: #202020; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --nav-bg: #202020; } }
@media (min-width: 901px) {
  .topbar { margin-bottom: 0; }
  .shell { max-width: none; padding: 0 24px 0 0; gap: 24px; }
  .side {
    top: 55px; height: calc(100vh - 55px); padding: 12px 8px;
    border-radius: 0; border: none; border-right: 1px solid var(--divider); box-shadow: none; background: var(--nav-bg);
  }
  .shell > main, .shell > .main, .shell > section { padding-top: 20px; }
  .side-item.active { background: var(--surface); box-shadow: var(--shadow-card); }
}

/* Menü-Symbole: schlichte Linien wie im Intranet statt bunter Emojis */
.side-item .i { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; color: var(--text-muted); }
.side-item .i svg, .nav-suche-i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side-item.active .i { color: var(--accent-text); }
.side-item.feier, .side-item.feier:hover { color: inherit; background: transparent; }
.side-item.feier.active { background: var(--surface); }
.side-group-wrap.klapp { margin-top: 4px; }

/* Feierabend: eigene Karte ganz oben im Menü, warmer Abendton */
:root, [data-theme="light"] { --feier-bg: #fff3e0; --feier-bg-h: #ffe8c7; --feier-line: #f2c98f; --feier-ic-bg: #c45a00; --feier-ic: #ffffff; --feier-text: #5a2d00; --feier-sub: #8a4f14; }
[data-theme="dark"] { --feier-bg: #33261a; --feier-bg-h: #3d2d1d; --feier-line: #5c4024; --feier-ic-bg: #ffb45c; --feier-ic: #2a1a08; --feier-text: #ffe2bd; --feier-sub: #d9a46a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --feier-bg: #33261a; --feier-bg-h: #3d2d1d; --feier-line: #5c4024; --feier-ic-bg: #ffb45c; --feier-ic: #2a1a08; --feier-text: #ffe2bd; --feier-sub: #d9a46a; } }

.side-item.feier-karte {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin: 0 0 12px; padding: 10px 12px;
  background: var(--feier-bg); border: 1px solid var(--feier-line); border-radius: var(--r-card);
  color: var(--feier-text); text-align: left; box-shadow: none; transition: background .15s, border-color .15s;
}
.side-item.feier-karte:hover { background: var(--feier-bg-h); }
.side-item.feier-karte.active { background: var(--feier-bg-h); border-color: var(--feier-ic-bg); box-shadow: inset 3px 0 0 var(--feier-ic-bg); }
.side-item.feier-karte::before { display: none; }
.side-item.feier-karte .feier-ic { width: 34px; height: 34px; border-radius: 6px; background: var(--feier-ic-bg); color: var(--feier-ic); }
.side-item.feier-karte .feier-ic svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.feier-txt { display: grid; flex: 1; min-width: 0; line-height: 1.2; }
.feier-txt b { font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; }
.feier-txt small { font-size: 0.76rem; color: var(--feier-sub); }
.feier-pfeil { display: inline-grid; color: var(--feier-sub); }
.feier-pfeil svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Menü-Bereiche mit Reitern */
.side-versteckt { display: none !important; }
.side-hub { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 0; border-radius: var(--r-control); background: transparent; color: var(--text-muted); font-family: var(--font-body); font-weight: 500; font-size: .9rem; text-align: left; cursor: pointer; position: relative; }
.side-hub[hidden] { display: none; }
.side-hub:hover { background: var(--surface-hover); }
.side-hub.active { background: var(--surface); box-shadow: var(--shadow-card); }
.side-hub.active::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 16px; margin-top: -8px; border-radius: 2px; background: var(--accent-1); }
.side-hub .i { display: inline-grid; place-items: center; width: 20px; height: 20px; color: var(--text-muted); }
.side-hub.active .i { color: var(--accent-text); }
.side-hub .i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side-hubs { border-top: 1px solid var(--divider); padding-top: 8px; margin-top: 4px; }
.hub-reiter { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--divider); margin: 0 0 18px; }
.hub-reiter button { border: 0; background: none; color: var(--text-muted); font: inherit; font-size: .9rem; font-weight: 500; padding: 8px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.hub-reiter button:hover { color: var(--text-main); }
.hub-reiter button.an { color: var(--text-main); border-bottom-color: var(--accent-1); font-weight: 600; }
@media (max-width: 900px) { .side-hub { min-height: 44px; padding: 10px 12px; font-size: .92rem; } }
.side-hub:hover, .side-hub.active { color: var(--text-main); }

/* Großhändler */
.gh-block { margin-bottom: 28px; }
.gh-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.gh-kopf h2 { font-size: 1.05rem; margin: 0; }
.gh-tabelle { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--panel-border); border-radius: var(--r-card); overflow: hidden; font-size: .88rem; }
.gh-tabelle th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--divider); }
.gh-tabelle td { padding: 8px 10px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.gh-tabelle tr:last-child td { border-bottom: 0; }
.gh-tabelle td small { display: block; }
.gh-tabelle .r, .gh-rab .r { text-align: right; font-variant-numeric: tabular-nums; }
.gh-akt { text-align: right; min-width: 200px; }
.gh-akt .btn { margin: 0 0 4px 4px; }
.gh-chip { display: inline-block; font-size: .7rem; font-weight: 600; padding: 1px 6px; border-radius: var(--r-control); border: 1px solid var(--panel-border); background: var(--surface-2); color: var(--text-muted); }
.gh-leer { background: var(--surface); border: 1px dashed var(--control-border-bottom); border-radius: var(--r-card); padding: 16px 18px; }
.gh-leer p { margin: 0 0 4px; }
.gh-form { display: grid; gap: 12px; }
.gh-form label { display: grid; gap: 4px; font-size: .88rem; }
.gh-form label > span { font-weight: 600; }
.gh-form details { border: 1px solid var(--panel-border); border-radius: var(--r-card); padding: 8px 12px; display: grid; gap: 10px; }
.gh-form summary { cursor: pointer; font-weight: 600; }
.gh-check { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: .88rem; }
.gh-hinweis { background: var(--warning-bg); border: 1px solid var(--warning-border); border-radius: var(--r-control); padding: 8px 12px; font-size: .86rem; }
.gh-rab input { width: 100%; }
.gh-korb { background: var(--surface); border: 1px solid var(--panel-border); border-radius: var(--r-card); padding: 12px 14px; margin-bottom: 10px; }
.gh-korb header { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.gh-korb ul { margin: 8px 0; padding: 0; list-style: none; font-size: .88rem; }
.gh-korb li { padding: 2px 0; }
.gh-korb li span { display: inline-block; min-width: 64px; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.gh-korb footer { display: flex; gap: 6px; }
#ghSucheLief { max-width: 220px; }
@media (max-width: 760px) { .gh-tabelle { display: block; overflow-x: auto; } }
.gh-hinweis.gh-fehler { background: var(--danger-bg); border-color: var(--danger-border); }
.gh-warn { color: var(--warning); font-weight: 600; }
.gh-diag { margin: 10px 0; font-size: .86rem; }
.gh-diag summary { cursor: pointer; color: var(--text-muted); }
.gh-diag ul { margin: 6px 0 0; padding-left: 18px; }
.gh-pre { margin: 4px 0; padding: 6px 8px; background: var(--surface-2); border: 1px solid var(--panel-border); border-radius: var(--r-control); font: 12px/1.4 var(--font-mono); white-space: pre-wrap; word-break: break-all; }
.gh-support { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--divider); display: grid; gap: 8px; }
.gh-support.an { background: var(--accent-soft); border: 1px solid var(--panel-border); border-radius: var(--r-card); padding: 12px 14px; }
.gh-support p { margin: 0; }
.gh-support .gh-check { margin-top: 0; align-items: flex-start; }
.gh-support .gh-check input { margin-top: 3px; }
.gh-support .btn:disabled { opacity: .5; cursor: not-allowed; }

/* Zustimmung bei der Registrierung (AGB, AVV, Datenschutz) */
.check-row.zustimmung {
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0 6px;
  padding: 12px 14px;
  border: 1px solid var(--border, rgba(255,255,255,.12));
  border-radius: 10px;
  background: rgba(228, 87, 46, 0.06);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted, inherit);
  transition: border-color .15s, background .15s;
}
.check-row.zustimmung:hover { border-color: rgba(228, 87, 46, 0.55); }
.check-row.zustimmung:has(input:checked) { border-color: #e4572e; background: rgba(228, 87, 46, 0.12); color: var(--text-main, inherit); }
.check-row.zustimmung input { accent-color: #e4572e; width: 18px; height: 18px; margin-top: 2px; flex: none; }
.check-row.zustimmung b { color: var(--text-main, inherit); }
.check-row.zustimmung a { color: #ee6a41; text-decoration: underline; text-decoration-color: rgba(238,106,65,.4); text-underline-offset: 2px; font-weight: 600; }
.check-row.zustimmung a:hover { text-decoration-color: currentColor; }

/* Abo-Seite: ruhig und kurz (15.11.2026) */
.abo-fussnote { margin: 10px 0 0; font-size: 0.84rem; text-align: center; }
.abo-drive { margin-top: 20px; padding: 20px 22px; }
.abo-drive-kopf { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.abo-drive-kopf h3 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.abo-drive-kopf p { margin: 4px 0 0; font-size: 0.88rem; line-height: 1.5; }
.abo-drive-aktionen { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.abo-detail { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.abo-detail > summary { cursor: pointer; font-weight: 600; font-size: 0.98rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.abo-detail > summary::-webkit-details-marker { display: none; }
.abo-detail > summary::after { content: "▾"; color: var(--text-muted); transition: transform .15s; }
.abo-detail[open] > summary::after { transform: rotate(180deg); }
.abo-detail > summary .muted { font-weight: 400; font-size: 0.84rem; }
.abo-detail-inhalt { padding-top: 12px; }
.abo-kurz { margin: 0 0 12px; font-size: 0.86rem; line-height: 1.5; }
.abo-features { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
.abo-features > summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; }
.abo-detail > summary .muted { margin-left: auto; }
.abo-fussnote { margin: 14px 0 6px; }
.abo-lokal-link { margin: 0 0 6px; text-align: center; }

/* Lange Hinweise auf eine Zeile kürzen (verdichten.js) */
.vd-kurz { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; }
.vd-mehr { background: none; border: 0; padding: 0; margin: 2px 0 8px; color: var(--accent, #e4572e); font: inherit; font-size: 0.82rem; cursor: pointer; }
.vd-mehr:hover { text-decoration: underline; }

/* Einklappbare Karten: nur die Überschrift, bis man sie öffnet */
details.sektion { margin-top: 14px; padding: 16px 22px; }
details.sektion > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--font-display, inherit); font-size: 1.1rem; font-weight: 600; }
details.sektion > summary::-webkit-details-marker { display: none; }
details.sektion > summary::after { content: "▾"; color: var(--text-muted); transition: transform .15s; }
details.sektion[open] > summary::after { transform: rotate(180deg); }
details.sektion > summary .muted { margin-left: auto; font-size: 0.84rem; font-weight: 400; }
details.sektion[hidden] { display: none; }

/* Zahlung: eine ruhige Spalte */
.zahl-spalten { max-width: 760px; display: flex; flex-direction: column; gap: 0; }
.zahl-spalten > div { display: flex; flex-direction: column; gap: 0 !important; }

/* Dialoge: seltene Felder einklappen */
details.mehr-felder { margin: 4px 0 10px; }
details.mehr-felder > summary { cursor: pointer; color: var(--text-muted); font-size: 0.9rem; padding: 6px 0; list-style: none; }
details.mehr-felder > summary::-webkit-details-marker { display: none; }
details.mehr-felder > summary::before { content: "+ "; }
details.mehr-felder[open] > summary::before { content: "– "; }

/* ============================================================
   Abo: Corpvex und Drive nebeneinander. Konto-Seiten (Rechnungen, Zahlungsarten).
   Stand 17.11.2026, Entwurf docs/entwuerfe/abo-drive-layout
   ============================================================ */
.abo-plaene-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 6px 0 18px; max-width: 920px; }
.abo-plaene-kopf h2 { margin: 0; font-size: 1.5rem; }
.abo-plaene { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 920px; margin-bottom: 22px; align-items: stretch; }
.abo-plaene .price-card { margin: 0; }
#pricingCardsContainer.abo-plan-spalte { display: flex; }
#pricingCardsContainer.abo-plan-spalte > .price-card { flex: 1; }
.abo-zweit { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.abo-mehr-speicher { margin-top: 14px; font-size: 0.92rem; }
.abo-konto-link { font-size: 0.92rem; margin-top: 6px; }
#driveBackupBox.abo-detail { max-width: 920px; padding: 14px 20px; margin: 0 0 18px; }
@media (max-width: 860px) { .abo-plaene { grid-template-columns: 1fr; } }

.konto-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.konto-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 84px; }
.konto-nav h3 { margin: 0 0 10px; padding: 0 12px; font-size: 1.4rem; }
.konto-nav a { padding: 10px 14px; border-radius: var(--r-control); color: var(--text-muted); text-decoration: none; }
.konto-nav a:hover { background: var(--surface-hover); color: var(--text-main); }
.konto-nav a.active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.konto-nav .konto-zurueck { margin-top: 14px; border: 1px solid var(--panel-border); text-align: center; }
.konto-inhalt { max-width: 900px; min-width: 0; }
.konto-kennzahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 20px; }
.konto-kennzahlen .card { padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; }
.konto-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); }
.konto-zahl { font-family: var(--font-display); font-size: 1.6rem; }
.konto-zahlarten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.konto-zahlarten .card { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.konto-h2 { font-size: 1.35rem; margin: 28px 0 12px; }
.konto-guthaben { padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.konto-empfaenger { padding: 16px 20px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
@media (max-width: 900px) {
  .konto-layout { grid-template-columns: 1fr; }
  .konto-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .konto-kennzahlen, .konto-zahlarten { grid-template-columns: 1fr; }
}

/* Rechtstexte mit eigener Adresse (/agb, /datenschutz, /impressum, /avv) */
.rechts-seite { min-height: 100vh; background: var(--bg-color); color: var(--text-main); }
.rechts-seite[hidden] { display: none; }
.rechts-kopf { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 14px 28px; border-bottom: 1px solid var(--panel-border); background: var(--surface); }
.rechts-marke { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--text-main); text-decoration: none; margin-right: auto; }
.rechts-kopf nav { display: flex; gap: 18px; flex-wrap: wrap; }
.rechts-kopf nav a { color: var(--text-muted); text-decoration: none; }
.rechts-kopf nav a:hover, .rechts-kopf nav a.aktiv { color: var(--accent-text); }
.rechts-zurueck { color: var(--accent-text); text-decoration: none; }
.rechts-inhalt { max-width: 860px; margin: 0 auto; padding: 32px 24px 80px; }
.rechts-inhalt h1 { font-size: 2.2rem; margin: 0 0 20px; }
