/* MarktLinse AI - Ultra Modern Design with Glassmorphism */

:root {
  --color-primary: #0066ff;
  --color-primary-dark: #0052cc;
  --color-primary-light: #3385ff;
  --color-accent: #00d4ff;
  --color-accent-secondary: #7c3aed;
  --color-success: #10b981;
  --color-bg: #fafbfc;
  --color-bg-elevated: #ffffff;
  --color-bg-subtle: #f3f4f6;
  --color-text: #0f172a;
  --color-text-secondary: #64748b;
  --color-text-tertiary: #94a3b8;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow: hidden;
  height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app-container {
  display: flex;
  height: 100vh;
  /* 🔥 LIQUID GLASS: Transparent um body gradient durchscheinen zu lassen */
  background: transparent;
  overflow: hidden;
  position: relative;
  padding-top: 0; /* No space needed - floating header */
}

/* Modern Animated Background */
.ai-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* v1.9.4: Einfach weiß statt Gradient */
  background: #ffffff;
}

.gradient-orbs {
  /* v1.9.4: Animierte Orbs ausblenden */
  display: none;
}

.gradient-orbs::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.12), transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
  filter: blur(40px);
}

.gradient-orbs::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1), transparent 70%);
  bottom: -150px;
  left: -150px;
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
  filter: blur(40px);
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.particles-canvas {
  display: none;
}

.grid-overlay {
  display: none;
}

/* Main Chat Area (Full Width - Sidebar entfernt) */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  background: transparent;
  padding-top: 72px; /* v1.9.5: Platz für fixed Header */
}

/* ============================================
   KI-Assistent Header with Integrated Tabs
   ============================================ */

/* Override style.css header for KI-Assistent */
.ki-header .ki-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: relative;
}

/* Centered Navigation Tabs in Header */
.ki-nav-tabs {
  display: flex;
  gap: 0.5rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto; /* Enable clicks - parent has pointer-events: none */
}

.ki-nav-tabs .mode-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  color: var(--color-text-secondary);
  font-family: "Clash Display", var(--font-headline); /* v1.9.4 Bug 7: Einheitlich mit Logo/Dashboard */
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ki-nav-tabs .mode-tab:hover {
  background: #ffffff;
  color: var(--color-text);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.ki-nav-tabs .mode-tab.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(0, 119, 182, 0.25);
}

/* Legacy .mode-tabs (kept for backwards compatibility, hidden) */
.mode-tabs {
  display: none;
}

/* =====================================================
   v1.9.5: Unified Navbar Design (alle Bildschirmgrößen)
   ===================================================== */

/* Header: Alle Elemente in einer Zeile */
.ki-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  height: 56px;
  padding: 0 0.25rem; /* Weniger Padding links/rechts */
  position: relative;
}

/* Alte Desktop-Elemente verstecken (ersetzt durch neues Design) */
.ki-logo,
.ki-nav-tabs,
.ki-dashboard-link {
  display: none !important;
}

/* Original Sidebar-Toggle verstecken (ersetzt durch mobile-sidebar-toggle) */
.sidebar-toggle-btn {
  display: none !important;
}

/* v1.9.5: Sidebar-Toggle (in Navbar, links) */
.mobile-sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  pointer-events: auto;
  z-index: 100;
}

.mobile-sidebar-toggle:hover {
  color: var(--color-primary);
  background: rgba(0, 119, 182, 0.06);
  border-radius: 10px;
}

.mobile-sidebar-toggle:active {
  transform: scale(0.95);
}

/* v1.9.5: Logo-Dropdown (nach Sidebar-Toggle) */
.mobile-logo-dropdown {
  display: flex;
  align-items: center;
  gap: 4px; /* Nur zwischen Logo-Name und Pfeil */
  background: transparent;
  border: none;
  font-family: "Clash Display", var(--font-headline);
  font-size: 1.5rem; /* Original ki-logo size */
  font-weight: 700; /* Original ki-logo weight */
  cursor: pointer;
  padding: 0.5rem 0.25rem;
  color: var(--color-text);
  pointer-events: auto;
  z-index: 100;
  transition: all 0.2s ease;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.mobile-logo-dropdown:hover {
  opacity: 0.8;
}

/* Logo-Name Container (kein Gap zwischen markt und linse) */
.mobile-logo-dropdown .logo-name {
  display: inline; /* Kein Flex = kein Gap */
}

.mobile-logo-dropdown .logo-text {
  color: #000000; /* Original ki-logo color */
}

.mobile-logo-dropdown .logo-accent {
  color: #0077b6; /* Original ki-logo accent */
}

.mobile-logo-dropdown .dropdown-arrow {
  color: var(--color-text-secondary);
  transition: transform 0.2s ease;
  margin-left: 2px;
}

.mobile-logo-dropdown[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

/* v1.9.5: Nav-Icons (rechts: Home + Dashboard) */
.mobile-nav-icons {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  pointer-events: auto;
  z-index: 100;
}

.mobile-nav-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
  pointer-events: auto;
}

.mobile-nav-icon:hover {
  background: rgba(0, 119, 182, 0.08);
  color: var(--color-primary);
}

.mobile-nav-icon:active {
  transform: scale(0.95);
}

/* v1.9.5: Logo-Dropdown Menü */
.logo-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 1rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0.375rem;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  animation: dropdownSlideIn 0.15s ease-out;
  pointer-events: auto;
}

.logo-dropdown-menu:not(.hidden) {
  display: block;
}

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

.logo-dropdown-menu.hidden {
  display: none !important;
}

.logo-dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  text-align: left;
  font-family: "Clash Display", var(--font-headline);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.15s ease;
  pointer-events: auto;
}

.logo-dropdown-menu .dropdown-item:hover {
  background: rgba(0, 119, 182, 0.08);
  color: var(--color-primary);
}

.logo-dropdown-menu .dropdown-item.active {
  background: var(--color-primary);
  color: white;
}

.logo-dropdown-menu .dropdown-item.active svg {
  stroke: white;
}

.logo-dropdown-menu .dropdown-item svg {
  flex-shrink: 0;
  stroke: currentColor;
}

/* v1.9.5: Responsive Anpassungen */
@media (max-width: 768px) {
  .ki-header-wrapper {
    height: 52px;
    padding: 0 0.75rem;
    gap: 0.25rem;
  }

  .chat-main {
    padding-top: 72px; /* v1.9.5: Platz für fixed Header */
  }

  .mobile-sidebar-toggle,
  .mobile-nav-icon {
    width: 40px;
    height: 40px;
  }

  .mobile-logo-dropdown {
    font-size: 1.25rem; /* Original mobile ki-logo size */
  }

  .logo-dropdown-menu {
    left: 0.75rem;
    min-width: 180px;
  }
}

/* Welcome Screen - Ultra Modern */
.welcome-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2rem 3rem; /* Reduced top padding - tabs now in header */
  position: relative;
  z-index: 1;
  animation: fadeIn 0.6s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.welcome-screen::-webkit-scrollbar {
  width: 8px;
}

.welcome-screen::-webkit-scrollbar-track {
  background: transparent;
}

.welcome-screen::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 10px;
}

.welcome-screen::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-tertiary);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-content {
  max-width: 768px !important; /* v1.9.5: Gleich wie Chat-Input */
  width: 100%;
  text-align: center;
}

/* Hero Title */
.hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

/* v1.9.5: Welcome Input */
.welcome-input-wrapper {
  margin-top: 2rem;
  width: 100% !important;
  max-width: 768px !important; /* Gleich wie Chat-Input */
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

.welcome-input-wrapper .input-wrapper-chatgpt {
  /* 1:1 identisch mit Chat Input */
  display: flex;
  gap: 0.75rem;
  align-items: flex-end; /* v1.9.5: Buttons unten halten bei Textarea-Expansion */
  padding: 0.5rem 0.875rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: all 0.2s ease;
}

.welcome-input-wrapper .input-wrapper-chatgpt:focus-within {
  border-color: rgba(0, 119, 182, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.08), 0 4px 16px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.welcome-input-wrapper textarea {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9375rem;
  color: var(--color-text);
  resize: none;
  min-height: 24px; /* 1:1 wie Chat-Input #messageInput */
  max-height: 150px; /* 1:1 wie Chat-Input #messageInput */
  overflow-y: auto; /* v1.9.5: Scrollbar bei max-height */
  line-height: 1.5;
  font-family: inherit;
  padding: 4px 0; /* 1:1 wie Chat-Input #messageInput */
}

.welcome-input-wrapper .btn-upload,
.welcome-input-wrapper .btn-send {
  width: 36px; /* Gleich wie Chat Input */
  height: 36px;
  flex-shrink: 0;
}

/* Disclaimer Text im Welcome Screen */
.welcome-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  margin-top: 0.75rem;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent),
    var(--color-accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Quick Start Suggestions - Vertical Pills */
.quick-start-suggestions {
  max-width: 400px;
  margin: 0.75rem auto 0;
  text-align: center;
}

.suggestions-intro {
  font-family: "Satoshi", var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.quick-start-grid {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 400px;
  margin: 0 auto;
}

.quick-start-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.625rem 1.125rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  font-family: "Satoshi", var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.quick-start-chip:hover {
  background: #f8f9fa;
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 119, 182, 0.12);
  color: var(--color-primary);
}

.quick-start-chip:active {
  transform: translateY(0);
}

/* Chat Messages - Modern Design */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  margin-bottom: 80px; /* v1.9.4: Reduziert von 140px für weniger Leerraum vor Input-Bar */
  display: flex;
  flex-direction: column;
  align-items: center; /* v1.9.4 Bug 6: Zentriert Messages horizontal */
  gap: 1.5rem;
}

.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-tertiary);
}

.message {
  display: flex;
  align-items: flex-start; /* Icon und Text auf gleicher Höhe */
  gap: 1rem;
  animation: messageSlide 0.3s ease;
  width: 100%;
  max-width: 800px; /* v1.9.4 Bug 6: Maximale Breite für bessere Lesbarkeit */
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.message.user .message-avatar {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}

.message.assistant .message-avatar {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: white;
}

.message-content {
  flex: 1;
  padding: 1.25rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  color: var(--color-text);
  font-family: "Satoshi", var(--font-body), sans-serif; /* Body-Text-Font */
  font-size: 0.9375rem;
  line-height: 1.7;
  box-shadow: var(--shadow-sm);
  max-width: 700px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.message.user .message-content {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(139, 92, 246, 0.05)
  );
  border-color: rgba(99, 102, 241, 0.2);
}

/* v1.9.4 Bug 5: Assistant-Antworten ohne Box - nutzen Seitenhintergrund */
.message.assistant .message-content {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0; /* Text auf gleicher Höhe wie Icon */
}

.message-content h1,
.message-content h2,
.message-content h3 {
  color: var(--color-text);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.message-content h1 {
  font-size: 1.625rem;
  border-bottom: 3px solid var(--color-primary);
  padding-bottom: 0.75rem;
  margin-top: 2rem;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.message-content h1:first-child {
  margin-top: 0;
}

.message-content h2 {
  font-size: 1.375rem;
  color: var(--color-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.message-content h2::before {
  content: "▸";
  color: var(--color-accent);
  font-size: 1.5rem;
}

.message-content h3 {
  font-size: 1.125rem;
  color: var(--color-text);
  margin-top: 1.5rem;
  font-weight: 600;
}

.message-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.message-content th {
  background: linear-gradient(
    135deg,
    rgba(0, 102, 255, 0.1),
    rgba(0, 212, 255, 0.05)
  );
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

.message-content td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.875rem;
}

.message-content tr:nth-child(even) {
  background: var(--color-bg-subtle);
}

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

.message-content strong {
  color: var(--color-primary);
  font-weight: 700;
}

.message-content a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
}

.message-content a:hover {
  border-bottom-color: var(--color-primary);
}

.message-content code {
  background: rgba(0, 102, 255, 0.08);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.875rem;
  color: var(--color-primary);
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Code-Blöcke (pre + code) */
.message-content pre {
  background: rgba(0, 102, 255, 0.08);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border-left: 4px solid var(--color-primary);
  overflow-x: auto;
  margin: 1.5rem 0;
  max-width: 100%;
}

.message-content pre code {
  background: transparent;
  padding: 0;
  display: block;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text);
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
}

.message-content ul,
.message-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.message-content li {
  margin: 0.5rem 0;
}

/* ========================================
   PROFESSIONAL SWOT MATRIX - McKinsey Style
   Black/White/Blue with X/Y Axes
   ======================================== */

.swot-professional-container {
  margin: 3rem 0;
  padding: 3rem 2rem 2rem 2rem;
  background: white;
  border: 3px solid #1a1a1a;
  border-radius: 4px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.swot-title {
  margin: 0 0 2rem 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Axis Labels Container */
.swot-axis-labels {
  position: relative;
  width: 100%;
  height: 0;
  pointer-events: none;
}

.axis-label {
  position: absolute;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

/* Top axis: POSITIV */
.axis-top {
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
}

/* Bottom axis: NEGATIV */
.axis-bottom {
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
}

/* Left axis: INTERN */
.axis-left {
  left: -5rem;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
}

/* Right axis: EXTERN */
.axis-right {
  right: -5rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
}

/* 2x2 Grid Layout */
.swot-grid-professional {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  border: 2px solid #1a1a1a;
  min-height: 500px;
  position: relative;
}

/* Individual SWOT Box */
.swot-box {
  padding: 2rem;
  border: 1px solid #1a1a1a;
  display: flex;
  flex-direction: column;
}

.swot-box h4 {
  margin: 0 0 1.5rem 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #0066ff;
}

.swot-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.swot-box li {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #333;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.swot-box li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: #0066ff;
  font-size: 1.25rem;
  line-height: 1.4;
}

/* Quadrant Colors - Blue for Positive, Grey for Negative */

/* Top-Left: Stärken (INTERN + POSITIV) */
.swot-strengths-pro {
  background: linear-gradient(135deg, #e6f2ff 0%, #cce5ff 100%);
  grid-column: 1;
  grid-row: 1;
}

/* Top-Right: Chancen (EXTERN + POSITIV) */
.swot-opportunities-pro {
  background: linear-gradient(135deg, #cce5ff 0%, #b3d9ff 100%);
  grid-column: 2;
  grid-row: 1;
}

/* Bottom-Left: Schwächen (INTERN + NEGATIV) */
.swot-weaknesses-pro {
  background: linear-gradient(135deg, #f8f8f8 0%, #ebebeb 100%);
  grid-column: 1;
  grid-row: 2;
}

/* Bottom-Right: Risiken (EXTERN + NEGATIV) */
.swot-threats-pro {
  background: linear-gradient(135deg, #ebebeb 0%, #dedede 100%);
  grid-column: 2;
  grid-row: 2;
}

/* Responsive SWOT für Mobile */
@media (max-width: 768px) {
  .swot-professional-container {
    padding: 2rem 1rem 1rem 1rem;
    margin: 2rem 0;
  }

  .swot-title {
    font-size: 1.375rem;
  }

  .axis-label {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }

  .axis-left {
    left: -3.5rem;
  }

  .axis-right {
    right: -3.5rem;
  }

  .swot-grid-professional {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    min-height: auto;
  }

  .swot-strengths-pro {
    grid-column: 1;
    grid-row: 1;
  }
  .swot-opportunities-pro {
    grid-column: 1;
    grid-row: 2;
  }
  .swot-weaknesses-pro {
    grid-column: 1;
    grid-row: 3;
  }
  .swot-threats-pro {
    grid-column: 1;
    grid-row: 4;
  }

  .swot-box {
    padding: 1.5rem;
    min-height: 200px;
  }

  .swot-box h4 {
    font-size: 1rem;
  }

  .swot-box li {
    font-size: 0.875rem;
  }
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 0.375rem;
  padding: 1rem;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--color-text-tertiary);
  border-radius: 50%;
  animation: typing 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Export Actions - Modern Design */
.export-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-light);
  animation: fadeIn 0.3s ease;
}

.btn-export {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: var(--color-bg-elevated);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.btn-export svg {
  color: var(--color-primary);
  transition: transform var(--transition-base);
}

.btn-export:hover {
  border-color: var(--color-primary);
  background: rgba(0, 102, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-export:hover svg {
  transform: scale(1.1);
}

.btn-export:active {
  transform: translateY(0);
}

/* Follow-up Suggestions - Modern Design */
.follow-up-suggestions {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(0, 102, 255, 0.04),
    rgba(124, 58, 237, 0.02)
  );
  border: 1.5px solid rgba(0, 102, 255, 0.15);
  border-radius: 16px;
  animation: slideUp 0.4s ease;
  box-shadow: var(--shadow-sm);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.suggestions-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.125rem;
}

.suggestions-header svg {
  flex-shrink: 0;
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.suggestions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.suggestion-chip {
  padding: 0.75rem 1.125rem;
  background: var(--color-bg-elevated);
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  text-align: left;
  line-height: 1.4;
  box-shadow: var(--shadow-sm);
}

.suggestion-chip:hover {
  border-color: var(--color-primary);
  background: rgba(0, 102, 255, 0.06);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.suggestion-chip:active {
  transform: translateY(-1px) scale(1);
}

/* File Preview Area - Modern Design */
.file-preview-area {
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-light);
  animation: slideDown 0.3s ease;
  box-shadow: var(--shadow-sm);
}

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

.file-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.file-preview-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
}

.btn-clear-files {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-elevated);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-sm);
}

.btn-clear-files:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #ef4444;
  transform: scale(1.05);
}

.file-preview-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.file-preview-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg-elevated);
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.file-preview-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.file-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  border-radius: 10px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-top: 0.125rem;
}

.btn-remove-file {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--color-text-secondary);
}

.btn-remove-file:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #ef4444;
  transform: scale(1.05);
}

.btn-analyze {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 2rem;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 6px 24px rgba(0, 102, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-analyze::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.btn-analyze:hover::before {
  left: 100%;
}

.btn-analyze:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 102, 255, 0.4);
}

.btn-analyze:active {
  transform: translateY(0);
}

/* ==================================================
   EMAIL EXPORT CHECKBOX (v2.0)
   ================================================== */
.email-export-option {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
}

.email-export-option .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.email-export-option input[type="checkbox"] {
  display: none;
}

.email-export-option .checkmark {
  width: 22px;
  height: 22px;
  background: var(--glass-bg);
  border: 2px solid var(--color-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.email-export-option .checkmark::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
}

.email-export-option input[type="checkbox"]:checked + .checkmark {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  border-color: var(--color-primary);
}

.email-export-option input[type="checkbox"]:checked + .checkmark::after {
  transform: rotate(45deg) scale(1);
}

.email-export-option .checkbox-text {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.email-export-option:hover {
  border-color: var(--color-primary);
}

.email-export-option:hover .checkmark {
  border-color: var(--color-primary);
}

/* Email Success Toast */
.email-success-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
  z-index: 10001;
  animation: toastSlideUp 0.4s ease;
}

.email-success-toast svg {
  flex-shrink: 0;
}

.email-success-toast span {
  font-size: 0.9375rem;
  font-weight: 500;
}

.email-success-toast.fade-out {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  transition: all 0.3s ease;
}

/* Analysis Welcome Screen - Ultra Modern */
.analysis-welcome {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 2rem 10rem;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.5s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.analysis-welcome::-webkit-scrollbar {
  width: 8px;
}

.analysis-welcome::-webkit-scrollbar-track {
  background: transparent;
}

.analysis-welcome::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 10px;
}

.analysis-welcome::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-tertiary);
}

.analysis-welcome-content {
  max-width: 650px;
  text-align: center;
}

.analysis-icon {
  margin: 0 auto 2rem;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(0, 102, 255, 0.1),
    rgba(124, 58, 237, 0.08)
  );
  border-radius: 24px;
  border: 2px solid rgba(0, 102, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 102, 255, 0.15);
  animation: float 3s ease-in-out infinite;
}

.analysis-welcome-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.analysis-welcome-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.analysis-welcome-subtitle strong {
  color: var(--color-primary);
  font-weight: 700;
}

.analysis-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.analysis-feature-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  border: 1.5px solid var(--color-border);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.analysis-feature-item:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.analysis-feature-item svg {
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.analysis-feature-item:hover svg {
  transform: scale(1.1) rotate(5deg);
}

.analysis-feature-item span {
  font-size: 0.9375rem;
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.4;
}

.btn-upload-large {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: 1.375rem 2rem;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 6px 24px rgba(0, 102, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-upload-large::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.btn-upload-large:hover::before {
  left: 100%;
}

.btn-upload-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 102, 255, 0.45);
}

.btn-upload-large:active {
  transform: translateY(0);
}

/* Minimalistischer Upload-Disclaimer */
.upload-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.upload-disclaimer svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.upload-info {
  margin-top: 1.125rem;
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
}

/* Attached Files in Chat Mode - Modern Design */
.attached-files-container {
  padding: 1.25rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-light);
  animation: slideDown 0.3s ease;
  box-shadow: var(--shadow-sm);
}

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

.attached-count {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-primary);
}

.btn-remove-all-attached {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--color-text-secondary);
}

.btn-remove-all-attached:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #ef4444;
  transform: scale(1.05);
}

.attached-files-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.attached-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  background: var(--color-bg-elevated);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--color-text);
  max-width: 280px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.attached-file-chip:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.attached-file-chip svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

.attached-file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.btn-remove-attached {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--color-text-secondary);
  padding: 0;
  flex-shrink: 0;
}

.btn-remove-attached:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  transform: scale(1.1);
}

/* Chat Input Area - ChatGPT Style Floating */
.chat-input-area {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  /* 🔥 LIQUID GLASS: KEIN Padding - Container unsichtbar */
  padding: 0;
  background: transparent;
  z-index: 10;
  pointer-events: none;
  /* v1.9.4: Zentrierung sicherstellen */
  display: flex;
  justify-content: center;
}

/* v1.9.4: Bottom input visibility controlled via JavaScript */

.input-container-floating {
  max-width: 768px; /* Chat-Input: Standard-Breite */
  width: 100%; /* v1.9.4: Volle Breite bis max-width */
  margin: 0 auto 0.5rem; /* v1.9.4: Reduziert von 1rem auf 0.5rem */
  padding: 0 1.5rem;
  pointer-events: auto;
  /* 🔥 LIQUID GLASS: Transparent - nur Inhalt sichtbar */
  background: transparent;
}


.input-wrapper-chatgpt {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem 0.875rem;
  /* 🔥 LIQUID GLASS: Höhere Opacity für Lesbarkeit, aber trotzdem Blur-Effekt */
  background: rgba(255, 255, 255, 0.85);
  /* 🔥 LIQUID GLASS: Subtile Border */
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  transition: all var(--transition-base);
  /* 🔥 LIQUID GLASS: Subtile Shadow */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  /* 🔥 LIQUID GLASS: Blur für Durchsicht des Chats */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.input-wrapper-chatgpt:focus-within {
  /* 🔥 LIQUID GLASS: Focus State */
  border-color: rgba(0, 119, 182, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.08), 0 4px 16px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.btn-upload {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.btn-upload:hover {
  background: var(--color-bg-hover);
  color: var(--color-primary);
}

#messageInput,
#welcomeMessageInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.9375rem; /* 15px - leicht größer */
  color: var(--color-text);
  resize: none;
  max-height: 150px; /* erhöht von 120px */
  min-height: 24px; /* erhöht von 20px */
  font-family: inherit;
  line-height: 1.5; /* bessere Lesbarkeit */
  padding: 4px 0; /* vertikales Padding für bessere Ausnutzung */
}

#messageInput::placeholder,
#welcomeMessageInput::placeholder {
  color: var(--color-text-tertiary);
}

.btn-send {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-base);
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.btn-send:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.35);
}

.btn-send:active {
  transform: scale(0.95);
}

.btn-send:disabled {
  background: var(--color-border);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.5;
}

.input-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  margin-top: 0.5rem;
  padding: 0 1rem;
  line-height: 1.4;
}

/* Loading Overlay - Modern Design */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 251, 252, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.loading-content {
  text-align: center;
  max-width: 300px;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
  animation-delay: -0.45s;
}

.spinner-ring:nth-child(2) {
  animation-delay: -0.3s;
  border-top-color: var(--color-accent);
}

.spinner-ring:nth-child(3) {
  animation-delay: -0.15s;
  border-top-color: var(--color-accent-secondary);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.loading-progress {
  width: 100%;
  height: 4px;
  background: var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-accent),
    var(--color-accent-secondary)
  );
  background-size: 200% 100%;
  animation: progress 2s ease-in-out infinite;
  border-radius: 10px;
}

@keyframes progress {
  0% {
    width: 0%;
    background-position: 0% 50%;
  }
  50% {
    width: 70%;
    background-position: 100% 50%;
  }
  100% {
    width: 100%;
    background-position: 0% 50%;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .app-container {
    height: 100vh;
    padding-top: 0; /* No space needed - floating header */
  }

  .ai-background {
    top: 0; /* Start from very top */
  }

  .sidebar {
    position: fixed;
    left: -280px;
    height: 100vh; /* Full height now */
    top: 0;
    z-index: 100;
    transition: left 0.3s;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  }

  .sidebar.open {
    left: 0;
  }

  /* Mobile-spezifische Tab-Styles (≤768px) */
  .ki-nav-tabs {
    gap: 0.375rem;
  }

  .ki-nav-tabs .mode-tab {
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    border-radius: 16px;
  }

  /* Legacy .mode-tabs hidden */
  .mode-tabs {
    display: none;
  }

  .welcome-screen {
    /* v1.9.4: Zentriert bleiben auf Tablet, nur padding anpassen */
    align-items: center;
    padding: 1.5rem 1rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero-title {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }

  .quick-start-suggestions {
    max-width: 300px; /* Reduced from 100% */
    padding: 0 0.5rem;
  }

  .suggestions-intro {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  .quick-start-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .quick-start-chip {
    padding: 0.5rem 0.875rem; /* Reduced from 1rem 1.25rem */
    font-size: 0.875rem;
    min-height: 44px;
  }

  .quick-start-chip svg {
    width: 18px;
    height: 18px;
  }

  .upload-disclaimer {
    font-size: 0.75rem;
    max-width: 100%;
    padding: 0 1rem;
  }

  .upload-disclaimer svg {
    width: 14px;
    height: 14px;
  }

  .chat-messages {
    padding: 1rem;
    margin-bottom: 180px;
    height: auto;
    min-height: calc(100vh - 60px - 52px - 180px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .message-content {
    max-width: 100%;
    padding: 1rem 1rem;
  }

  .message-content pre {
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .message-content pre code {
    font-size: 0.8125rem;
  }

  .analysis-welcome {
    padding: 1.5rem 1rem 8rem;
    height: auto;
    min-height: calc(100vh - 60px - 52px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .analysis-welcome-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .analysis-features {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* v1.9.5: Chat-Input zentriert + schmaler */
  .chat-input-area {
    display: flex;
    justify-content: center;
    padding: 0 !important;
  }

  .input-container-floating {
    max-width: 100%;
    width: 100%;
    padding: 0 0.75rem; /* Weniger Padding */
    margin-bottom: 0.5rem;
  }

  .input-wrapper-chatgpt {
    padding: 0.375rem 0.625rem; /* Reduziert */
    border-radius: 18px;
    gap: 0.375rem;
  }

  #messageInput,
  #welcomeMessageInput {
    max-height: 80px; /* Reduziert von 100px */
    min-height: 18px; /* Reduziert von 20px */
    font-size: 0.9375rem;
  }

  .btn-upload,
  .btn-send {
    width: 32px; /* Reduziert von 40px */
    height: 32px;
  }

  .input-hint {
    font-size: 0.6875rem;
    margin-top: 0.75rem;
    padding: 0 0.5rem;
  }
}

/* v1.9.4 Bug 8: Tablet + Mobile Navbar - 2-zeilig */
@media (max-width: 1024px) {
  .ki-header-wrapper {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .ki-logo {
    order: 1;
  }

  .ki-dashboard-link {
    order: 2;
    margin-left: auto;
  }

  .ki-nav-tabs {
    position: static;
    transform: none;
    width: 100%;
    justify-content: center;
    order: 3;
  }
}

@media (max-width: 480px) {
  /* v1.9.4 Bug 12: Mobile - KEINE vertikale Zentrierung */
  .welcome-screen {
    align-items: flex-start;
    padding-top: 2rem;
    min-height: auto;
  }

  .hero-title {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 0.8125rem;
    line-height: 1.6;
  }

  .quick-start-chip {
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
  }

  .chat-messages {
    padding: 0.75rem;
    margin-bottom: 160px;
    height: auto;
    min-height: calc(100vh - 60px - 52px - 160px);
  }

  .message {
    gap: 0.5rem;
  }

  .message-avatar {
    width: 32px;
    height: 32px;
  }

  .message-content {
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
    max-width: 100%;
    min-width: 0;
  }

  .message-content h1 {
    font-size: 1.375rem;
    margin-top: 1.25rem;
  }

  .message-content h2 {
    font-size: 1.125rem;
    margin-top: 1.25rem;
  }

  .message-content h3 {
    font-size: 1rem;
    margin-top: 1rem;
  }

  .message-content pre {
    padding: 0.75rem 0.875rem;
    font-size: 0.75rem;
    margin: 1rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .message-content pre code {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .message-content code {
    font-size: 0.8125rem;
    padding: 0.2rem 0.4rem;
  }

  .message-content table {
    font-size: 0.75rem;
  }

  .message-content th,
  .message-content td {
    padding: 0.5rem 0.625rem;
    font-size: 0.75rem;
  }

  .attached-files-container {
    padding: 1rem;
  }

  .file-preview-area {
    padding: 1.25rem;
  }

  .input-wrapper-chatgpt {
    padding: 0.5rem 0.75rem;
    border-radius: 18px;
  }

  #messageInput,
  #welcomeMessageInput {
    max-height: 80px;
    min-height: 18px;
  }

  .btn-upload,
  .btn-send {
    width: 36px;
    height: 36px;
  }
}

/* ============================================
   RESPONSIVE DESIGN OPTIMIERUNGEN
   ============================================ */

/* Basis Mobile Fix - verhindert horizontales Scrollen */
@media (max-width: 768px) {
  html {
    overflow-x: hidden;
    width: 100%;
  }

  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .app-container {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Gradient Orbs auf Mobile komplett ausblenden oder stark reduzieren */
  .gradient-orbs::before {
    width: 400px;
    height: 400px;
    right: -200px;
  }

  .gradient-orbs::after {
    width: 300px;
    height: 300px;
    left: -150px;
  }

  /* Particles Canvas anpassen */
  .particles-canvas {
    max-width: 100vw;
    overflow: hidden;
  }

  /* Chat Main auf volle Breite, aber mit Padding */
  .chat-main {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Welcome Screen kein Overflow */
  .welcome-screen {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 1.5rem 1rem 4rem;
    align-items: center; /* v1.9.4: Zentriert bleiben auf Tablet */
  }

  .welcome-content {
    width: 100%;
    max-width: 100%;
  }

  /* Chat Messages Container */
  .chat-messages {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 1rem;
  }

  /* Messages selbst */
  .message {
    max-width: 100%;
    width: 100%;
    gap: 0.5rem;
  }

  .message-content {
    max-width: 100% !important;
    width: auto;
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  /* Feature Pills */
  .feature-pills {
    width: 100%;
    max-width: 100%;
  }

  .feature-pill {
    max-width: 100%;
  }

  /* Quick Start */
  .quick-start-grid {
    width: 100%;
    max-width: 100%;
  }

  .quick-start-chip {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Tables müssen containiert sein */
  .message-content table {
    max-width: 100%;
  }

  /* Input Area */
  .chat-input-area {
    width: 100%;
    max-width: 100vw;
  }

  .input-container {
    width: 100%;
    max-width: 100%;
  }

  /* File Preview */
  .file-preview-area {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Analysis Welcome */
  .analysis-welcome {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 2rem 1rem 8rem;
  }

  .analysis-welcome-content {
    width: 100%;
    max-width: 100%;
  }
}

/* Extra Small Devices - iPhone SE, kleine Smartphones */
@media (max-width: 375px) {
  .hero-title {
    font-size: 1.625rem;
    line-height: 1.15;
  }

  .mode-tabs {
    gap: 0.5rem; /* Reduced from 0.75rem */
    padding-left: 4.5rem; /* Space for toggle button (0.75rem + 44px + margin) */
    padding-right: 0.5rem; /* Reduced for symmetry */
  }

  .mode-tab {
    padding: 0.5rem 0.625rem; /* Further reduced from 0.625rem 0.75rem */
    font-size: 0.75rem; /* Reduced from 0.8125rem */
    min-width: unset;
    flex: 1;
  }

  .mode-tab svg {
    width: 16px;
    height: 16px;
  }

  .quick-start-chip {
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
  }

  .message-content {
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
  }

  .btn-upload {
    width: 38px;
    height: 38px;
  }

  .btn-send {
    width: 34px;
    height: 34px;
  }

  input-wrapper textarea {
    font-size: 0.8125rem;
  }
}

/* Phablets - größere Smartphones */
@media (min-width: 481px) and (max-width: 640px) {
  .feature-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .quick-start-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
  .welcome-content {
    max-width: 1000px; /* v1.9.5: Gleiche Breite wie Desktop */
  }

  /* v1.9.4: hero-title size now controlled by base rule only
  .hero-title {
    font-size: 2.5rem;
  }
  */

  .feature-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .quick-start-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .message-content {
    max-width: 650px;
  }
}

/* Large Desktops */
@media (min-width: 1440px) {
  .welcome-content {
    max-width: 1000px;
  }

  .chat-messages {
    padding: 3rem;
  }

  .message-content {
    max-width: 800px;
  }

  /* v1.9.4: hero-title size now controlled by base rule only
  .hero-title {
    font-size: 3.5rem;
  }
  */
}

/* Fluid Typography - DISABLED for v1.9.4 simplified hero title
.hero-title {
  font-size: clamp(1.625rem, 5vw + 0.5rem, 3.5rem);
}
*/

.hero-subtitle {
  font-size: clamp(0.875rem, 2vw + 0.25rem, 1.125rem);
}

/* Touch-Optimierung - nur auf Touch-Geräten */
@media (hover: none) and (pointer: coarse) {
  /* Alle interaktiven Elemente mindestens 44x44px */
  .mode-tab {
    min-height: 44px;
    touch-action: manipulation;
  }

  .quick-start-chip {
    min-height: 44px;
    touch-action: manipulation;
  }

  .btn-upload,
  .btn-send,
  .btn-upload-large,
  .btn-analyze {
    touch-action: manipulation;
  }

  /* Hover-Effekte deaktivieren auf Touch */
  .mode-tab:hover {
    transform: none;
    background: transparent;
  }

  .quick-start-chip:hover {
    transform: none;
  }

  /* Aber Active-States beibehalten für Feedback */
  .mode-tab:active {
    transform: scale(0.97);
  }

  .quick-start-chip:active {
    transform: scale(0.97);
    opacity: 0.8;
  }

  /* Scroll-Verbesserungen */
  .chat-messages,
  .welcome-screen {
    -webkit-overflow-scrolling: touch;
  }
}

/* Input Area Fixed auf Mobile - Glassmorphism Design beibehalten */
@media (max-width: 768px) {
  .chat-input-area {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    /* 🔥 LIQUID GLASS: KEIN Padding - Container unsichtbar */
    padding: 0;
    z-index: 20;
    pointer-events: none;
  }

  .input-container-floating {
    pointer-events: auto;
  }
}

/* Mode Tabs Sticky */
@media (max-width: 1024px) {
  .mode-tabs {
    position: relative; /* CHANGED: Nicht mehr sticky */
    top: auto;
    margin: 0.5rem 0.75rem 0;
    padding: 0.5rem 0.75rem;
    background: transparent;
    z-index: 15;
    box-shadow: none;
    border-bottom: 1px solid var(--color-border-light);
  }

  .mode-tab {
    background: var(--glass-bg);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .mode-tab.active {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.12);
  }
}

/* Tablet Range: Prevent tabs from appearing in navbar */
@media (min-width: 836px) and (max-width: 1024px) {
  .mode-tabs {
    padding-top: 2.5rem; /* Reduced from 3.5rem to stay below navbar */
    margin-top: 0;
  }
}

@media (min-width: 769px) and (max-width: 835px) {
  .mode-tabs {
    top: 3rem;
  }
}

/* Table Responsiveness - Wrapper-basierte Lösung */
@media (max-width: 768px) {
  /* Scroll-Wrapper um Tabelle (via JavaScript erstellt) */
  .table-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    width: 100%;
    border-left: 3px solid var(--color-primary);
  }

  .table-scroll-wrapper table {
    display: table; /* Native Table - KEIN block! */
    width: auto; /* Auto-width basiert auf Content */
    min-width: 100%; /* Mindestens volle Container-Breite */
    margin: 0; /* Kein Margin - Wrapper hat Margin */
  }

  .message-content th,
  .message-content td {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    white-space: nowrap; /* Verhindert Zeilenumbruch */
  }
}

/* SWOT-Matrix Mobile Optimierung */
@media (max-width: 768px) {
  .swot-professional-container {
    padding: 1rem;
    margin: 1.5rem 0;
  }

  .swot-box {
    padding: 1rem;
    min-height: 150px;
  }

  .swot-box h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
  }

  .swot-box li {
    font-size: 0.8125rem;
    line-height: 1.5;
    margin: 0.5rem 0;
  }
}

/* File Preview Optimierung */
@media (max-width: 768px) {
  .file-preview-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .file-preview-item {
    width: 100%;
  }

  .btn-upload-large {
    padding: 1.125rem 1.75rem;
    font-size: 1rem;
  }

  .analysis-features {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }
}

/* iOS Safe Area Support - für Geräte mit Notch */
@supports (padding: env(safe-area-inset-bottom)) {
  .chat-input-area {
    /* 🔥 LIQUID GLASS: KEIN Padding - Container unsichtbar (auch mit Safe Area) */
    padding-bottom: 0;
  }

  .app-container {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Landscape Optimierung für Smartphones */
@media (max-width: 812px) and (orientation: landscape) {
  .welcome-screen {
    padding: 1.5rem 2rem 4rem;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    margin-bottom: 1.5rem;
  }

  .feature-pills {
    gap: 0.75rem;
  }

  .feature-pill {
    padding: 0.75rem 1rem;
  }

  .quick-start-suggestions {
    margin-top: 1.5rem;
  }
}

/* Verbesserte Scrollbar-Styles für Desktop */
@media (min-width: 769px) {
  .chat-messages::-webkit-scrollbar {
    width: 10px;
  }

  .chat-messages::-webkit-scrollbar-track {
    background: var(--color-bg-subtle);
    border-radius: 10px;
  }

  .chat-messages::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 10px;
    transition: background var(--transition-base);
  }

  .chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-tertiary);
  }
}

/* ============================================
   PRINT CONTAINER (Mobile-kompatibel)
   ============================================ */

/* Print Container - normalerweise unsichtbar */
.print-only {
  display: none !important;
}

/* ============================================
   PROFESSIONAL PDF EXPORT STYLES
   ============================================ */

@media print {
  /* Page setup - Margins minimiert um Browser Header/Footer zu vermeiden */
  @page {
    margin: 1.5cm 2cm; /* Oben/Unten kleiner, links/rechts normal */
    size: A4;
  }

  /* Erste Seite kann mehr oberen Margin haben */
  @page :first {
    margin-top: 2cm;
  }

  /* ✅ KRITISCH: Alle Overflow/Height Beschränkungen aufheben für mehrseitige PDFs */
  html,
  body,
  .app-container,
  .chat-main,
  .chat-messages,
  .chat-content,
  #printContainer,
  #printContainer * {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    position: static !important;
  }

  /* Mobile Print Fix: Erzwinge volle Breite */
  html, body {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* ✅ Wenn #printContainer existiert, verstecke ALLES andere (Mobile-Fix) */
  body:has(#printContainer:not(:empty)) > *:not(#printContainer) {
    display: none !important;
  }

  #printContainer {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: white !important;
    padding: 0;
    margin: 0;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Print-Header (Logo + Titel + Datum) - NICHT umbrechen! */
  #printContainer .print-header {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* MarktLinse Logo im Print-Header */
  #printContainer .print-logo {
    font-size: 32pt;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -1px;
  }

  #printContainer .print-logo .logo-markt {
    color: #1a1a1a;
  }

  #printContainer .print-logo .logo-linse {
    color: #0066ff;
  }

  #printContainer .print-header .print-subtitle {
    font-size: 16pt;
    color: #666 !important;
    font-weight: 400;
    margin: 0 0 0.5rem 0;
    border: none;
    padding: 0;
  }

  #printContainer .print-header .print-date {
    color: #999;
    font-size: 10pt;
    margin-bottom: 0.5rem;
  }

  #printContainer .print-header .print-powered-by {
    color: #666;
    font-size: 10pt;
    margin-bottom: 1rem;
  }

  #printContainer .print-header .print-powered-by .logo-markt {
    color: #1a1a1a;
    font-weight: 700;
  }

  #printContainer .print-header .print-powered-by .logo-linse {
    color: #0066ff;
    font-weight: 700;
  }

  #printContainer .print-header hr {
    border: none;
    border-top: 2px solid #0066ff;
    margin: 0.5rem 0 1rem 0;
  }

  /* ========================================
     INHALTSVERZEICHNIS (v5)
     ======================================== */
  .print-toc {
    margin: 1.5rem 0 2rem 0;
    padding: 1.25rem 1.5rem;
    border: 2px solid #0066ff;
    background: #f8fafc;
    border-radius: 8px;
  }

  .print-toc h2 {
    font-size: 14pt;
    color: #0066ff;
    margin: 0 0 1rem 0;
    border-bottom: 2px solid #0066ff;
    padding-bottom: 0.5rem;
    font-weight: 600;
  }

  .print-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
  }

  .print-toc li {
    padding: 0.5rem 0;
    border-bottom: 1px dotted #ccc;
    font-size: 11pt;
    color: #333;
    counter-increment: toc-counter;
  }

  /* TOC: Die H2-Kapitel enthalten bereits "1. Lagebewertung" etc.
     CSS-Counter deaktiviert um doppelte Nummerierung zu vermeiden */
  .print-toc li::before {
    content: none;
  }

  .print-toc li:last-child {
    border-bottom: none;
  }

  /* ========================================
     SEITENUMBRUCH-ELEMENT (v5)
     JavaScript injiziert <div class="page-break">
     vor jeder H1 (außer der ersten)
     ======================================== */
  .page-break {
    display: block;
    page-break-before: always;
    break-before: page;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    clear: both;
  }

  #printContainer .print-content {
    font-family: "Inter", Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
  }

  /* ✅ Content direkt nach Header starten (kein Whitespace) */
  #printContainer .print-content > *:first-child {
    margin-top: 0 !important;
  }

  /* ✅ Print-Content Elemente müssen auch mehrseitig sein */
  #printContainer .print-content * {
    page-break-inside: auto;
  }

  #printContainer .print-content h2,
  #printContainer .print-content h3 {
    page-break-after: avoid;
  }

  #printContainer .print-content table,
  #printContainer .print-content .swot-professional-container {
    page-break-inside: avoid;
  }

  /* Hide UI elements */
  .main-header,
  .mode-tabs,
  .chat-input-area,
  .export-actions,
  .follow-up-suggestions,
  .message-avatar,
  .btn-export,
  .ai-background,
  .chat-sidebar,
  .sidebar-toggle,
  .disclaimer-banner,
  .disclaimer-modal {
    display: none !important;
  }

  /* Reset backgrounds for print */
  body {
    background: white !important;
  }

  .app-container,
  .chat-main,
  .chat-messages {
    background: white !important;
  }

  /* Message layout */
  .message {
    page-break-inside: avoid;
    margin-bottom: 1.5rem;
    break-inside: avoid;
  }

  .message-content {
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: none !important;
    padding: 1.5rem !important;
  }

  /* Typography für Print */
  .message-content h1 {
    font-size: 18pt;
    color: #0066ff !important;
    border-bottom: 2px solid #0066ff;
    padding-bottom: 0.5rem;
    margin-top: 0;
    page-break-after: avoid;
    /* Titel nicht umbrechen */
    word-break: keep-all;
    overflow-wrap: normal;
  }

  /* ✅ KAPITEL-STYLING (v5)
     Seitenumbruch wird jetzt via JavaScript (.page-break DIV) gesteuert
     Hier nur Styling-Regeln für H1 nach dem Umbruch */
  #printContainer .print-content h1 {
    margin-top: 0;
    padding-top: 0;
    page-break-after: avoid;
  }

  /* H2 = Die 5 Kapitel (1. Lagebewertung, 2. Energieeffizienz, etc.)
     Page-breaks werden via JavaScript (.page-break DIV) injiziert */
  #printContainer .print-content h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    padding-top: 0;
    page-break-after: avoid;
    font-size: 16pt;
    color: #0066ff !important;
    border-bottom: 2px solid #0066ff;
    padding-bottom: 0.5rem;
  }

  /* ====== ÜBERSCHRIFTEN MIT KONSISTENTEN ABSTÄNDEN (Task 4 Fix v4) ======
     Problem: PDF-Export verwendet #printContainer .print-content,
     aber CSS-Styles waren nur für .message-content definiert.
     Lösung: Beide Container mit gleichen Styles. */

  .message-content h2,
  #printContainer .print-content h2 {
    font-size: 16pt;
    color: #0066ff !important;
    margin-top: 0;
    padding-top: 1.5rem;
    margin-bottom: 0.75rem;
    page-break-after: avoid;
  }

  .message-content h3,
  #printContainer .print-content h3 {
    font-size: 14pt;
    color: #333 !important;
    margin-top: 0;
    padding-top: 1.75rem;
    margin-bottom: 0.5rem;
    page-break-after: avoid;
  }

  .message-content h4,
  #printContainer .print-content h4 {
    font-size: 12pt;
    color: #333 !important;
    margin-top: 0;
    padding-top: 1.25rem;
    margin-bottom: 0.5rem;
    page-break-after: avoid;
  }

  /* Erste Überschrift im Content braucht keinen oberen Abstand */
  .message-content > h1:first-child,
  .message-content > h2:first-child,
  .message-content > h3:first-child,
  #printContainer .print-content > h1:first-child,
  #printContainer .print-content > h2:first-child,
  #printContainer .print-content > h3:first-child {
    padding-top: 0;
  }

  /* Tabellen für Print - mit sichtbaren Linien */
  .message-content table,
  #printContainer .print-content table {
    page-break-inside: auto;
    border: 1px solid #333 !important;
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
  }

  .message-content th,
  #printContainer .print-content th {
    background: #f0f0f0 !important;
    color: #333 !important;
    border: 1px solid #333 !important;
    padding: 0.75rem;
    font-weight: 700;
    text-align: left;
  }

  .message-content td,
  #printContainer .print-content td {
    border: 1px solid #333 !important;
    padding: 0.65rem;
  }

  /* Tabellenzeilen nicht trennen */
  .message-content tr,
  #printContainer .print-content tr {
    page-break-inside: avoid;
  }

  .message-content tr:nth-child(even),
  #printContainer .print-content tr:nth-child(even) {
    background: #f9f9f9 !important;
  }

  /* Mobile Print: Tabellen nicht komprimieren */
  #printContainer table {
    table-layout: fixed !important;
    width: 100% !important;
  }

  #printContainer td,
  #printContainer th {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Professional SWOT Matrix für Print */
  .swot-professional-container {
    page-break-inside: avoid;
    background: white !important;
    border: 3px solid #1a1a1a !important;
    padding: 2rem !important;
    box-shadow: none !important;
    margin: 2rem 0 !important;
  }

  .swot-title {
    color: #1a1a1a !important;
    page-break-after: avoid;
  }

  .swot-axis-labels {
    display: block !important;
  }

  .axis-label {
    color: #1a1a1a !important;
  }

  /* SWOT Grid - ERZWINGE 2x2 Layout (überschreibt Mobile Media Query!) */
  .swot-grid-professional {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    gap: 0 !important;
    border: 2px solid #1a1a1a !important;
    min-height: 350px !important;
  }

  /* Explizite Grid-Positionen für 2x2 Layout */
  .swot-strengths-pro {
    grid-column: 1 !important;
    grid-row: 1 !important;
    background: #e6f2ff !important;
  }

  .swot-opportunities-pro {
    grid-column: 2 !important;
    grid-row: 1 !important;
    background: #cce5ff !important;
  }

  .swot-weaknesses-pro {
    grid-column: 1 !important;
    grid-row: 2 !important;
    background: #f8f8f8 !important;
  }

  .swot-threats-pro {
    grid-column: 2 !important;
    grid-row: 2 !important;
    background: #ebebeb !important;
  }

  .swot-box {
    page-break-inside: avoid;
    border: 1px solid #1a1a1a !important;
    padding: 1rem !important;
  }

  .swot-box h4 {
    color: #1a1a1a !important;
    border-bottom: 2px solid #0066ff !important;
    font-size: 11pt !important;
    margin-bottom: 0.75rem !important;
  }

  /* SWOT Box UL mit Einzug für Bullet Points (v7) */
  .swot-box ul {
    padding-left: 1.5rem !important;
    margin: 0 !important;
    list-style: none !important;
  }

  .swot-box li {
    color: #333 !important;
    font-size: 9pt !important;
    margin: 0.4rem 0 !important;
    padding-left: 0.5rem !important;
    position: relative !important;
  }

  .swot-box li::before {
    color: #0066ff !important;
    position: absolute !important;
    left: -1rem !important;
  }

  /* Mobile Print: SWOT Grid volle Breite */
  .swot-grid-professional {
    width: 100% !important;
    min-width: 0 !important;
  }

  .swot-box {
    min-width: 0 !important;
  }

  /* Links für Print - nur echte URLs anzeigen */
  .message-content a {
    color: #0066ff !important;
    text-decoration: underline;
  }

  /* Nur externe Links (http/https) zeigen URL an */
  .message-content a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #666;
    word-break: break-all;
  }

  /* Interne Links (href="#", "javascript:", oder kein href) - kein Suffix */
  .message-content a[href^="#"]::after,
  .message-content a[href^="javascript"]::after,
  .message-content a:not([href])::after {
    content: none !important;
  }

  /* ✅ Links ohne echte URL komplett ausblenden (z.B. "Anzeigen" Buttons) */
  .message-content a[href="#"],
  .message-content a[href=""],
  .message-content a[href="javascript:void(0)"],
  .message-content a:not([href^="http"]) {
    display: none !important;
  }

  /* Horizontale Linien */
  hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 1.5rem 0;
  }

  /* Bullet Points */
  .message-content ul,
  .message-content ol {
    margin: 0.75rem 0;
    padding-left: 2rem;
  }

  .message-content li {
    margin: 0.4rem 0;
    color: #333;
  }

  /* Strong tags */
  .message-content strong {
    color: #0066ff !important;
    font-weight: 700;
  }

  /* Code blocks */
  .message-content code {
    background: #f5f5f5 !important;
    border: 1px solid #ddd;
    padding: 0.2rem 0.4rem;
    color: #333;
  }
}

/* ===========================
   Chat Sidebar - Floating Historie
   =========================== */

/* Sidebar Toggle Button (schwebend, immer sichtbar) */
.sidebar-toggle-btn {
  position: fixed;
  left: 1rem;
  top: 4rem; /* Aligned with tab center: padding-top (3.5rem) + tab padding + tab height/2 */
  z-index: 200;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--color-primary);
}

.sidebar-toggle-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 119, 182, 0.2);
}

.sidebar-toggle-btn svg {
  transition: transform 0.3s ease;
}

/* Hide toggle when sidebar is open */
.sidebar-open .sidebar-toggle-btn {
  opacity: 0;
  pointer-events: none;
}

/* Tablet: Toggle flush with tabs */
@media (min-width: 768px) and (max-width: 834px) {
  .sidebar-toggle-btn {
    top: 4.4rem; /* Aligned with tab center */
  }
}

/* Floating Sidebar (Glassmorphism) */
.chat-sidebar {
  position: fixed;
  left: -340px;
  top: 1rem;
  width: 320px;
  height: calc(100vh - 2rem);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  z-index: 150;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-sidebar.open {
  left: 1rem;
}

.sidebar-open .chat-main {
  margin-left: 340px;
  transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar Header */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.sidebar-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.sidebar-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.sidebar-close-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text);
}

/* New Chat Button */
.btn-new-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: calc(100% - 3rem);
  margin: 1rem 1.5rem;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
  flex-shrink: 0;
}

.btn-new-chat:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 119, 182, 0.4);
}

.btn-new-chat svg {
  flex-shrink: 0;
}

/* Chat History List */
.chat-history-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 1rem 1rem;
}

.chat-history-list::-webkit-scrollbar {
  width: 6px;
}

.chat-history-list::-webkit-scrollbar-track {
  background: transparent;
}

.chat-history-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.chat-history-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Chat History Group */
.chat-history-group {
  margin-bottom: 1rem;
}

.chat-history-group-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-tertiary);
  padding: 0.5rem 0.5rem 0.375rem;
  margin-bottom: 0.25rem;
}

/* Chat History Items */
.chat-history-item {
  position: relative;
  display: flex;
  flex-direction: column; /* ✅ Changed: column statt row (default) */
  gap: 0; /* ✅ Changed: kein gap zwischen header und documents */
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-history-item:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--color-primary);
  transform: translateX(4px);
}

.chat-history-item.active {
  background: rgba(0, 119, 182, 0.1);
  border-color: var(--color-primary);
}

.chat-history-item.type-document {
  border: 2px solid #0077b6;
}

.chat-history-item.type-document:hover {
  border-color: #005a8c;
}

.chat-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ✅ Conversation Type Icon (Chat/Doc) - Nur Symbol, kein Hintergrund */
.conversation-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex-shrink: 0;
  padding: 0;
  background: transparent; /* Kein Hintergrund */
  transition: all 0.2s ease;
}

/* SVG Icon Styles */
.conversation-symbol svg {
  width: 20px;
  height: 20px;
  stroke: #0077b6; /* Primary blue */
}

/* Document Analysis Icon - Blue (same as Chat) */
.chat-history-item.type-document .conversation-symbol svg {
  stroke: #0077b6; /* Blue stroke */
}

/* Chat Icon - Blue (default) */
.chat-history-item.type-chat .conversation-symbol svg {
  stroke: #0077b6; /* Blue stroke */
}

/* Hover Effects - Nur SVG skalieren */
.chat-history-item:hover .conversation-symbol {
  transform: scale(1.1);
}

.chat-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.chat-item-delete {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-text-tertiary);
  opacity: 0;
  flex-shrink: 0;
}

.chat-history-item:hover .chat-item-delete {
  opacity: 1;
}

.chat-item-delete:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.chat-item-delete.disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.chat-item-delete.disabled:hover {
  background: transparent;
  color: var(--color-text-tertiary);
}

/* Mobile/Tablet: Delete-Button immer sichtbar (kein Hover) */
@media (max-width: 1024px) {
  .chat-item-delete {
    opacity: 0.6;
  }

  .chat-history-item.has-report .chat-item-delete {
    opacity: 0.3;
  }
}

/* ========================================
   Document Storage & Report Protection
   ======================================== */

/* Chat Item Header (contains badges + delete button) */
.chat-item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

/* Badges Container (document count + report protection) */
.chat-item-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* Document Count Badge */
.document-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 119, 182, 0.1);
  border: 1px solid rgba(0, 119, 182, 0.2);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0077b6;
  cursor: pointer;
  transition: all 0.2s ease;
}

.document-count-badge:hover {
  background: rgba(0, 119, 182, 0.15);
  border-color: rgba(0, 119, 182, 0.3);
  transform: scale(1.05);
}

.document-count-badge svg {
  width: 14px;
  height: 14px;
  stroke: #0077b6;
}

/* Report Protection Badge (gold lock icon) */
.report-protection-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.report-protection-badge svg {
  width: 14px;
  height: 14px;
  stroke: #f59e0b;
}

.report-protection-badge:hover {
  background: rgba(251, 191, 36, 0.15);
  transform: scale(1.05);
}

/* Report-Protected Conversation Styling */
.chat-history-item.has-report {
  background: linear-gradient(
    135deg,
    rgba(254, 243, 199, 0.4),
    rgba(253, 230, 138, 0.4)
  );
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.chat-history-item.has-report:hover {
  background: linear-gradient(
    135deg,
    rgba(254, 243, 199, 0.5),
    rgba(253, 230, 138, 0.5)
  );
  border-color: rgba(251, 191, 36, 0.4);
}

/* Expandable Documents List */
.chat-item-documents {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  animation: slideDown 0.2s ease;
}

/* Documents Header (Folder Icon + Name) */
.documents-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.documents-header .folder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #0077b6;
}

.documents-header .folder-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
}

.documents-header .folder-name {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.documents-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  padding: 0.5rem 0;
}

.documents-loading .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 119, 182, 0.2);
  border-top-color: #0077b6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.documents-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.document-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.document-item:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(4px);
}

.document-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(0, 119, 182, 0.1);
  border-radius: 6px;
  flex-shrink: 0;
}

.document-icon svg {
  width: 20px;
  height: 20px;
  stroke: #0077b6;
}

.document-info {
  flex: 1;
  min-width: 0;
}

.document-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-meta {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  margin-top: 0.125rem;
}

.no-documents,
.documents-error {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-align: center;
  padding: 0.5rem 0;
}

.documents-error {
  color: #ef4444;
}

/* Expanded State Indicator */
.chat-history-item.expanded {
  background: rgba(255, 255, 255, 0.5);
}

.chat-history-item.expanded.has-report {
  background: linear-gradient(
    135deg,
    rgba(254, 243, 199, 0.5),
    rgba(253, 230, 138, 0.5)
  );
}

/* Empty State */
.chat-history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--color-text-secondary);
}

.chat-history-empty svg {
  margin-bottom: 1rem;
  opacity: 0.3;
}

.chat-history-empty p {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.chat-history-empty span {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .sidebar-toggle-btn {
    width: 44px;
    height: 44px;
    left: 1.6rem;
    top: 4rem;
  }

  .chat-sidebar {
    left: -300px;
    width: 280px;
    top: 0.75rem;
    height: calc(100vh - 1.5rem);
    border-radius: 12px;
  }

  .chat-sidebar.open {
    left: 0.75rem;
  }

  .sidebar-open .chat-main {
    margin-left: 0;
  }

  .sidebar-header {
    padding: 1rem 1.25rem;
  }

  .sidebar-title {
    font-size: 1rem;
  }

  .btn-new-chat {
    margin: 0.75rem 1.25rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .chat-history-item {
    padding: 0.75rem 0.875rem;
  }

  .chat-item-title {
    font-size: 0.8125rem;
  }

  .chat-item-preview {
    font-size: 0.75rem;
  }
}

/* Extra Small Screens: Toggle exakt bündig mit Tabs */
@media (max-width: 375px) {
  .sidebar-toggle-btn {
    top: 3.5rem; /* Exactly flush: padding-top (3rem) + tab-padding (0.625rem) + tab-height/2 (~11px) */
  }
}

/* Tablet & Desktop: Sidebar verschiebt Chat nach rechts */
@media (min-width: 768px) {
  .sidebar-open .chat-main {
    margin-left: 340px;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Very Small Mobile */
@media (max-width: 374px) {
  .chat-sidebar {
    left: -100%;
    width: calc(100vw - 1.5rem);
  }

  .chat-sidebar.open {
    left: 0.75rem;
  }

  .sidebar-open .chat-main {
    opacity: 0.3;
    pointer-events: none;
  }
}

/* Tablet & Mobile: Tabs kompakter machen */
@media (max-width: 834px) {
  .mode-tabs {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    gap: 0.5rem;
  }

  .mode-tab {
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    gap: 0.375rem;
  }

  .mode-tab svg {
    width: 16px;
    height: 16px;
  }
}

/* Extra Small Devices: Behalte 400px Button-Größe, nur padding-left anpassen */
@media (max-width: 375px) {
  .mode-tabs {
    gap: 0.5rem; /* Same as 400px (from 834px query) */
    padding-left: 4.5rem; /* Space for toggle button */
    padding-right: 0.75rem; /* Same as 400px */
  }

  .mode-tab {
    padding: 0.625rem 0.875rem; /* Same as 400px (10px 14px) */
    font-size: 0.8125rem; /* Same as 400px (13px) */
  }
}

/* ========================================
   Disclaimer Banner & Modal
   iOS-Style Glassmorphic Design (v1.8.2)
   ======================================== */

/* Disclaimer Banner (shown above chat input) */
.disclaimer-banner {
  position: fixed;
  bottom: 90px; /* Above chat input (80px height + 10px margin) */
  left: 50%;
  transform: translateX(-50%);
  z-index: 900; /* Below modal (1000), above chat (800) */

  max-width: 768px;
  width: calc(100% - 32px);

  /* Glassmorphic Card */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);

  border: 1px solid rgba(0, 119, 182, 0.2);
  border-radius: 12px;

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);

  padding: 16px 20px;

  /* Smooth Animation */
  animation: slideUpBanner 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpBanner {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.disclaimer-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.disclaimer-icon-wrapper {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(0, 119, 182, 0.1),
    rgba(0, 180, 217, 0.1)
  );
  border-radius: 10px;
}

.disclaimer-icon {
  width: 24px;
  height: 24px;
  stroke: #0077b6;
}

.disclaimer-text-content {
  flex: 1;
}

.disclaimer-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
}

.disclaimer-description {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #6b7280;
  margin: 0;
}

.disclaimer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.disclaimer-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: rgba(0, 119, 182, 0.04);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.disclaimer-checkbox-label:hover {
  background: rgba(0, 119, 182, 0.08);
}

.disclaimer-checkbox-input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #0077b6; /* iOS-style blue */
  border-radius: 4px;
}

.disclaimer-checkbox-text {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #374151;
}

.disclaimer-checkbox-text a {
  color: #0077b6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.disclaimer-checkbox-text a:hover {
  border-bottom-color: #0077b6;
}

.disclaimer-btn-accept {
  align-self: flex-end;
  padding: 10px 20px;
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 119, 182, 0.3);
}

.disclaimer-btn-accept:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.4);
}

.disclaimer-btn-accept:disabled {
  background: linear-gradient(135deg, #9ca3af, #d1d5db);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

/* Disclaimer Modal (Fullscreen Overlay) */
.disclaimer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000; /* Above everything */

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;

  /* Fade In Animation */
  animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.disclaimer-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* ✅ v1.9.1: Lighter overlay */
  backdrop-filter: blur(12px); /* ✅ v1.9.1: Stronger blur */
  -webkit-backdrop-filter: blur(12px);
}

.disclaimer-modal-content {
  position: relative;
  z-index: 1;

  max-width: 600px;
  width: 100%;
  max-height: 85vh;

  /* Glassmorphic Card */
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);

  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);

  display: flex;
  flex-direction: column;

  /* Scale Up Animation */
  animation: scaleUpModal 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleUpModal {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.disclaimer-modal-header {
  padding: 32px 32px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 119, 182, 0.1);
}

.disclaimer-modal-icon {
  margin: 0 auto 16px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(0, 119, 182, 0.1),
    rgba(0, 180, 217, 0.1)
  );
  border-radius: 50%;
}

.disclaimer-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.disclaimer-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
}

.disclaimer-modal-intro {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 24px;
}

.disclaimer-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.disclaimer-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(0, 119, 182, 0.04);
  border-radius: 10px;
  border-left: 3px solid #0077b6;
}

.disclaimer-point-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.disclaimer-point-text {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #374151;
}

.disclaimer-point-text strong {
  font-weight: 600;
  color: #1f2937;
  display: block;
  margin-bottom: 4px;
}

.disclaimer-modal-checkbox-wrapper {
  padding: 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
}

.disclaimer-modal-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.disclaimer-modal-checkbox-text {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #374151;
  font-weight: 500;
}

.disclaimer-modal-checkbox-text a {
  color: #0077b6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
  font-weight: 600;
}

.disclaimer-modal-checkbox-text a:hover {
  border-bottom-color: #0077b6;
}

.disclaimer-modal-footer {
  padding: 20px 32px 32px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 1px solid rgba(0, 119, 182, 0.1);
}

.disclaimer-btn-cancel {
  padding: 10px 20px;
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
  border: 1px solid rgba(107, 114, 128, 0.2);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.disclaimer-btn-cancel:hover {
  background: rgba(107, 114, 128, 0.15);
  border-color: rgba(107, 114, 128, 0.3);
}

/* Responsive: Mobile */
@media (max-width: 768px) {
  .disclaimer-banner {
    bottom: 70px; /* Mobile input height adjustment */
    width: calc(100% - 16px);
    padding: 12px 16px;
  }

  .disclaimer-banner-content {
    gap: 10px;
    margin-bottom: 12px;
  }

  .disclaimer-icon-wrapper {
    width: 36px;
    height: 36px;
  }

  .disclaimer-icon {
    width: 20px;
    height: 20px;
  }

  .disclaimer-title {
    font-size: 0.875rem;
  }

  .disclaimer-description {
    font-size: 0.8125rem;
  }

  .disclaimer-checkbox-text {
    font-size: 0.8125rem;
  }

  .disclaimer-btn-accept {
    font-size: 0.875rem;
    padding: 8px 16px;
  }

  /* Modal Mobile */
  .disclaimer-modal {
    padding: 12px;
  }

  .disclaimer-modal-content {
    max-height: 90vh;
    border-radius: 12px;
  }

  .disclaimer-modal-header {
    padding: 24px 20px 20px;
  }

  .disclaimer-modal-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
  }

  .disclaimer-modal-title {
    font-size: 1.25rem;
  }

  .disclaimer-modal-body {
    padding: 20px;
  }

  .disclaimer-modal-intro {
    font-size: 0.875rem;
    margin-bottom: 20px;
  }

  .disclaimer-points {
    gap: 12px;
    margin-bottom: 20px;
  }

  .disclaimer-point {
    padding: 12px;
  }

  .disclaimer-point-text {
    font-size: 0.8125rem;
  }

  .disclaimer-modal-checkbox-wrapper {
    padding: 12px;
  }

  .disclaimer-modal-checkbox-text {
    font-size: 0.8125rem;
  }

  .disclaimer-modal-footer {
    padding: 16px 20px 24px;
    flex-direction: column-reverse;
  }

  .disclaimer-btn-cancel,
  .disclaimer-btn-accept {
    width: 100%;
    justify-content: center;
  }
}

/* Responsive: Small Mobile */
@media (max-width: 480px) {
  .disclaimer-banner {
    bottom: 65px;
    font-size: 0.8125rem;
  }

  .disclaimer-modal-header {
    padding: 20px 16px 16px;
  }

  .disclaimer-modal-body {
    padding: 16px;
  }

  .disclaimer-modal-footer {
    padding: 12px 16px 20px;
  }
}

/* ==================================================
   SAVE REPORT BUTTON (Inline in export-actions)
   ================================================== */

/* Report button styled same as other export buttons */
.btn-export.btn-save-report {
  /* Inherits from .btn-export - slight accent color */
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.btn-export.btn-save-report:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

.btn-export.btn-save-report:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-export.btn-save-report svg {
  flex-shrink: 0;
}

/* Success Toast */
.success-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #10b981;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10000;
}

.success-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Mobile Adjustments for Success Toast */
@media (max-width: 768px) {
  .success-toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    text-align: center;
  }
}

/* ========================================
   Disclaimer Security (v1.9.1)
   ======================================== */

/* Blur effect for app background when disclaimer not accepted */
.app-blur {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s ease;
}

/* ✅ FIX v4: Banner is now OUTSIDE .app-container, no CSS override needed */
/* Modal is already outside, no changes needed */

/* ========================================
   Success Toast Notification (v1.9.1)
   ======================================== */

.success-toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 10001;

  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;

  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);

  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);

  font-size: 0.9375rem;
  font-weight: 500;
  color: #10b981;

  opacity: 0;
  transition: all 0.3s ease;
}

.success-toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .success-toast-notification {
    left: 16px;
    right: 16px;
    width: auto;
    transform: translateX(0) translateY(100px);
  }

  .success-toast-notification.show {
    transform: translateX(0) translateY(0);
  }
}

/* ==================================================
   REPORT SAVE MODAL (Investor/Eigennutzer Auswahl)
   v1.9.3 - Coaching-KI Integration
   ================================================== */

.report-save-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInModal 0.3s ease;
}

.report-save-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.report-save-modal-content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  animation: scaleUpModal 0.3s ease;
}

.report-save-modal-header {
  position: relative;
  padding: 24px 24px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 119, 182, 0.1);
}

/* Title Row - Icon inline mit Titel */
.report-save-modal-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.report-save-title-icon {
  width: 24px;
  height: 24px;
  color: #0077b6;
  flex-shrink: 0;
}

.report-save-modal-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.report-save-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.2s ease;
}

.report-save-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #374151;
}

.report-save-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.report-save-modal-intro {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 16px;
  text-align: center;
}

.report-save-modal-question {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 20px;
  text-align: center;
}

/* Option Cards Container */
.report-save-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Radio Button Hidden */
.report-save-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Option Label */
.report-save-option {
  cursor: pointer;
  display: block;
}

/* Option Card */
.report-save-option-card {
  padding: 20px 16px;
  background: rgba(0, 119, 182, 0.04);
  border: 2px solid rgba(0, 119, 182, 0.15);
  border-radius: 12px;
  text-align: left;
  transition: all 0.2s ease;
}

.report-save-option:hover .report-save-option-card {
  border-color: rgba(0, 119, 182, 0.3);
  background: rgba(0, 119, 182, 0.08);
}

/* Selected State */
.report-save-option input[type="radio"]:checked + .report-save-option-card {
  border-color: #0077b6;
  background: rgba(0, 119, 182, 0.1);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
}

/* Left Container (Icon + Title) - Desktop: normal flow */
.report-save-option-left {
  display: contents; /* Auf Desktop: Container hat keinen Einfluss */
}

/* Option Icon - bleibt zentriert */
.report-save-option-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 119, 182, 0.1);
  border-radius: 12px;
  color: #0077b6;
  transition: all 0.2s ease;
}

/* Option Title - zentriert */
.report-save-option-title {
  text-align: center;
}

.report-save-option input[type="radio"]:checked + .report-save-option-card .report-save-option-icon {
  background: #0077b6;
  color: #fff;
}

/* Option Title */
.report-save-option-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
}

/* Option Features List */
.report-save-option-features {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.8;
}

.report-save-option-features li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.report-save-option-features li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: #0077b6;
  border-radius: 50%;
  opacity: 0.5;
}

/* Modal Footer - Buttons zentriert */
.report-save-modal-footer {
  padding: 16px 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Cancel Button */
.report-save-btn-cancel {
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #6b7280;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.report-save-btn-cancel:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
}

/* Confirm Button */
.report-save-btn-confirm {
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.report-save-btn-confirm:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}

.report-save-btn-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .report-save-modal {
    padding: 12px;
  }

  .report-save-modal-content {
    max-height: 95vh;
    border-radius: 12px;
  }

  .report-save-modal-header {
    padding: 20px 20px 16px;
  }

  .report-save-modal-icon {
    width: 56px;
    height: 56px;
  }

  .report-save-modal-title {
    font-size: 1.25rem;
  }

  .report-save-modal-body {
    padding: 20px;
  }

  .report-save-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Mobile Card: Horizontal Layout (Links: Icon+Titel | Rechts: Bullets) */
  .report-save-option-card {
    padding: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    text-align: left;
  }

  /* Linke Seite: Icon + Titel Container */
  .report-save-option-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    flex-shrink: 0;
  }

  .report-save-option-icon {
    margin: 0 0 8px 0;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
  }

  .report-save-option-title {
    margin-bottom: 0;
    text-align: center;
    font-size: 0.875rem;
  }

  /* Rechte Seite: Bullet Points */
  .report-save-option-features {
    display: block;
    flex: 1;
    margin: 0;
  }

  .report-save-option-features li {
    justify-content: flex-start;
    font-size: 0.75rem;
    line-height: 1.6;
  }

  .report-save-modal-footer {
    padding: 16px 20px 20px;
    flex-direction: column-reverse;
  }

  .report-save-btn-cancel,
  .report-save-btn-confirm {
    width: 100%;
    justify-content: center;
  }
}
