/* =================================================================
   Reprop EU-Hub - Main Stylesheet (Responsiv & Identisches Design)
   ================================================================ */

/* Einbindung der Google Font Ubuntu für konsistente Typografie */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

:root {
  --primary-dark: #1E2E53;     /* Exakter Farbwert aus Illustrator für Header & Footer */
  --accent-blue: #3b82f6;      /* Helles Blau für Banner/Hero-Sektionen */
  --bg-light: #f8fafc;         /* Sehr helles Grau/Blau für Content-Sections */
  --text-main: #0f172a;        /* Dunkler Text für optimale Lesbarkeit */
  --text-muted: #475569;       /* Milder Text für Untertitel */
  --white: #ffffff;
  --nav-hover: #93c5fd;        /* Helles Blau beim Hovern in der Navigation */
  --nav-active-bg: #bfdbfe;    /* Aktiver Menüpunkt Hintergrund */
}

/* Grundlegendes Layout & Schutz vor seitlichem Verrutschen */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;          /* Verhindert das Hin- und Herschieben auf Smartphones */
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
}

/* =================================================================
   HEADER & RESPONSIVE NAVIGATION
   ================================================================ */
header {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1000;
}

.logo-container img {
  height: 35px;
  width: auto;
  display: block;
}

/* Navigation Links */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

nav a:hover,
nav a:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--nav-hover);
}

/* Sprachwähler (Flaggen) im Header */
.lang-selector {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: 1rem;
}

.lang-selector img {
  width: 20px;
  height: auto;
  cursor: pointer;
  border-radius: 2px;
}

/* Hamburger Menü Button (Gut sichtbares helles Blau) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--nav-hover); /* Gut sichtbares helles Blau */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Responsive Media Query für mobile Navigation */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  }

  nav.active {
    max-height: 350px; /* Klappt das Menü auf */
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    gap: 1rem;
  }

  .lang-selector {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* =================================================================
   SECTIONS & CONTENT BOXES
   ================================================================ */
section {
  padding: 4rem 2rem;
}

/* Hero-Sektion mit Hintergrundbild und anpassbarer Höhe */
section.hero {
  background-color: var(--primary-dark);
  background-image: url('images/header-banner-flasche.png');
  background-size: cover;          /* Füllt den Bereich perfekt aus */
  background-position: center right; /* Fokussiert auf die rechte Seite mit der Flasche */
  background-repeat: no-repeat;
  color: var(--white);
  text-align: left;                  /* Linksbuendige Ausrichtung des Textes */
  padding: 8rem 4rem 7rem 4rem;      /* Vergrösserte Höhe oben und unten */
  position: relative;
  min-height: 480px;                 /* Garantiert eine Mindesthöhe */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Optionaler, leichter Schatten-Layer, damit der weiße Text auf jedem Monitor perfekt lesbar bleibt */
section.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 46, 83, 0.35); 
  z-index: 1;
}

/* Stellt sicher, dass der Text über dem Schatten liegt */
section.hero h1,
section.hero p {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

section.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

section.hero p {
  font-size: 1.25rem;
  color: #cbd5e1;
  font-weight: 400;
}

/* Mobile Optimierung für die Hero-Sektion (Grafik vollständig sichtbar & kein Überlappen) */
@media (max-width: 768px) {
  section.hero {
    background-position: top center;   /* Platziert die Flasche oben im Blickfeld */
    background-size: contain;          /* Hält die Grafik im Format, damit nichts abgeschnitten wird */
    background-repeat: no-repeat;
    padding: 220px 1.5rem 3rem 1.5rem; /* Schafft oben genügend Platz, damit die Grafik vollständig sichtbar ist */
    min-height: auto;
    text-align: center;                /* Zentriert den Text auf dem Smartphone optimal */
  }

  section.hero::before {
    background: rgba(30, 46, 83, 0.65); /* Etwas stärkerer Kontrast für perfekte Lesbarkeit */
  }

  section.hero h1 {
    font-size: 1.7rem;                 /* Verhindert jegliche Zeilenüberlappung auf kleinen Displays */
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }

  section.hero p {
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* Layout Container für Grid mit Bild-Platzhaltern */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

.content-box-light {
  background-color: var(--bg-light);
  color: var(--text-main);
  border-radius: 8px;
  padding: 3rem;
  margin: 2rem auto;
  max-width: 1200px;
  border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .content-box-light {
    padding: 1.5rem;
    margin: 1rem 1rem;
  }
}

/* Bild-Platzhalter Styling */
.image-placeholder {
  background-color: #e2e8f0;
  border: 2px dashed #94a3b8;
  border-radius: 6px;
  height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #64748b;
  font-weight: 500;
  text-align: center;
  padding: 1rem;
}

h2 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.5rem;
  }
}

p {
  margin-bottom: 1rem;
}

/* Links & Downloads */
a.link-external {
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration: none;
}
a.link-external:hover {
  text-decoration: underline;
}

/* =================================================================
   FOOTER
   ================================================================ */
footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 4rem 2rem 2rem 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 3rem auto;
}

.footer-col h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--nav-hover);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  color: #94a3b8;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* =================================================================
   FAQ
   ================================================================ */

.faq-teaser {
    padding: 60px 20px;
    background-color: #f9fbfd;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    font-family: inherit;
    color: #333;
}

.faq-teaser .faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-teaser h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #1a252c;
}

.faq-teaser .faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.faq-teaser .faq-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border-left: 4px solid #0056b3;
}

.faq-teaser .faq-item h3 {
    font-size: 1.15rem;
    margin-top: 0;
    margin-bottom: 12px;
    color: #1a252c;
}

.faq-teaser .faq-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

.faq-teaser .faq-more-link {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.faq-teaser .faq-more-link p {
    margin-bottom: 15px;
    color: #666;
    font-size: 1rem;
}

.faq-teaser .btn-secondary {
    display: inline-block;
    font-weight: 600;
    color: #0056b3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-teaser .btn-secondary:hover {
    color: #003d82;
    text-decoration: underline;
}

/* Mobile Fix für Footer-Links & CCM19 Icon */
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding-left: 50px; /* Schafft Platz für das CCM19 Cookie-Icon unten links */
    padding-right: 15px;
  }

  .footer-bottom-links {
    display: flex;
    flex-wrap: wrap; /* Erlaubt das Umbrechen auf mehrere Zeilen */
    justify-content: center;
    gap: 10px 15px; /* Abstand zwischen den Links */
  }

  .footer-bottom-links a {
    white-space: nowrap; /* Verhindert unschöne Umbrüche mitten im Wort */
    font-size: 0.9rem;
  }
}