/*
 * 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;
}

/* 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 {
  /* UPDATE: Source Sans 3 als Hauptschrift */
  font-family: 'Source Sans 3', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-text);
  /* Verlaufshintergrund Blau-Grün */
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  background-size: 200% 200%;
  animation: gradientPulse 12s ease infinite;
  line-height: 1.6;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Hintergrund-Animation */
@keyframes gradientPulse {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Ü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 {
  /* UPDATE: Hintergrundbild eingefügt */
  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: 1em 1.5em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  /* Text-Shadow für Lesbarkeit auf dem Bild */
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Logo-Container */
.logo-container {
  flex: 0 0 auto;
}
.logo {
  width: 90px;
  height: 90px;
  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; /* Source Sans 3 Bold */
  color: var(--color-light-text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--color-accent) !important;
  text-shadow: 0 0 10px rgba(255,136,62,0.6);
}

/* Inhalts-Container */
.container {
  max-width: 900px;
  width: 90%;
  margin: 2em auto;
  padding: 2.5em;
  background: rgba(255, 255, 255, 0.95); /* Fast weiß, leicht transparent */
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  flex: 1; /* Drückt Footer nach unten */
}

/* Links im Main-Bereich */
.container a {
  color: var(--color-dark-accent);
  text-decoration: underline;
  transition: color 0.2s;
}
.container a:hover {
  color: var(--color-secondary);
}

/* Button Stil */
.btn {
  display: inline-block;
  background-color: var(--color-accent);
  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-primary);
  transform: translateY(-2px);
}

/* Footer – UPDATE: Auch hier das Hintergrundbild */
.footer {
  background-image: url('/Terminavviso-Magnum-Hintergrund-Seamless-h-1920x510-10pd.webp');
  background-position: center bottom; /* Unterer Ausschnitt des Bildes */
  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-light-text);
  text-decoration: underline;
}
.footer a:hover {
  color: var(--color-accent);
}

/* Mobile-Optimierungen */
@media (max-width: 700px) {
  .header {
    flex-direction: column;
    text-align: center;
    padding: 1em;
  }
  nav ul {
    justify-content: center;
    gap: 1em;
  }
  .container {
    padding: 1.5em;
    width: 95%;
  }
}