/* ==========================================================================
   Design-System & Stylesheet fuer die Freiwillige Feuerwehr Wulften am Harz
   Uebergreifend HELLES, modernes & minimalistisches Design
   Farben: Dunkelblau (#002b66) & Sand (#997c33) & Signalrot (#dc2626)
   Typografie: Eurostile Next Pro / Geometrische Sans
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Rajdhani:wght@500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-navy: #002b66;
  --color-navy-dark: #00193d;
  --color-navy-surface: #f1f5f9;
  --color-sand: #997c33;
  --color-sand-light: #bfa04e;
  --color-sand-dark: #786022;
  --color-alarm: #dc2626;
  --color-bg-main: #f8fafc;
  --color-card-bg: #ffffff;
  --font-sans: 'Helvetica Neue', Helvetica, Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-eurostile: 'Helvetica Neue', Helvetica, Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-main);
  color: #334155;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--color-navy);
  letter-spacing: 0.02em;
}

/* Animierter Unterstrich für Navigation (aus der Mitte heraus) */
.nav-link-animated {
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.nav-link-animated::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: var(--color-sand);
  border-radius: 9999px;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link-animated.is-active::after {
  width: 75%;
  animation: expandNavLine 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.nav-link-animated:hover::after {
  width: 75%;
}

@keyframes expandNavLine {
  0% {
    width: 0;
  }
  100% {
    width: 75%;
  }
}

/* Modernes Kachel-Design (Hell & Minimalistisch mit Tiefe) */
.glass-tile, .light-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 43, 102, 0.05), 0 2px 4px -2px rgba(0, 43, 102, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-tile:hover, .light-tile:hover {
  border-color: rgba(153, 124, 51, 0.5);
  box-shadow: 0 12px 24px -6px rgba(0, 43, 102, 0.12), 0 0 0 1px rgba(153, 124, 51, 0.25);
  transform: translateY(-2px);
}

.glass-panel, .light-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(0, 43, 102, 0.07);
}

/* Formular Eingabefelder im hellen Design */
.glass-input, .light-input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  transition: all 0.2s ease;
}

.glass-input:focus, .light-input:focus {
  outline: none;
  border-color: #997c33;
  box-shadow: 0 0 0 3px rgba(153, 124, 51, 0.2);
  background: #ffffff;
}

/* Badges */
.badge-brand {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.badge-th {
  background-color: #fefce8;
  border: 1px solid #fef08a;
  color: #854d0e;
}

.badge-bma {
  background-color: #fff7ed;
  border: 1px solid #ffedd5;
  color: #c2410c;
}

/* Kachel Grid */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

/* Subtile Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #997c33;
}
