:root {
    /* Hintergrund & Glas-Basis Tag */
    --bg-gradient-start: #e8f5e9;
    --bg-gradient-end: #fffde7;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(46, 125, 50, 0.2); 
    
    /* Textfarben Tag */
    --text-color: #2c3e50;
    --headline-color: #1b5e20;
    --accent-color: #4CAF50;
    
    /* Boxen Spezifisch Tag */
    --box-bg: rgba(255, 255, 255, 0.4);
    --box-label: #2e7d32;
    --box-link: #1565c0;
    --box-shadow: rgba(0, 0, 0, 0.1);
}

body.night-mode {
    /* Hintergrund & Glas-Basis Nacht */
    --bg-gradient-start: #1a2a3a; 
    --bg-gradient-end: #0f172a; 
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* Textfarben Nacht */
    --text-color: #f8fafc;
    --headline-color: #81c784;
    --accent-color: #a5d6a7;
    
    /* Boxen Spezifisch Nacht */
    --box-bg: rgba(0, 0, 0, 0.2);
    --box-label: #a5d6a7;
    --box-link: #90caf9;
    --box-shadow: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-color);
    text-align: center;
    padding: 20px;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    transition: all 0.8s ease;
}

/* --- THEME SCHALTER --- */
.theme-toggle {
    position: absolute; /* <-- Hier ist die Änderung! (Vorher stand hier 'fixed') */
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 15px var(--box-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
/* --- TAGESZEIT-ANZEIGE --- */
.theme-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 1.2rem;
    z-index: 100;
    box-shadow: 0 4px 15px var(--box-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Kein cursor: pointer; mehr! */
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.5);
}

.container {
    position: relative;
    max-width: 550px;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--box-shadow);
    z-index: 2;
}

/* --- NEUER HEADER (Tiere & Logo nebeneinander) --- */
.header-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.animal-icon {
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.main-logo {
    max-width: 160px;
    height: auto;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.15));
    z-index: 2;
}

h1 { color: var(--headline-color); font-size: 1.8em; margin-bottom: 10px; }
.quote { font-style: italic; font-size: 1.1em; color: var(--accent-color); margin-bottom: 25px; }

/* --- SCHILDKRÖTE & ABENTEUER-SPUR --- */
.progress-track {
    width: 100%;
    height: 50px; 
    background: transparent; 
    margin: 30px 0;
    position: relative;
    /* overflow: hidden; <-- WURDE ENTFERNT, damit die Schildkröte ganz bleibt! */
    border-bottom: 2px dashed rgba(46, 125, 50, 0.4); 
}

body.night-mode .progress-track { 
    border-bottom: 2px dashed rgba(255, 255, 255, 0.3); 
}

.walking-tortoise {
    position: absolute;
    bottom: 0px; /* Sitzt jetzt bündig auf der gestrichelten Linie */
    font-size: 2.2rem;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    animation: walkAndTurn 22s linear infinite;
    z-index: 10; /* Holt die Schildkröte sicher in den Vordergrund */
}

@keyframes walkAndTurn {
    0% { left: 5px; transform: scaleX(-1); }
    48% { left: calc(100% - 45px); transform: scaleX(-1); }
    50% { left: calc(100% - 45px); transform: scaleX(1); }
    98% { left: 5px; transform: scaleX(1); }
    100% { left: 5px; transform: scaleX(-1); }
}

/* Banner */
.vacancy-banner {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    color: white; padding: 15px; border-radius: 12px;
    font-weight: bold; margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
}

/* Boxen im Glas-Design */
.contact-box, .fact-box {
    background: var(--box-bg);
    border: 1px solid var(--glass-border);
    padding: 25px; border-radius: 20px;
    margin-bottom: 20px; text-align: left;
    backdrop-filter: blur(5px);
}

.contact-title, .fact-title {
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--box-label); font-weight: 800; margin-bottom: 8px; display: block;
}

.contact-subtitle { font-size: 1rem; margin: 0 0 20px 0; opacity: 0.8; }

.contact-actions { display: flex; flex-direction: column; gap: 12px; }

.action-btn {
    display: flex; align-items: center; padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 15px; text-decoration: none !important;
    transition: all 0.3s ease; color: var(--text-color) !important;
}

.action-btn:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.4);
    border-color: var(--accent-color);
}

.icon-circle {
    width: 40px; height: 40px; background: white; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-right: 15px;
}
body.night-mode .icon-circle { background: rgba(255, 255, 255, 0.1); }

.btn-text { display: flex; flex-direction: column; }
.btn-text .label { font-size: 0.7rem; font-weight: bold; opacity: 0.6; text-transform: uppercase; }
.btn-text .value { font-size: 0.9rem; font-weight: 600; }

.instagram-btn {
    display: inline-block; padding: 12px 25px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white !important; text-decoration: none; border-radius: 50px;
    font-weight: bold; margin: 20px 0;
}

/* Modal / Impressum Glas-Design */
dialog {
    border: none; border-radius: 20px; padding: 0;
    max-width: 600px; width: 90%; max-height: 80vh;
    background: var(--glass-bg); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2); color: var(--text-color);
}

dialog::backdrop { background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); }

.modal-header {
    position: sticky; top: 0; background: var(--glass-bg);
    padding: 20px 25px; border-bottom: 1px solid var(--glass-border);
    display: flex; justify-content: space-between; align-items: center; z-index: 10;
}

.modal-header h2 { margin: 0; font-size: 1.3em; color: var(--headline-color); }

.close-btn {
    background: rgba(0,0,0,0.1); border: none; font-size: 1.5rem; cursor: pointer;
    width: 35px; height: 35px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; color: var(--text-color);
    transition: background 0.3s;
}
.close-btn:hover { background: rgba(0,0,0,0.2); }

.legal-content { padding: 25px; text-align: left; overflow-y: auto; line-height: 1.6; }
.legal-content h3 { color: var(--box-label); margin-top: 25px; }
.legal-content a { color: var(--box-link); text-decoration: none; font-weight: bold; }

/* Deko Blätter */
.deco-leaf {
    position: fixed; top: -10%; z-index: 1; pointer-events: none; opacity: 0.4;
    animation: leafFloat 20s linear infinite;
}
.l1 { left: 5%; font-size: 3em; animation-duration: 18s; }
.l2 { left: 85%; font-size: 2.5em; animation-duration: 25s; animation-delay: -5s; }

@keyframes leafFloat {
    0% { transform: translateY(110vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-20vh) rotate(360deg); opacity: 0; }
}

.legal-footer button {
    background: none; border: none; color: var(--text-color); cursor: pointer;
    opacity: 0.6; font-size: 0.85em; text-decoration: underline; padding: 10px;
}

/* --- SPRACH-SCHALTER (DE | EN) --- */
.lang-switcher {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px var(--box-shadow);
    z-index: 100;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-color);
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s ease;
}

/* Der aktive Zustand (welche Sprache gerade an ist) */
.lang-btn.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.4);
}

body.night-mode .lang-btn.active {
    background: rgba(255, 255, 255, 0.15);
}

/* --- LOGIK FÜR DAS AUSBLENDEN DER TEXTE --- */
.en-text { display: none; } /* Englisch ist standardmäßig versteckt */

/* Wenn der Body die Klasse 'lang-en' bekommt, drehen wir es um: */
body.lang-en .de-text { display: none; }
body.lang-en .en-text { display: inline-block; }
body.lang-en p.en-text, body.lang-en div.en-text { display: block; }