/* --- DEINE FARBEN (Bleiben wie sie sind) --- */
:root {
    --color-primary: #547C66;    /* Salbeigrün */
    --color-accent: #C86B53;     /* Terrakotta */
    --color-accent-hover: #A05542; /* Etwas dunkleres Terrakotta für Hover */
    --color-bg-light: #FAF8F5;   /* Cremeweiß */
    --color-text: #2D322E;       /* Dunkles Anthrazit */
}

/* --- SANFTES SCROLLEN --- */
html {
    scroll-behavior: smooth;
}

/* --- GLOBALE EINSTELLUNGEN --- */
body {
    /* Ein sehr weicher, edler Farbverlauf statt einer platten Farbe */
    background: linear-gradient(135deg, #FAF8F5 0%, #EAE4D9 100%);
    color: var(--color-text);
    font-family: 'Outfit', sans-serif; /* Hier ist unsere neue Premium-Schrift! */
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* --- 1. DIE NAVIGATION (Wieder da!) --- */
.navbar {
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600; /* Passt perfekt zur neuen Outfit-Schrift */
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* --- 2. DIE HERO-SECTION (Das Upgrade) --- */
.hero {
    padding: 80px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    /* Wir packen den Text in eine schwebende Glass-Karte für mehr Tiefe */
    background: rgba(255, 255, 255, 0.6);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-text h1 {
    color: var(--color-primary);
    font-size: 3.5rem;
    font-weight: 800; /* Richtig schön fett und modern */
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: #4A4F4B;
    font-weight: 300;
}

/* --- DER PREMIUM BUTTON --- */
.btn-primary {
    background-color: var(--color-accent);
    color: white;
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 50px; /* Komplett rund wie eine Pille (sehr modern) */
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(200, 107, 83, 0.3); /* Leuchtender Schatten in Button-Farbe */
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-3px); /* Button hebt sich beim Drüberfahren ab */
    box-shadow: 0 15px 25px rgba(200, 107, 83, 0.4);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: 500px;
    object-fit: cover;
    /* Hier ist die Blob-Magie! Eine organische, ungleichmäßige Form */
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    box-shadow: 0 20px 50px rgba(84, 124, 102, 0.2);
    /* Eine kleine Animation, damit der Blob ganz leicht atmet */
    animation: morph 8s ease-in-out infinite; 
}

/* Animations-Schlüsselbilder für den Blob */
@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

/* --- 4. ANGEBOTE (3D Flip Cards) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Automatisches Grid, bricht auf dem Handy um! */
    gap: 40px;
}

/* Der Container gibt der Karte die 3D-Perspektive */
.flip-card {
    background-color: transparent;
    height: 350px;
    perspective: 1000px; /* Erzeugt den 3D-Raum */
    cursor: pointer;
}

/* Das innere Element, das sich tatsächlich dreht */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s; /* Wie schnell sie sich dreht */
    transform-style: preserve-3d; /* Wichtig für 3D */
}

/* Diese Klasse wird per JavaScript beim Klicken hinzugefügt */
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* Gemeinsame Eigenschaften für Vorder- und Rückseite */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    /* Versteckt die Rückseite, wenn sie abgewandt ist */
    backface-visibility: hidden; 
    border-radius: 20px;
    padding: 40px 20px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Spezifisches Design: Vorderseite */
.flip-card-front {
    background-color: white;
    color: var(--color-text);
    border: 1px solid #eee;
}

.flip-card-front h3 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* Spezifisches Design: Rückseite */
.flip-card-back {
    background-color: var(--color-bg-light); /* Cremeweiß */
    color: var(--color-text);
    border: 2px solid var(--color-primary);
    transform: rotateY(180deg); /* Ist standardmäßig schon um 180 Grad gedreht */
}

.flip-card-back h3 {
    color: var(--color-accent);
}

/* Kleine Fake-Buttons für die Optik */
.btn-fake {
    margin-top: auto;
    color: var(--color-accent);
    font-weight: bold;
}

.btn-fake-back {
    margin-top: auto;
    color: #888;
    font-size: 0.9rem;
}

/* --- Styling für die Bilder auf den Karten-Vorderseiten --- */
.card-icon-img {
    width: 80px;      /* Gleiche Größe wie der Hero-Badge-Hund */
    height: 80px;
    object-fit: cover; /* Schneidet das Bild quadratisch zu, falls es das nicht ist */
    border-radius: 50%; /* Macht es kreisrund */
    margin-bottom: 20px;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- 5. ÜBER MICH & PHILOSOPHIE --- */
.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1; /* Nimmt die halbe Breite ein */
}

.about-text h2 {
    color: var(--color-primary);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 20px;
}

/* Das hervorgehobene Zitat */
.quote {
    margin-top: 40px;
    padding-left: 25px;
    border-left: 4px solid var(--color-accent); /* Ein schicker Terrakotta-Strich an der Seite */
    font-style: italic;
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 600;
}

.about-image {
    flex: 1; /* Nimmt die andere halbe Breite ein */
    position: relative;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    /* Hier ist die Magie: Das Arch-Design (Oben extrem rund, unten leicht rund) */
    border-radius: 200px 200px 30px 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2; /* Bild liegt über dem Hintergrund-Element */
}

/* Das Deko-Element (verschobener Schatten) hinter dem Bild */
.image-backdrop {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-40%); /* Leicht nach rechts versetzt */
    width: 100%;
    max-width: 450px;
    height: 95%;
    background-color: #E2DDD3; /* Ein etwas dunkleres Creme */
    border-radius: 200px 200px 30px 30px;
    z-index: 1;
}

/* --- 7. FOOTER (Fußzeile) --- */
.footer {
    background-color: var(--color-text); /* Das edle, dunkle Anthrazit */
    color: #EAE4D9; /* Helle Schrift für guten Kontrast */
    padding: 60px 20px 20px 20px;
    margin-top: 80px; /* Abstand zum Inhalt darüber */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-col h3 {
    color: var(--color-bg-light); /* Cremeweiß für die Überschriften */
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p {
    line-height: 1.6;
    color: #b0b5b1; /* Leicht abgedunkeltes Weiß für Fließtext */
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b0b5b1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent); /* Links werden beim Drüberfahren Terrakotta */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #888;
    font-size: 0.9rem;
}
/* --- HÖLTER DIGITAL BRANDING --- */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #888;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

.agency-branding a:hover {
    color: #C86B53 !important; /* Wird beim Drüberfahren Terrakotta statt Blau */
}

/* --- 6. EASTER EGG (Das Modal) --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(8px); 
    
    /* DIE MAGIE: Erlaubt das Scrollen innerhalb des Pop-ups! */
    overflow-y: auto; 
}

.modal-content {
    background-color: #FAF8F5;
    /* Abstand von oben, zentriert, und Abstand nach unten fürs Scrollen */
    margin: 5% auto 5% auto; 
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: fadeIn 0.6s ease-out; 
}

/* Bändigt das Bild, damit es auf Laptops nicht den ganzen Bildschirm sprengt */
.modal-content img {
    max-height: 40vh; /* Nimmt maximal 40% der aktuellen Bildschirmhöhe ein */
    object-fit: cover; /* Schneidet das Bild sauber zu, ohne es zu quetschen */
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #C86B53; /* Wird Terrakotta beim Drüberfahren */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 8. PHILOSOPHIE DETAILS (SEO & Features) --- */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Zwei gleich große Spalten */
    gap: 60px;
    align-items: start;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

/* Das schicke Styling für die Häkchen */
.feature-list .check {
    color: white;
    background-color: var(--color-accent); /* Terrakotta */
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    margin-right: 15px;
    flex-shrink: 0; 
    margin-top: 2px;
} /* <-- Diese Klammer hat gefehlt! */

/* ==========================================================================
   FINAL BRANDING RE-DESIGN (Mit logo1.PNG)
   ========================================================================== */

/* 1. Navigation Logo & Text */
.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Macht das beige Quadrat zum Kreis */
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav-brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--color-primary);
    font-size: 1.1rem;
    line-height: 1;
}

.nav-brand-text span {
    display: block;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--color-text);
}

/* 2. Hero Brand Header */
.hero-brand-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    padding: 5px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.hero-brand-titles {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.brand-main {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 0.9;
    letter-spacing: -1px;
}

.brand-sub {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- 3. SMARTPHONE OPTIMIERUNG (Wieder da & fürs Upgrade angepasst!) --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px;
    }

    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero {
        flex-direction: column;
        padding: 40px 20px;
        gap: 40px;
    }

    .hero-text {
        padding: 30px 20px; /* Etwas weniger Innenabstand auf dem Handy */
    }

    .hero-text h1 {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .hero-text p {
        text-align: center;
    }
    
    /* Damit der Button auf dem Handy auch schön mittig ist */
    .btn-primary {
        display: block;
        width: max-content;
        margin: 0 auto;
    }

    .hero-image img {
        height: 350px; /* Der Blob wird auf dem Handy etwas kleiner */
    }

    /* Über Mich Sektion fürs Handy */
    .about-container {
        flex-direction: column; /* Stapelt Bild oben und Text unten */
        gap: 50px;
        text-align: center; /* Zentriert den Text auf dem Handy */
    }

    .about-text h2 {
        font-size: 2.2rem;
    }

    .quote {
        text-align: left; /* Das Zitat bleibt linksbündig wegen dem Strich */
        font-size: 1.1rem;
    }

    .image-backdrop {
        transform: translateX(-45%); /* Rückt den Hintergrund auf dem Handy etwas mittiger */
    }
    /* Footer fürs Handy zentrieren */
    .footer-container {
        text-align: center;
        gap: 30px;
    }
    /* Philosophie Details fürs Handy */
    .details-grid {
        grid-template-columns: 1fr; /* Aus 2 Spalten wird 1 Spalte */
        gap: 40px;
    }
}
