﻿*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Picmate-Brand: Dunkelrot/Maroon (#8B1538) aus dem Logo – einheitlich für beide Themes */
:root, [data-theme="dark"] {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a26;
  --bg-card-hover: #22222e;
  --bg-input: #14141e;
  --border: #2a2a3a;
  --border-focus: #a31e34;
  --text-primary: #f0f0f5;
  --text-secondary: #9494ae;
  --text-muted: #737390;
  --accent: #8B1538;
  --accent-hover: #a31e34;
  --accent-glow: rgba(139, 21, 56, 0.2);
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.1);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --warning: #eab308;
  --tag-blue: #3b82f6;
  --tag-purple: #a855f7;
  --tag-teal: #14b8a6;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}
[data-theme="light"] {
  --bg-primary: #f5f5f7;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f2;
  --bg-input: #f8f8fa;
  --border: #e0e0e6;
  --border-focus: #8B1538;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a65;
  --text-muted: #6e6e86;
  --accent: #8B1538;
  --accent-hover: #a31e34;
  --accent-glow: rgba(139, 21, 56, 0.12);
  --success: #16a34a;
  --success-bg: rgba(22, 163, 74, 0.08);
  --error: #dc2626;
  --error-bg: rgba(220, 38, 38, 0.06);
  --warning: #ca8a04;
  --tag-blue: #2563eb;
  --tag-purple: #9333ea;
  --tag-teal: #0d9488;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}
[data-theme="club"],
[data-theme="meeting"] {
  --bg-primary: #061527;
  --bg-secondary: #08203a;
  --bg-card: #0b1f36;
  --bg-card-hover: #102b4a;
  --bg-input: #0b1f36;
  --border: #2a5782;
  --border-focus: #60a5fa;
  --text-primary: #f7fbff;
  --text-secondary: #dbeafe;
  --text-muted: #a9bfd6;
  --accent: #2563eb;
  --accent-hover: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.22);
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.12);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.12);
  --warning: #f59e0b;
  --tag-blue: #60a5fa;
  --tag-purple: #93c5fd;
  --tag-teal: #38bdf8;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 20px 60px rgba(2, 14, 32, 0.38), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  --club-gradient: linear-gradient(135deg, #2563eb 0%, #0ea5e9 58%, #60a5fa 100%);
  --club-glow-pink: 0 0 16px rgba(37, 99, 235, 0.28);
  --club-glow-cyan: 0 0 18px rgba(14, 165, 233, 0.22);
}

[data-theme="club"] {
  --bg-primary: #061527;
}

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
}

.projectboard-frame-shell {
  position: relative;
  flex: 1;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  min-height: 0;
}

.projectboard-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg-primary);
}

.projectboard-frame-status {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.projectboard-frame-status.is-hidden {
  display: none;
}

.projectboard-frame-status strong {
  font-size: 17px;
  line-height: 1.25;
}

.projectboard-frame-status span:not(.projectboard-frame-spinner) {
  max-width: 420px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.projectboard-frame-status[data-state="error"] .projectboard-frame-spinner {
  display: none;
}

.projectboard-frame-status[data-state="error"] {
  border: 1px solid var(--error);
  background: var(--error-bg);
}

.projectboard-frame-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: projectboard-spin 0.8s linear infinite;
}

@keyframes projectboard-spin {
  to { transform: rotate(360deg); }
}

/* Picmate calendar */
.picmate-calendar-card {
  overflow: hidden;
}

.picmate-calendar-status {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.picmate-calendar-events {
  min-height: 360px;
}

.picmate-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.picmate-calendar-nav,
.picmate-calendar-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.picmate-calendar-view-switch .btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.picmate-calendar-native {
  display: grid;
  gap: 14px;
}

.picmate-calendar-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-primary);
}

.picmate-calendar-month-head span {
  color: var(--text-muted);
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.picmate-calendar-weekdays,
.picmate-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.picmate-calendar-weekdays span {
  padding: 8px 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.picmate-calendar-grid {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-secondary);
}

.picmate-calendar-day {
  min-height: 82px;
  padding: 9px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.picmate-calendar-day:nth-child(7n) {
  border-right: 0;
}

.picmate-calendar-day--empty {
  background: rgba(255, 255, 255, 0.01);
}

.picmate-calendar-day-number {
  font-weight: 700;
  color: var(--text-primary);
}

.picmate-calendar-day--busy {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(160, 19, 59, 0.18));
}

.picmate-calendar-day--selected {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.picmate-calendar-day-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.picmate-calendar-day-title {
  display: -webkit-box;
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.picmate-calendar-event-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  margin-top: 6px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.2;
}

.picmate-calendar-event-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picmate-calendar-event-time {
  color: var(--text-primary);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.picmate-calendar-event-edit {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  cursor: pointer;
}

.picmate-calendar-event-edit svg {
  width: 13px;
  height: 13px;
}

.picmate-calendar-more {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.picmate-calendar-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  overflow: hidden;
}

.picmate-calendar-list-title {
  padding: 12px 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.picmate-calendar-empty {
  padding: 14px;
  color: var(--text-muted);
}

.picmate-calendar-agenda {
  display: grid;
  gap: 10px;
}

.picmate-calendar-agenda--week {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: stretch;
}

.picmate-calendar-agenda-day {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  overflow: hidden;
}

.picmate-calendar-agenda-date {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.picmate-calendar-agenda-date span {
  color: var(--text-muted);
  font-size: 12px;
}

.picmate-calendar-agenda-events {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.picmate-calendar-agenda-event {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

.picmate-calendar-agenda-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.picmate-calendar-agenda-main strong {
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.picmate-calendar-source {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.picmate-calendar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 12px;
}

.picmate-calendar-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.picmate-calendar-meta svg {
  width: 13px;
  height: 13px;
}

.picmate-calendar-readonly {
  color: var(--text-muted);
  font-size: 12px;
  max-width: 150px;
  text-align: right;
}

.picmate-calendar-event--offer {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.1);
}

.picmate-calendar-event--manual {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.08);
}

.picmate-calendar-event--niiro_meeting {
  border-color: rgba(160, 19, 59, 0.3);
  background: rgba(160, 19, 59, 0.1);
}

.offer-duration-preview {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(16, 185, 129, 0.1));
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 800;
}

/* User dropdown */
#userDropdown { display: none !important; }
#userDropdown.active { display: block !important; }
#userDropdown button:hover { background: var(--bg-card-hover); }

/* Booking requests */
.booking-warning-tab {
  border-color: rgba(239, 68, 68, 0.48) !important;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(139, 21, 56, 0.24)) !important;
  color: #fff !important;
}

.booking-warning-tab .tab-icon {
  color: #fecaca;
}

.booking-new-badge,
.booking-tab-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.booking-new-badge {
  margin-left: auto;
}

.booking-tab-badge {
  margin-left: auto;
}

.booking-request-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.booking-summary-tile {
  min-height: 72px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
}

.booking-summary-tile span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.2;
}

.booking-summary-tile strong {
  display: block;
  margin-top: 8px;
  color: var(--text-primary);
  font-size: 24px;
  line-height: 1;
}

.booking-summary-tile--warn {
  border-color: rgba(239, 68, 68, 0.34);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.14), rgba(239, 68, 68, 0.045));
}

.booking-request-list {
  gap: 12px;
}

.booking-request-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.024)),
    var(--bg-card);
}

.booking-request-card--new {
  border-color: rgba(234, 179, 8, 0.28);
}

.booking-request-card--converted {
  border-color: rgba(34, 197, 94, 0.28);
}

.booking-request-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.booking-request-head h3 {
  margin: 0 0 3px;
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.2;
}

.booking-request-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.booking-request-status {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 6px;
}

.booking-age-warning {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fecaca;
  font-size: 12px;
  font-weight: 700;
}

.booking-age-warning svg,
.booking-request-meta svg {
  width: 14px;
  height: 14px;
}

.booking-request-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.booking-request-meta span,
.booking-request-meta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}

.booking-request-notes,
.booking-estimate {
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.16);
}

.booking-request-notes summary,
.booking-estimate summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
}

.booking-request-notes p {
  margin: 0;
  padding: 0 12px 12px;
  color: var(--text-secondary);
  font-size: 13px;
  white-space: pre-wrap;
}

.booking-estimate ul {
  list-style: none;
  display: grid;
  gap: 6px;
  padding: 0 12px 10px;
}

.booking-estimate li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 13px;
}

.booking-estimate p {
  margin: 0;
  padding: 0 12px 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.booking-request-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 210px;
}

.booking-reject-btn {
  color: #fecaca !important;
  border-color: rgba(239, 68, 68, 0.36) !important;
}

.qa-example-details {
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.14);
}

.qa-example-details summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
}

.qa-example-details summary small {
  color: var(--text-muted);
  font-weight: 500;
}

.qa-example-block {
  padding: 0 12px 12px;
}

.qa-example-block strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text-secondary);
  font-size: 12px;
}

.qa-example-block p {
  margin: 0;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.55;
}

/* Content-Wunsch hub */
.music-hub {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(139, 21, 56, 0.22), rgba(12, 12, 20, 0.96) 42%, rgba(20, 20, 30, 0.96));
  padding: 18px;
}

.music-hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
}

.music-hub-title {
  margin-bottom: 8px;
}

.music-hub-hero p {
  max-width: 62ch;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.music-hub-meter {
  display: inline-flex;
  align-items: flex-end;
  gap: 5px;
  width: 92px;
  height: 54px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(0,0,0,0.18);
}

.music-hub-meter span {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, var(--accent));
}

.music-hub-meter span:nth-child(1) { height: 42%; opacity: .54; }
.music-hub-meter span:nth-child(2) { height: 76%; opacity: .78; }
.music-hub-meter span:nth-child(3) { height: 100%; }
.music-hub-meter span:nth-child(4) { height: 62%; opacity: .7; }
.music-hub-meter span:nth-child(5) { height: 34%; opacity: .5; }

.music-channel-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.music-empty-card,
.music-channel-card {
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.18);
}

.music-empty-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 36px 18px;
  color: var(--text-muted);
  text-align: center;
}

.music-empty-card strong {
  color: var(--text-secondary);
}

.music-channel-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 84px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}

.music-channel-card:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.045);
}

.music-channel-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.music-channel-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(139, 21, 56, 0.22);
  color: #fff;
  flex-shrink: 0;
}

.music-channel-name {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-channel-meta {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.music-channel-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.music-count-pill,
.music-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.music-count-pill {
  background: var(--accent);
  color: #fff;
}

.music-status-pill {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
}

.music-status-pill--active { color: var(--success); background: var(--success-bg); }
.music-status-pill--closed { color: #fecaca; background: rgba(239, 68, 68, 0.12); }
.music-status-pill--draft { color: var(--warning); background: rgba(234, 179, 8, 0.12); }

.music-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.app { max-width: 1240px; margin: 0 auto; padding: 24px; }

.request-command-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(96, 165, 250, 0.10), transparent 28%),
    linear-gradient(135deg, rgba(10, 15, 25, 0.98), rgba(8, 8, 12, 0.99));
}

.request-command-stage::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.035);
  border-radius: 12px;
}

.request-stage-copy,
.request-stage-map {
  position: relative;
  z-index: 1;
}

.request-stage-copy {
  display: grid;
  align-content: center;
  gap: 10px;
}

.request-stage-copy span {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.request-stage-copy h3 {
  max-width: 100%;
  margin: 0;
  color: #f8fafc;
  font-size: clamp(24px, 2.45vw, 32px);
  line-height: 1.05;
  white-space: nowrap;
}

.request-stage-copy p {
  max-width: 46ch;
  margin: 0;
  color: #aab6c8;
  font-size: 14px;
  line-height: 1.55;
}

.request-stage-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.request-step-card {
  min-height: 68px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
}

.request-step-card strong {
  display: block;
  margin-bottom: 5px;
  color: #f8fafc;
  font-size: 14px;
}

.request-step-card small {
  color: #8b96aa;
  font-size: 12px;
  line-height: 1.45;
}

.request-stage-map {
  display: grid;
  align-content: stretch;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.035);
}

.request-flow-board {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 14px;
  border: 1px solid rgba(147,197,253,0.12);
  border-radius: 12px;
  background: rgba(8, 13, 24, 0.74);
}

.request-flow-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1.1fr) 34px minmax(0, 1fr);
  align-items: center;
  gap: 0;
}

.request-flow-node {
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 104px;
  padding: 14px;
  border: 1px solid rgba(147,197,253,0.18);
  border-radius: 14px;
  background: rgba(15,23,42,0.82);
}

.request-flow-node--core {
  border-color: rgba(245, 158, 11, 0.34);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.13), rgba(15, 23, 42, 0.86));
}

.request-flow-node span {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  word-break: normal;
  overflow-wrap: normal;
}

.request-flow-node strong {
  color: #9aa8bd;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.request-flow-connector {
  height: 2px;
  background: linear-gradient(90deg, rgba(96,165,250,0.8), rgba(245,158,11,0.72));
}

.request-flow-connector::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin-top: -2.5px;
  margin-left: auto;
  transform: rotate(45deg);
  border-top: 2px solid rgba(245,158,11,0.9);
  border-right: 2px solid rgba(245,158,11,0.9);
}

.request-output-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.request-output-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: #cbd5e1;
  background: rgba(10, 10, 15, 0.44);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  word-break: normal;
  overflow-wrap: normal;
}

.request-output-row svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.8;
  color: #93c5fd;
  flex: 0 0 auto;
}

.request-flow-board p {
  margin: 0;
  color: #8b96aa;
  font-size: 12px;
  line-height: 1.45;
}

header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0 16px; border-bottom: 1px solid var(--border); margin-bottom: 18px;
}

#themeToggle,
#userMenuBtn,
#langSelect,
.nav-burger {
  min-height: 44px;
}

#themeToggle,
.nav-burger {
  min-width: 44px;
  justify-content: center;
}

.logo { display: flex; align-items: center; gap: 14px; }
.logo-app { height: 44px; width: auto; display: block; }
.logo-app-dark { display: block; }
.logo-app-light { display: none; }
[data-theme="light"] .logo-app-dark { display: none; }
[data-theme="light"] .logo-app-light { display: block; }
.auth-logo-light { display: none !important; }
[data-theme="light"] .auth-logo-dark { display: none !important; }
[data-theme="light"] .auth-logo-light { display: block !important; }

/* Meeting palette overrides. The persisted key is still "club" for existing users. */
[data-theme="club"] .logo h1,
[data-theme="meeting"] .logo h1 { background: var(--club-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
[data-theme="club"] header,
[data-theme="meeting"] header { border-bottom-color: transparent; border-image: var(--club-gradient) 1; }
[data-theme="club"] .nav-grouped,
[data-theme="meeting"] .nav-grouped { border-color: #2a5782; background: linear-gradient(180deg, #08203a 0%, #0b1f36 100%); }
[data-theme="club"] .nav-group-toggle:hover,
[data-theme="club"] .nav-group-toggle.active,
[data-theme="meeting"] .nav-group-toggle:hover,
[data-theme="meeting"] .nav-group-toggle.active { background: rgba(37, 99, 235, 0.14); color: #93c5fd; }
[data-theme="club"] .tab-btn.active,
[data-theme="club"] .nav-sub-item.active,
[data-theme="meeting"] .tab-btn.active,
[data-theme="meeting"] .nav-sub-item.active { background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(14, 165, 233, 0.12)); color: #f7fbff; box-shadow: var(--club-glow-pink); }
[data-theme="club"] .btn-primary,
[data-theme="meeting"] .btn-primary { background: var(--club-gradient); box-shadow: var(--club-glow-pink); }
[data-theme="club"] .btn-primary:hover,
[data-theme="meeting"] .btn-primary:hover { box-shadow: 0 0 24px rgba(37, 99, 235, 0.42), 0 0 48px rgba(14, 165, 233, 0.18); }
[data-theme="club"] .btn-copy:hover,
[data-theme="club"] .btn-delete:hover,
[data-theme="meeting"] .btn-copy:hover,
[data-theme="meeting"] .btn-delete:hover { border-color: #60a5fa; color: #bfdbfe; }
[data-theme="club"] .btn-success,
[data-theme="meeting"] .btn-success { background: linear-gradient(135deg, #16a34a, #22c55e); box-shadow: 0 0 12px rgba(34, 197, 94, 0.22); }
[data-theme="club"] .card,
[data-theme="club"] .modal-content,
[data-theme="meeting"] .card,
[data-theme="meeting"] .modal-content { border: 1px solid #2a5782; box-shadow: 0 20px 60px rgba(2, 14, 32, 0.28); }
[data-theme="club"] input:focus,
[data-theme="club"] textarea:focus,
[data-theme="club"] select:focus,
[data-theme="meeting"] input:focus,
[data-theme="meeting"] textarea:focus,
[data-theme="meeting"] select:focus { box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.26); border-color: #60a5fa; }
[data-theme="club"] .health-badge,
[data-theme="meeting"] .health-badge { border-color: rgba(34, 197, 94, 0.28); box-shadow: 0 0 10px rgba(34, 197, 94, 0.12); }
[data-theme="club"] ::-webkit-scrollbar-thumb,
[data-theme="meeting"] ::-webkit-scrollbar-thumb { background: #16406c; }
[data-theme="club"] ::-webkit-scrollbar-thumb:hover,
[data-theme="meeting"] ::-webkit-scrollbar-thumb:hover { background: #2563eb; }
.logo h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; color: var(--text-primary); }
.logo span { display: block; font-size: 12px; color: var(--text-muted); font-weight: 400; letter-spacing: 0.5px; text-transform: uppercase; }

.health-badge {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px;
  background: var(--success-bg); border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 20px; font-size: 13px; color: var(--success);
}
.health-badge .dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Burger (mobile only) */
.nav-burger {
  display: none; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer;
  flex-direction: column; gap: 4px; margin-bottom: 12px;
}
.nav-burger span {
  display: block; width: 20px; height: 2px; background: var(--text-primary);
  border-radius: 1px; transition: all 0.2s;
}

/* Grouped Navigation */
.nav-grouped {
  display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 32px;
  background: var(--bg-secondary); padding: 6px;
  border-radius: var(--radius); border: 1px solid var(--border);
}

.nav-group { position: relative; flex: 1; min-width: 0; }

.nav-group-toggle {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px;
  background: none; border: none; color: var(--text-secondary);
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; border-radius: var(--radius-sm); transition: all 0.2s;
  white-space: nowrap; width: 100%;
}
.nav-group-icon { font-size: 15px; display: flex; align-items: center; }
.nav-group-icon svg, .tab-icon svg { width: 16px; height: 16px; stroke-width: 1.75; }
.input-method-label svg { width: 16px; height: 16px; stroke-width: 1.75; vertical-align: -3px; }
.btn svg, .modal-actions .btn svg, button[data-icon] svg { width: 14px; height: 14px; stroke-width: 1.75; vertical-align: -2px; }
.drop-zone-icon { display: flex; justify-content: center; }
.empty-state-icon svg { width: 32px; height: 32px; stroke-width: 1.5; }
.nav-chevron {
  display: inline-block; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid currentColor; margin-left: 2px;
  transition: transform 0.2s;
}
.nav-group-toggle:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-group-toggle.active {
  color: var(--text-primary); background: var(--bg-card);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.nav-group-toggle.nav-group-expanded .nav-chevron { transform: rotate(180deg); }

/* Dropdown panel */
.nav-group-items {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 200px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); z-index: 50;
  padding: 4px; flex-direction: column;
}
.nav-group-items.nav-group-open {
  display: flex;
}

@media (min-width: 769px) {
  .nav-group-items.nav-group-open {
    position: absolute;
    width: max-content;
    min-width: 220px;
    max-width: min(320px, calc(100vw - 32px));
    margin-top: 0;
    box-shadow: var(--shadow);
  }

  .nav-group[data-dropdown-align="end"] .nav-group-items.nav-group-open {
    left: auto;
    right: 0;
  }
}

/* Tab items inside dropdowns */
.tab {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: none; border: none; color: var(--text-secondary);
  font-family: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; border-radius: var(--radius-sm); transition: all 0.2s;
  white-space: nowrap; width: 100%; text-align: left;
}
.tab .tab-icon { font-size: 15px; flex-shrink: 0; display: flex; align-items: center; }
.tab .tab-label { display: inline; }
.tab.premium-tab { gap: 9px; }
.premium-feature-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 8px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}
.premium-feature-pill-inline { vertical-align: middle; margin-left: 6px; }
.tab:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.tab.active {
  color: var(--text-primary); background: var(--accent-glow);
  border-left: 3px solid var(--accent); font-weight: 600;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Embedded modules and Mail */
.mail-iframe-wrap {
  position: relative; width: 100%; height: calc(100vh - 120px);
  min-height: 500px; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  background: var(--bg-card);
}
/* Mail-Tab: volle Breite ohne max-width Beschraenkung */
#tab-mail .mail-iframe-wrap {
  margin: -24px; margin-top: 0; width: calc(100% + 48px);
  height: calc(100vh - 100px); border-radius: 0; border: none;
}
.mail-external-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); min-height: 180px;
}
.mail-iframe {
  width: 100%; height: 100%; border: none; display: block;
  background: var(--bg-primary);
}
a.tab.mail-external-link {
  text-decoration: none; color: var(--text-muted); font-size: 12px;
  border-top: 1px solid var(--border); margin-top: 2px; padding-top: 8px;
}
a.tab.mail-external-link:hover { color: var(--text-primary); background: var(--bg-card-hover); }

/* Cards */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card-title {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px;
  opacity: 0.85;
}
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 48px 24px; text-align: center; cursor: pointer;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--accent); background: var(--accent-glow); }
.drop-zone.has-image { padding: 16px; border-style: solid; border-color: var(--accent); }
.drop-zone-icon { font-size: 40px; margin-bottom: 12px; }
.drop-zone-text { color: var(--text-secondary); font-size: 15px; }
.drop-zone-text strong { color: var(--accent); }
.drop-zone-hint { color: var(--text-muted); font-size: 12px; margin-top: 8px; }
#audioDropContent,
#audioDropContent > div {
  max-width: 100%;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: manual;
}

.creator-meeting-card {
  margin-bottom: 20px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,0.16), transparent 28rem),
    var(--bg-secondary);
  box-shadow: var(--shadow);
}

.creator-meeting-card-head,
.creator-meeting-card-title-wrap,
.creator-meeting-link-row {
  display: flex;
  gap: 12px;
}

.creator-meeting-card-head {
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.creator-meeting-card-title-wrap {
  align-items: flex-start;
  min-width: min(100%, 320px);
  flex: 1 1 360px;
}

.creator-meeting-card-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #0b5cff;
  color: #fff;
}

.creator-meeting-card-icon svg {
  width: 19px;
  height: 19px;
}

.creator-meeting-card-title {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
}

.creator-meeting-card-desc {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.creator-meeting-card-badge {
  padding: 6px 10px;
  border: 1px solid rgba(59,130,246,0.35);
  border-radius: 999px;
  background: rgba(59,130,246,0.10);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.creator-meeting-link-row {
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 14px;
}

.creator-meeting-link-box {
  flex: 1 1 360px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
}

.creator-meeting-link-label {
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.creator-meeting-link-box strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.creator-meeting-action {
  flex: 1 1 220px;
  justify-content: center;
  min-width: 0;
  text-decoration: none;
}

.creator-meeting-status {
  min-height: 18px;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 12px;
}
#audioDropContent > div:last-child {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
#audioDropContent #audioLangHint {
  margin-left: 0 !important;
  max-width: 100%;
  word-break: normal;
  overflow-wrap: normal;
}
.preview-image { max-width: 100%; max-height: 300px; border-radius: var(--radius-sm); object-fit: contain; }
.remove-image {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px;
  background: var(--error); border: none; border-radius: 50%;
  color: white; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}

/* Inputs */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.form-grid.three-col { grid-template-columns: 1fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

label { font-size: 12.5px; font-weight: 600; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.75; }

select, input, textarea {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  color: var(--text-primary); font-family: inherit; font-size: 14px;
  transition: border-color 0.2s; width: 100%;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
#manualText {
  height: calc((1.5em * 4) + 26px);
  min-height: calc((1.5em * 4) + 26px);
  max-height: min(45vh, 260px);
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

:root,
[data-theme="dark"],
[data-theme="club"],
[data-theme="meeting"] {
  color-scheme: dark;
}

[data-theme="light"] {
  color-scheme: light;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.85);
  opacity: 0.9;
  cursor: pointer;
}

[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="light"] input[type="time"]::-webkit-calendar-picker-indicator,
[data-theme="light"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
[data-theme="light"] input[type="month"]::-webkit-calendar-picker-indicator {
  filter: none;
  opacity: 0.72;
}

[data-theme="club"] input[type="date"],
[data-theme="club"] input[type="time"],
[data-theme="club"] input[type="datetime-local"],
[data-theme="club"] input[type="month"],
[data-theme="meeting"] input[type="date"],
[data-theme="meeting"] input[type="time"],
[data-theme="meeting"] input[type="datetime-local"],
[data-theme="meeting"] input[type="month"] {
  color-scheme: dark !important;
}

[data-theme="club"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="club"] input[type="time"]::-webkit-calendar-picker-indicator,
[data-theme="club"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
[data-theme="club"] input[type="month"]::-webkit-calendar-picker-indicator,
[data-theme="meeting"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="meeting"] input[type="time"]::-webkit-calendar-picker-indicator,
[data-theme="meeting"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
[data-theme="meeting"] input[type="month"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(2.4) contrast(1.1) !important;
  opacity: 1 !important;
}

.offer-import-dropzone.is-dragover {
  border-color: var(--accent) !important;
  background: rgba(59, 130, 246, 0.12) !important;
}

/* Checkbox */
/* Eingabeart: nur eine wählen */
.input-method-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.input-method-option {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
}
.input-method-option:hover { border-color: var(--accent); background: var(--bg-card); }
.input-method-option input[type="radio"] { accent-color: var(--accent); cursor: pointer; }
.input-method-option input[type="radio"]:checked + .input-method-label { font-weight: 600; color: var(--accent); }
.input-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.input-block.inactive { opacity: 0.6; pointer-events: none; }

.checkbox-row {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  padding: 12px 16px; background: var(--bg-secondary); border-radius: var(--radius-sm);
  border: 1px solid var(--border); cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer;
}
.checkbox-row label { cursor: pointer; text-transform: none; font-size: 14px; color: var(--text-primary); font-weight: 500; }
.checkbox-row .hint { font-size: 12px; color: var(--text-muted); margin-left: auto; }

/* Divider */
.divider {
  display: flex; align-items: center; gap: 16px; margin: 24px 0;
  color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Buttons */
.btn {
  padding: 12px 24px; border: none; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ea580c);
  color: white; box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-secondary { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-card); }
.btn-copy { background: var(--bg-secondary); color: var(--text-secondary); border: 1px solid var(--border); padding: 8px 16px; font-size: 13px; }
.btn-copy:hover { color: var(--accent); border-color: var(--accent); }
.btn-delete { background: none; border: 1px solid var(--border); color: var(--text-muted); padding: 6px 12px; font-size: 12px; }
.btn-delete:hover { color: var(--error); border-color: var(--error); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #16a34a; }

/* Pipeline */
.pipeline-progress { display: none; margin-top: 24px; }
.pipeline-progress.active { display: block; }
.pipeline-steps { display: flex; gap: 4px; margin-bottom: 20px; overflow-x: auto; }
.pipeline-step {
  flex: 1; min-width: 80px; padding: 10px 8px; text-align: center;
  border-radius: var(--radius-sm); font-size: 11px; font-weight: 500;
  background: var(--bg-secondary); color: var(--text-muted);
  border: 1px solid var(--border); transition: all 0.3s;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.pipeline-step svg { width: 14px; height: 14px; stroke-width: 1.75; }
.pipeline-step.active { background: var(--accent-glow); color: var(--accent); border-color: var(--accent); }
.pipeline-step.done { background: var(--success-bg); color: var(--success); border-color: rgba(34, 197, 94, 0.3); }
.pipeline-status {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: var(--text-secondary); padding: 12px 16px;
  background: var(--bg-secondary); border-radius: var(--radius-sm);
  margin-bottom: 16px; border-left: 3px solid var(--accent);
}

/* Result */
.result-area { display: none; margin-top: 24px; }
.result-area.active { display: block; padding-top: 8px; border-top: 1px solid var(--border); margin-top: 24px; }
.result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.result-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); }
.result-body {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; font-size: 14px;
  line-height: 1.7; white-space: pre-wrap; position: relative;
}
.extracted-msg {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 16px;
  font-size: 13px; color: var(--text-secondary); border-left: 3px solid var(--tag-blue);
}
.extracted-msg strong { color: var(--text-primary); }

.score-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.score-badge.high { background: var(--success-bg); color: var(--success); }
.score-badge.mid { background: rgba(234, 179, 8, 0.1); color: var(--warning); }
.score-badge.low { background: var(--error-bg); color: var(--error); }

.details-toggle {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  padding: 8px 16px; border-radius: var(--radius-sm); font-family: inherit;
  font-size: 13px; cursor: pointer; margin-top: 16px; width: 100%; text-align: left;
}
.details-toggle:hover { color: var(--text-secondary); border-color: var(--text-muted); }
.pipeline-details {
  display: none; margin-top: 12px; padding: 16px;
  background: var(--bg-secondary); border-radius: var(--radius);
  border: 1px solid var(--border); font-family: 'JetBrains Mono', monospace;
  font-size: 12px; line-height: 1.6; color: var(--text-secondary);
  max-height: 400px; overflow-y: auto;
}
.pipeline-details.active { display: block; }

/* Tags */
.tag { padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.tag-channel { background: rgba(59, 130, 246, 0.15); color: var(--tag-blue); }
.tag-lang { background: rgba(168, 85, 247, 0.15); color: var(--tag-purple); }
.tag-scenario, .tag-teal { background: rgba(20, 184, 166, 0.15); color: var(--tag-teal); }
.tag-agency { background: var(--accent-glow); color: var(--accent); }
.tag-blue { background: rgba(59, 130, 246, 0.15); color: var(--tag-blue); }
.tag-purple { background: rgba(168, 85, 247, 0.15); color: var(--tag-purple); }

/* Examples */
.examples-list { display: flex; flex-direction: column; gap: 12px; }
.list-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) minmax(170px, 230px) auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 16px;
}
.list-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.list-filter-field label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.list-filter-field input,
.list-filter-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--bg-input);
  color: var(--text-primary);
}
.list-filter-field option {
  background: var(--bg-card);
  color: var(--text-primary);
}
.list-filter-field input::placeholder { color: var(--text-muted); }
.list-sort-dir {
  min-height: 42px;
  justify-content: center;
  white-space: nowrap;
}
.list-sort-dir svg {
  width: 16px;
  height: 16px;
}
.example-card {
  display: flex; gap: 16px; padding: 16px; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.2s;
}
.example-card:hover { border-color: var(--text-muted); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.history-card:hover { border-color: var(--accent) !important; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.example-body { flex: 1; min-width: 0; }
.example-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.example-preview { font-size: 13px; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.example-actions { display: flex; align-items: flex-start; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); border: 2px dashed var(--border); border-radius: var(--radius); background: var(--bg-secondary); }
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.7; }
.empty-state div:last-child { font-size: 14px; line-height: 1.5; }
.examples-count { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.qa-form { margin-top: 24px; }

/* Customer Cards */
.customer-card {
  display: flex; gap: 16px; padding: 16px; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.2s; align-items: center;
}
.customer-card:hover { border-color: var(--accent); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.customer-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: white; flex-shrink: 0;
}
.customer-info { flex: 1; min-width: 0; }
.customer-name { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.customer-detail { font-size: 12px; color: var(--text-secondary); }
.customer-meta { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.customer-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Agency Cards */
.agency-card {
  padding: 20px; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.2s;
}
.agency-card--primary { border-color: rgba(59, 130, 246, 0.5); background: linear-gradient(180deg, rgba(59,130,246,0.08), var(--bg-secondary)); }
.agency-card:hover { border-color: var(--accent); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.agency-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.agency-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 16px; }
.agency-market { font-size: 12px; color: var(--text-secondary); }
.agency-details { display: flex; gap: 16px; font-size: 13px; color: var(--text-secondary); flex-wrap: wrap; }

/* Search Bar */
.search-bar {
  display: flex; gap: 12px; margin-bottom: 20px; align-items: center;
}
.search-bar input { flex: 1; }
.search-bar select { width: 200px; }

/* Modal */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); z-index: 1000; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; max-width: 600px; width: 90%;
  max-height: 85vh; overflow-y: auto;
}
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
#authModal input,
#authModal select {
  min-height: 48px;
  font-size: 16px !important;
}
#authModal .btn {
  min-height: 48px;
}
#authRegister {
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}
#authRegister button[onclick^="togglePwField"] {
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 10px !important;
  right: 4px !important;
}

#loginOverlay {
  background:
    radial-gradient(circle at 12% 0%, rgba(139,21,56,0.22), transparent 34%),
    radial-gradient(circle at 84% 20%, rgba(255,255,255,0.06), transparent 24%),
    linear-gradient(180deg, #050506, #0b0b10) !important;
  align-items: flex-start;
  overflow-y: auto;
  padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
}

#authModal {
  position: relative;
  overflow: hidden;
  margin-top: clamp(18px, 4vh, 42px);
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.04)) !important;
  border: 1px solid rgba(255,255,255,0.13) !important;
  box-shadow: 0 26px 90px rgba(0,0,0,0.58) !important;
}

#authModal::before {
  content: none;
  display: none;
}

#paywallBlock::before {
  content: "";
  display: block;
  width: min(260px, 70%);
  height: 64px;
  margin: 0 auto 18px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(139,21,56,0.28), transparent 35%),
    linear-gradient(90deg, rgba(216,197,173,0.10), rgba(139,21,56,0.34), rgba(216,197,173,0.10));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 22px 62px rgba(0,0,0,0.34);
}

#paywallBlock {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.04)) !important;
  box-shadow: 0 24px 84px rgba(0,0,0,0.42);
}

[data-theme="light"] .request-command-stage::before {
  border-color: rgba(139,21,56,0.08);
}

[data-theme="light"] .request-stage-copy h3,
[data-theme="light"] .request-step-card strong,
[data-theme="light"] .request-flow-node span {
  color: #1a1a2e;
}

[data-theme="light"] .request-stage-copy p,
[data-theme="light"] .request-step-card small,
[data-theme="light"] .request-flow-node strong,
[data-theme="light"] .request-flow-board p,
[data-theme="light"] .request-output-row span {
  color: #596078;
}

[data-theme="light"] .request-stage-map {
  border-color: rgba(139,21,56,0.12);
  background: linear-gradient(180deg, rgba(139,21,56,0.035), rgba(255,255,255,0.74));
}

[data-theme="light"] .request-step-card,
[data-theme="light"] .request-flow-board,
[data-theme="light"] .request-flow-node,
[data-theme="light"] .request-output-row span {
  border-color: rgba(139,21,56,0.11);
  background: rgba(255,255,255,0.78);
}

[data-theme="light"] .request-flow-node--core {
  border-color: rgba(139,21,56,0.2);
  background: linear-gradient(180deg, rgba(139,21,56,0.1), rgba(255,255,255,0.92));
}

[data-theme="light"] .request-command-stage {
  border-color: rgba(96,165,250,0.16);
  background:
    radial-gradient(circle at 0% 0%, rgba(96,165,250,0.08), transparent 30%),
    linear-gradient(135deg, #ffffff, #f5f7fb);
}

[data-theme="light"] .request-stage-copy span {
  color: #8B1538;
}

[data-theme="light"] #loginOverlay {
  background:
    radial-gradient(circle at 12% 0%, rgba(139,21,56,0.12), transparent 34%),
    radial-gradient(circle at 84% 20%, rgba(37,99,235,0.08), transparent 24%),
    linear-gradient(180deg, #f7f4f5, #ffffff) !important;
}

[data-theme="light"] #authModal,
[data-theme="light"] #paywallBlock {
  background: rgba(255,255,255,0.94) !important;
  border-color: rgba(139,21,56,0.12) !important;
  box-shadow: 0 24px 72px rgba(41,24,32,0.16) !important;
}

[data-theme="light"] #authModal::before {
  content: none;
  display: none;
}

[data-theme="light"] #paywallBlock::before {
  border-color: rgba(139,21,56,0.12);
  background:
    radial-gradient(circle at 50% 50%, rgba(139,21,56,0.13), transparent 36%),
    linear-gradient(90deg, rgba(139,21,56,0.05), rgba(139,21,56,0.16), rgba(37,99,235,0.05));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.68), 0 18px 44px rgba(41,24,32,0.10);
}

.empty-state {
  border-style: solid;
  background:
    radial-gradient(circle at 50% 0%, rgba(139,21,56,0.12), transparent 34%),
    rgba(255,255,255,0.035);
}

.empty-state-icon {
  color: var(--accent);
  opacity: 0.86;
}

/* Stammkunde Badge */
.returning-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 20px; font-size: 13px; color: var(--tag-purple); margin-bottom: 12px;
}

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 96px; padding: 12px 20px;
  max-width: min(380px, calc(100vw - 136px));
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  word-break: normal; overflow-wrap: break-word;
  z-index: 2000; transform: translateY(100px); opacity: 0; transition: all 0.3s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--success); color: white; }
.toast.error { background: var(--error); color: white; }

.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Offer editor rows */
.oItem-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(56px, 68px) minmax(96px, 112px) minmax(104px, 124px) 40px;
  gap: 8px;
  align-items: end;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.oItem-row > div {
  min-width: 0;
}

.oItem-row .oItem-label,
.oItem-row .oItem-price-label {
  display: block !important;
  min-height: 14px;
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.oItem-row select,
.oItem-row input,
.oItem-row .oItem-remove,
.oItem-row .oItem-total {
  min-height: 42px;
}

.oItem-row .oItem-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  padding: 0 2px 0 8px;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.oItem-row .oItem-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  padding: 0 !important;
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
}

.oItem-row .oItem-remove:hover {
  color: #fff !important;
  border-color: var(--error) !important;
  background: var(--error-bg);
}

/* Analytics Grid */
.analytics-grid { grid-template-columns: repeat(4, 1fr); }

/* FAQ */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary span:first-child { transform: rotate(90deg); display: inline-block; }
.faq-item summary:hover { background: var(--bg-card-hover); }
.faq-item[open] { border-color: var(--accent) !important; }

/* ── Tablet ─────────────────────────── */
@media (max-width: 1024px) {
  .nav-group-toggle { font-size: 12px; padding: 8px 12px; }
}

.contracts-table-wrap { overflow-x: auto; }
.contracts-mobile-list { display: none; }

@media (max-width: 640px) {
  .contracts-table-wrap { display: none; }
  .contracts-mobile-list { display: grid; gap: 10px; }
  .contract-mobile-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 12px;
    cursor: pointer;
  }
  .contract-mobile-head,
  .contract-mobile-meta,
  .contract-mobile-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .contract-mobile-head { margin-bottom: 8px; }
  .contract-mobile-number {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
  }
  .contract-mobile-client {
    margin: 0 0 6px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .contract-mobile-sub {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
  }
  .contract-mobile-meta {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 12px;
    flex-wrap: wrap;
  }
  .contract-mobile-actions { margin-top: 12px; }
  .contract-mobile-open {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 7px 10px;
  }
  .contract-source-picker {
    grid-template-columns: 1fr !important;
  }
  .contract-source-load {
    width: 100%;
  }
  .contract-wizard-grid-2,
  .contract-wizard-grid-3 {
    grid-template-columns: 1fr !important;
  }
}

/* ── Mobile ─────────────────────────── */
@media (max-width: 768px) {
  .app { padding: 10px; }
  .request-command-stage { grid-template-columns: 1fr; padding: 16px; }
  .request-stage-copy h3 { white-space: nowrap; max-width: 100%; font-size: clamp(23px, 7vw, 30px); }
  .request-stage-steps, .request-output-row { grid-template-columns: 1fr; }
  .request-flow-main { grid-template-columns: 1fr; gap: 8px; }
  .request-flow-connector { width: 2px; height: 22px; justify-self: center; background: linear-gradient(180deg, rgba(96,165,250,0.8), rgba(245,158,11,0.72)); }
  .request-flow-connector::after { margin: 15px 0 0 -2.5px; transform: rotate(135deg); }
  .request-flow-node { min-height: 82px; }

  /* Header – single row, compact */
  header {
    flex-direction: row; flex-wrap: wrap; gap: 8px;
    align-items: center; justify-content: space-between;
    padding: 10px 12px;
  }
  .logo { gap: 8px; }
  .logo img { height: 32px !important; }
  .logo h1 { font-size: 16px; }
  .logo span[data-i18n="subtitle"] { display: none; }
  header > div:last-child { gap: 6px; flex-wrap: nowrap; }
  header > div:last-child .health-badge { display: none; }

  /* Navigation → vertical accordion on mobile */
  .nav-burger { display: flex; }
  .nav-grouped {
    display: none; flex-direction: column; gap: 2px;
    margin-bottom: 16px; padding: 4px;
  }
  .nav-grouped.nav-open { display: flex; }
  .nav-group-items {
    position: static;
    width: 100%;
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 2px;
    z-index: 80;
  }
  .nav-group-items.nav-group-open { display: flex; }
  .nav-group-toggle { width: 100%; justify-content: flex-start; }
  .tab { padding: 10px 14px; font-size: 13px; }
  .tab .tab-icon { font-size: 16px; }
  .tab .tab-label { font-size: 13px; }

  /* Embedded modules and Mail mobile */
  .mail-iframe-wrap { height: calc(100vh - 100px); min-height: 400px; }
  #tab-mail .mail-iframe-wrap { margin: -16px; margin-top: 0; width: calc(100% + 32px); height: calc(100vh - 80px); }

  /* Cards */
  .card { padding: 14px; margin-bottom: 12px; }
  .card-title { font-size: 12px; margin-bottom: 12px; }

  /* Forms – stack to 1 col, bigger touch targets */
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .form-grid.three-col { grid-template-columns: 1fr; }
  select, input, textarea { font-size: 16px !important; padding: 12px; -webkit-appearance: none; }
  select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
  label { font-size: 12px; }
  .form-group { margin-bottom: 10px; }

  /* Buttons – larger touch targets */
  .btn { padding: 12px 18px; font-size: 14px; min-height: 44px; }
  .btn-sm { padding: 10px 14px; font-size: 13px; min-height: 40px; }
  .btn-delete { padding: 10px 14px; font-size: 14px; min-height: 40px; }
  .btn-copy { min-height: 40px; }

  .picmate-calendar-toolbar,
  .picmate-calendar-nav,
  .picmate-calendar-view-switch {
    width: 100%;
  }
  .picmate-calendar-toolbar > .btn,
  .picmate-calendar-nav .btn,
  .picmate-calendar-view-switch .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .picmate-calendar-grid {
    overflow-x: auto;
  }
  .picmate-calendar-day {
    min-width: 118px;
    min-height: 92px;
  }
  .picmate-calendar-agenda--week {
    grid-template-columns: 1fr;
  }
  .picmate-calendar-agenda-event {
    flex-direction: column;
  }
  .picmate-calendar-readonly {
    max-width: none;
    text-align: left;
  }

  /* Pipeline */
  .pipeline-steps { flex-wrap: wrap; gap: 3px; }
  .pipeline-step { min-width: 60px; padding: 8px 4px; font-size: 11px; }

  /* Results */
  .result-header { flex-direction: column; gap: 8px; align-items: flex-start; }
  .result-meta { flex-wrap: wrap; }
  .result-body { padding: 14px; font-size: 13px; }

  /* Customer cards */
  .customer-card { flex-wrap: wrap; padding: 14px; gap: 10px; }
  .customer-avatar { width: 38px; height: 38px; font-size: 15px; }
  .customer-actions { width: 100%; justify-content: flex-end; }
  .customer-detail { font-size: 12px; }

  /* Search bar */
  .search-bar { flex-direction: column; gap: 8px; }
  .search-bar select { width: 100%; }
  .search-bar input { width: 100%; }

  /* Price list cards */
  .list-toolbar { grid-template-columns: 1fr; align-items: stretch; }
  .list-sort-dir { width: 100%; }
  .example-card { flex-direction: column; gap: 10px; }
  .example-card > div { flex-wrap: wrap; gap: 8px; }

  /* Modals – full-width, safe area aware */
  .modal-overlay { padding: 8px; align-items: flex-start; padding-top: env(safe-area-inset-top, 8px); }
  .modal { padding: 18px; width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: 92vh; border-radius: 12px; margin: 0; }
  #authModal.modal { width: min(360px, calc(100vw - 24px)) !important; max-width: min(360px, calc(100vw - 24px)) !important; }
  #authRegister { max-height: calc(100dvh - 132px) !important; padding-right: 2px; }
  .modal-title { font-size: 16px; margin-bottom: 14px; }
  .modal-actions { flex-direction: column; gap: 8px; }
  .modal-actions .btn { width: 100%; justify-content: center; }

  /* Analytics – stack cards */
  .analytics-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .booking-request-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-request-card { grid-template-columns: 1fr; }
  .booking-request-head { flex-direction: column; }
  .booking-request-status { align-items: flex-start; }
  .booking-request-actions { min-width: 0; justify-content: flex-start; }
  .booking-request-actions .btn { width: 100%; justify-content: center; }
  .picmate-calendar-weekdays span { padding: 7px 4px; text-align: center; }
  .picmate-calendar-day { min-height: 62px; padding: 6px; }
  .picmate-calendar-day-title { display: none; }
  .picmate-calendar-list-item { grid-template-columns: 1fr; }
  .music-hub { padding: 14px; }
  .music-hub-hero { grid-template-columns: 1fr; }
  .music-hub-meter { width: 100%; }
  .music-channel-card { grid-template-columns: 1fr; }
  .music-channel-side { justify-content: flex-start; }
  .music-actions .btn { width: 100%; justify-content: center; }

  /* Offer items – stack on mobile with labels */
  .oItem-row {
    grid-template-columns: 1fr 1fr !important; gap: 8px !important;
    padding: 12px !important; background: var(--bg-input);
    border-radius: var(--radius-sm); border: 1px solid var(--border) !important;
    border-bottom: none !important;
  }
  .oItem-row > div:first-child { grid-column: 1 / -1; }
  .oItem-row .oItem-label { display: block !important; }
  .oItem-row .oItem-total { justify-content: flex-start; padding: 10px 0; text-align: left !important; }

  /* Feedback buttons */
  #feedbackButtons { flex-wrap: wrap; }
  #feedbackButtons .btn { flex: 1; min-width: 60px; justify-content: center; }

  /* Drop zone */
  .drop-zone { padding: 28px 14px; }
  .drop-zone-icon { font-size: 32px; }
  .drop-zone-text { font-size: 14px; }

  /* FAQ */
  .faq-item summary { padding: 14px; font-size: 14px; }

  /* Footer */
  footer { padding: 16px 0 !important; }

  /* Checkbox row */
  .checkbox-row { flex-wrap: wrap; }
  .checkbox-row .hint { margin-left: 0; width: 100%; margin-top: 4px; }

  /* Divider */
  .divider { margin: 16px 0; }

  /* Toast – bottom safe area with reserved chat-button lane */
  .toast {
    left: 8px;
    right: 76px;
    bottom: max(12px, env(safe-area-inset-bottom, 12px));
    max-width: none;
    text-align: center;
    font-size: 13px;
  }

  /* Agency / company cards */
  .agency-header { flex-direction: column; gap: 8px; }
  .agency-details { flex-direction: column; gap: 4px; }

  /* Preisliste header buttons */
  .price-header-actions { flex-direction: column; gap: 6px; }
  .price-header-actions .btn { width: 100%; justify-content: center; }

  /* Input method row – stack vertically */
  .input-method-row { flex-direction: column; gap: 8px; }
  .input-method-option { min-width: unset; }

  /* User dropdown fix */
  #userDropdown { max-width: calc(100vw - 24px); }
}

/* ── Very small phones ──────────────── */
@media (max-width: 380px) {
  .nav-group-toggle { font-size: 12px; padding: 8px 10px; }
  .tab { font-size: 12px; padding: 8px 12px; }
  .tab .tab-icon { font-size: 14px; }
  .tab .tab-label { font-size: 12px; }
  .analytics-grid { grid-template-columns: 1fr !important; }
  .form-grid { gap: 10px; }
  .modal { padding: 12px; }
  header { padding: 8px 10px; }
  .logo img { height: 28px !important; }
  .logo h1 { font-size: 14px; }
}
