/* =========================================
   Globale Variablen (Farbpalette & Effekte)
   ========================================= */
:root {
    --primary-color: #2e7d32;
    --secondary-color: #1b5e20;
    --accent-color: #fdd835;
    --text-color: #34495e;
    --bg-light: #f9fbf8;
    --card-bg: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Sanftes Scrollen aktivieren */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* =========================================
   Barrierefreiheit (Fokus-Status)
   ========================================= */
/* Standard-Fokus des Browsers ausblenden */
*:focus {
    outline: none;
}

/* Eigenen, schönen Fokus für Tastaturnavigation setzen */
*:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* =========================================
   Header & Navigation
   ========================================= */
header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    min-height: 180px; 
    width: 100%;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: flex-end;
}

.nav-container nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-container a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.nav-container a:hover {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* =========================================
   Layout & Hero-Bereich (Oben)
   ========================================= */
.container {
    max-width: 1100px;
    margin: 0 auto 4rem auto;
    padding: 0 1rem;
}

.hero-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 2rem;
}

.portrait-header {
    margin-top: -120px; 
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

/* DEIN ORIGINAL-BILD MIT RUNDUNG + NEUER ANIMATION */
.portrait-header img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--card-bg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    /* NEU: Einlauf-Animation für das Porträt */
    animation: portraitZoomOut 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* NEU: Animation: Von groß (2.5) auf Normalgröße (1) */
@keyframes portraitZoomOut {
    0% { transform: scale(2.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Unabhängig-Badge mit Animation */
.unabhaengig-badge {
    position: absolute;
    bottom: 30px;
    left: 55%;
    transform: translateX(-50%) rotate(-6deg);
    background: rgba(46, 125, 50, 0.08); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--secondary-color);
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border: 1.5px solid rgba(46, 125, 50, 0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    white-space: nowrap;
    z-index: 20;
    pointer-events: none;
    opacity: 0; 
    animation: badgePopIn 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    /* VERZÖGERUNG AUF 1.2s ANGEPASST */
    animation-delay: 1.2s; 
}

@keyframes badgePopIn {
    0% { opacity: 0; transform: translateX(-50%) scale(0.5) rotate(-20deg); }
    60% { opacity: 1; transform: translateX(-50%) scale(1.1) rotate(-4deg); }
    100% { opacity: 1; transform: translateX(-50%) scale(1) rotate(-6deg); }
}

.title-text-block {
    margin-top: 1.5rem; 
}

.title-text-block h1 {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--primary-color);
    line-height: 1.1;
}

.title-text-block .subline {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--text-color);
    margin-top: 0.5rem;
    font-weight: 400;
    border-bottom: 4px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 1.5rem;
}

.title-text-block .bio {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* =========================================
   Inhalts-Boxen (Sections)
   ========================================= */
.section-box {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
    transition: var(--transition);
    position: relative;
    scroll-margin-top: 40px;
}

@media (min-width: 768px) {
    .section-box:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        border-color: var(--primary-color);
    }
}

h2 {
    color: var(--primary-color);
    border-bottom: 4px solid var(--accent-color);
    display: inline-block;
    margin-bottom: 2rem;
    padding-bottom: 8px;
}

#videobotschaft h2 {
    margin-bottom: 0.5rem;
	padding-bottom: 8px;
}

#videobotschaft h3 {
    /*color: var(--primary-color); /* Nutzt das definierte Grün aus deinen Variablen */
	margin-top: px; 
	padding-bottom: 4px;
    
}

/* Zurück nach oben Link */
.back-to-top-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition);
}

.back-to-top-link:hover {
    opacity: 1;
    transform: translateX(-5px);
}

/* =========================================
   Social Media Icons (Seite/Footer)
   ========================================= */
.quick-links {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.social-icon {
    background: white;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* =========================================
   Slideshow (Bildergalerie)
   ========================================= */
.slideshow-container {
    width: 100%;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
    max-height: 500px;
}

.mySlides { display: none; height: 100%; animation: fadeEffect 1.5s; }
.mySlides img { width: 100%; height: 100%; object-fit: cover; }
@keyframes fadeEffect { from {opacity: 0.4} to {opacity: 1} }

.prev, .next { cursor: pointer; position: absolute; top: 50%; padding: 12px; color: white; background: rgba(0,0,0,0.3); border-radius: 50%; transform: translateY(-50%); z-index: 10; transition: 0.3s; }
.prev:hover, .next:hover { background: rgba(0,0,0,0.8); }
.next { right: 10px; } 
.prev { left: 10px; }

/* =========================================
   Timeline (Werdegang)
   ========================================= */
.timeline-wrapper { position: relative; padding: 1rem 0; }
.timeline-wrapper::before {
    content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}
.timeline-item { position: relative; margin-bottom: 0.75rem; padding-left: 60px; }
.timeline-dot { position: absolute; left: 10px; top: 8px; width: 18px; height: 18px; background: white; border: 4px solid var(--primary-color); border-radius: 50%; z-index: 2; }
.timeline-date { font-weight: 800; color: var(--primary-color); display: block; font-size: 0.85rem; }
.timeline-content { background: #f8faf8; padding: 0.5rem 1rem; border-radius: 12px; border-left: 5px solid var(--primary-color); }
.timeline-content h3 { margin: 0; font-size: 0.95rem; color: var(--secondary-color); }
.timeline-content p { margin: 0.1rem 0 0 0; font-size: 0.85rem; }

/* =========================================
   Grid & Info-Karten (Ziele & Projekte)
   ========================================= */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.info-card { background: #f8faf8; padding: 1.5rem; border-radius: 15px; border-top: 4px solid var(--primary-color); height: 100%; box-sizing: border-box; }
.info-card h3 { margin-top: 0; color: var(--primary-color); font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }

/* =========================================
   Kontaktformular
   ========================================= */
.contact-form input[type="text"], 
.contact-form input[type="email"], 
.contact-form textarea { width: 100%; padding: 0.8rem; margin-bottom: 0.8rem; border: 1.5px solid #eee; border-radius: 10px; box-sizing: border-box; font-size: 16px; font-family: 'Inter', sans-serif;}
.contact-form button { background: var(--primary-color); color: white; border: none; padding: 1rem 2rem; border-radius: 50px; cursor: pointer; font-weight: 700; width: 100%; transition: 0.3s; font-size: 1.1rem; margin-top: 10px;}
.contact-form button:hover { background: var(--secondary-color); }

.checkbox-container { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 1.5rem; font-size: 0.9rem; }
.checkbox-container input { margin-top: 4px; width: auto; }

/* =========================================
   Footer
   ========================================= */
footer { text-align: center; padding: 3rem 1rem; background: #fff; font-size: 0.85rem; }

/* =========================================
   Responsive Design (Smartphones & Tablets)
   ========================================= */
@media (max-width: 850px) { 
    .projects-grid { grid-template-columns: 1fr; } 
}

@media (max-width: 768px) {
    /* Deine originale Social-Sidebar */
    .social-sidebar { 
        position: static; 
        flex-direction: row; 
        justify-content: center; 
        margin-top: 2rem;
        margin-bottom: 2rem; 
        transform: none; 
    }
    
    /* 1. Profilbild kleiner machen, damit es nicht über das Menü rutscht */
    .portrait-header { 
        margin-top: -120px; 
        width: 280px;      
        height: auto;
        margin-left: auto; 
        margin-right: auto;
    }
    
    .portrait-header img { 
        width: 100%; 
        height: auto; 
    }

    /* 2. Container entzerren */
    .hero-layout { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        gap: 1.5rem; 
    }
    
    .title-text-block { 
        margin-top: 0; 
        padding: 0 1rem; 
        width: 100%;
        box-sizing: border-box;
    }
    
   /* 3. Menü die volle Breite geben und Umbruch zwingend erzwingen */
    .nav-container { 
        width: 100%;
        box-sizing: border-box;    
        padding: 1rem 1rem 1rem 1rem; 
        justify-content: center; 
        height: auto;
    }
    
    .nav-container nav { 
        display: flex; 
        flex-wrap: wrap; 
        gap: 0.5rem;     
        justify-content: center; 
        width: 100%;
    }
}

/* Styling für die Kontakt-Feedback-Meldungen */
.form-status {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none; /* Standardmäßig versteckt */
}

.form-status.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* =========================================
   Hover-Effekte für Profilbild
   ========================================= */

/* Das Profilbild (Weicher und fließender mit 2s) */
.portrait-header img {
    transition: transform 2s ease-in-out, box-shadow 2s ease-in-out !important; 
}

.portrait-header img:hover {
    transform: scale(1.03) !important; 
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important; 
}