/**
 * @file theme.css
 */

 /* Basiskonfiguration */

:root {
  /* --- Light Mode (Standard) --- */
  --background: oklch(98% 0.002 261.2);
  --foreground: oklch(16% 0.001 16.7);
  /* Inverses */
  --background-inv: oklch(23.57% 0.004 285.95);
  --foreground-inv: oklch(95% 0.005 261.2);
  
  --primary: oklch(65% 0.14 215);
  --primary-foreground: oklch(98% 0 0);
  
  --card: oklch(100% 0 0);
  --card-foreground: var(--foreground);
  
  --border: oklch(85% 0.02 261.2);
  /* Inverses */
  --border-inv: oklch(40% 0.01 261.2);

  --input: oklch(90% 0.01 261.2);
  
  --muted: oklch(92% 0.01 261.2);
  --muted-foreground: oklch(45% 0.01 261.2);

  --skeleton-shine: rgba(0, 0, 0, 0.08);

  --font-sans: "Roboto", "Helvetica Neue", Arial, Helvetica, sans-serif;
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: "Fira Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
  --radius: 0.5rem;
  
  --navbar-height: calc(var(--spacing) * 18);

  /* Secondary: Bleibt als warmes, sandiges Grau (Struktur) 
  --secondary: oklch(90% 0.04 35); 
  --secondary-foreground: oklch(25% 0.04 35);*/

  /* Accent: Hier kommt das Petrol als kontrastierender Gegenpart zum Rot 
  --accent: oklch(85% 0.06 215);
  --accent-foreground: oklch(15% 0.05 215);*/

  /* Secondary: Bleibt als dunkler, erdiger Schieferton (Struktur) */
  --secondary: oklch(35% 0.04 35);
  --secondary-foreground: oklch(95% 0.03 35);

  /* Accent: Hier kommt das Petrol als leuchtender Kontrast-Akzent */
  --accent: oklch(85% 0.06 215);
  --accent-foreground: oklch(16% 0.001 16.7);

  /* Destructive: Bleibt bei deinem Primary-Rot */
  --destructive: oklch(63% 0.18 25);
  --destructive-foreground: oklch(100% 0 0);


  --shadow-x: 0;
  --shadow-y: 1px;
  --shadow-blur: 3px;
  --shadow-spread: 0px;
  --shadow-opacity: 0.1;
  --shadow-color: oklch(0 0 0);
  --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
  --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
  --shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);
  --shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);
  --shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 2px 4px -1px hsl(0 0% 0% / 0.1);
  --shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 4px 6px -1px hsl(0 0% 0% / 0.1);
  --shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1);

}

/* Media Query außerhalb von :root verschoben */
@media (min-width: 768px) {
  :root {
    --navbar-height: calc(var(--spacing) * 18);
  }
}



/* Dark Mode Steuerung über die Klasse .dark oder data-theme="dark" */
:root.dark,
[data-theme="dark"] {
    /* --- Dark Mode --- */
    --background: oklch(23.57% 0.004 285.95);
    --foreground: oklch(95% 0.005 261.2);
    /* Inverses */
    --background-inv: oklch(95% 0.005 261.2);
    --foreground-inv: oklch(23.57% 0.004 285.95);
    
    --primary: oklch(65% 0.14 215); 
    --primary-foreground: oklch(98% 0 0);
    
    --card: oklch(30% 0.008 261.2);
    --card-foreground: oklch(98% 0.002 261.2);
    
    --border: oklch(40% 0.01 261.2);
    /* Inverses */
    --border-inv: oklch(85% 0.02 261.2);

    --input: oklch(35% 0.01 261.2);
    
    --muted: oklch(35% 0.01 261.2);
    --muted-foreground: oklch(75% 0.01 261.2);

    --skeleton-shine: rgba(255, 255, 255, 0.15);
    
    --navbar-height: calc(var(--spacing) * 18);

    /* Secondary: Bleibt als dunkler, erdiger Schieferton (Struktur) */
    --secondary: oklch(35% 0.04 35);
    --secondary-foreground: oklch(95% 0.03 35);

    /* Accent: Hier kommt das Petrol als leuchtender Kontrast-Akzent */
    --accent: oklch(85% 0.06 215);
    --accent-foreground: oklch(16% 0.001 16.7);

    /* Destructive: Bleibt bei deinem Primary-Rot */
    --destructive: oklch(60% 0.20 25);
    --destructive-foreground: oklch(100% 0 0);
}

/* Navbar-Höhe bleibt bei Desktop gleich */
@media (min-width: 768px) {
  :root.dark,
  [data-theme="dark"] {
    --navbar-height: calc(var(--spacing) * 18);
  }
}







body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  transition: background-color 0.3s ease, color 0.3s ease;
}

input, textarea, select {
  background-color: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
}

.button--primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
}

.bg-primary {
    background-color: var(--primary) !important;
    color: var(--primary-foreground) !important;
}

/* Logik für die Accent-Box */
.bg-accent {
    background-color: var(--accent) !important;
    color: var(--accent-foreground) !important;
}

/* Logik für die Secondary-Box */
.bg-secondary {
    background-color: var(--secondary) !important;
    color: var(--secondary-foreground) !important;
}

.accordion .accordion--title.text-2xl {
    color: var(--foreground) !important;
}

/* Optional: Damit auch Kind-Elemente (wie Überschriften oder P-Tags) 
   automatisch die Farbe erben, falls sie nicht explizit überschrieben werden */
.bg-accent *,
.bg-secondary * {
    color: inherit;
}


