:root {
    --primary-font: 'Lato', sans-serif;
    --heading-font: 'Cinzel', serif;
    --dark-bg: #1a1a1a;
    --content-bg: #2a2a2a;
    --text-color: #e0e0e0;
    --gold-accent: #daa520;
    --blue-accent: #3a7bd5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--primary-font);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--gold-accent);
    margin-bottom: 1rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
}

p {
    margin-bottom: 1rem;
}

.content-box {
    max-width: 900px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: var(--content-bg);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero-section {
    height: 100vh;
    background: url('hero-background.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.main-nav {
    position: absolute;
    top: 2rem;
    right: 3rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--heading-font);
    font-size: 1.2rem;
    transition: color 0.3s, text-shadow 0.3s;
}

.main-nav a:hover {
    color: var(--gold-accent);
    text-shadow: 0 0 5px var(--gold-accent);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 6rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px var(--gold-accent);
}

.hero-content p {
    font-size: 1.5rem;
    font-style: italic;
}

.ip-box {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--gold-accent);
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    margin-top: 2rem;
    font-size: 1.2rem;
}

.ip-box span {
    margin-right: 15px;
    font-weight: bold;
}

.ip-box button {
    background-color: var(--gold-accent);
    color: var(--dark-bg);
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 3px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.ip-box button:hover {
    background-color: #ffc400;
}

.intro-section {
    text-align: center;
}

.parallax-background-aethelgard, .parallax-background-artefakte {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 5rem 1rem;
    position: relative;
}

.parallax-background-aethelgard::before, .parallax-background-artefakte::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.75);
    z-index: 0;
}

.parallax-background-aethelgard > *, .parallax-background-artefakte > * {
    position: relative;
    z-index: 1;
}

.parallax-background-aethelgard { 
    background-image: url('aethelgard-panorama.jpg'); 
}
.parallax-background-artefakte { 
    background-image: url('artefakt-schmiede.jpg'); 
    background-color: transparent; /* Überschreibt die .content-box Farbe */
    margin-top: 0;
}


.locations-section {
    padding: 5rem 1rem;
    background-color: transparent; /* Wird durch Parallax-Stil überschrieben */
    margin-top: 0;
}

.locations-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.location-card {
    background-color: var(--content-bg);
    border-radius: 8px;
    width: 350px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 2rem;
    border-top: 4px solid var(--gold-accent);
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(218, 165, 32, 0.2);
}

.location-card h3 {
    color: var(--gold-accent);
}

.location-card p {
    margin-bottom: 0;
}

.features-section {
    /* Die .content-box Stile werden hier angewendet, plus Parallax-Stile */
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature-icon {
    font-size: 3rem;
    color: var(--gold-accent);
}

.feature-text h3 {
    margin-bottom: 0.5rem;
}

.footer-section {
    background-color: #111;
    text-align: center;
    padding: 4rem 1rem;
}

.footer-section .ip-box {
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--gold-accent);
}

.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 4rem;
    }

    .main-nav {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
        justify-content: center;
    }

    .main-nav a {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .ip-box {
        flex-direction: column;
        gap: 10px;
    }
    .main-nav {
        gap: 1rem;
    }
    .main-nav a {
        font-size: 0.9rem;
    }
}

/* --- Dropdown für Vote-Links (ANGEPASST & OPTIMIERT) --- */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-color);
    font-family: var(--heading-font);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

/* Dropdown-Inhalt im Ausgangszustand unsichtbar und für Animation vorbereitet */
.dropdown-content {
    display: block; /* display: none ist nicht animierbar, daher wird Sichtbarkeit anders gesteuert */
    visibility: hidden; /* Versteckt das Element, aber erlaubt Animationen */
    opacity: 0; /* Komplett durchsichtig */
    position: absolute;
    background-color: rgba(30, 30, 30, 0.95);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 10;
    border-radius: 5px;
    border-top: 2px solid var(--gold-accent);
    right: 0;
    margin-top: 10px; /* Kleiner Abstand zum Button */
    transform: translateY(-10px); /* Leichte Bewegung von oben für den Effekt */
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s linear;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-family: var(--primary-font);
    font-size: 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-content a:hover {
    background-color: var(--gold-accent);
    color: var(--dark-bg);
}

/* Schlüsselfunktion: Wenn über den Container gehovert wird... */
.dropdown:hover .dropdown-content {
    visibility: visible; /* ...mache das Menü sichtbar */
    opacity: 1; /* ...blende es voll ein */
    transform: translateY(0); /* ...bewege es an seine finale Position */
}

/* ...und hebe auch den Button hervor */
.dropdown:hover .dropbtn {
    color: var(--gold-accent);
    text-shadow: 0 0 5px var(--gold-accent);
}

@media (max-width: 768px) {
    .dropbtn {
        font-size: 1rem;
    }
    .dropdown-content {
        left: 50%;
        right: auto;
        /* Startposition für die Animation auf Mobilgeräten anpassen */
        transform: translate(-50%, -10px); 
    }
    /* Endposition für die Animation auf Mobilgeräten */
    .dropdown:hover .dropdown-content {
        transform: translate(-50%, 0);
    }
}

@media (max-width: 480px) {
    .dropbtn {
        font-size: 0.9rem;
    }
}