/* ==========================================================================
   MÉCÈNE — ZEN ATELIER DESIGN SYSTEM
   Aesthetic: "Quiet Luxury, Samt-Atelier, Höchste Schlichtheit & Angstfreie UX"
   ========================================================================== */

:root {
  /* Warme, beruhigende Farbpalette */
  --bg-deep: #0e0813;
  --bg-card: rgba(26, 15, 33, 0.75);
  --bg-card-hover: rgba(35, 20, 45, 0.85);
  --bg-input: rgba(18, 9, 24, 0.85);

  --border-subtle: rgba(230, 202, 101, 0.16);
  --border-focus: rgba(230, 202, 101, 0.55);

  --accent-gold: #e6ca65;
  --accent-gold-bright: #f5df88;
  --accent-gold-dark: #b89736;
  --accent-velvet: #72163b;

  --text-main: #fbf9f4;
  --text-muted: #bda9c8;
  --text-dim: #7f6a8b;

  --status-emerald: #10b981;

  /* Typografie */
  --font-serif: 'Cinzel', Georgia, serif;
  --font-book: 'Newsreader', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Geometrie & Schatten */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-warm: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-gold-soft: 0 0 25px rgba(230, 202, 101, 0.12);
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* GPU-kompositierter Hintergrund: absolut ruckelfrei */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(94, 23, 73, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse at 80% 100%, rgba(50, 14, 68, 0.20) 0%, transparent 60%),
    #0e0813;
  transform: translateZ(0);
}

/* Hilfsklassen */
.hidden { display: none !important; }
.hidden-input { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   1. RUHIGER HEADER
   ========================================================================== */
.zen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(16, 9, 22, 0.94);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-crest {
  font-size: 1.7rem;
  color: var(--accent-gold);
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-main);
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-top: -2px;
}

.zen-promise {
  display: flex;
  align-items: center;
}

.promise-badge {
  font-size: 0.8rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.zen-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.zen-select {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.zen-select:focus {
  border-color: var(--border-focus);
}

.btn-zen-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-zen-ghost:hover {
  color: var(--text-main);
  border-color: var(--border-focus);
  background: rgba(230, 202, 101, 0.06);
}

/* ==========================================================================
   2. HAUPTBÜHNE (ZEN STAGE: MAX 840PX ZENTRIERT)
   ========================================================================== */
.zen-stage {
  max-width: 840px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  flex: 1;
}

/* Hero Begrüßung */
.zen-hero {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.zen-headline {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.zen-subline {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
}

/* Die 3 ruhigen Karten */
.zen-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-warm);
  position: relative;
  transition: border-color 0.25s ease;
}

.zen-card:hover {
  border-color: rgba(230, 202, 101, 0.30);
}

.step-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(230, 202, 101, 0.10);
  border: 1px solid rgba(230, 202, 101, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.card-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

/* Voice Hero Box */
.voice-hero-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.75rem 1rem;
  background: rgba(14, 7, 18, 0.6);
  border: 1px dashed rgba(230, 202, 101, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.zen-record-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #72163b, #4a0e26);
  border: 1px solid rgba(230, 202, 101, 0.4);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(114, 22, 59, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.zen-record-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold-bright);
  box-shadow: 0 6px 28px rgba(114, 22, 59, 0.6), 0 0 15px rgba(230, 202, 101, 0.3);
}

.zen-record-btn.recording {
  background: #dc2626 !important;
  border-color: #f87171 !important;
  animation: pulse-recording 1.5s infinite;
}

@keyframes pulse-recording {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.zen-timer {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: #f87171;
  font-weight: 600;
}

.zen-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin: 1.25rem 0;
}

.zen-divider::before,
.zen-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(230, 202, 101, 0.12);
}

.zen-divider span {
  padding: 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Text & Upload Input Group */
.zen-input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.zen-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 95px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zen-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-gold-soft);
}

.zen-textarea::placeholder {
  color: rgba(189, 169, 200, 0.5);
  font-style: italic;
}

.zen-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.zen-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(18, 9, 24, 0.6);
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zen-file-btn:hover {
  color: var(--text-main);
  border-color: var(--border-focus);
  background: rgba(230, 202, 101, 0.08);
}

.file-hint {
  font-size: 0.8rem;
  color: var(--accent-gold);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-zen-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: #120917;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(230, 202, 101, 0.25);
}

.btn-zen-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold));
  box-shadow: 0 6px 22px rgba(230, 202, 101, 0.4);
}

.btn-zen-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.zen-status-hint {
  margin-top: 0.75rem;
}

.hint-text {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ==========================================================================
   SCHRITT 2: DIE MATCHES
   ========================================================================== */
.step-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.btn-zen-ghost-gold {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid rgba(230, 202, 101, 0.35);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-zen-ghost-gold:hover {
  background: rgba(230, 202, 101, 0.1);
  border-color: var(--accent-gold);
}

/* Schnelle Filter */
.zen-filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(14, 7, 18, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.zen-select-small {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  outline: none;
}

.btn-zen-catalog {
  background: rgba(230, 202, 101, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(230, 202, 101, 0.3);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.2s ease;
}

.btn-zen-catalog:hover {
  background: var(--accent-gold);
  color: #120917;
}

/* Match Cards */
.zen-matches-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.empty-hint {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-style: italic;
  border: 1px dashed rgba(230, 202, 101, 0.15);
  border-radius: var(--radius-md);
}

/* Selected Topf Hero (Schritt 2 - Fokus & Ruhe) */
.selected-topf-hero {
  background: linear-gradient(135deg, rgba(32, 16, 42, 0.95), rgba(18, 9, 24, 0.98));
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--shadow-gold-soft);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-status-pills {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pill-selected {
  font-size: 0.78rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.pill-gold {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-gold);
  background: rgba(230, 202, 101, 0.12);
  border: 1px solid rgba(230, 202, 101, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.hero-big-amount {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(230, 202, 101, 0.2);
}

.hero-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-reason {
  font-size: 0.94rem;
  color: var(--text-dim);
  line-height: 1.5;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 0.3rem;
}

/* Offizielle Dokumente & Richtlinien im Hero */
.hero-docs-section {
  margin-top: 0.75rem;
  padding: 0.75rem 0.95rem;
  background: rgba(12, 6, 16, 0.7);
  border: 1px solid rgba(230, 202, 101, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-docs-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-docs-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.doc-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.doc-pill-link:hover {
  background: rgba(230, 202, 101, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold-bright);
  transform: translateY(-1px);
}

.doc-pill-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: rgba(230, 202, 101, 0.2);
  color: var(--accent-gold);
}

.doc-pill-badge.badge-pdf {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.doc-pill-badge.badge-portal {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.hero-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(230, 202, 101, 0.15);
  flex-wrap: wrap;
}

.hero-meta-items {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-meta-item {
  font-size: 0.82rem;
  font-weight: 600;
  color: #34d399;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Modal / Picker Dialog (Schritt 2 Fördertopf wechseln) */
.topf-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.topf-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 3, 9, 0.85);
  backdrop-filter: blur(6px);
}

.topf-picker-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  background: #140b18;
  border: 1.5px solid rgba(230, 202, 101, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.picker-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(22, 11, 28, 0.8);
}

.picker-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.picker-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-picker-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-picker-close:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.5);
}

.picker-filters {
  padding: 0.75rem 1.75rem;
  margin: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  background: rgba(18, 9, 23, 0.9);
}

.picker-matches-scroll {
  padding: 1.25rem 1.75rem;
  overflow-y: auto;
  max-height: calc(88vh - 190px);
}

.match-card {
  background: rgba(20, 10, 26, 0.9);
  border: 1px solid rgba(230, 202, 101, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.2s ease;
}

.match-card:hover {
  border-color: rgba(230, 202, 101, 0.45);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.match-card.selected {
  border-color: var(--accent-gold);
  background: rgba(30, 15, 38, 0.95);
  box-shadow: var(--shadow-gold-soft);
}

.match-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.match-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.match-amount {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-gold);
  white-space: nowrap;
}

.match-meta-pills {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pill-green {
  font-size: 0.75rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.pill-amber {
  font-size: 0.75rem;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.pill-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.match-reason {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.match-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.25rem;
}

.btn-select-topf {
  background: rgba(230, 202, 101, 0.14);
  color: var(--accent-gold);
  border: 1px solid rgba(230, 202, 101, 0.35);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.2s ease;
}

.btn-select-topf:hover,
.match-card.selected .btn-select-topf {
  background: var(--accent-gold);
  color: #120917;
}

.zen-program-link {
  color: var(--accent-gold);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(230, 202, 101, 0.08);
  border: 1px solid rgba(230, 202, 101, 0.25);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.zen-program-link:hover {
  background: rgba(230, 202, 101, 0.2);
  border-color: var(--accent-gold);
  color: #fff;
}

.step2-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(30, 15, 38, 0.95);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  box-shadow: var(--shadow-gold-soft);
  flex-wrap: wrap;
}

.selected-topf-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.indicator-icon {
  width: 28px;
  height: 28px;
  background: var(--accent-gold);
  color: #120917;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.indicator-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-main);
  font-weight: 600;
}

.btn-show-more-toepfe {
  background: rgba(20, 10, 26, 0.6);
  color: var(--text-muted);
  border: 1px dashed rgba(230, 202, 101, 0.3);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  cursor: pointer;
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
}

.btn-show-more-toepfe:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  background: rgba(230, 202, 101, 0.08);
}

/* ==========================================================================
   SCHRITT 3: DOKUMENTEN-LESEMODUS (BUCH-ÄSTHETIK)
   ========================================================================== */
.zen-document-preview {
  background: #150c1b;
  border: 1px solid rgba(230, 202, 101, 0.25);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  margin-top: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.document-header {
  border-bottom: 1px solid rgba(230, 202, 101, 0.2);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.doc-crest {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  margin-bottom: 0.35rem;
}

.doc-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.doc-seal-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #10b981;
}

.doc-hash {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.zen-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(230, 202, 101, 0.12);
  margin-bottom: 1.5rem;
}

.tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.zen-prosa-body {
  font-family: var(--font-book);
  font-size: 1.12rem;
  line-height: 1.8;
  color: #ece8df;
  white-space: pre-line;
  max-width: 720px;
}

.zen-finanz-body {
  font-size: 0.95rem;
  color: var(--text-main);
}

.finanz-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.finanz-table th,
.finanz-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.finanz-table th {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.finanz-table .amount {
  text-align: right;
  font-weight: 600;
}

.finanz-table tr.highlight {
  background: rgba(230, 202, 101, 0.06);
  color: var(--accent-gold);
}

/* Budget & Fördersummen-Regler (Schritt 3) */
.zen-budget-control {
  background: rgba(18, 9, 24, 0.5);
  border: 1px solid rgba(230, 202, 101, 0.2);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.budget-control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.budget-label {
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.budget-highlight {
  font-size: 1.25rem;
  color: var(--accent-gold);
  font-family: var(--font-serif);
  font-weight: 700;
  text-shadow: 0 0 15px rgba(230, 202, 101, 0.3);
}

.budget-topf-range {
  font-size: 0.8rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.budget-slider-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.zen-slider {
  flex: 1;
  accent-color: var(--accent-gold);
  cursor: pointer;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
}

.budget-input-wrapper {
  display: inline-flex;
  align-items: center;
  background: rgba(10, 4, 14, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  transition: border-color 0.2s ease;
}

.budget-input-wrapper:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(230, 202, 101, 0.2);
}

.zen-number-input {
  background: transparent;
  border: none;
  color: var(--accent-gold);
  font-size: 1.1rem;
  font-weight: 700;
  width: 100px;
  text-align: right;
  outline: none;
  font-family: var(--font-sans);
}

.currency-suffix {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  margin-left: 0.25rem;
}

.budget-helper-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  line-height: 1.4;
}

/* Finanzplan-Tabelle Detailansicht */
.finanz-table tr.table-section-header td {
  background: rgba(230, 202, 101, 0.05);
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border-top: 1px solid rgba(230, 202, 101, 0.15);
}

.pos-kat {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.pos-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.35;
}

.finanz-table tr.subtotal-row td {
  border-top: 2px solid rgba(230, 202, 101, 0.3);
  font-size: 0.95rem;
}

.finanz-table tr.total-grant-row {
  background: rgba(52, 211, 153, 0.08);
  color: #34d399;
  font-size: 1rem;
}

.finanz-table tr.total-grant-row td {
  border-bottom: 2px solid rgba(52, 211, 153, 0.3);
}

.finanz-table tr.mecene-row {
  background: rgba(230, 202, 101, 0.08);
  color: var(--accent-gold);
}

.zen-audit-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.zen-doc-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(230, 202, 101, 0.15);
}

.btn-zen-secondary {
  background: rgba(230, 202, 101, 0.12);
  color: var(--text-main);
  border: 1px solid rgba(230, 202, 101, 0.3);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-zen-secondary:hover {
  background: rgba(230, 202, 101, 0.22);
  border-color: var(--accent-gold);
}

/* ==========================================================================
   4. KANZLEI-DRAWER (DEZENT ZUGEKLAPPT)
   ========================================================================== */
.kanzlei-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
}

.kanzlei-content {
  width: 100%;
  max-width: 620px;
  background: #130a18;
  border-left: 1px solid var(--border-subtle);
  height: 100vh;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
}

.kanzlei-header {
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
}

.kanzlei-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--accent-gold);
}

.kanzlei-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.4;
}

.btn-close {
  position: absolute;
  top: 0;
  right: 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.btn-close:hover {
  color: #fff;
}

.kanzlei-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.kanzlei-card {
  background: rgba(22, 12, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.kanzlei-card h4 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.kanzlei-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.btn-zen-small {
  background: rgba(230, 202, 101, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(230, 202, 101, 0.3);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.kanzlei-pill {
  font-size: 0.78rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.kanzlei-mini-list,
.kanzlei-mini-feed {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 180px;
  overflow-y: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MODAL & FOOTER
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  background: #170d1e;
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 480px;
  padding: 1.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--accent-gold);
}

.modal-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.zen-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  color: var(--text-main);
  outline: none;
}

.zen-input:focus {
  border-color: var(--border-focus);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-cancel {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.zen-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(14, 7, 18, 0.9);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-dot {
  color: rgba(230, 202, 101, 0.3);
}

.health-badge {
  color: #10b981;
}

/* ==========================================================================
   SCHRITT 4: NACH DEM ANTRAG (PHASEN, REVOLUT & MITTELABRUF)
   ========================================================================== */
.workflow-phases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.phase-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}

.phase-card:hover {
  border-color: rgba(230, 202, 101, 0.4);
  transform: translateY(-2px);
}

.phase-card.active {
  border-color: var(--accent-gold);
  background: rgba(230, 202, 101, 0.05);
}

.phase-num {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.phase-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
}

.phase-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.phase-status {
  font-size: 0.75rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-block;
  align-self: flex-start;
  font-weight: 500;
}

.banking-zen-panel {
  background: rgba(18, 10, 24, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.banking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.banking-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.banking-title h4 {
  font-size: 1.05rem;
  color: var(--text-main);
  margin: 0;
  font-family: var(--font-serif);
}

.banking-badge {
  font-size: 0.75rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.banking-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.bank-option-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  cursor: pointer;
}

.bank-option-card:hover {
  border-color: rgba(230, 202, 101, 0.35);
}

.bank-option-card.selected {
  border-color: var(--accent-gold);
  background: rgba(230, 202, 101, 0.04);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.bank-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.bank-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.bank-pill {
  font-size: 0.7rem;
  color: var(--accent-gold);
  background: rgba(230, 202, 101, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.bank-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.bank-status-line {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.status-dot {
  color: var(--text-dim);
}

.status-dot.online {
  color: #10b981;
}

.bank-balance {
  font-size: 0.85rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

.post-grant-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.action-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.action-box h5 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin: 0 0 0.4rem 0;
  font-weight: 600;
}

.action-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .zen-header {
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .zen-stage {
    padding: 1.5rem 1rem;
  }
  .zen-card {
    padding: 1.5rem;
  }
  .zen-headline {
    font-size: 1.65rem;
  }
}

/* ==========================================================================
   AUTHENTIFIZIERUNG & BENUTZERVERWALTUNG
   ========================================================================== */
.btn-zen-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(230, 202, 101, 0.08);
  color: var(--accent-gold);
  border: 1px solid rgba(230, 202, 101, 0.35);
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-zen-auth:hover {
  background: rgba(230, 202, 101, 0.18);
  border-color: var(--accent-gold-bright);
  color: #fff;
}

.user-profile-badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(30, 16, 39, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.user-profile-badge:hover,
.user-profile-badge:focus {
  border-color: var(--border-focus);
  background: rgba(45, 23, 58, 0.95);
  outline: none;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-velvet) 0%, var(--accent-gold-dark) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-badge {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.user-caret {
  font-size: 0.75rem;
  color: var(--text-dim);
  transition: transform 0.2s ease;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 230px;
  background: #190e21;
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.75);
  z-index: 120;
  padding: 0.5rem 0;
  animation: fadeInDown 0.15s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-header {
  padding: 0.6rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.user-dropdown-header strong {
  font-size: 0.88rem;
  color: var(--text-main);
}

.user-dropdown-header small {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.4rem 0;
}

.user-dropdown-item {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.6rem 1rem;
  text-align: left;
  color: var(--text-main);
  font-size: 0.84rem;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.user-dropdown-item:hover {
  background: rgba(230, 202, 101, 0.12);
  color: var(--accent-gold-bright);
}

.user-dropdown-item.text-danger {
  color: #f87171;
}

.user-dropdown-item.text-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

/* Modals: Auth & User Management */
.auth-card {
  max-width: 440px;
}

.auth-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.auth-tabs {
  display: flex;
  gap: 0.4rem;
}

.auth-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn:hover {
  color: var(--text-main);
}

.auth-tab-btn.active {
  color: var(--accent-gold);
  background: rgba(230, 202, 101, 0.12);
  border-color: rgba(230, 202, 101, 0.25);
}

.auth-tab-pane {
  padding-top: 1rem;
}

.auth-error-msg {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.btn-block {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
}

.auth-quick-login {
  margin-top: 1.25rem;
}

.quick-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-small {
  font-size: 0.8rem;
  padding: 0.45rem 0.8rem;
  text-align: center;
  justify-content: center;
  display: flex;
}

.modal-card-large {
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
}

.user-mgmt-table-wrapper {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(14, 8, 19, 0.5);
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.user-table th,
.user-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(230, 202, 101, 0.08);
}

.user-table th {
  background: rgba(22, 12, 30, 0.9);
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

.badge-role {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-role-admin {
  background: rgba(230, 202, 101, 0.18);
  color: var(--accent-gold-bright);
  border: 1px solid rgba(230, 202, 101, 0.35);
}

.badge-role-manager {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-role-viewer {
  background: rgba(189, 169, 200, 0.18);
  color: var(--text-muted);
  border: 1px solid rgba(189, 169, 200, 0.35);
}

.new-user-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.form-row {
  display: flex;
  gap: 0.85rem;
}

.form-row .col {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.full-width {
  width: 100%;
}

/* ==========================================================================
   OFFIZIELLER DRUCKMODUS (@media print)
   Druckt NUR das fertige Förderantrags-Dossier (Prosa + Finanzplan + Audit)
   als sauberes DIN-A4-Dokument ohne UI-Elemente, Slider oder Navigation.
   ========================================================================== */
@media print {
  @page {
    size: A4;
    margin: 20mm 15mm 20mm 20mm;
  }

  /* 1. Grundzustand für Druck: Weißer Hintergrund, schwarze Schrift */
  html, body {
    background: #ffffff !important;
    color: #111111 !important;
    font-family: "Georgia", "Times New Roman", serif !important;
    font-size: 11pt !important;
    line-height: 1.6 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  /* 2. ALLES auf der HTML-Seite per Standard unsichtbar machen */
  body * {
    visibility: hidden;
  }

  /* 3. Alle Web-UI Komponenten explizit aus dem DOM-Layout entfernen */
  header,
  nav,
  footer,
  .zen-header,
  .zen-hero,
  .zen-footer,
  .zen-sidebar,
  .hero-banner,
  #step1-card,
  #step2-card,
  #step4-card,
  .step-header-row,
  .step-badge,
  #foerdersummeControl,
  .zen-tabs,
  .zen-doc-actions,
  .doc-actions,
  .topf-picker-modal,
  .modal-overlay,
  #kanzleiDrawer,
  .timeline-container,
  .timeline-drawer,
  .action-box,
  .zen-status-hint,
  .claims-box,
  button,
  input,
  select {
    display: none !important;
  }

  /* 4. Haupt-Container und Schritt 3 freistellen */
  .zen-stage,
  #step3-card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* 5. Nur das Antrags-Dossier sichtbar machen und an den Seitenanfang setzen */
  #antragPreview,
  #antragPreview * {
    visibility: visible;
  }

  #antragPreview {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: #ffffff !important;
    color: #111111 !important;
    box-shadow: none !important;
  }

  /* Im Dossier: Interaktive Tabs und Aktionsknöpfe niemals drucken */
  .zen-tabs,
  .zen-doc-actions,
  .zen-doc-actions * {
    display: none !important;
    visibility: hidden !important;
  }

  /* Alle 3 Tabs untereinander im Druck ausgeben */
  .zen-tab-content,
  .tab-pane {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-bottom: 2rem !important;
    page-break-inside: auto;
  }

  #tab-prosa::before {
    content: "I. Projektbeschreibung & Vorhaben";
    display: block;
    font-family: sans-serif;
    font-size: 13pt;
    font-weight: 700;
    color: #000000;
    border-bottom: 1.5px solid #333333;
    padding-bottom: 4pt;
    margin-bottom: 12pt;
  }

  #tab-finanz {
    page-break-before: always;
  }

  #tab-finanz::before {
    content: "II. Kosten- und Finanzierungsplan (KFP) nach ANBest-P";
    display: block;
    font-family: sans-serif;
    font-size: 13pt;
    font-weight: 700;
    color: #000000;
    border-bottom: 1.5px solid #333333;
    padding-bottom: 4pt;
    margin-bottom: 12pt;
  }

  #tab-leitplanken {
    page-break-before: always;
  }

  #tab-leitplanken::before {
    content: "III. Rechtliche Prüfung, ANBest-P Konformität & Subventionsschutz (§ 264 StGB)";
    display: block;
    font-family: sans-serif;
    font-size: 13pt;
    font-weight: 700;
    color: #000000;
    border-bottom: 1.5px solid #333333;
    padding-bottom: 4pt;
    margin-bottom: 12pt;
  }

  .document-header {
    border-bottom: 2px solid #222222 !important;
    padding-bottom: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .doc-crest {
    font-family: sans-serif !important;
    font-size: 9pt !important;
    letter-spacing: 0.15em !important;
    color: #555555 !important;
    font-weight: 700 !important;
  }

  .doc-title {
    font-size: 18pt !important;
    font-weight: 800 !important;
    color: #000000 !important;
    margin: 0.5rem 0 !important;
    line-height: 1.25 !important;
  }

  .doc-seal-note {
    font-size: 8.5pt !important;
    color: #555555 !important;
  }

  .doc-hash {
    font-family: monospace !important;
    font-size: 8pt !important;
    color: #666666 !important;
  }

  .document-prose {
    font-size: 11pt !important;
    color: #111111 !important;
    white-space: pre-wrap !important;
    line-height: 1.6 !important;
    page-break-after: always;
  }

  /* Finanzplan-Tabelle für den Druck */
  .finanz-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-family: sans-serif !important;
    font-size: 9.5pt !important;
    margin-top: 1rem !important;
    page-break-inside: avoid;
  }

  .finanz-table th,
  .finanz-table td {
    border: 1px solid #dddddd !important;
    padding: 6pt 8pt !important;
    color: #111111 !important;
  }

  .finanz-table th {
    background: #f4f4f4 !important;
    font-weight: 700 !important;
    color: #000000 !important;
  }

  .table-section-header td {
    background: #f9f9f9 !important;
    font-weight: 700 !important;
    border-top: 2px solid #999999 !important;
  }

  .highlight.total-grant-row td {
    background: #f0fdf4 !important;
    font-weight: 800 !important;
    font-size: 10.5pt !important;
    border-top: 2px solid #10b981 !important;
  }

  .subtotal-row td {
    font-weight: 700 !important;
    border-top: 1.5px solid #333333 !important;
  }
}

/* ==========================================================================
   MÉCÈNE BUDGET-LIVE-CALC & TRANSPARENZ
   ========================================================================== */
.zen-budget-live-calc {
  background: rgba(14, 6, 20, 0.85);
  border: 1px solid rgba(230, 202, 101, 0.3);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.35rem;
  margin-top: 1.1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.calc-row .calc-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.calc-row .calc-val {
  color: #ece8df;
  font-weight: 600;
  font-family: var(--font-sans);
}

.calc-divider {
  height: 1px;
  background: rgba(230, 202, 101, 0.2);
  margin: 0.65rem 0;
}

.calc-row.total-row {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.calc-row .calc-val.total {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #10b981;
  text-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}

.calc-note {
  font-size: 0.8rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  line-height: 1.45;
}

/* ==========================================================================
   FEATURE 1: PROJEKT-SPLITTING (MULTI-FÖRDERUNG)
   ========================================================================== */
.split-modal-content {
  max-width: 920px;
  width: 95%;
}

.split-control-box {
  background: rgba(16, 8, 24, 0.9);
  border: 1px solid rgba(230, 202, 101, 0.25);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.split-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.split-modul-card {
  background: rgba(24, 12, 36, 0.85);
  border: 1px solid rgba(230, 202, 101, 0.22);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.split-modul-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.split-modul-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(230, 202, 101, 0.15);
  color: var(--accent-gold);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
  width: fit-content;
}

.split-modul-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.split-modul-topf {
  font-size: 0.85rem;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.split-modul-finance {
  background: rgba(10, 4, 16, 0.7);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}

.split-fin-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.split-fin-row.total {
  font-weight: 700;
  color: #10b981;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.35rem;
  margin-top: 0.35rem;
}

.split-modul-fokus {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin-bottom: 0.85rem;
  flex: 1;
}

.split-compliance-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.25rem;
}

.split-compliance-header {
  font-size: 0.84rem;
  color: #10b981;
  margin-bottom: 0.3rem;
}

.split-compliance-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.split-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   FEATURE 2: FORMULAR-VORAUSFÜLLUNG (PORTAL-ASSISTENT)
   ========================================================================== */
.formular-assistant-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(230, 202, 101, 0.15);
  padding-bottom: 1.1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.formular-assistant-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--accent-gold);
  margin-bottom: 0.3rem;
}

.formular-assistant-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 650px;
}

.formular-top-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.formular-fields-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.formular-section-card {
  background: rgba(16, 8, 24, 0.65);
  border: 1px solid rgba(230, 202, 101, 0.18);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.4rem;
}

.formular-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.formular-fields-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.formular-field-row {
  display: flex;
  flex-direction: column;
  background: rgba(10, 4, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease;
}

.formular-field-row:hover {
  border-color: rgba(230, 202, 101, 0.3);
}

.formular-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.formular-field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.field-badges {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.field-char-badge {
  font-size: 0.74rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.field-char-badge.ok {
  color: #10b981;
}

.btn-copy-field {
  background: rgba(230, 202, 101, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(230, 202, 101, 0.3);
  border-radius: 4px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-copy-field:hover {
  background: var(--accent-gold);
  color: #150c1b;
}

.btn-copy-field.copied {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}

.formular-field-value {
  font-size: 0.88rem;
  color: #ece8df;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

