:root { 
    --goebel-green: #1a3a32; 
    --brand-bronze: #b8860b; 
    --text-main: #1d1d1f; 
    --text-light: #86868b; 
    --apple-bg: #f5f5f7; 
}

/* --- LOKALE SCHRIFTARTEN --- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    src: url('fonts/Inter.ttf') format('truetype');
    font-display: swap;
}

/* BASIS STYLES */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: #fff; color: var(--text-main); transition: 0.3s; overflow-x: hidden; line-height: 1.6; }

body.no-scroll { overflow: hidden; }

/* GLOBALE ÜBERSCHRIFTEN (Für Geschichte, Datenschutz etc.) */
h1 {
    font-size: clamp(40px, 6vw, 60px); /* Schön groß */
    color: var(--goebel-green); /* Dunkelgrün */
    text-align: center; /* ZENTRIERT */
    margin-top: 60px;
    margin-bottom: 60px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 600;
}

/* Animationen */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
main, .card, .hero-text, .timeline-item { animation: fadeIn 0.8s ease-out forwards; }

/* --- NAVIGATION --- */
nav { position: fixed; top: 0; width: 100%; height: 65px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); z-index: 10000; display: flex; justify-content: space-between; align-items: center; padding: 0 5%; border-bottom: 1px solid rgba(0,0,0,0.05); }

.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; max-width: 70%; z-index: 10002; position: relative; }
.nav-logo-img { height: 42px; width: auto; mix-blend-mode: multiply; filter: contrast(110%); border-radius: 8px; flex-shrink: 0; }
.nav-brand-text { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--goebel-green); white-space: nowrap; transition: 0.3s; overflow: hidden; text-overflow: ellipsis; }
.nav-brand:hover .nav-brand-text { color: var(--brand-bronze); }

.nav-links { display: flex; gap: 5px; }
.nav-links a { color: var(--text-main); text-decoration: none; font-size: 13px; padding: 0 15px; font-weight: 500; white-space: nowrap; transition: 0.2s; }
.nav-links a:hover { color: var(--brand-bronze); }

.hamburger { display: none; cursor: pointer; background: none; border: none; padding: 10px; z-index: 10002; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: var(--goebel-green); border-radius: 3px; }

/* --- HERO SECTION (Video Startseite) --- */
/* Hier überschreiben wir die globale H1 für das Video */
.hero { 
    position: relative; 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 120px 5% 60px;
    overflow: hidden; 
}

.video-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.video-background video { width: 100%; height: 100%; object-fit: cover; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1; }

.hero-content { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1400px; gap: 60px; }

/* Spezielle Text-Regeln NUR für den Hero-Bereich (damit Geschichte unberührt bleibt) */
.hero-text { flex: 1.1; text-align: left; color: #fff; }
.hero-text h1 { 
    color: #fff; /* Weiß auf Video */
    text-align: left; /* Links auf Startseite */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); 
    margin-top: 0; /* Reset für Hero */
}
.hero-text h1 span { color: #d4af37; }
.hero-text p { font-size: 20px; color: #f0f0f0; margin-bottom: 35px; line-height: 1.5; text-shadow: 0 1px 5px rgba(0,0,0,0.5); }

.company-badge { display: inline-block; border: 1px solid rgba(255,255,255,0.3); padding: 8px 16px; border-radius: 50px; background: rgba(0,0,0,0.3); backdrop-filter: blur(5px); color: #fff !important; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }
.hero-text a { display: inline-block; background: #fff; color: var(--goebel-green); padding: 18px 36px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: 0.3s; }
.hero-text a:hover { background: var(--brand-bronze); color: #fff; transform: translateY(-2px); }

/* Daniels Bild */
.hero-image-grid { flex: 0.9; display: flex; justify-content: center; }
.team-card { text-align: center; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); padding: 20px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.2); }
.photo-wrapper { border-radius: 20px; overflow: hidden; margin-bottom: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.ggf-photo { width: 100%; height: auto; display: block; transition: transform 0.6s; }
.photo-wrapper:hover .ggf-photo { transform: scale(1.05); }
.ggf-name { font-weight: 600; font-size: 22px; display: block; color: #fff !important; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.ggf-role { color: #d4af37 !important; font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; }

/* --- ALLGEMEINE KARTEN --- */
.container { max-width: 1200px; margin: 120px auto 60px; padding: 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; margin-bottom: 80px; }
.card { background: var(--apple-bg); padding: 50px; border-radius: 32px; display: flex; flex-direction: column; transition: 0.3s; }
.card h2 { font-size: 28px; margin-bottom: 20px; color: var(--goebel-green); border-bottom: 2px solid var(--brand-bronze); padding-bottom: 10px; }
.card p { margin-bottom: 25px; font-size: 16px; color: #424245; }
.card ul { list-style: none; margin-top: auto; }
.card li { margin-bottom: 12px; padding-left: 25px; position: relative; font-weight: 600; color: var(--goebel-green); }
.card li::before { content: "→"; position: absolute; left: 0; color: var(--brand-bronze); }
.special { background: var(--goebel-green); color: #fff; }
.special h2 { color: var(--brand-bronze); border-color: #fff; }
.special p, .special li { color: #fff; }

/* --- GESCHICHTE (Timeline REPARIERT) --- */
.timeline {
    position: relative;
    margin-top: 60px;
    max-width: 800px; /* Damit es nicht zu breit wird */
    margin-left: auto;
    margin-right: auto;
}

.timeline-item {
    padding-left: 40px; 
    border-left: 2px solid var(--goebel-green); /* Die Linie (Dunkelgrün wie im Bild) */
    margin-bottom: 50px;
    position: relative;
}

/* Der schöne Punkt */
.timeline-item::before {
    content: "";
    position: absolute;
    left: -10px; /* Exakt auf der Linie zentriert */
    top: 0; 
    width: 18px;
    height: 18px;
    background: var(--brand-bronze); /* Bronze/Gold */
    border-radius: 50%;
    border: 3px solid #fff; /* Weißer Rand für Abstand */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.year {
    font-weight: 700;
    color: var(--brand-bronze);
    font-size: 18px;
    margin-bottom: 5px;
    display: block;
}

.timeline-item h2 {
    font-size: 24px;
    color: var(--goebel-green);
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-item p {
    font-size: 16px;
    color: #424245;
}

.highlight-box { background: var(--goebel-green); color: #fff; padding: 40px; border-radius: 32px; border-left: 8px solid var(--brand-bronze); margin-top: 60px; margin-bottom: 60px; }


/* --- KONTAKT & IMPRESSUM --- */
.impressum-section { padding: 80px 5%; background-color: #f9f9fb; border-top: 1px solid #eee; }
.impressum-container { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.impressum-section h2 { font-size: 24px; color: var(--goebel-green); margin-bottom: 20px; font-weight: 600; }
.impressum-section p { font-size: 15px; color: var(--text-light); line-height: 1.6; margin-bottom: 10px; }
.impressum-section strong { color: var(--brand-bronze); font-weight: 600; }
.impressum-section a { color: var(--text-main); text-decoration: none; transition: 0.2s; }
.impressum-section a:hover { color: var(--brand-bronze); }

footer { text-align: center; padding: 40px; font-size: 13px; color: var(--text-light); border-top: 1px solid #eee; background-color: #f9f9fb; }
footer a { color: var(--text-light); text-decoration: none; margin-left: 5px; }
footer a:hover { color: var(--brand-bronze); text-decoration: underline; }

.acc-btn { position: fixed; bottom: 20px; right: 20px; background: #000; color: #fff; border: 1px solid #fff; padding: 12px 20px; border-radius: 50px; cursor: pointer; z-index: 10001; font-size: 11px; }

/* Kontakt-Grid */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.info-card { background: var(--goebel-green); color: #fff; padding: 40px; border-radius: 32px; text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.info-card h2 { color: var(--brand-bronze); margin-bottom: 10px; }
.phone-display, .email-display { font-size: 24px; font-weight: 600; color: var(--brand-bronze); display: block; margin: 10px 0; text-decoration: none; transition: 0.2s; }
.phone-display:hover, .email-display:hover { filter: brightness(1.2); }
.form-card { background: var(--apple-bg); padding: 50px; border-radius: 28px; }
label { display: block; margin-top: 15px; font-weight: 600; color: var(--goebel-green); }
input, select, textarea { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid #d2d2d7; margin-top: 8px; font-size: 16px; font-family: inherit; }
.btn-submit { background: var(--goebel-green); color: #fff; border: none; padding: 18px; border-radius: 14px; font-weight: 600; cursor: pointer; width: 100%; margin-top: 25px; transition: 0.3s; }
.btn-submit:hover { background: var(--brand-bronze); }
.map-card { background: #fff; border: 1px solid rgba(0,0,0,0.1); border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: 1fr 380px; min-height: 450px; margin-bottom: 40px; }
.map-placeholder { width: 100%; height: 100%; background: #f0f0f5; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; position: relative; }
.btn-load-map { background: var(--goebel-green); color: #fff; border: none; padding: 12px 24px; border-radius: 50px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.location-info { padding: 40px; display: flex; flex-direction: column; justify-content: center; }

/* RESPONSIVE & MOBILE */
@media (max-width: 1024px) { 
    /* Hero mobil anpassen */
    .hero { flex-direction: column; text-align: center; padding-top: 120px; height: auto; }
    .hero-content { flex-direction: column; gap: 40px; }
    
    /* WICHTIG: Auf dem Handy Text wieder zentrieren */
    .hero-text { text-align: center; }
    .hero-text h1 { text-align: center; }
    
    .impressum-container { grid-template-columns: 1fr; text-align: center; }
    .map-card, .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
    
    nav { padding: 0 15px; }
    .nav-brand-text { display: block !important; font-size: 12px; }
    .nav-logo-img { height: 32px; }
    
    .hamburger { display: block; }
    .nav-links { position: fixed; left: -100%; top: 65px; flex-direction: column; background-color: #fff; width: 100%; height: calc(100vh - 65px); text-align: center; transition: 0.3s; padding-top: 40px; box-shadow: 0 10px 10px rgba(0,0,0,0.05); gap: 25px; }
    .nav-links.active { left: 0; overflow-y: auto; }
    .nav-links a { font-size: 20px; display: block; padding: 15px; border-bottom: 1px solid rgba(0,0,0,0.05); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* BARRIEREFREIHEITSMODUS */
body.high-contrast { background-color: #000 !important; color: #fff !important; }
body.high-contrast nav { background: #000 !important; border-bottom: 3px solid #fff !important; }
body.high-contrast nav .nav-links { background-color: #000 !important; } 
body.high-contrast nav .nav-links a { color: #fff !important; text-decoration: underline; border-color: #fff; }
body.high-contrast .card, body.high-contrast .info-card, body.high-contrast .form-card, body.high-contrast .map-card, body.high-contrast .legal-text-block, body.high-contrast .team-card { background: #000 !important; border: 3px solid #fff !important; }
body.high-contrast h1, body.high-contrast h2, body.high-contrast .ggf-name { color: #fff !important; }
body.high-contrast strong, body.high-contrast span, body.high-contrast label, body.high-contrast .year { color: #ffcc00 !important; }
body.high-contrast .nav-logo-img { border: 2px solid #fff; filter: brightness(1.2); mix-blend-mode: normal; }
body.high-contrast footer, body.high-contrast .impressum-section, body.high-contrast .apple-footer { border-top: 1px solid #fff !important; background-color: #000 !important; }
body.high-contrast a { color: #ffcc00 !important; text-decoration: underline; }
body.high-contrast .bar { background-color: #fff !important; }
body.high-contrast input, body.high-contrast select, body.high-contrast textarea { background: #000 !important; color: #fff !important; border: 2px solid #fff !important; }