/* --- global.css --- */
/* BASIS: Variablen, Reset, Schriftarten, Buttons, Dark Mode Logic */

:root {
  /* Farben */
  --ukraine-blue: #0057b7;
  --ukraine-yellow: #ffdd00;
  --accent-red: #e63946;

  /* Light Mode */
  --bg-body: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.98);
  --bg-light-section: #f9f9f9;
  --bg-card: #ffffff;
  --text-main: #1a1a1a;
  --text-body: #4a4a4a;
  --text-muted: #666;
  --border-color: #eee;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-strong: rgba(0, 0, 0, 0.15);
  --overlay-bg: rgba(0, 0, 0, 0.6);
  --btn-text: #ffffff;
  --nav-link-color: #2c2c2c;

  /* TopBar & Status Farben */
  --topbar-bg: #e6f2ff;
  --topbar-text: #0057b7;
  --track-bg: #cbdcea;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
/* --- CUSTOM SCROLLBAR (Blau mit gelbem Rand & Linie) --- */

/* --- WIDE CUSTOM SCROLLBAR (Fixe Breite) --- */

/* 1. Breite erzwingen */
::-webkit-scrollbar {
  width: 30px !important; /* 30px ist sehr breit. Falls zu breit, mach 20px draus */
  height: 30px !important; /* Für horizontales Scrollen */
}

/* 2. Hintergrund (Track) */
::-webkit-scrollbar-track {
  background: #f4f4f4;
  border-left: 1px solid var(--border-color);
}

/* 3. Schieberegler (Thumb) */
::-webkit-scrollbar-thumb {
  background-color: var(--ukraine-blue); /* Blau */

  /* Gelber Rand */
  border: 9px solid var(--ukraine-yellow); /* Etwas dickerer Rand für Sichtbarkeit */

  /* Starke Rundung */
  border-radius: 20px;

  /* Die gelbe Linie in der Mitte */
  background-image: linear-gradient(
    to right,
    transparent 46%,
    var(--ukraine-yellow) 46%,
    var(--ukraine-yellow) 54%,
    transparent 54%
  );

  background-clip: padding-box;
}

/* 4. Hover-Effekt */
::-webkit-scrollbar-thumb:hover {
  background-color: #004494;
  border-color: #ffd700;
}

/* Hinweis: Firefox unterstützt leider keine benutzerdefinierte Breite in Pixeln, 
   dort wird es "dünn" oder "auto" sein. Das ist eine Browser-Limitierung. */
@supports (scrollbar-color: auto) {
  * {
    scrollbar-width: auto; /* Firefox Standard */
    scrollbar-color: var(--ukraine-blue) #f4f4f4;
  }
}
/* Dark Mode Overrides */
body.dark-mode {
  --bg-body: #121212;
  --bg-nav: rgba(18, 18, 18, 0.98);
  --bg-light-section: #1e1e1e;
  --bg-card: #252525;
  --text-main: #f0f0f0;
  --text-body: #cccccc;
  --text-muted: #999;
  --border-color: #333;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --shadow-strong: rgba(0, 0, 0, 0.7);
  --overlay-bg: rgba(0, 0, 0, 0.8);
  --btn-text: #ffffff;
  --nav-link-color: #e0e0e0;

  --topbar-bg: #1a2a3a;
  --topbar-text: #4da3ff;
  --track-bg: #2c3e50;
}

/* Reset & Basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Manrope", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease, margin-top 0.3s ease;
}

.container {
  max-width: 50%;
  margin: 0 auto;
  padding: 0 20px;
  min-width: 60%;
  
}

/* Global Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  background: var(--ukraine-blue);
  color: var(--btn-text);
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 2px solid var(--ukraine-blue);
}
.btn:hover {
  background: transparent;
  color: var(--ukraine-blue);
}

.btn-yellow {
  background: var(--ukraine-yellow);
  color: #1a1a1a !important;
  border-color: var(--ukraine-yellow);
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
}
.btn-yellow:hover {
  background: #e6c200;
  border-color: #e6c200;
}
