:root {
    --primary-font: 'Cabin Sketch', cursive;
    --primary-color: #000;
    --background-color: #fff;
    --text-color: #000;
}

/* === Keyframe-Animation === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px); 
  }
  to {
    opacity: 1;
    transform: translateY(0); 
  }
}

/* === Globale Hover-Animationen === */
.main-nav a,
.lang-link,
.footer-links a,
.footer-contact a {
    display: inline-block; 
    transition: transform 0.25s ease-in-out;
}
.main-nav a:hover,
.lang-link:hover,
.footer-links a:hover,
.footer-contact a:hover {
    transform: translateY(-3px);
}
.feedback-form button,
.contact-form button {
    transition: transform 0.25s ease-in-out, opacity 0.3s ease;
}
.feedback-form button:hover,
.contact-form button:hover {
    transform: translateY(-4px);
    opacity: 0.9;
}

/* === Baustellen-Banner === */
.construction-banner {
    display: block; 
    background-color: #d9534f; 
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 1.1em;
    font-weight: 500;
    z-index: 9999; 
    position: sticky; 
    top: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-family: var(--primary-font);
}

/* === Hintergrund-Video (VOLLE HELLIGKEIT) === */
#video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Füllt den Screen ohne Ränder */
    z-index: -100;
}

/* === Landing Page Button (Desktop) === */
.landing-button-container {
    position: absolute;
    top: 50%;
    left: 75%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
}

.landing-button {
    font-family: var(--primary-font);
    font-size: 1.8em; 
    font-weight: 500;
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.65);
    border: 4px dashed var(--primary-color);
    padding: 14px 25px;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-block;
}

.landing-button:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.landing-button::after {
    content: '›';
    margin-left: 15px;
    transition: margin-left 0.3s ease;
}

.landing-button:hover::after {
    margin-left: 20px;
}


/* === Body-Stile === */
body {
    font-family: 'Cabin Sketch', cursive;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    flex-grow: 1;
}

/* === Video-Logik (HELLIGKEIT ANPASSUNG) === */
body.has-video {
    background-color: transparent;
}
body.has-video #video-background {
    display: block;
    /* HIER GEÄNDERT: Volle Helligkeit (1) und kein Blur (0) */
    filter: brightness(1) blur(0); 
}
/* Falls du später doch wieder Varianten brauchst */
body.has-video.brighter-video #video-background {
    filter: brightness(1) blur(0); 
}
body.no-video {
    background-color: var(--background-color); 
}
body.no-video #video-background {
    display: none; 
}


.header, main, .footer {
    position: relative;
    z-index: 10;
}
h1, h2, h3, .logo-text, .slogan-secondary, .certification, .slogan, .main-nav a {
    font-family: var(--primary-font);
}

h3 {
    font-size: 2.0em; /* Deine Wunschgröße für alle H3 */
    margin-bottom: 20px;
    font-weight: 700;
}

/* === Header (Desktop Standard) === */
.header {
    display: flex;
    justify-content: space-between; 
    align-items: flex-end; 
    padding: 15px 40px; 
    border-bottom: 2px solid var(--primary-color);
    background-color: rgba(255, 255, 255, 0.9); 
    position: relative; /* Oder 'fixed'/'sticky', falls das Header-Verhalten sich ändern soll */
    z-index: 50; /* VIEL HÖHERER WERT */
}
.logo-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.logo-area {
    display: flex;
    align-items: center;
}
.logo-area img {
    width: 100px; 
    height: auto;
    margin-right: 10px;
}
.logo-text {
   font-size: 1.1em;
    font-weight: 400;
    color: #000; 
    margin: 0;
    letter-spacing: 1px;
}
.slogan-secondary {
    font-size: 1.5em;
    font-weight: 600;
    margin-top: 5px;
    margin-left: 10px;
    color: #000;
    margin-bottom: 0; 
}

/* === Hauptnavigation === */
.main-nav a {
    font-size: 1.3em;
    font-weight: 400;
    color: var(--text-color);
    text-decoration: none;
    margin-right: 25px;
}
.main-nav a:last-child {
    margin-right: 0;
}
.main-nav a.active, .main-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}
.header-right-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    gap: 10px; 
}
.language-switcher {
    font-family: var(--primary-font);
    font-size: 1.1em;
    font-weight: 700;
    display: flex; 
    align-items: center; 
    margin-bottom: 0; 
}
.lang-separator {
    margin: 0 5px;
    color: var(--primary-color);
}
.lang-link {
    text-decoration: none;
    color: #888; 
    padding: 2px 5px;
    display: inline-flex; 
    align-items: center; 
}
.lang-link.active {
    color: var(--primary-color); 
    text-decoration: underline;
    text-underline-offset: 4px;
}
.lang-flag {
    width: 20px; 
    height: auto;
    vertical-align: middle; 
    margin-right: 6px; 
    border: 1px solid #ccc; 
}
.certification {
    font-size: 1.2em;
    font-weight: 300;
    color: var(--primary-color);
    border: 3px dashed var(--primary-color); 
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
}
.certification strong {
    font-size: 1.1em;
    display: block; 
    margin-bottom: 1px;
}

/* === HAUPT-CONTAINER === */
.content-section {
    padding: 40px;
    max-width: 1200px; 
    margin: 40px auto;
    text-align: left; 
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
}

/* === HOME: Hero-Sektion === */
.hero-box-container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 30px; 
    margin-top: 60px; 
}
.hero-box {
    border: 3px dashed var(--primary-color);
    border-radius: 5px;
    padding: 20px 30px;
    background-color: #f9f9f9; 
    text-align: center;
    flex-grow: 0; 
    flex-basis: 350px; 
    min-width: 200px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;  
	min-height: 300px;	
}

.hero-box p { margin: 10px 0; }
.hero-box p:first-child { margin-top: 0; }
.hero-box p:last-child { margin-bottom: 0; }
.hero-box .hero-subtext { font-size: 1.5em; }
.hero-box .slogan { font-size: 1.9em; }

/* === HOME: Sektionen === */
.content-section > .hero-section,
.content-section > .video-section,
.content-section > .services-section,
.content-section > .reviews-section {
    padding: 0; 
    margin: 0 0 40px 0; 
    text-align: center; 
    background-color: transparent; 
    border: none; 
    max-width: 100%; 
}

/* Schriftgröße für die Box "Für wen wir arbeiten" */
.service-box h3 {
    font-size: 1.8em; /* Größe der Überschrift */
}

.service-box ul li {
    font-size: 1.3em; /* Größe der Listenpunkte (Hotel, Firmen etc.) */
    line-height: 1.6; /* Zeilenabstand für bessere Lesbarkeit */
    margin-bottom: 5px; /* Kleiner Abstand zwischen den Punkten */
}


.reviews-section { margin-bottom: 0; }
.hero-section h1 { font-size: 3em; margin-bottom: 10px; }
.slogan { font-size: 2.1em; font-weight: 700; margin: 20px 0 30px 0; color: #000; }
.hero-subtext { font-size: 1.6em; }
.video-section h2, .services-section h2, .reviews-section h2, .contact-section h2, .content-section h2 { 
     font-size: 2.5em;
     text-align: center;
     margin-bottom: 20px;
}
.video-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    background-color: transparent; 
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.services-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 20px;
}
.service-box {
    flex-basis: 100%;
    max-width: 450px;
    padding: 20px;
    border: 3px dashed var(--primary-color); 
    background-color: #f9f9f9; 
    border-radius: 5px; 
    text-align: left;
}

/* === HOME: Review-Formular === */
.review-form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd; 
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.95);
    text-align: left;
}
.feedback-form label { display: block; margin-top: 15px; font-weight: 700; }
.feedback-form input[type="text"], .feedback-form textarea {
    width: 100%; padding: 10px; margin-top: 5px; border: 1px solid #ccc; border-radius: 3px; box-sizing: border-box; 
}
.feedback-form button {
    background-color: var(--primary-color); color: white; padding: 10px 20px; margin-top: 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 1em; font-family: Arial, sans-serif; 
}
.star-rating-input { direction: rtl; display: inline-block; margin-top: 5px; }
.star-rating-input input[type="radio"] { display: none; }
.star-rating-input label { color: #ccc; font-size: 30px; padding: 0 3px; cursor: pointer; display: inline; font-weight: 400; margin: 0; }
.star-rating-input input[type="radio"]:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label { color: gold; }
.disclaimer { font-size: 0.8em; color: #777; margin-top: 20px; }
.existing-reviews-container {
    max-width: 600px; margin: 40px auto 0 auto; padding: 20px;
    background-color: rgba(255, 255, 255, 0.95); border: 1px solid #ddd; border-radius: 5px; text-align: left;
}
.review-item { border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px; }
.review-item:last-child { border-bottom: none; margin-bottom: 0; }
.review-stars { font-size: 20px; margin-bottom: 10px; }
.star-filled { color: gold; }
.review-comment { font-size: 1.1em; font-style: italic; margin-bottom: 10px; }
.review-author { font-weight: 700; text-align: right; margin: 0; }

/* === DROHNEN: Stile === */
.info-text {
    text-align: center; font-size: 1.2em; font-weight: 400; margin-bottom: 30px; color: #000; padding: 10px; background-color: #f9f9f9; border: 1px dashed #ccc; border-radius: 5px;
}
.drone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.drone-item { border: 3px dashed var(--primary-color); border-radius: 5px; padding: 20px; text-align: center; background-color: #fff; }
.drone-item img { max-width: 100%; height: 250px; object-fit: contain; margin-bottom: 15px; }
.drone-item h3 { font-size: 1.6em; margin-bottom: 10px; }
.drone-item p { font-size: 1.1em; font-style: italic; color: #000; }

/* === ZIELGRUPPEN: Stile === */
.services-section { max-width: 1200px; }
.content-box-single {
    max-width: 900px; margin: 20px auto 0 auto; padding: 25px 35px;
    border: 3px dashed var(--primary-color); border-radius: 5px; text-align: left; font-size: 1.1em; background-color: #fff;
}
.content-box-single h3 { font-size: 1.8em; margin-top: 20px; margin-bottom: 10px; }
.content-box-single h3:first-child { margin-top: 0; }
.content-box-single ul { margin-top: 10px; padding-left: 25px; list-style-type: disc; }
.content-box-single li { margin-bottom: 5px; }
.content-box-single p { line-height: 1.7; }

/* === KONTAKT: Stile === */
.contact-section { max-width: 1200px; }
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 900px; margin: 0 auto; }
.contact-info, .contact-form-container { padding: 25px 35px; border: 3px dashed var(--primary-color); border-radius: 5px; background-color: #fff; }
.contact-info h3 { font-size: 1.8em; margin-top: 0; margin-bottom: 20px; }
.contact-info p { font-size: 1.2em; line-height: 1.7; margin-bottom: 15px; }
.contact-info a { color: var(--primary-color); text-decoration: none; font-weight: 700; }
.contact-info a:hover { text-decoration: underline; }
.contact-form label { display: block; margin-top: 15px; font-weight: 700; font-size: 1.1em; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
    width: 100%; padding: 12px; margin-top: 5px; border: 1px solid #ccc; border-radius: 3px; box-sizing: border-box; font-family: Arial, sans-serif; font-size: 1em;
}
.contact-form button {
    background-color: var(--primary-color); color: white; padding: 12px 25px; margin-top: 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 1.1em; font-family: var(--primary-font); font-weight: 700;
}

/* === IMPRESSUM === */
.content-section p { font-size: 1.2em; margin-bottom: 15px; line-height: 1.7; }
.content-section strong { font-weight: 700; }

/* === Footer === */
.footer {
    text-align: center; padding: 30px 40px; margin-top: 40px; border-top: 2px solid var(--primary-color); background-color: #f0f0f0; 
    font-family: var(--primary-font); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.footer-logo { grid-column: 1 / 2; justify-self: start; }
.footer-contact { grid-column: 2 / 3; }
.footer p { margin: 5px 0; font-size: 1.1em; }
.footer-links { grid-column: 3 / 4; justify-self: end; font-size: 1.1em; }
.footer-links a { color: var(--primary-color); text-decoration: none; margin-left: 15px; }
.footer-links a:hover { text-decoration: underline; }


/* === MOBILE ANPASSUNGEN (Hochformat) === */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 768px) {
    .video-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 600px) {
     .service-box { flex-basis: calc(50% - 20px); }
}

@media (max-width: 768px) {
    /* 1. Kompakter Header */
    .header {
        flex-direction: row; 
        flex-wrap: wrap;     
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;  
        background-color: rgba(255, 255, 255, 0.95);
    }

    /* 2. Logo klein */
    .logo-group { flex: 0 0 auto; }
    .logo-area img { width: 60px !important; }
    .logo-text { font-size: 1em; }

    /* 3. Alles Unnötige weg */
    .slogan-secondary { display: none; }
    .certification { display: none; }

    /* 4. Navigation in neue Zeile */
    .main-nav {
        width: 100%;       
        order: 3;          
        margin-top: 5px;
        margin-bottom: 0;
        text-align: center;
        display: flex;
        flex-wrap: wrap;   
        justify-content: center;
        gap: 10px;         
        border-top: 1px solid #eee; 
        padding-top: 5px;
    }
    .main-nav a {
        font-size: 0.95em; 
        margin: 0;         
    }

    /* 5. Sprache behalten */
    .header-right-group { align-items: center; margin-top: 0; }

    /* 6. Allgemeine Abstände */
    .content-section { padding: 20px; margin: 20px auto; }
    .hero-section, .services-section, .reviews-section, .video-section { margin-bottom: 30px; }
    .hero-section h1 { font-size: 2em; }
    .video-section h2, .services-section h2, .reviews-section h2, .contact-section h2 { font-size: 1.8em; }
    .drone-grid { grid-template-columns: 1fr; }
    .drone-item img { height: 180px; }

    /* 7. Footer vereinfachen */
    .footer { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
    .footer-logo, .footer-links, .footer-contact { grid-column: 1; justify-self: center; text-align: center; }
    .footer-logo img { width: 100px !important; }

    /* 8. DER BUTTON (Unten fixiert) */
    .landing-button-container {
        position: fixed;   
        top: auto;         
        bottom: 10%;       
        left: 50%;
        transform: translateX(-50%); 
        width: 90%;        
        padding: 0;
        z-index: 100;
    }
    .landing-button {
        display: block;    
        width: 100%;       
        text-align: center;
        font-size: 1.2em; 
        padding: 12px 0; 
        border-width: 2px;
        background-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
    }
}

/* === LANDSCAPE MODUS (Handy quer) === */
/* Hier wird die Navigation ausgeblendet für freie Sicht! */
@media (orientation: landscape) and (max-height: 600px) {
    
    .header {
        padding: 5px 15px; 
        background-color: rgba(255, 255, 255, 0.8); 
    }

    /* WICHTIG: Menü & Text ausblenden */
    .main-nav, 
    .logo-text, 
    .slogan-secondary, 
    .certification {
        display: none !important; 
    }

    /* Nur das kleine Logo und Sprache bleiben */
    .logo-area img {
        width: 45px !important; 
    }

    /* Button positionieren: Unten mittig */
    .landing-button-container {
        position: fixed;
        bottom: 15px;  
        left: 50%;
        transform: translateX(-50%);
        width: auto;  
        top: auto;   
    }
    
    .landing-button {
        font-size: 1em; 
        padding: 8px 30px; 
        background-color: rgba(255, 255, 255, 0.9);
        white-space: nowrap; 
    }
}

/* === Zusätzliche Klassen & Animationen === */
.animate-on-scroll { opacity: 0; }
.animate-on-scroll.is-visible {
    animation-name: fadeInUp; animation-duration: 0.6s; animation-fill-mode: forwards; animation-timing-function: ease-out;
}

.drone-item.text-left { text-align: left; min-height: 350px; }
.drone-item.text-left p { font-style: normal; font-size: 1.1em; line-height: 1.7; }
.drone-item.text-left h3 { font-size: 1.6em; margin-bottom: 15px; text-align: left; }
.drone-item.text-left ul { text-align: left; font-size: 1.1em; margin-top: 10px; padding-left: 25px; list-style-type: disc; }

.services-content-container { display: flex; justify-content: center; gap: 40px; margin-top: 40px; }
.service-box-large { flex-basis: 480px; max-width: 550px; padding: 30px; border: 3px dashed var(--primary-color); background-color: #f9f9f9; border-radius: 5px; text-align: left; }
.services-list-box ul { list-style-type: none; padding-left: 0; margin-top: 10px; }
.services-list-box li { font-size: 1.5em; margin-bottom: 15px; line-height: 1.5; position: relative; padding-left: 35px; font-weight: 700; display: block; }
.services-list-box li::before { content: '>'; color: var(--primary-color); font-size: 1.2em; font-weight: bold; position: absolute; left: 0; top: 0; }
.about-row { border: none; background-color: rgba(255, 255, 255, 0.95); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.about-image { transform: translateX(-25px); box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.2); }

@media (max-width: 1050px) {
    .services-content-container { flex-direction: column; align-items: center; }
    .service-box-large { max-width: 90%; }
}
@media (max-width: 768px) {
    .services-list-box li { font-size: 1.2em; }
    .about-image { transform: none; }
}

/* Erklärung Styles */
.explanation-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
@media (min-width: 900px) { .explanation-grid { grid-template-columns: 1fr 1fr; } }
.detail-box { border: 3px dashed var(--primary-color); border-radius: 5px; padding: 30px; background-color: #f9f9f9; text-align: left; scroll-margin-top: 140px; transition: all 0.4s ease-in-out; }
.detail-box:target { border: 5px solid var(--primary-color); background-color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transform: scale(1.05); z-index: 10; }
.detail-box h3 { font-size: 1.8em; margin-top: 0; margin-bottom: 20px; color: var(--primary-color); }
.detail-box p { font-size: 1.2em; line-height: 1.6; margin-bottom: 15px; }
.detail-box ul { font-size: 1.1em; line-height: 1.6; margin-bottom: 15px; padding-left: 20px; }
.back-button { display: inline-block; padding: 12px 30px; background-color: var(--primary-color); color: white; text-decoration: none; font-size: 1.2em; border-radius: 5px; font-weight: 700; font-family: var(--primary-font); transition: transform 0.2s, opacity 0.2s; }
.back-button:hover { transform: translateY(-3px); opacity: 0.9; }
.service-link { text-decoration: none; color: var(--text-color); display: inline-block; transition: transform 0.25s ease-in-out, color 0.2s; }
.service-link:hover { transform: translateY(-3px); color: var(--primary-color); text-decoration: underline; text-underline-offset: 3px; }

.about-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.page-title { text-align: center; font-family: 'Cabin Sketch', cursive; font-size: 3rem; margin-top: 0; margin-bottom: 3rem; color: #000; display: block; width: 100%; background: transparent; box-shadow: none; transform: none; left: auto; }
.about-inner { display: flex; align-items: center; gap: 3rem; }
.about-image-wrapper { flex: 1; min-width: 300px; display: flex; justify-content: center; }
.about-image { width: 100%; max-width: 400px; height: auto; border-radius: 5px; box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.2); object-fit: cover; aspect-ratio: 4/5; transform: translateX(-25px); }
.about-content { flex: 1.5; text-align: left; border: 3px dashed var(--primary-color); padding: 30px; border-radius: 5px; background-color: #fff; }
.about-content h2 { font-family: 'Cabin Sketch', cursive; font-size: 2.5rem; margin-top: 0; margin-bottom: 0.5rem; color: #000; }
.about-role { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 2px; color: #555; margin-bottom: 1.5rem; display: block; font-weight: bold; }
.about-text p { line-height: 1.6; margin-bottom: 1rem; font-size: 1.15rem; color: #000; }
.highlight-phrase { font-style: italic; color: #000; font-weight: bold; border-left: 3px solid var(--primary-color); padding-left: 15px; margin: 15px 0; display: block; background-color: rgba(0,0,0,0.05); }

@media (max-width: 768px) {
    .about-inner { flex-direction: column; gap: 30px; }
    .about-image { transform: none; max-width: 100%; }
    .about-content { text-align: center; width: 100%; box-sizing: border-box; }
    .page-title { font-size: 2.2rem; }
    .highlight-phrase { border-left: none; border-top: 2px solid var(--primary-color); padding-top: 10px; padding-left: 0; }
    .about-row { padding: 20px; }
}
@media (min-width: 769px) {
    .about-inner.reverse-desktop { flex-direction: row-reverse; }
}

/* === ABSTÄNDE KORREKTUR HOME === */
.content-section > .video-section { margin-top: 150px; }
.content-section > .services-section { margin-top: 150px; }
.hero-box-container { margin-top: 60px; }
.content-section > .reviews-section { margin-top: 150px; }
.services-section.content-section .drone-grid { row-gap: 60px; }
.drone-item.text-left p, .drone-item.text-left ul { font-size: 1.5em; line-height: 1.8; }


/* === FIX: Über Uns (Abstände & Bild) === */

/* 1. Sorgt für Abstand zwischen den gestrichelten Boxen */
.about-row {
    margin-bottom: 80px; 
}
.about-row:last-child {
    margin-bottom: 0;
}

/* 2. Holt das Bild zurück in den weißen Rahmen */
.about-image {
    transform: none !important; 
    margin-left: 0;
}

/* === FINALER FIX: Abstände & Bild === */

.about-row {
    /* Innenabstand (ca. 1cm), damit der gestrichelte Rahmen nicht den Rand berührt */
    padding: 40px; 
    
    /* Abstand nach unten zwischen den großen weißen Boxen */
    margin-bottom: 80px; 
}

/* Die letzte Box braucht keinen Abstand nach unten */
.about-row:last-child {
    margin-bottom: 0;
}

/* Bild-Korrektur: Bild bleibt schön im Rahmen */
.about-image {
    transform: none !important;
    margin-left: 0;
}

/* === FIX: Services Seite Überschrift nach oben holen === */
.services-page .services-section {
    /* Setzt den Abstand von 150px (Home-Layout) auf 0 zurück */
    margin-top: 0 !important; 
}

/* === NEUE STILE: Landing Video Screen mit Scroll-Pfeil === */

/* Der neue Bereich, der die volle Bildschirmhöhe einnimmt */
.landing-video-screen {
    height: 100vh; /* Volle Bildschirmhöhe */
    width: 100%;
    position: relative; /* Wichtig für die Positionierung des Pfeils */
    margin-top: -107px; /* Korrigiert den Platz, den der Header einnimmt */
    z-index: 5; /* Muss über dem Video, aber unter dem Header sein */
}

/* Entfernt den unnötigen Top-Margin im Haupt-Content */
.content-section {
    margin-top: 0 !important; 
}

/* Footer-Abstand nach oben korrigieren, da der neue Block den Platz schafft */
.footer {
    margin-top: 0; 
}


/* === Stil für den Scroll-Down-Pfeil === */
.scroll-down-arrow {
    position: absolute;
    bottom: 50px; /* Abstand vom unteren Rand */
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color); 
    z-index: 20; /* Über dem Video und dem Landing Screen */
    text-decoration: none;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7); /* Dezenter Hintergrund */
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    animation: bounce 1.5s infinite; /* Startet die Animation */
    display: inline-block;
}

.scroll-down-arrow:hover {
    animation: none; /* Stoppt die Animation beim Hover */
    background-color: rgba(255, 255, 255, 1);
}

/* Keyframe für die dezente Sprung-Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* === NEUE STILE: Video Overlay Text === */

.video-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Zentriert horizontal und vertikal */
    color: #fff;
    text-align: center;
    z-index: 10;
    width: 90%; /* damit es auf Mobilgeräten nicht überläuft */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9); /* Verbesserte Lesbarkeit */
}

.video-overlay-text .main-headline {
    /* Verwendung einer normalen Schriftart, wie gewünscht */
    font-family: Arial, sans-serif; 
    font-size: 2.5em; 
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 2px;
}

.video-overlay-text .sub-slogan {
    /* Verwendung einer normalen Schriftart, wie gewünscht */
    font-family: Arial, sans-serif; 
    font-size: 2.5em; /* Jetzt gleich groß wie die main-headline */
    font-weight: bold; /* Optional: Auch fett machen, damit es einheitlich knallt */
    margin-top: 40px; /* Kleinerer Abstand, damit sie optisch zusammengehören */
    margin-bottom: 0;
    line-height: 1.2;
    letter-spacing: 2px; /* Gleicher Buchstabenabstand wie oben */
}

/* Anpassung für kleinere Bildschirme */
@media (max-width: 768px) {
    .video-overlay-text .main-headline {
        font-size: 1.8em; 
    }
    .video-overlay-text .sub-slogan {
        font-size: 1.2em; 
        margin-top: 10px;
    }
}

/* === Services Seite: Anpassungen für die neue Struktur (NEU HINZUGEFÜGT) === */

/* Korrektur: Title der Services Seite hat jetzt eine eigene Sektion */
.page-hero-section {
    padding: 20px 40px;
    max-width: 1200px;
    margin: 40px auto 0 auto; /* Abstand nach unten wird durch die nächste Sektion gegeben */
    text-align: center; 
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
}
.page-hero-section h1 {
    font-size: 3em; 
    margin: 0;
    padding: 20px 0;
}

/* Sorgt für notwendigen Abstand zwischen dem page-hero und der ersten Content-Sektion */
.services-content-section {
    padding: 40px;
    max-width: 1200px; 
    margin: 40px auto;
    text-align: left; 
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
}

/* Korrektur für Mobile */
@media (max-width: 768px) {
    .page-hero-section {
        padding: 10px 15px;
        margin: 20px auto 0 auto;
    }
    .page-hero-section h1 {
        font-size: 2em;
        padding: 10px 0;
    }
}

/* === Services Seite: Anpassungen für die neue Struktur (MUSS ENTFERNT WERDEN) === */
.page-hero-section {
    padding: 20px 40px;
    max-width: 1200px;
    margin: 40px auto 0 auto; 
    text-align: center; 
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
}
.page-hero-section h1 {
    font-size: 3em; 
    margin: 0;
    padding: 20px 0;
}
/* usw. */

/* Container für einheitlichen Abstand nach oben (wie bei Über Uns) */
.standard-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px; /* Die 40px sorgen für den Abstand zum Header */
}

/* === Globale H1 für Unterseiten (Services, Kontakt etc.) === */
.content-section h1,
.standard-page-container h1 {
    text-align: center;
    font-size: 3em;
    margin-top: 0;
    margin-bottom: 40px;
    font-family: var(--primary-font);
    line-height: 1.2;
}

/* Anpassung für Handy (damit es nicht zu riesig ist) */
@media (max-width: 768px) {
    .content-section h1,
    .standard-page-container h1 {
        font-size: 2.2em;
        margin-bottom: 30px;
    }
}