/* ================================================================= */
/* style.css - DAS ZENTRALE DESIGN-DOKUMENT */
/* ================================================================= */

/* ========================================= */
/* CUSTOM SCROLLBAR (EDEL-LOOK) */
/* ========================================= */
html {
    scrollbar-width: thin;
    scrollbar-color: #475569 #0f172a;
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb {
    background-color: #475569;
    border-radius: 5px;
    border: 2px solid #0f172a;
}
::-webkit-scrollbar-thumb:hover { background-color: #64748b; }

/* --- 1. SCHRIFTEN LADEN (Ordner: schrift/) --- */
@font-face {
    font-family: 'Eloquia Display ExtBd';
    src: url('schrift/Typekiln - EloquiaDisplay-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Eloquia Text ExtLt';
    src: url('schrift/Typekiln - EloquiaText-ExtraLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}

/* --- 2. FARBEN & VARIABLEN --- */
:root {
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0; 
    --accent-color: #ffffff;
    
    /* Globaler Akzent (Royal Blue für Links, Loader, Marker) */
    --accent-blue: #0055ff; 
    
    --accent-gray: #cbd5e1;
    
    --font-heading: 'Eloquia Display ExtBd', sans-serif;
    --font-body: 'Eloquia Text ExtLt', sans-serif;
}

/* --- 3. GRUNDLAYOUT (BODY & HTML) --- */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    opacity: 0.9;
    
    /* HINTERGRUND-KONFIGURATION */
    /* Das Bild (URL) wird von main.js / config.json gesetzt */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Wichtig: Bild bleibt beim Scrollen stehen */

    /* Flexbox Layout (Footer unten halten) */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    
    overflow-x: hidden; /* Kein seitliches Wackeln */
    overflow-y: auto;   /* Scrollen erlauben */
}

/* --- 4. HEADER & FOOTER CONTAINER --- */
.header-container {
    width: 100%;
    padding: 30px 40px;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    z-index: 10;
}

.footer-container {
    width: 100%;
    padding: 20px;       
    padding-bottom: 30px; 
    display: flex;
    justify-content: center; 
    flex-shrink: 0;
    z-index: 10;
}

/* Navigation Listen (werden von JS gebaut) */
.header-nav ul, .footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px; 
}
/* LINKS STYLE (Header & Footer identisch) */
.nav-link, 
.header-nav a, 
.footer-nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px; 
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 5px;
    opacity: 0.7;
    
    /* Wichtig: Inline-Block für sauberes Layout */
    display: inline-block; 
    
    /* Nur Farbe animieren, keine Bewegung */
    transition: color 0.3s ease, opacity 0.3s ease, text-shadow 0.3s ease;
}

/* Hover Effekt */
.nav-link:hover, 
.header-nav a:hover, 
.footer-nav a:hover {
    /* Deine Akzentfarbe (#0055ff) */
    color: var(--accent-blue); 
    
    /* HIER ENTFERNT: transform: translateY(-3px); -> Kein Hüpfen mehr! */
    
    opacity: 1;
    
    /* Leichter blauer Schein */
    text-shadow: 0 0 15px rgba(0, 85, 255, 0.5); 
}
.nav-link:hover, .header-nav a:hover, .footer-nav a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
    opacity: 1;
    text-shadow: 0 0 15px rgba(255,255,255,0.6); 
}

/* Spezieller Link-Stil im Fließtext (z.B. im Impressum) */
a.text-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1rem;
    border-bottom: 1px solid var(--accent-gray);
    letter-spacing: normal;
    font-family: var(--font-body);
    font-weight: normal;
    padding: 0;
    transition: all 0.2s;
}

a.text-link:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    text-shadow: none;
}

/* --- 5. MAIN CONTENT BEREICH --- */
.main-content {
    flex: 1; 
    display: flex;
    justify-content: center;
    align-items: center; /* Standard: Vertikal mittig (für Startseite) */
    width: 100%;
    padding: 20px;
    position: relative;
}

/* WICHTIG: Für Impressum, Kalender & Strecken (Inhalt oben) */
.main-content.top-aligned {
    align-items: flex-start;
}


/* --- 6. ELEMENTE: STARTSEITE (LOGO) --- */
.center-logo {
    /* HIER GEÄNDERT: Exakt 70% der Bildschirmbreite */
    width: 70vw; 
    
    /* Damit es bei sehr breiten Monitoren nicht höher als der Bildschirm wird: */
    max-height: 80vh; 
    object-fit: contain;

    height: auto;
    
    /* Wir entfernen max-width, damit es wirklich immer 70% sind, auch auf riesigen Screens */
    max-width: none; 
    
    opacity: 0;
    animation: fadeInDesktop 1.5s ease-in-out forwards;
}

@keyframes fadeInDesktop {
    from { opacity: 0; transform: scale(1.1); } /* Leichter Zoom-Effekt beim Laden */
    to   { opacity: 1; transform: scale(1.0); }
}

/* --- 7. ELEMENTE: IMPRESSUM & STANDARDS --- */
.impressum-card {
    width: 100%;
    max-width: 950px;
    padding: 20px;
    opacity: 0; 
    animation: fadeInContent 1.0s ease-in-out forwards;
}

@keyframes fadeInContent {
    to { opacity: 1; }
}

.title {
    font-family: var(--font-heading); font-weight: 800; font-size: 2.2rem;
    margin: 0; text-transform: uppercase; letter-spacing: 0.02em; color: #fff;
    line-height: 1.1;
}

.subtitle {
    font-family: var(--font-body); font-size: 1rem; color: var(--accent-gray);
    margin-top: 5px; text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 40px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 40px;
}

.info-block { margin-bottom: 25px; }

h2 {
    font-family: var(--font-heading); font-size: 1.1rem; color: var(--accent-gray);
    border-left: 3px solid var(--accent-gray);
    text-transform: uppercase; margin-bottom: 10px; margin-top: 30px;
    padding-left: 10px;
}
.info-block h2 { margin-top: 0; }

p { font-size: 1rem; line-height: 1.6; color: var(--text-secondary); margin: 0 0 15px 0; }
strong { color: var(--text-primary); font-weight: 600; }

.legal-text { grid-column: span 2; margin-top: 20px; }
.legal-text h3 { font-family: var(--font-heading); font-size: 1rem; margin-top: 20px; margin-bottom: 10px; color: var(--text-primary);}
.legal-text h4 { font-family: var(--font-heading); font-size: 0.9rem; color: var(--accent-gray); margin-top: 15px; margin-bottom: 5px; }


/* --- 8. ELEMENTE: STRECKEN / TABELLEN & BUTTONS --- */

/* Tabelle: Schrift vergrößert */
.data-table {
    width: 100%; 
    display: flex; flex-direction: column; flex: 1; 
}

.data-row {
    display: flex; 
    /* Farbe lokal in strecken.html definiert, hier nur Fallback */
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    align-items: center; 
    flex: 1; 
    min-height: 40px; 
}

.data-label {
    flex: 0 0 45%; 
    color: var(--text-secondary); 
    font-size: 1.3rem; /* Vergrößert */
    font-weight: 200; 
    border-right: 1px solid rgba(255,255,255,0.1); 
    height: 100%; 
    display: flex; 
    align-items: center;
}

.data-value {
    flex: 1; 
    font-size: 1.6rem; /* Vergrößert */
    font-family: var(--font-heading); 
    font-weight: 800; 
    padding-left: 20px; 
    display: flex; 
    align-items: center; 
    color: var(--accent-color);
}

/* Buttons */
.btn {
    background-color: rgba(255, 255, 255, 0.1); 
    color: var(--text-primary); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 8px;
    flex: 1; 
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-family: var(--font-heading); font-weight: 800; text-transform: uppercase;
    cursor: pointer; text-decoration: none; transition: all 0.2s;
    letter-spacing: 0.05em; padding: 0; 
}

/* Button Hover: DUNKELGRAU statt Blau */
.btn:hover { 
    background-color: #334155; 
    color: #ffffff;
    transform: translateY(-2px); 
    border-color: #334155;
}

.btn.disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }


/* --- 9. MOBILE OPTIMIERUNG --- */
@media (max-width: 850px) {
    .header-container { padding: 15px 20px; justify-content: center; }
    .footer-container { padding-bottom: 30px; }
    
    .header-nav ul, .footer-nav { gap: 15px; } 
    
    .nav-link, .header-nav a, .footer-nav a { 
        font-size: 12px; 
        letter-spacing: 0.1em; 
    }

    /* Impressum Mobile */
    .content-grid { display: flex; flex-direction: column; gap: 15px; }
    .legal-text { grid-column: auto; }
    .title { font-size: 1.8rem; }
    
    /* Startseite Logo Mobile */
    .center-logo {
        width: 90%; 
        animation: fadeInMobile 1.5s ease-in-out forwards;
    }
    @keyframes fadeInMobile {
        from { opacity: 0; transform: scale(0.95); }
        to   { opacity: 1; transform: scale(1.1); }
    }

    /* Tabellen Schrift Mobile */
    .data-label { font-size: 0.85rem; } 
    .data-value { font-size: 1.0rem; } 

    /* ORBS Anpassung für Mobile */
    .orb-1 {
        width: 100vw;
        height: 100vw;
        top: -10vh;
        left: -30vw;
        opacity: 0.6;
    }
    .orb-2 {
        width: 90vw;
        height: 90vw;
        bottom: -10vh;
        right: -30vw;
        opacity: 0.5;
    }
    .orb-3 {
        width: 60vw;
        height: 60vw;
        top: 40vh;
        left: 20vw;
        opacity: 0.4;
    }
}
/* ========================================= */
/* LEBENDIGER HINTERGRUND (ORBS) V2         */
/* ========================================= */

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    /* Weichzeichner-Effekt etwas reduziert für definiertere Farben */
    filter: blur(70px); 
    opacity: 0; /* Startet unsichtbar, wird per Animation eingeblendet */
}

/* ORB 1: Groß, langsam, Haupt-Akzentfarbe */
.orb-1 {
    width: 45vw;
    height: 45vw;
    top: -20vh;
    left: -15vw;
    background-color: var(--accent-blue); /* #0055ff */
    animation: move-orb-1 35s infinite ease-in-out alternate;
}

/* ORB 2: Mittel, hell, sorgt für Leuchten */
.orb-2 {
    width: 35vw;
    height: 35vw;
    bottom: -15vh;
    right: -10vw;
    background-color: #e2e8f0; /* Heller Grauton */
    animation: move-orb-2 45s infinite ease-in-out alternate;
}

/* ORB 3: Kleiner, kontrastreich, etwas schneller */
.orb-3 {
    width: 25vw;
    height: 25vw;
    top: 30vh;
    left: 40vw;
    background-color: #22d3ee; /* Modernes Cyan */
    animation: move-orb-3 25s infinite ease-in-out alternate;
}

/* Individuelle Animationen für jeden Orb */

@keyframes move-orb-1 {
    from {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    to {
        transform: translate(10vw, 15vh) scale(1.1);
        opacity: 0.3;
    }
}

@keyframes move-orb-2 {
    from {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    to {
        transform: translate(-15vw, -10vh) scale(0.9);
        opacity: 0.4;
    }
}

@keyframes move-orb-3 {
    from {
        transform: translate(0, 0) scale(0.95);
        opacity: 0.2;
    }
    to {
        transform: translate(5vw, -5vh) scale(1.05);
        opacity: 0.35;
    }
}
/* ========================================= */
/* LOGO STYLES (FÜR EINGEBETTETE SVG)       */
/* ========================================= */

.center-logo {
    width: 350px;           /* Größe anpassen, falls nötig */
    max-width: 80vw;        /* Damit es auf Handys passt */
    height: auto;           
    display: block;

    /* WICHTIG: Färbt das Logo weiß */
    fill: #ffffff !important;  
    color: #ffffff !important; 

    /* Die Animation */
    animation: atmen 4s infinite ease-in-out;
    transition: all 0.5s ease;
    
    /* Leichter Schein */
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

/* Sicherstellen, dass alle Teile des Logos weiß sind */
.center-logo path, 
.center-logo rect, 
.center-logo polygon, 
.center-logo circle {
    fill: #ffffff !important;
    stroke: transparent; /* Falls Ränder stören */
}

/* Die Animation definieren */
@keyframes atmen {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255,255,255,0.1)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 30px rgba(255,255,255,0.4)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255,255,255,0.1)); }
}

/* Effekt wenn man mit der Maus draufgeht */
.center-logo:hover {
    animation: none;
    transform: scale(1.15);
    filter: drop-shadow(0 0 50px rgba(100, 149, 237, 0.7));
    cursor: pointer;
}