/* ========================================= */
/* Generelle Einstellungen & Farb-Variablen  */
/* ========================================= */
:root {
  --primary-color: #d6a419; /* Ockerfarbene Akzentfarbe */
  --secondary-color: #fff;  /* Weiße Akzentfarbe */
  --background-color: #000;
  --dark-gray: #111;
  --medium-gray: #222;
  --light-gray: #ccc;
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: sans-serif;
  background-color: var(--dark-gray);
  color: var(--primary-color);
}

/* ========================================= */
/* Navigation                                */
/* ========================================= */
nav {
  background-color: var(--medium-gray);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  padding: 1em;
  color: var(--primary-color);
  text-decoration: none;
}

nav a:hover {
  background-color: #333;
}

/* ========================================= */
/* Bild-Layout & Galerien                    */
/* ========================================= */
.image-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 10px;
  background: var(--background-color);
}

.image-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.bild-container {
  text-align: center;
  margin: 20px 0;
}

.bild-container img {
  max-width: 100%;
  height: auto;
  border: 2px solid var(--light-gray);
}

.bild-unterschrift {
  font-size: 14px;
  color: aqua !important;
  margin-top: 8px;
  font-style: italic;
  text-align: center;
}

/* ========================================= */
/* Hauptinhalt & Karten                      */
/* ========================================= */
main {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 10px;
  background: var(--background-color);
}

.card {
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  padding: 20px;
  color: var(--primary-color);
  background-blend-mode: overlay;
  background-color: rgba(0, 0, 0, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.span-1 { grid-column: span 1; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }

/* ========================================= */
/* Hilfsklassen                              */
/* ========================================= */
.left {
  float: left;
}

.right {
  float: right;
}

/* ========================================= */
/* Footer                                    */
/* ========================================= */
footer {
  background-color: #444;
  color: var(--secondary-color);
  text-align: center;
  padding: 20px;
}

footer a {
  color: var(--secondary-color);
  margin: 0 10px;
  text-decoration: none;
}

/* ========================================= */
/* Lightbox-Overlay                          */
/* ========================================= */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px #000;
  animation: fadein 0.4s ease;
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* ========================================= */
/* Externe Links als Button-Stil              */
/* ========================================= */

/* Basisstil für den Link-Button */
.btn-link-external {
  display: inline-block; /* Muss inline-block oder block sein, um Padding zu akzeptieren */
  padding: 10px 20px;
  margin: 10px 0;
  border-radius: 8px; /* Leicht abgerundete Ecken */
  text-decoration: none;
  font-weight: bold;
  color: var(--background-color); /* Textfarbe soll dunkel sein, für besseren Kontrast */

  /* Gradient-Verlauf */
  background: linear-gradient(135deg, var(--primary-color), #fccb00); /* Von Ocker zu einem helleren Goldton */
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Leichte Schattierung */
  transition: all 0.3s ease;
}

/* Hover-Effekt für Interaktion */
.btn-link-external:hover {
  color: var(--dark-gray);
  background: linear-gradient(135deg, #fccb00, var(--primary-color)); /* Umkehrung des Gradients */
  transform: translateY(-2px); /* Leichter 'Lift'-Effekt */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* ========================================= */
/* Zeitleiste                                */
/* ========================================= */
.timeline {
  width: 100%;
  padding: 40px 10px;
  background-color: var(--background-color);
  color: var(--primary-color);
  text-align: center;
  grid-column: 1 / -1; /* Wichtig: Spannt die Zeitleiste über alle Spalten des Grids */
}

.timeline-title {
  font-size: 2.5em;
  margin-bottom: 2em;
  color: var(--secondary-color);
}

.timeline-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  padding: 20px 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: translateY(-50%);
  z-index: 0;
}

.timeline-item {
  position: relative;
  flex-basis: 120px;
  flex-shrink: 0;
  text-align: center;
  margin: 10px 5px;
  z-index: 1;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: var(--primary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  border: 2px solid var(--background-color);
  z-index: 2;
}

.timeline-date {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.timeline-item p {
  font-size: 0.9em;
  margin: 0;
}

/* Anpassungen für mobile Ansicht (vertikale Zeitleiste) */
@media (max-width: 768px) {
  .timeline-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-container::before {
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    transform: none;
  }

  .timeline-item {
    flex-basis: auto;
    width: 100%;
    text-align: left;
    padding-left: 40px;
    margin: 20px 0;
  }

  .timeline-item::before {
    top: 5px;
    left: 17px;
  }
}
/* ----------------------------------------------------------------- */
/* 2. CSS-STYLING FÜR DAS COOKIE-POP-UP */
/* ----------------------------------------------------------------- */

.consent-popup {
  /* Wichtig: Überlagert die gesamte Seite */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Dunkler Hintergrund */
  z-index: 9999; /* Stellt sicher, dass es über allem liegt */
  display: flex;
  justify-content: center;
  align-items: center;
  /* Animation für sanfteres Erscheinen (optional) */
  opacity: 1;
  transition: opacity 0.5s ease;
}

.consent-popup.hidden {
  display: none;
  opacity: 0;
}

.consent-content {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 8px;
  max-width: 900px; /* Breite des Pop-ups */
  width: 90%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.consent-content h1 {
  color: #1a4d1b; /* Dunkelgrün, passend zu Ihren Themen */
  margin-top: 0;
}

.intro-text {
  margin-bottom: 25px;
  line-height: 1.5;
}

/* Karten-Layout */
.card-container {
  display: flex;
  flex-wrap: wrap; /* Wichtig für Responsivität */
  gap: 20px;
  margin-bottom: 30px;
  text-align: left;
}

.security-card {
  flex: 1 1 250px; /* Flexibel, bricht bei Bedarf um */
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background-color: #f9f9f9;
  min-height: 150px; /* Für einheitliche Höhe */
}

.security-card h2 {
  font-size: 1.1em;
  color: #007bff; /* Blaue Akzentfarbe */
  margin-top: 0;
}

/* Haupt-Button */
.accept-button {
  background-color: #1a4d1b; /* Hauptfarbe: Grün */
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-bottom: 15px;
}

.accept-button:hover {
  background-color: #0d360e;
}

/* Externe Links */
.external-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.external-link-button {
  color: #007bff;
  text-decoration: none;
  font-size: 0.9em;
  padding: 8px 15px;
  border: 1px solid #007bff;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.external-link-button:hover {
  background-color: #007bff;
  color: white;
}

/* Responsivität für kleine Bildschirme */
@media (max-width: 768px) {
  .card-container {
    flex-direction: column;
  }
  .security-card {
    min-height: auto;
  }
}


/* ========================================= */
/* Spezifisch für die "Union"-Seite (Verbesserte Version) */
/* ========================================= */

/* --- Hauptlayout der Seite --- */
.union-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr; /* Links: Zeitstrahl (schmal), Mitte/Rechts: Inhalte */
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* --- Allgemeine Sektionen --- */
.union-main-content {
    grid-column: 2 / 4; /* Mitte und rechte Spalte nutzen */
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Styling für Hauptüberschrift (außerhalb des Wrappers) */
.union-header {
    text-align: center;
    padding: 20px 0;
    max-width: 900px;
    margin: 0 auto;
}
.union-header h1 {
    color: var(--primary-color);
}
.union-header p {
    font-size: 1.1em;
}

/* Placeholder Bilder */
.eu-image {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 3px solid var(--primary-color);
    filter: grayscale(20%);
    transition: filter 0.5s;
    box-shadow: 0 0 10px rgba(214, 164, 25, 0.3);
}

.eu-image:hover {
    filter: grayscale(0%);
    box-shadow: 0 0 25px rgba(214, 164, 25, 0.7);
}

/* --- 1. Zeitstrahl-Sidebar (Vertikal & Fixed) --- */
.timeline-sidebar {
    grid-column: 1 / 2;
    background-color: var(--dark-gray);
    padding: 20px 10px;
    border-right: 2px solid var(--primary-color);
    position: sticky; /* Bleibt beim Scrollen sichtbar */
    top: 60px; /* Unterhalb der Navigation */
    align-self: flex-start;
    max-height: calc(100vh - 80px); /* Höhe begrenzen */
    overflow-y: auto; /* Scrollbar, wenn der Inhalt zu lang ist */
    border-radius: 0 8px 8px 0;
}

.timeline-sidebar h2 {
    font-size: 1.2em;
    margin-bottom: 20px;
    text-align: left;
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 1px dashed var(--light-gray); /* Vertikale Linie */
}

.timeline-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    left: -4px; /* Positioniert auf der Linie */
    top: 5px;
}

.timeline-year {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1em;
    display: block;
}

.timeline-item p {
    font-size: 0.85em;
    color: var(--light-gray);
    margin: 0;
    line-height: 1.4;
}

/* --- 2. Accordion-Stil (Ausklappbare Inhalte) --- */
.accordion-group {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--medium-gray);
}

.accordion-item {
    background-color: var(--dark-gray);
}

.accordion-header {
    background-color: var(--medium-gray);
    color: var(--primary-color);
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.4em;
    font-weight: bold;
    border-bottom: 1px solid var(--dark-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #333;
}

.accordion-header .icon {
    font-size: 1.2em;
    transition: transform 0.3s;
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(45deg); /* Plus-Symbol zu X drehen */
}

.accordion-item.active .accordion-content {
    max-height: 2000px; /* Muss groß genug sein, um den Inhalt zu fassen */
    padding: 20px;
}

/* Inhalte innerhalb des Accordions */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.content-card {
    background-color: var(--dark-gray);
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
}

.content-card h4 {
    color: var(--secondary-color);
    margin-top: 0;
    font-size: 1.1em;
}

.content-card p {
    font-size: 0.9em;
    margin-bottom: 0;
}

/* Spezielle Farben für Nachteile/Dexit-Karten */
.content-card.negative {
    border-left: 4px solid #f00; /* Rot für negative Punkte */
}
.content-card.myth {
    border-left: 4px solid #cc0; /* Gelb für Mythen */
}
.content-card.fact {
    border-left: 4px solid var(--primary-color);
}

/* --- Responsivität --- */
@media (max-width: 992px) {
    .union-content-wrapper {
        grid-template-columns: 1fr; /* Nur eine Spalte auf Tablets/Handys */
        gap: 0;
        margin-top: 20px;
    }
    
    .timeline-sidebar {
        position: relative; /* Nicht mehr fixed */
        grid-column: 1 / -1;
        max-height: none;
        overflow-y: visible;
        border-right: none;
        border-bottom: 2px solid var(--primary-color);
        padding: 20px;
        border-radius: 8px;
    }

    .union-main-content {
        grid-column: 1 / -1;
        padding-top: 20px;
    }

    .timeline-sidebar h2 {
        text-align: center;
    }

    .timeline {
        border-left: none; /* Vertikale Linie für bessere Lesbarkeit auf mobilen Geräten entfernen */
        padding-left: 0;
    }
    .timeline-item {
        padding-left: 0;
        border-bottom: 1px dashed var(--medium-gray);
    }
    .timeline-item::before {
        display: none;
    }
}
