/*
 * CSS Basis-Definition für LTR-Erscheinungsbild (Greif in Abstimmung mit Magnumg und Spoh 2026)
 *
 * Kombiniert unseren Font-Stack mit den offiziellen Farben:
 * - Himmelblau (#008bca)     → Hauptfarbe für Header/Footer, große Flächen
 * - Nadelwald-Grün (#008753) → Sekundärfarbe für Fließtexte (ruhiger Kontrast)
 * - Gold-Orange (#ff883e)    → Akzentfarbe für Buttons, Links, Hover – sehr sparsam!
 * - Fast-Schwarz (#1a1a1a)   → Primärer Text für maximale Lesbarkeit
 * - Schmutziges Weiß (#fcfbfb) → Heller Text auf dunklen Flächen
 *
 * Erscheinungsbild-Hinweis: Diese Definition ist für Web gedacht, lässt sich aber 1:1
 * auf andere Medien übertragen (Druck, Schilder, Briefpapier etc.).
 * - Farben bleiben in Print-Software (InDesign, Illustrator) gleich nutzbar.
 * - Schriften: Germania One (lokal) für Überschriften (historisch-kräftig),
 *   Source Sans 3 (lokal) für Fließtext – Fallbacks halten den Stil bei.
 * - Zirkel: Immer als SVG/PDF einbinden für scharfe Kanten!
 */

/* ==============================================
   Lokale Webfonts
   Dateien müssen im Root liegen!
   ============================================== */
@font-face {
  font-family: 'Germania One';
  src: url('GermaniaOne-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('SourceSans3-Regular.ttf') format('truetype'); 
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('SourceSans3-Bold.ttf') format('truetype'); 
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('SourceSans3-Italic.ttf') format('truetype'); 
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('SourceSans3-BoldItalic.ttf') format('truetype'); 
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

/* Farb-Variablen – zentral ändern möglich */
:root {
  --color-primary:    #008bca;     /* Himmelblau – Hauptfarbe */
  --color-secondary:  #008753;     /* Nadelwald-Grün – Fließtext */
  --color-accent:     #ff883e;     /* Gold-Orange – Akzent, Buttons, Links */
  --color-dark-accent: #a14c15;    /* Dunkleres Orange für Main-Links */
  --color-text:       #1a1a1a;     /* Fast-Schwarz – Haupttext */
  --color-light-text: #fcfbfb;     /* Schmutziges Weiß – auf dunklem Grund */
  --color-bg-light:   #ffffff;     /* Reines Weiß – Hintergrund hell */
  --color-bg-dark:    #0d1117;     /* Fast-Schwarz für Header/Footer (Fallback) */
}

/* Globale Grundeinstellungen */
body {
  font-family: 'Source Sans 3', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-text);
  /* Hintergrund um den Container auf #1a1a1a geändert, Gradient entfernt */
  background-color: #1a1a1a;
  line-height: 1.6;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Überschriften: Germania One – sehr kompakt gemacht */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Germania One', cursive;
  font-weight: normal;
  line-height: 1.1;
  margin-top: 0.7em;
  margin-bottom: 0.5em;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  text-align: center;
}

/* Dunkler, kompakter Header mit Bild-Hintergrund */
.header {
  background-image: url('Terminavviso-Magnum-Hintergrund-Seamless-h-1920x510-10pd.webp');
  background-position: center center;
  background-size: cover; 
  background-repeat: no-repeat;
  background-color: var(--color-bg-dark); /* Fallback */
  
  color: var(--color-light-text);
  /* Padding auf 0 gesetzt, da die 120px Höhe vom Logo vorgegeben werden */
  padding: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* NEU: Innerer Container für den Header (Gleiche Breite und Margins wie .container) */
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  max-width: 900px;
  width: 90%;
  margin: 0 auto;
}

/* Logo-Container */
.logo-container {
  flex: 0 0 auto;
}
/* Logo */
.logo {
  width: 120px;
  height: 120px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Navigation rechts oben */
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  font-size: 1.1rem;
  font-weight: bold; 
  color: var(--color-accent); /* Geändert auf Hellorange */
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--color-dark-accent) !important; /* Geändert auf Dunkelorange */
  text-shadow: none; /* Leuchteffekt entfernt, da er mit Dunkelorange schwer lesbar ist */
}

/* Inhalts-Container */
.container {
  max-width: 900px;
  width: 90%;
  margin: 2em auto;
  padding: 2.5em;
  /* Wieder hell für Lesbarkeit */
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5); /* Schatten leicht verstärkt für mehr Tiefe auf dunklem Grund */
  flex: 1;
}

/* Links im Main-Bereich */
.container a {
  color: var(--color-dark-accent); /* Dunkelorange */
  text-decoration: underline;
  transition: color 0.2s;
}
.container a:hover {
  color: var(--color-secondary); /* Grün */
}

/* Button Stil */
.btn {
  display: inline-block;
  background-color: var(--color-dark-accent); /* Dunkelorange */
  color: var(--color-light-text) !important;
  padding: 0.8em 2em;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none !important;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn:hover {
  background-color: var(--color-secondary); /* Grün */
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background-image: url('Terminavviso-Magnum-Hintergrund-Seamless-h-1920x510-10pd.webp');
  background-position: center bottom;
  background-size: cover;
  background-color: var(--color-bg-dark);
  
  color: var(--color-light-text);
  padding: 2em 1em;
  text-align: center;
  font-size: 0.95rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer a {
  color: var(--color-accent); /* Geändert auf Hellorange */
  text-decoration: underline;
}
.footer a:hover {
  color: var(--color-dark-accent); /* Geändert auf Dunkelorange */
}

/* Mobile-Optimierungen */
@media (max-width: 700px) {
  /* Flex-Eigenschaften auf den neuen Wrapper anwenden */
  .header-inner {
    flex-direction: column;
    text-align: center;
    padding-bottom: 0.5em; /* Verhindert, dass die Navigation mobil unten am Rand klebt, wenn sie gestapelt wird */
  }
  nav ul {
    justify-content: center;
    gap: 1em;
  }
  .container {
    padding: 1.5em;
    width: 95%;
  }
}