:root {
  /* Farben - Natural Green Theme */
  --bg-gradient: linear-gradient(135deg, #0d1a12 0%, #132b1c 100%);
  --bg-color: #f6fbf7; /* Sehr helles Grün-Grau für den Chat-Hintergrund */
  --header-gradient: linear-gradient(90deg, #102618 0%, #1b5e20 50%, #2e7d32 100%);
  
  /* Oberflächen */
  --surface-color: #ffffff;
  --surface-hover: #f0f5f2;
  --border-color: #e2e8e4;
  
  /* Textfarben */
  --primary-text: #1b2620;
  --secondary-text: #576b5d;
  --text-white: #ffffff;
  
  /* Chat Bubbles */
  --user-bubble-bg: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  --user-bubble-text: #ffffff;
  --bot-bubble-bg: #f1f8f4;
  --bot-bubble-text: #1b2620;
  
  /* Akzente & Buttons */
  --accent-color: #4caf50; /* Frisches Grün */
  --mic-active-color: #388e3c; /* Dunkleres Grün für Aufnahme */

  /* Typografie */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-title: 'Poppins', var(--font-family);
  --font-size-base: 15px;
  --font-size-sm: 13px;
  --font-size-lg: 17px;
  --line-height-base: 1.5;

  /* Abstände (Spacing) */
  --spacing-xs: 6px;
  --spacing-sm: 10px;
  --spacing-md: 18px;
  --spacing-lg: 24px;

  /* Abrundungen (Border-Radius) */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Schatten (Shadows) */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 16px rgba(27, 94, 32, 0.08); /* Grünlich getönter Schatten */
  --shadow-lg: 0 12px 24px rgba(27, 94, 32, 0.12);
  --shadow-dropdown: 0 16px 36px rgba(13, 26, 18, 0.2);
}

/* --- UI-Verbesserungen --- */

body {
  background-color: var(--bg-color);
  font-family: var(--font-family);
}

/* App Header mit edlem Farbverlauf */
.app-header {
  background: var(--header-gradient);
  padding: 14px var(--spacing-lg);
  border-bottom: none;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  max-width: 100% !important;
  color: var(--text-white);
}

.app-title {
  font-family: var(--font-title);
  font-size: 1.4rem; 
  font-weight: 600;
  text-transform: none; 
  letter-spacing: 0.03em;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Header-Subtext für professionellen Look */
.app-title::after {
  content: 'KI-Berater';
  font-size: 0.75rem;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0;
}

#menu-toggle {
  color: var(--text-white);
}

#menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

#menu-toggle .material-symbols-outlined {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-toggle.active .material-symbols-outlined {
  transform: rotate(90deg);
}

/* Menü-Dropdown Optimierung */
.dropdown-menu {
  right: var(--spacing-lg);
  left: auto;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-dropdown);
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.dropdown-item {
  color: var(--primary-text);
  font-weight: 500;
  padding: 12px var(--spacing-md);
}

.dropdown-item:hover {
  background-color: var(--surface-hover);
  color: var(--accent-color);
}

/* Chat-specific styles moved to chat.css */

/* Erweitere deine bestehende theme.css um diese Klassen am Ende */

/* --- Welcome Screen / Startseite --- */
.welcome-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fbfbfe; /* Sehr helles, edles Off-White */
  z-index: 9999; /* Über dem eigentlichen Chat */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Zustand wenn ausgeblendet */
.welcome-screen.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}

.welcome-content {
  text-align: center;
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  margin-top: -60px; /* Leichtes optisches Anheben */
}

.welcome-logo {
  width: 130px;
  height: 130px;
  margin-bottom: var(--spacing-md);
}

.welcome-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #102618;
  text-transform: lowercase;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
}

.welcome-subtitle {
  font-family: var(--font-family);
  font-size: 1.05rem;
  line-height: 1.6;
  color: #4a5c51;
  margin-bottom: var(--spacing-lg);
  font-weight: 400;
}

/* Der markante Verlauf-Button aus dem Bild */
.welcome-button {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #4caf50 100%);
  color: #ffffff;
  border: none;
  border-radius: 20px; /* Vollwertige Kapsel-Rundung analog zum Bild */
  padding: 16px 48px;
  font-family: var(--font-family);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(46, 125, 50, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(46, 125, 50, 0.35);
  filter: brightness(1.1);
}

.welcome-button:active {
  transform: translateY(1px);
  box-shadow: 0 6px 15px rgba(46, 125, 50, 0.2);
}

/* Wellen-Hintergrund am unteren Rand */
.welcome-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

.welcome-waves svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

/* --- Info-Seiten (Unterseiten wie Über Mich, Mission, etc.) --- */
.page-wrapper {
  flex: 1;
  padding: var(--spacing-lg);
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  overflow-y: auto;
}

.page-card {
  background: var(--bot-bubble-bg);
  color: var(--bot-bubble-text);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
  font-weight: 400;
  max-width: 100%; /* Mehr Platz für den Text */
  
}

.page-card h2 {
  font-family: var(--font-title);
  color: var(--accent-color);
  margin-bottom: var(--spacing-md);
  font-size: 1.8rem;
}

.page-card p {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}