/* ... existing styles ... */
/* Appends to previous content (I'll re-write full file to be safe, including new styles) */

/* === SPORTBIER B2B Portal Styles === */
:root {
  --bg: #1a1a1a;
  --bg-elevated: #252525;
  --bg-hover: #333333;
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --accent: #e8b923;
  --accent-hover: #cfa41e;
  --danger: #ff453a;
  --success: #30d158;
  --border: #383838;
  
  --radius: 12px;
  --radius-sm: 8px;
  --header-height: 64px;
  --sidebar-width: 260px;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  /* Verhindert horizontales "Wackeln" beim Ein-/Ausblenden der Scrollbar (z.B. FAQ auf/zu) */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Fallback für Browser ohne scrollbar-gutter */
  overflow-y: scroll;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

/* Tooltip-Hinweis: gepunktete Unterstreichung */
.has-tooltip {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: help;
}

/* Custom Tooltip Popup (z. B. für Heatmap) – sofort sichtbar, größer, runde Ecken */
.has-tooltip-wrapper {
  position: relative;
  display: inline;
}
.has-tooltip-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  max-width: 320px;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}
.has-tooltip-wrapper:hover .has-tooltip-popup {
  opacity: 1;
  visibility: visible;
}
.has-tooltip-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--bg-elevated);
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  color: var(--text);
  font-weight: 700;
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-muted);
}

/* === Components === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #000;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--text);
  background-color: rgba(255,255,255,0.05);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

.btn-outline.text-danger,
button.btn-outline.text-danger,
.btn-outline.btn-danger {
  color: var(--danger);
  border-color: var(--danger);
}
.btn-outline.text-danger:hover,
button.btn-outline.text-danger:hover,
.btn-outline.btn-danger:hover {
  background-color: rgba(255, 69, 58, 0.15);
  border-color: var(--danger);
  color: var(--danger);
}

.card {
  background-color: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
}

/* === SPORTBIER Marke: IMMER in Farben & Schrift – global für B2B === */
.brand-logo,
.app-title,
.app-title-inline {
  font-weight: 700;
  letter-spacing: 0.2em;
}
.brand-logo,
.app-title {
  margin: 0;
  font-size: clamp(1.25rem, 5vw, 1.6rem);
  line-height: 1.2;
  color: var(--text);
}
.app-title-inline {
  display: inline;
}
.brand-logo .app-title-muted,
.brand-logo .app-title-prefix,
.app-title-muted,
.app-title-prefix {
  color: var(--text-muted);
  opacity: 0.9;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.brand-logo .app-title-main,
.brand-logo .app-title-bier,
.brand-logo span.app-title-main,
.app-title-main,
.app-title-bier {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.2em;
}

/* === Utility === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.gap-2 { gap: 0.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

.hidden { display: none !important; }

/* === Dashboard Layout === */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background-color: #151515;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 10;
}

.sidebar-header {
  min-height: var(--header-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

/* Wie App-Slogan „Verdien dir dein Bier!“ (app-header-subtitle) */
.sidebar-header-sub {
  margin-top: 0.25rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.85;
}

.sidebar-nav {
  padding: 1.5rem 1rem;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  margin-bottom: 0.25rem;
  transition: all 0.2s;
  cursor: pointer;
}

.nav-item:hover {
  background-color: rgba(255,255,255,0.05);
  color: var(--text);
}

.nav-item.active {
  background-color: var(--accent);
  color: #000;
  font-weight: 600;
}

.nav-icon {
  margin-right: 0.75rem;
  font-size: 1.2rem;
}

.nav-group {
  margin-bottom: 0.25rem;
}

.nav-group-header {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.nav-group-header:hover {
  background-color: rgba(255,255,255,0.05);
  color: var(--text);
}

.nav-group-chevron {
  margin-left: auto;
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.2s;
}

.nav-group.expanded .nav-group-chevron {
  transform: rotate(0deg);
}

.nav-group:not(.expanded) .nav-group-chevron {
  transform: rotate(-90deg);
}

.nav-group-items {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease-out;
}

.nav-group.expanded .nav-group-items {
  max-height: 400px;
}

.nav-sub-item {
  padding-left: 2.5rem;
  font-size: 0.9rem;
}

.nav-sub-item .nav-icon {
  font-size: 1rem;
}

.nav-optional-label {
  font-size: 0.75rem;
  font-weight: normal;
  opacity: 0.8;
  color: var(--text-muted, #888);
}

.nav-package-hint {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent, #e8b923);
  background: rgba(232, 185, 35, 0.15);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.25rem;
}

.nav-item.nav-requires-aktiv {
  opacity: 0.92;
}
.nav-item.nav-requires-aktiv .nav-package-hint {
  opacity: 1;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.user-profile {
  display: flex;
  align-items: center;
  padding: 0.5rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background-color: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  font-weight: bold;
  color: var(--accent);
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.user-info {
  flex: 1;
  font-size: 0.85rem;
}

.user-name {
  color: var(--text);
  font-weight: 600;
  display: block;
}

.user-role {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.top-bar {
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background-color: rgba(26,26,26,0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.content-header {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.page-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.content-area {
  padding: 2rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Vollbild-Modus (z. B. Deutschlandkarte): volle Höhe und Breite */
.content-area.content-area-fullbleed {
  padding: 0;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

/* === Dashboard Widgets === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.stat-change {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
}

.stat-change.positive { color: var(--success); }
.stat-change.negative { color: var(--danger); }

/* === Forms === */
.form-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-input:focus {
  border-color: var(--accent);
  outline: none;
}

/* === Profil: Passwort ändern === */
.profile-change-pw {
  background: var(--bg-elevated);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.profile-change-pw__title {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.profile-change-pw__hint {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.profile-change-pw__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 320px;
}

.profile-change-pw__fields .form-group {
  margin-bottom: 0;
}

.profile-change-pw__actions {
  margin-top: 1.25rem;
}

.profile-change-pw__actions .btn {
  min-width: 160px;
}

.profile-change-pw__message {
  font-size: 0.85rem;
}

/* === Dropzone (Bild-Upload) === */
.dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: 1rem 1.5rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.15);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.dropzone:hover {
  border-color: var(--accent);
  background: rgba(232,185,35,0.08);
  color: var(--text);
}

.dropzone.dropzone-dragover {
  border-color: var(--accent);
  background: rgba(232,185,35,0.12);
  color: var(--text);
}

.dropzone-hint {
  pointer-events: none;
}

.dropzone input[type="file"] {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
}

/* Abstand Dropzone → Thumb, Layout-Stabilität beim Bild einfügen */
.image-preview-area {
  margin-top: 1rem;
  min-height: 0;
  display: block;
}
.image-preview-area img {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* === Tables === */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  font-size: 0.9rem;
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

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

/* Produkttabelle: ausreichend Spaltenbreite, Status und Aktionen voll sichtbar */
.products-table {
  table-layout: fixed;
  width: 100%;
  min-width: 1010px;
}

.products-table th,
.products-table td {
  vertical-align: middle;
  padding: 0.75rem 1rem;
}

.products-table td:nth-child(2),
.products-table td:nth-child(4) {
  overflow: hidden;
}

.products-table .product-desc-cell,
.products-table .product-tags-cell {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  max-width: 100%;
}

.products-table .product-name-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  max-width: 100%;
}

.products-table td .flex.gap-2 {
  min-width: 0;
}

/* Status-Spalte: Saisonal-Badge mit Datum nicht abschneiden */
.products-table-status-cell {
  vertical-align: middle;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.products-table .status-badge-saisonal {
  white-space: normal;
  line-height: 1.35;
  text-align: center;
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
}

.products-table .products-table-actions {
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
}

.products-table .products-table-actions .btn {
  flex-shrink: 0;
}

.products-table-card {
  overflow-x: auto;
}

.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-active { background: rgba(48, 209, 88, 0.2); color: var(--success); }
.status-draft { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }
.status-onboarding { background: rgba(232, 185, 35, 0.25); color: var(--accent); }
.status-inactive { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }
.status-blocked { background: rgba(255, 59, 48, 0.2); color: #ff3b30; }

/* === Preview Device (iPhone 12 Mini Auflösung: 375×812 pt), vergrößert für bessere Lesbarkeit === */
.preview-pane {
  position: fixed;
  right: 0;
  top: var(--header-height);
  bottom: 0;
  width: 520px;
  background: #000;
  border-left: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 20;
  overflow-y: auto;
}

/* iPhone 12 Mini: 375×812 logical px Viewport – Rahmen 12px, ~1.2× Skalierung */
.device-mockup {
  box-sizing: border-box;
  width: 479px;   /* (375 + 12*2) * 1.2 */
  height: 1004px; /* (812 + 12*2) * 1.2 */
  min-width: 479px;
  min-height: 1004px;
  padding: 0;
  border: 12px solid #1c1c1e;
  border-radius: 56px; /* Increased slightly to match inner 44px + 12px border */
  /* overflow: hidden; Removed to show notch/shadow correctly, but added back in specific way if needed */
  position: relative;
  background: transparent; /* Changed from #000 to transparent so no rectangle behind */
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.device-screen {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border-radius: 46px; /* Slightly tighter than parallel to account for bezel visual */
  overflow: hidden;
  background: #111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* iframe: exakt 375×812 px = iPhone-12-Mini-Viewport für native Darstellung */
.device-mockup iframe {
  display: block;
  border: none;
  width: 100%;
  height: 100%;
}

/* iPhone-Notch (Dynamic Island-Stil, zentriert am oberen Bildschirmrand) */
.device-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 37px;
  background: #000;
  border-radius: 20px;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* === Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  overflow-y: auto;
}
.modal-overlay.is-hidden { display: none; }
.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h2 { margin: 0; font-size: 1.25rem; }
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 2rem; padding-bottom: 1.5rem; }
.modal-footer {
  padding: 1.5rem 2rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}
.status-running { background: rgba(48, 209, 88, 0.2); color: var(--success); }
.status-planned { background: rgba(232, 185, 35, 0.2); color: var(--accent); }
.status-ended { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }

/* Branding: Karte groß, Platz optimal genutzt */
.branding-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 1100px) {
  .branding-layout { grid-template-columns: 1fr; }
  /* Preview oben, damit sie sofort sichtbar ist (nicht unter den langen Tabellen versteckt) */
  .branding-layout .preview-pane-static { order: -1; }
}
.branding-main { min-width: 0; }

/* Tabellen (Motivationen/Celebrations) genug Platz: horizontal scrollen statt abschneiden */
.form-section > div:has(.data-table) {
  overflow-x: auto;
  margin-left: -0.25rem;
  margin-right: -0.25rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.form-section > div:has(.data-table) .data-table {
  min-width: 880px;
}
.form-section-map {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.targeting-map {
  min-height: min(680px, calc(100vh - 280px));
  height: min(680px, calc(100vh - 280px));
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: crosshair;
}
.preview-pane-static {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Karten: Fullscreen-Wrapper */
.map-wrapper {
  position: relative;
}
.map-fullscreen-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1000;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.7);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.map-fullscreen-btn:hover {
  background: rgba(0,0,0,0.9);
  color: var(--accent);
}

/* Alle Regionen anzeigen – floating links unten auf allen Karten */
.map-fit-regions-btn {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  z-index: 999;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.75);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}
.map-fit-regions-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  color: var(--accent);
}
.map-wrapper:fullscreen .map-fit-regions-btn,
.map-wrapper:-webkit-full-screen .map-fit-regions-btn {
  bottom: 1rem;
  left: 1rem;
}
.map-wrapper:fullscreen .map-fullscreen-btn,
.map-wrapper:-webkit-full-screen .map-fullscreen-btn {
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.6);
}

/* Landkarte + Kampagnen: Layer-Toggles im Vollbild (oben links) */
.landkarte-fs-toggles,
.campaign-fs-toggles {
  display: none;
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 999;
  background: rgba(26, 26, 26, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.map-wrapper:fullscreen .landkarte-fs-toggles,
.map-wrapper:-webkit-full-screen .landkarte-fs-toggles,
.map-wrapper:fullscreen .campaign-fs-toggles,
.map-wrapper:-webkit-full-screen .campaign-fs-toggles {
  display: flex;
}

/* Vollbild: Regionen-Overlay rechts */
.map-fullscreen-overlay {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 35%;
  background: rgba(26, 26, 26, 0.95);
  border-left: 1px solid var(--border);
  padding: 1rem;
  padding-top: 3rem;
  overflow-y: auto;
  z-index: 999;
}
.map-wrapper:fullscreen .map-fullscreen-overlay,
.map-wrapper:-webkit-full-screen .map-fullscreen-overlay {
  display: block;
}
.map-overlay-panel { padding: 0.5rem 0; }
.map-overlay-title { font-size: 1rem; margin: 0 0 0.25rem; }
.map-overlay-count { margin: 0 0 0.75rem; }
.map-overlay-list { display: flex; flex-direction: column; gap: 0.5rem; }
.map-overlay-region-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem; background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

/* Regionen-Liste (Hotspots): klare Outline um Einträge */
.hotspot-item {
  border: 1px solid var(--border);
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}
.hotspot-item:hover {
  border-color: rgba(232, 185, 35, 0.35);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

/* Regionen-Karten: 2 pro Zeile (Platz sparen) */
.targeting-hotspots-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.targeting-hotspots-list .hotspot-item {
  margin-bottom: 0 !important; /* mb-3 aus dem Markup neutralisieren */
}
@media (max-width: 900px) {
  .targeting-hotspots-list {
    grid-template-columns: 1fr;
  }
}
.map-overlay-region-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.map-overlay-region-label { flex: 1; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-overlay-focus-btn {
  padding: 0.2rem 0.4rem; font-size: 0.85rem; background: transparent; border: 1px solid var(--border);
  border-radius: 6px; color: var(--text); cursor: pointer; flex-shrink: 0;
}
.map-overlay-focus-btn:hover { background: rgba(255,255,255,0.08); color: var(--accent); }

/* Suchergebnisse im Ortssuche-Modal */
.loc-search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-align: left;
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.loc-search-result-item:hover {
  border-color: rgba(232, 185, 35, 0.4);
  background: rgba(255, 255, 255, 0.03);
}
.loc-search-result-icon {
  flex-shrink: 0;
  font-size: 1rem;
}
.loc-search-result-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.loc-search-result-title {
  font-weight: 600;
  font-size: 0.95rem;
}
.loc-search-result-details {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.map-wrapper:fullscreen .targeting-map,
.map-wrapper:fullscreen .campaign-minimap,
.map-wrapper:-webkit-full-screen .targeting-map,
.map-wrapper:-webkit-full-screen .campaign-minimap {
  height: 100% !important;
  min-height: 100% !important;
}
.map-wrapper:fullscreen.analytics-map-placeholder,
.map-wrapper:-webkit-full-screen.analytics-map-placeholder {
  height: 100% !important;
  min-height: 100% !important;
}

.map-wrapper:fullscreen .analytics-map-inner,
.map-wrapper:-webkit-full-screen .analytics-map-inner {
  height: 100% !important;
  min-height: 100% !important;
}

/* Kampagnen-Minikarten */
.campaign-minimap {
  height: 380px;
  min-height: 380px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #111;
}

/* Statistik: Heatmap-Platzhalter größer */
.analytics-map-placeholder {
  background: #222;
  min-height: 420px;
  height: min(420px, 50vh);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Landkarte: größere Karte, nutzt verfügbaren Platz */
.landkarte-map.analytics-map-placeholder,
.deutschlandkarte-map.analytics-map-placeholder,
.admin-kundenkarte-map.analytics-map-placeholder {
  min-height: 100%;
  height: 100%;
}

/* God-Mode Kundenkarte: kompletten verbleibenden Platz nutzen */
.admin-kundenkarte-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.admin-kundenkarte-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.admin-kundenkarte-title {
  margin: 0;
  font-size: 1.1rem;
}

.admin-kundenkarte-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-kundenkarte-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 0;
}

.admin-kundenkarte-map {
  position: relative;
  height: 100%;
  min-height: 300px; /* Mindesthöhe für Fullscreen-API */
  min-width: 0;
}

.admin-kundenkarte-map .map-fullscreen-btn {
  z-index: 1100; /* über Leaflet-Karten-Ebenen */
}

/* Fallback-Vollbild (wenn native Fullscreen-API fehlschlägt) */
.map-fullscreen-overlay-fallback {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.map-fullscreen-overlay-fallback .map-fullscreen-overlay-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.map-fullscreen-overlay-fallback .map-wrapper {
  flex: 1;
  min-height: 0;
  height: 100%;
}
.map-fullscreen-overlay-fallback .analytics-map-inner {
  height: 100% !important;
  min-height: 100% !important;
}

.admin-kundenkarte-map .analytics-map-inner {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.admin-kundenkarte-sidebar {
  border-left: 1px solid var(--border);
  padding: 0.75rem 1rem;
  overflow-y: auto;
  background: var(--bg-elevated);
}

.admin-kundenkarte-list {
  margin-top: 0.5rem;
}

.admin-kundenkarte-count {
  font-size: 0.8rem;
  margin: 0 0 0.25rem 0;
}

/* Live-Aktivitäts-Marker auf der Kundenkarte (SSE) */
.live-activity-div-icon {
  background: none !important;
  border: none !important;
}
.live-activity-marker {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--border, #ddd);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 600;
  animation: live-activity-appear 0.3s ease-out;
}
.live-activity-emoji {
  font-size: 1rem;
  line-height: 1;
}
.live-activity-text {
  color: var(--text, #111);
}
@keyframes live-activity-appear {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Kleines Phone-Icon: App im Vordergrund */
.live-activity-foreground-phone-icon {
  background: none !important;
  border: none !important;
}
.live-activity-foreground-phone {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--border, #ccc);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  font-size: 14px;
  line-height: 1;
  animation: live-activity-appear 0.25s ease-out;
}

/* Celebration-Popup bei „Flasche verdient“ */
.live-activity-celebration .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(232,185,35,0.4);
}
.live-activity-celebration .leaflet-popup-content {
  margin: 0;
  min-width: 160px;
}
.live-activity-celebration-content {
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #e8b923 0%, #f0c830 100%);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  animation: live-activity-celebration-pulse 0.5s ease-out, live-activity-celebration-pulse 0.5s ease-in 0.5s infinite alternate;
}
@keyframes live-activity-celebration-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

/* Karten mit gelbem Akzentbalken: alle Ecken eckig, rechte Kante der gelben Linie gerade */
.campaign-card.card,
.accent-border-left {
  border-radius: 0;
}

/* Preismodell: Prominente Darstellung – Fokus auf Pakete */
.pricing-hero {
  background: linear-gradient(180deg, rgba(232,185,35,0.06) 0%, transparent 100%);
  border: 1px solid rgba(232,185,35,0.25);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}
.pricing-hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.5rem 0;
  text-align: center;
  letter-spacing: 0.02em;
}
.pricing-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}
.pricing-package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem !important;
  border: 1px solid var(--border) !important;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.pricing-package-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.pricing-package-card.package-active {
  border-color: rgba(232,185,35,0.5) !important;
  box-shadow: 0 0 0 2px rgba(232,185,35,0.2), 0 8px 24px rgba(0, 0, 0, 0.2);
}
.pricing-package-card.package-active:hover {
  box-shadow: 0 0 0 2px rgba(232,185,35,0.3), 0 12px 32px rgba(0, 0, 0, 0.25);
}
.pricing-package-card .pricing-card-body {
  flex: 1;
}
.pricing-package-card .pricing-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  min-height: 8rem;
  border-top: 1px solid var(--border);
}
.pricing-package-card .pricing-card-footer .btn,
.pricing-package-card .pricing-card-footer span[class*="btn"] {
  min-width: 10.5rem;
  display: inline-block;
  text-align: center;
}
.pricing-package-card h4 {
  min-height: 2.2em;
  font-size: 1.25rem;
}
.pricing-package-card strong {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pricing-card-price {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--accent) !important;
  margin-bottom: 0.25rem !important;
}
.pricing-card-price-unit {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-package-card.package-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--accent);
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
/* Unterstützende Inhalte unter den Paketen – dezenter */
.billing-support-section {
  opacity: 0.92;
}
.billing-support-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.testimonial-carousel.billing-support-card {
  background: rgba(232,185,35,0.06);
  border-color: rgba(232,185,35,0.2);
}
/* Dynamische, motivierende Zitate – Einblend-Animation */
.testimonial-carousel .testimonial-inner-enter {
  animation: testimonial-enter 0.5s ease-out;
}
@keyframes testimonial-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.testimonial-carousel.quote-motivating {
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(232,185,35,0.12) 0%, rgba(232,185,35,0.04) 100%);
}
.testimonial-carousel.quote-motivating cite {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Max. Monatsbudget (Spending Limit) */
.budget-meter {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.budget-meter-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.budget-meter-bar-notice { background: rgba(232,185,35,0.9); }
.budget-meter-bar-warn { background: rgba(255,159,10,0.95); }
.budget-meter-bar-hit { background: rgba(255,69,58,0.9); }
.budget-meter-bar-ok,
.budget-meter-bar-none { background: rgba(48,209,88,0.75); }

/* Budget-Karte: Header-Zeile mit Titel + „IM RAHMEN“-Badge – kein Überlappen, sauber ausgerichtet */
.budget-limit-card {
  overflow: hidden;
}
.budget-limit-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  min-height: 1.5rem;
}
.budget-limit-card__title {
  font-size: 1rem;
  margin: 0;
  flex: 1;
  min-width: 0;
}
.budget-limit-card__header .budget-badge {
  flex-shrink: 0;
  align-self: center;
}

.budget-badge {
  white-space: nowrap;
}
.budget-badge-ok { background: rgba(48, 209, 88, 0.2); color: var(--success); }
.budget-badge-notice { background: rgba(232,185,35,0.18); color: var(--accent); }
.budget-badge-warn { background: rgba(255,159,10,0.18); color: #ff9f0a; }
.budget-badge-hit { background: rgba(255,69,58,0.18); color: var(--danger); }
.budget-badge-none { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }
/* Zitate-Layout: feste Höhe für längere Zitate, kein Abschneiden */
.testimonial-quote-box {
  min-height: 6.5rem;
  height: 6.5rem;
  padding: 0.875rem 1rem 0.875rem 1.125rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.testimonial-quote-box .testimonial-inner {
  flex: 1;
  min-width: 0;
}
.testimonial-quote-box p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}
.testimonial-quote-box cite {
  margin-top: 0.35rem;
  font-size: 0.8rem;
}
/* Layout-Stabilität: Preismodell-Bereich */
.pricing-intro-grid {
  contain: layout;
}
.pricing-quotes-column {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
  min-height: 13.75rem;
}
@media (max-width: 768px) {
  .pricing-intro-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 700px) {
  .campaign-stats-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr !important; }
}

/* FAQ Accordion */
.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-list > li { margin-bottom: 0.5rem; }
.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-list details[open] {
  border-color: rgba(232, 185, 35, 0.3);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.faq-list summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  color: var(--text);
  transition: background 0.2s;
}
.faq-list summary:hover { background: rgba(255, 255, 255, 0.03); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1;
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq-list .faq-answer {
  padding: 1.25rem 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}
.faq-list .faq-answer p {
  margin: 0 0 1rem;
  max-width: 65ch;
}
.faq-list .faq-answer p:last-of-type { margin-bottom: 0; }
/* FAQ-Tabelle: klare Struktur, bessere Lesbarkeit */
.faq-list .faq-answer table {
  width: 100%;
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-bottom: 0;
  border-collapse: collapse;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.faq-list .faq-answer th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
}
.faq-list .faq-answer td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}
.faq-list .faq-answer tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}
.faq-list .faq-answer tr:first-child th:first-child { border-top-left-radius: var(--radius-sm); }
.faq-list .faq-answer tr:first-child th:last-child { border-top-right-radius: var(--radius-sm); }
.faq-list .faq-answer td:first-child { font-weight: 500; color: var(--text); }
@media (max-width: 640px) {
  .faq-list .faq-answer table { display: block; }
  .faq-list .faq-answer thead { display: none; }
  .faq-list .faq-answer tr { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
  .faq-list .faq-answer tr:last-child { border-bottom: none; }
  .faq-list .faq-answer td { display: block; padding: 0.25rem 0 0.5rem; border: none; }
  .faq-list .faq-answer td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text);
    display: block;
    margin-bottom: 0.25rem;
  }
  .faq-list .faq-answer td:first-child { font-weight: 600; font-size: 0.95rem; }
  .faq-list .faq-answer td:first-child::before { content: 'Asset'; }
  .faq-list .faq-answer td:nth-child(2)::before { content: 'Format'; }
  .faq-list .faq-answer td:nth-child(3)::before { content: 'Empf. Größe'; }
  .faq-list .faq-answer td:nth-child(4)::before { content: 'Hinweis'; }
}

/* Map Tooltips (Hover-Popup) */
.leaflet-div-icon.poi-marker {
  background: none !important;
  border: none !important;
}

.leaflet-tooltip.map-point-tooltip {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.leaflet-tooltip.map-point-tooltip::before {
  border-top-color: var(--bg-elevated);
}

/* Admin: Service-Status (Backend, SQLite, InfluxDB) */
.admin-services-status .admin-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.admin-service-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.admin-service-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.admin-service-item.status-ok .admin-service-dot { background: #30d158; }
.admin-service-item.status-error .admin-service-dot { background: #ff453a; }
.admin-service-item.status-warn .admin-service-dot { background: #ffd60a; }
.admin-service-label { font-weight: 500; }
.admin-service-value {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.admin-service-item.status-ok .admin-service-value { color: #30d158; }
.admin-service-item.status-error .admin-service-value { color: #ff453a; }
.admin-service-item.status-warn .admin-service-value { color: #ffd60a; }
