/* =========================================
   1. VARIABLEN, GRUNDLAGEN & GLOBAL
   ========================================= */
:root 
{
    --dunkelrot: #c4291F;
    --signalrot: #e72b21;
    --beige-hell: #ffe0d0;
    --creme-orange: #fdbcac;
    --rostrot: #c46c5c;
    --altrosa: #de8677;
    --hellrose: #e49c8c;
    --dunkelgrau: #333333;
    --weiss: #ffffff;
    --logo-gelb: #f8ba00;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    max-width: 100%;
    overflow-x: hidden;
    font-family: Verdana, Geneva, sans-serif; 
    line-height: 1.6; 
    color: var(--dunkelgrau); 
    background-color: var(--weiss);
}

p { margin-bottom: 25px; }

h1, h2, h3 { color: var(--dunkelrot); margin-bottom: 20px; text-align: left; }

.container { 
    max-width: 80%; 
    margin: 0 auto; 
    padding: 60px 20px; 
}

/* =========================================
   2. HEADER, LOGO & NAVIGATION
   ========================================= */
.main-header {
    background: var(--weiss);
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 100%;
}

@media (min-width: 1024px) {
    .main-header { position: fixed; top: 0; left: 0; }
    body { padding-top: 170px; }
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo img { height: 150px; width: auto; display: block; object-fit: contain; }

a { text-decoration: none; color: var(--dunkelrot); }

.slogan h1 {
    font-size: 2.2rem;
    color: var(--dunkelrot);
    line-height: 1.1;
    max-width: 500px;
}

/* Versteckt Standard-Nav */
.main-nav, .mobile-nav { display: none; }

/* =========================================
   3. SEKTIONEN, LAYOUTS & KARTEN
   ========================================= */
.hero { background-color: var(--beige-hell); text-align: left; }
.about { background-color: var(--altrosa); }
.benefits { background-color: var(--hellrose); }
.feedback { background-color: var(--creme-orange); text-align: center; }
.offers { background-color: var(--dunkelgrau); }

.flex-row { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.col { flex: 1; min-width: 300px; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 40px;
    align-items: stretch;
}

.benefits .card {
    background-color: #fdf2e9 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 30px;
    border-radius: 15px;
}

.card-icon { background: transparent !important; width: 80px; height: auto; margin-bottom: 20px; }
.offer-card img { width: 100%; border-radius: 5px; margin-bottom: 10px; }

/* BILDER */
.profile-img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; }
.side-img { width: 400px; height: auto; border-radius: 10px; display: block; }
.hero-img { max-width: 100% !important; width: 100%; }

/* =========================================
   4. BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    background-color: var(--dunkelrot);
    color: #f8ba00;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}
.btn:hover { background-color: var(--logo-gelb); color: var(--dunkelrot); transform: translateY(-2px); }

.btn-small {
    display: inline-block;
    background-color: var(--dunkelrot);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* =========================================
   5. FEEDBACK, ANGEBOTE & FREEBIE (PC)
   ========================================= */
.feedback-section { padding: 60px 0 !important; background-color: #fdf2e9 !important; display: block !important; width: 100% !important; }

.testimonial-container {
    display: flex !important;
    gap: 20px !important;
    overflow-x: auto !important;
    padding: 20px !important;
    -webkit-overflow-scrolling: touch;
}

.testimonial-card {
    background: #ffffff !important;
    padding: 30px !important;
    border-radius: 15px !important;
    min-width: 300px !important;
    max-width: 400px !important;
    flex: 0 0 auto !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

.client-name { color: #c4291F !important; font-weight: bold !important; display: block !important; }

.offers-visual { padding: 100px 0 !important; background-color: #eaeae9 !important; display: block !important; width: 100% !important; clear: both; }

.visual-card { position: relative; display: block; margin-bottom: 40px; }
.image-wrapper { width: 100%; height: 350px; overflow: hidden; }
.image-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }

.keyword-box {
    position: absolute;
    bottom: -20px;
    right: 0;
    background-color: #fdf2e9;
    padding: 20px;
    text-align: right;
    min-width: 180px;
    z-index: 10;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.2);
}
.keyword-box span { color: var(--dunkelrot); font-weight: bold; text-transform: uppercase; display: block; }

.freebie-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), 
                url('bilder/banner-bg.jpg') no-repeat center center/cover;
    padding: 100px 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 10%;
    min-height: 400px;
}
.banner-text-box { background: rgba(253, 242, 233, 0.8); padding: 40px; border-radius: 10px; max-width: 600px; }

/* =========================================
   6. HANDY ANPASSUNGEN (MEDIA QUERY)
   ========================================= */
@media (max-width: 768px) {
    header .container { display: flex; flex-direction: column; align-items: center; }
    .logo img { max-width: 150px; }
    .grid-3 { grid-template-columns: 1fr; gap: 20px; }
} /* HIER SCHLIESST DAS HANDY CSS */

/* =========================================
   7. LANDINGPAGE & FOOTER (Ganz am Ende)
   ========================================= */
.landingpage-content { background-color: #fdf2e9; padding: 80px 0; min-height: 60vh; }
.small-container { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   FINALE FOOTER ANPASSUNG
   ========================================= */

.pre-footer {
    background-color: #333333; 
    color: #fdf2e9; 
    padding: 60px 0;
    border-top: 3px solid var(--dunkelrot);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

/* Rote Überschriften im Footer */
.footer-col h3 {
    color: var(--dunkelrot) !important;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* Button-Schrift auf Logo-Gelb */
.btn-small {
    display: inline-block;
    background-color: var(--dunkelrot);
    color: var(--logo-gelb) !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Social Icons: WEISS & GROSS */
.social-icons {
    display: flex;
    gap: 25px;
    margin-top: 15px;
}

.social-icons i {
    color: #ffffff !important; 
    font-size: 2.2rem; /* Schön präsent */
    transition: 0.3s;
}

.social-icons i:hover {
    color: var(--logo-gelb) !important;
    transform: scale(1.1);
}

/* Kontaktformular im Footer */
.footer-contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-form input, 
.footer-contact-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #555;
    background: #444;
    color: white;
    font-family: inherit;
}

/* Rechtlicher Balken ganz unten */
.footer-legal {
    background-color: #222;
    color: #888;
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
}

.footer-legal nav a {
    color: #888 !important;
    margin: 0 10px;
    text-decoration: none;
}
/* =========================================
   FINALES POPUP DESIGN
   ========================================= */

/* 1. Der Hintergrund (versteckt das Formular beim Laden) */
.popup-overlay {
    display: none; 
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Zentriert das Fenster */
    display: none; /* Wird durch JS auf 'flex' oder 'block' gesetzt */
    align-items: center;
    justify-content: center;
}

/* 2. Das weiße Fenster (dein Code) */
.popup-content {
    background-color: #fdf2e9;
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    max-width: 550px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
}

/* 3. Das Schließen-X (dein Code) */
.close-btn {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 35px;
    font-weight: bold;
    color: var(--dunkelrot);
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: var(--signalrot);
}