/* style.css - Web-Planer Design */

:root {
    --accent: #FFA500; 
    --bg: #121212;
    --card: #1c1c1c;
}
@font-face {
    font-family: 'Barlow';
    src: url('../fonts/barlow-v13-latin-regular.woff2') format('woff2');
    font-weight: 400;
}
@font-face {
    font-family: 'Barlow Condensed';
    src: url('../fonts/barlow-condensed-v13-latin-regular.woff2') format('woff2');
    font-weight: 700;
}
body {
    background-color: var(--bg);
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding-top: 0px; /* Verschiebt den kompletten Inhalt 1cm nach unten */
    line-height: 1.6;
}

/* Header & Logo */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px 20px 20px; /* Weniger Padding oben */
    background: transparent;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

h1 { 
    color: var(--accent); 
    font-size: 2.8em; 
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
}

p.subtitle {
    color: #bbb;
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation */
nav.top-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    position: absolute; 
    top: 15px; /* Knapp unter dem Browserrand */
    right: 20px;
    width: auto;
    z-index: 1000;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.7em;
    text-transform: uppercase;
    transition: color 0.2s;
    border: 1px solid transparent;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap; /* Verhindert, dass die Schrift umbricht */
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link.border {
    border-color: var(--accent);
    color: var(--accent);
}

.nav-link.border:hover {
    background: var(--accent);
    color: #000;
}

/* Layout & Container */
.container { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 40px 20px; 
}

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px; 
    margin: 50px 0; 
}

/* Features */
.feature-card {
    background: var(--card);
    padding: 30px;
    border-radius: 16px;
    border-top: 3px solid var(--accent);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: #252525;
}

.feature-card h3 { 
    color: var(--accent); 
    margin-top: 0; 
    font-size: 1.4em;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Buttons */
.btn-main {
    display: inline-block;
    background: var(--accent);
    color: #000;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 900;
    border-radius: 12px;
    font-size: 1.1em;
    text-transform: uppercase;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.btn-main:hover { 
    transform: scale(1.03); 
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.5);
}

/* Footer */
footer {
    text-align: center;
    padding: 60px 20px;
    font-size: 0.9em;
    color: #555;
    background: #0a0a0a;
    border-top: 1px solid #222;
}

footer a { color: #888; text-decoration: none; margin: 0 15px; transition: color 0.2s; }
footer a:hover { color: var(--accent); }

/* Für Mobilgeräte: Buttons nebeneinander unter das Logo, falls es zu eng wird */
/* Mobil-Optimierung */
@media (max-width: 768px) {
    nav.top-nav {
        flex-wrap: wrap; /* Buttons brechen um, wenn kein Platz ist */
        justify-content: center;
    }
    .nav-link {
        font-size: 0.6em; /* Etwas kleinere Schrift auf Handys */
        padding: 6px 10px;
    }
}


/* Wir verstecken den H1 Text, da er ja schon im Bild ist */
header h1 {
    display: none; 
}
.header-logo {
    max-width: 600px;
    width: 85%;
    height: auto;
    margin-top: 10px; /* Kleiner Abstand zur Nav */
    display: block;
    object-fit: contain;
}
.subtitle {
    margin: 10px auto 20px auto;
    display: block;
    width: 100%;
}
/* Zentrierung der Login-Box auf dem Bildschirm */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at center, #1c1c1c 0%, #0a0a0a 100%);
}

.auth-card {
    background: #181818;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #333;
    border-top: 4px solid var(--accent);
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

.auth-card input {
    width: 100%;
    padding: 14px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    border-radius: 10px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.auth-card input:focus {
    border-color: var(--accent);
    outline: none;
    background: #282828;
}
.auth-header img {
    width: 100%;          /* Nutzt die volle Breite der Login-Box */
    max-width: 340px;     /* Lässt links und rechts noch ein wenig Luft zum Rand */
    height: auto;         /* Verhindert das Verzerren */
    display: block;
    margin: 0 auto 15px;  /* Zentriert und gibt Abstand nach unten */
    filter: drop-shadow(0 0 5px rgba(255, 165, 0, 0.2)); /* Optional: leichter Glow passend zum Orange */
}

/* Da das Logo jetzt tiefer sitzt, schieben wir auch das Menü ein Stück mit */
.hamburger-dropdown {
    position: absolute;
    top: 40px; /* Gleicher Abstand wie beim Header-Padding */
    left: 20px;
    z-index: 1000;
}

/* Der Button selbst */
.menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: rgba(0,0,0,0.5); /* Leichter Hintergrund hinter den Strichen */
    border-radius: 5px;
}

.menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* Das Menü, das nach unten aufklappt */
.menu-content {
    display: none; 
    position: absolute;
    top: 100%; 
    left: 0;
    background-color: #181818;
    /* Breite reduziert von 250px auf 200px */
    width: 200px; 
    border: 1px solid #333;
    border-top: 3px solid var(--accent);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    margin-top: 10px;
}

/* Klasse zum Anzeigen via JS */
.menu-content.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

/* Kleiner Animationseffekt */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-grid {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

/* Die Kacheln (Links) innerhalb schmaler machen */
/* Verhindert, dass besuchte Links lila werden */
.nav-tile, 
.nav-tile:visited, 
.nav-tile:active {
    color: #ffffff !important; /* Erzwingt Weiß */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 5px 15px;
    transition: all 0.2s;
}

/* Nur beim Drüberfahren (Hover) soll es sich ändern */
.nav-tile:hover {
    background: #252525;
    color: var(--accent) !important; /* Wird beim Hovern orange */
}

.nav-tile:last-child {
    border-bottom: none;
}

.nav-tile:hover {
    background: #252525;
    color: var(--accent);
}

.nav-tile.highlight {
    background: rgba(255, 165, 0, 0.05);
}
/* Styling für die Quellenangabe unten rechts */
.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.7) !important;
    font-size: 10px !important;
    color: #444 !important;
}
.leaflet-control-attribution a {
    color: #0078A8 !important;
    text-decoration: none;
}
/* Styling für den Sat-Umschalter oben rechts */
.leaflet-control-layers {
    background: var(--panel-bg) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
    border-radius: 10px !important;
    margin-top: 20px !important;
    margin-right: 20px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}

.leaflet-control-layers-list {
    padding: 5px;
}

.leaflet-control-layers-base label {
    cursor: pointer;
    padding: 5px;
    display: block;
    font-size: 1.2rem;
}
.back-link {
    text-decoration: none;
    color: var(--accent);
    font-size: 1.2em;
    margin-right: 10px;
    display: inline-block;
    transition: transform 0.2s;
}
.back-link:hover {
    transform: translateX(-3px);
}
.sidebar-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
}
.autocomplete-results {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    width: 308px; /* Passend zur Sidebar-Breite minus Padding */
    z-index: 5000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #333;
    font-size: 0.85em;
    color: #eee;
}

.suggestion-item:hover {
    background: var(--panel-bg);
    color: var(--accent);
}

.suggestion-item last-child { border-bottom: none; }

/* --- FAQ & ACCORDION STYLES --- */
.faq-wrapper { 
    max-width: 800px; 
    margin: 20px auto; 
    padding: 10px; 
}

.faq-header h1 { 
    color: var(--accent); 
    text-align: center;
}

.faq-item { 
    background: #252525; 
    border: 1px solid #444; 
    border-radius: 12px; 
    margin-bottom: 15px; 
    overflow: hidden; 
}

.faq-question { 
    padding: 18px 20px; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-weight: bold;
    color: #fff;
    transition: background 0.3s;
}

.faq-question:hover { 
    background: #2d2d2d; 
}

/* Das Plus/Minus Zeichen */
.faq-question::after { 
    content: '＋'; 
    color: var(--accent); 
    font-size: 1.2em;
}

.faq-item.active .faq-question::after { 
    content: '－'; 
}

.faq-answer { 
    padding: 0 20px; 
    max-height: 0; 
    overflow: hidden; 
    transition: all 0.3s ease-in-out;
    color: #ccc;
    background: #1c1c1c;
    line-height: 1.6;
}

.faq-item.active .faq-answer { 
    max-height: 500px; /* Groß genug für den Text */
    padding: 20px; 
    border-top: 1px solid #333;
}

/* Der "Zurück"-Button (einheitlich mit deinem Design) */
.btn-back {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--accent);
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: bold;
    transition: 0.3s;
}

.btn-back:hover { 
    background: rgba(255,152,0,0.1); 
    box-shadow: 0 0 10px rgba(255,152,0,0.2);
}
   
        /* Deine spezifischen Styles für die App-Vorstellung */
        .flash-container {
            background: #121212; 
            color: #fff;
            font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            padding: 0;
            border-radius: 12px;
            max-width: 950px;
            margin: 20px auto;
            border: 1px solid #333;
            overflow: hidden;
            box-shadow: 0 20px 50px rgba(0,0,0,0.8);
        }

        .hero {
            background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.9)), url('https://images.unsplash.com/photo-1558981403-c5f9899a28bc?auto=format&fit=crop&w=1000&q=80');
            background-size: cover;
            background-position: center;
            padding: 60px 20px;
            text-align: center;
            border-bottom: 3px solid var(--accent);
        }

        .hero h1 {
            font-size: 50px;
            margin: 0;
            color: var(--accent);
            text-shadow: 0 0 20px rgba(255, 165, 0, 0.5);
            letter-spacing: -1px;
        }

        .hero p {
            font-size: 20px;
            color: #eee;
            margin-top: 10px;
        }

        .feature-bar {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            background: #1c1c1c;
            border-bottom: 1px solid #333;
        }

        .bar-item {
            padding: 20px;
            text-align: center;
            border-right: 1px solid #333;
        }

        .bar-item:last-child { border-right: none; }
        .bar-item strong { display: block; color: var(--accent); font-size: 18px; margin-bottom: 5px; }
        .bar-item span { font-size: 13px; color: #888; }

        .content-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2px;
            background: #333;
        }

        .grid-box {
            background: #1c1c1c;
            padding: 30px;
            transition: all 0.3s ease;
        }

        .grid-box:hover { background: #222; }
        .grid-box h3 { color: var(--accent); margin-top: 0; font-size: 20px; display: flex; align-items: center; gap: 10px; }
        .grid-box p { color: #bbb; line-height: 1.6; font-size: 14px; }

        .highlight-list { list-style: none; padding: 0; margin: 15px 0; }
        .highlight-list li { margin-bottom: 8px; font-size: 13px; display: flex; align-items: flex-start; gap: 10px; }
        .highlight-list li::before { content: '✓'; color: var(--accent); font-weight: bold; }

        .footer-cta {
            padding: 40px;
            text-align: center;
            background: #0a0a0a;
        }

        .badge-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-top: 20px;
        }

        .version-tag {
            background: var(--accent);
            color: #000;
            padding: 4px 12px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 12px;
            text-transform: uppercase;
            display: inline-block;
            margin-bottom: 15px;
        }

        .orange { color: var(--accent); font-weight: bold; }

        @media (max-width: 750px) {
            .feature-bar, .content-grid { grid-template-columns: 1fr; }
            .hero h1 { font-size: 35px; }
        }
    