/* === GRUNDEINSTELLUNGEN & FARBPALETTE === */
:root { --bg-dark-1: #363636; --bg-dark-2: #444444; --bg-dark-3: #4E4E4E; --text-color: #F9F9F9; --accent-color: #91D1AF; --accent-hover: #aee0c3; --lexikon-color: #c8f0d9; --header-height: 70px; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; line-height: 1.7; background-color: var(--bg-dark-1); color: var(--text-color); overflow-x: hidden; padding-top: var(--header-height); display: flex; flex-direction: column; min-height: 100vh; }
main { flex-grow: 1; background-color: var(--bg-dark-1); }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; line-height: 1.3; margin-bottom: 20px; color: var(--accent-color); }
h1 { font-size: 2.8rem; } h2 { font-size: 1.8rem; } h3 { font-size: 1.6rem; }
p { margin-bottom: 20px; text-align: justify; }
a { color: var(--accent-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-hover); }
.container { max-width: 960px; margin: 0 auto; padding: 40px 20px; }

/* === HEADER & NAVIGATION (FIXIERT) === */
.main-header { background-color: rgba(40, 40, 40, 0.85); backdrop-filter: blur(10px); padding: 0 15px; position: fixed; top: 0; left: 0; z-index: 1000; width: 100%; height: var(--header-height); display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.header-left { display: flex; align-items: center; gap: 20px; }
.logo { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--text-color); margin-right: 10px; }
.nav-links { list-style: none; display: flex; } .nav-links li { position: relative; }
.nav-links a { color: var(--text-color); padding: 0 20px; height: var(--header-height); display: flex; align-items: center; font-weight: 600; transition: background-color 0.3s ease; }
.nav-links a:hover { color: var(--accent-color); background-color: rgba(255,255,255,0.05); }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background-color: var(--bg-dark-2); list-style: none; min-width: 250px; box-shadow: 0 8px 16px rgba(0,0,0,0.3); border-radius: 0 0 5px 5px; opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease; }
li.has-dropdown:hover .dropdown { display: block; opacity: 1; transform: translateY(0); }
.dropdown a { height: auto; padding: 12px 20px; color: var(--text-color); }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger .bar { width: 25px; height: 3px; background-color: var(--text-color); transition: all 0.3s ease; }

/* === STYLISCHE EFFEKTE (ANIMATIONEN & SCROLL-BUTTON) === */
.fade-in-section { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-section.is-visible { opacity: 1; transform: translateY(0); }
#scrollToTopBtn { display: none; position: fixed; bottom: 30px; right: 30px; z-index: 99; border: none; outline: none; background-color: var(--accent-color); color: var(--bg-dark-1); cursor: pointer; padding: 15px; border-radius: 50%; font-size: 18px; width: 50px; height: 50px; line-height: 18px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: background-color 0.3s, transform 0.3s; }
#scrollToTopBtn:hover { background-color: var(--accent-hover); transform: scale(1.1); }

/* === SEITEN-LAYOUT & INHALTS-STILE === */
.hero { min-height: calc(80vh - var(--header-height)); display: flex; justify-content: center; align-items: center; text-align: center; position: relative; padding: 40px 20px; overflow: hidden; background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(145, 209, 175, 0.15), transparent 60%), linear-gradient(135deg, var(--bg-dark-2), var(--bg-dark-1)); }
.hero h1 { font-size: 3.0rem; }
.hero-content { position: relative; z-index: 10; pointer-events: none; }
.content-article { background-color: var(--bg-dark-2); padding: 40px; border-radius: 8px; box-shadow: 0 5px 25px rgba(0,0,0,0.2); }

/* === ÜBERARBEITETES SCROLL STACK LAYOUT === */
.scroll-stack-container {
    padding: 10vh 20px; /* Abstand oben/unten und seitlich */
}
.stack-card {
    padding: 40px;
    background-color: var(--bg-dark-2);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 960px;
    margin: 0 auto;
    
    position: sticky;
    top: 100px;
    
    transform-origin: center 10%;
    transform: scale(var(--scale));
    transition: transform 0.4s ease-out;
    --scale: 1.0;
}
/* Abstand zwischen den Karten, außer bei der letzten */
.stack-card:not(:last-of-type) {
    margin-bottom: 4rem; 
}
/* Jede nachfolgende Karte klebt etwas tiefer */
.stack-card:nth-child(2) { top: 120px; }
.stack-card:nth-child(3) { top: 140px; }

/* Die fokussierte (oberste) Karte wird größer skaliert */
.stack-card.is-focused {
    transform: scale(1.0) !important;
}

/* Der unsichtbare Spacer, der das Scrollen ermöglicht */
.scroll-spacer {
    height: 100vh;
}

/* ... alle weiteren Stile für Lexikon, Videos etc. bleiben unverändert ... */
.showcase-layout { display: flex; align-items: center; gap: 40px; }
.showcase-image { flex: 1; max-width: 300px; }
.showcase-image img { width: 100%; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.showcase-content { flex: 2; }
.showcase-layout.reverse { flex-direction: row-reverse; }
.cta-button { background-color: var(--accent-color); color: var(--bg-dark-1); display: inline-block; margin-top: 20px; padding: 12px 30px; font-size: 1.1rem; font-weight: bold; border-radius: 5px; text-decoration: none; transition: background-color 0.3s ease, transform 0.2s ease; }
.cta-button:hover { background-color: var(--accent-hover); transform: translateY(-2px); color: var(--bg-dark-1); }
.lexikon-link { color: var(--lexikon-color); font-weight: 600; position: relative; text-decoration: none; display: inline-block; padding-bottom: 3px; transition: color 0.3s ease; }
.lexikon-link::before { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background-color: var(--accent-color); transition: width 0.3s ease-in-out; }
.lexikon-link:hover::before { width: 100%; }
.lexikon-link:hover { color: var(--accent-hover); }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; margin: 30px 0; background: #000; border-radius: 8px; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.sources-dropdown { margin-top: 40px; border: 1px solid var(--bg-dark-3); border-radius: 5px; background-color: var(--bg-dark-1); }
.sources-dropdown summary { padding: 15px 20px; font-weight: 600; color: var(--accent-color); cursor: pointer; list-style: none; position: relative; transition: background-color 0.3s; }
.sources-dropdown summary:hover { background-color: var(--bg-dark-3); }
.sources-dropdown summary::after { content: 'Anzeigen ▼'; font-size: 0.9rem; position: absolute; right: 20px; color: var(--text-color); }
.sources-dropdown[open] > summary::after { content: 'Verbergen ▲'; }
.sources-content { padding: 20px; border-top: 1px solid var(--bg-dark-3); font-size: 0.9rem; color: #ccc; }
.sources-content p { margin-bottom: 8px; text-align: left; }
.topic-overview { margin-top: 50px; }
.topic-overview ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.topic-card { display: block; background-color: var(--bg-dark-3); padding: 25px 20px; border-radius: 5px; border-left: 4px solid var(--accent-color); transition: transform 0.3s ease, background-color 0.3s ease; color: var(--text-color); font-size: 1.1rem; font-weight: 600; }
.topic-card:hover { transform: translateX(10px); background-color: var(--accent-color); color: var(--bg-dark-1); }
.lexikon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 40px; }
.lexikon-button { display: block; background-color: var(--bg-dark-3); color: var(--text-color); padding: 20px; text-align: center; border-radius: 5px; font-size: 1.1rem; font-weight: 600; transition: transform 0.2s ease, background-color 0.2s ease; }
.lexikon-button:hover { transform: translateY(-5px); background-color: var(--accent-color); color: var(--bg-dark-1); }

/* === FOOTER === */
.main-footer { background-color: var(--bg-dark-2); text-align: center; padding: 40px 20px; border-top: 3px solid var(--accent-color); }

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) { h1 { font-size: 2.2rem; } .hero h1 { font-size: 2.5rem; } .content-article { padding: 20px; } .nav-links { position: fixed; right: 0; top: var(--header-height); background-color: var(--bg-dark-2); width: 100%; height: calc(100vh - var(--header-height)); flex-direction: column; align-items: center; transform: translateX(100%); transition: transform 0.5s ease-in; padding-top: 20px; } .nav-links.nav-active { transform: translateX(0%); } .nav-links a { height: auto; padding: 15px 20px; } li.has-dropdown:hover .dropdown { display: none; } .dropdown { display: block; position: static; background: transparent; box-shadow: none; padding-left: 20px; width: 100%; text-align: center; } .hamburger { display: flex; } .hamburger.toggle .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); } .hamburger.toggle .bar:nth-child(2) { opacity: 0; } .hamburger.toggle .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); } .showcase-layout, .showcase-layout.reverse { flex-direction: column; } .showcase-image { max-width: 100%; margin-bottom: 20px; } }

/* === Styles for the Password Modal === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    background-color: var(--bg-dark-2);
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 90%;
    max-width: 400px;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.visible {
    display: flex;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

#password-input {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border-radius: 5px;
    border: 1px solid var(--bg-dark-3);
    background-color: var(--bg-dark-1);
    color: var(--text-color);
    font-size: 1rem;
}

.error-message {
    color: #ff6b6b;
    font-weight: bold;
    height: 20px;
    margin-top: 10px;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.modal-btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-dark-1);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.modal-btn-primary:hover {
    background-color: var(--accent-hover);
}

.modal-btn-secondary {
    background-color: var(--bg-dark-3);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.modal-btn-secondary:hover {
    background-color: var(--bg-dark-1);
}