/* ==========================================================================
   1. RESET & GLOBALE EINSTELLUNGEN
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    /* Reibungsloses Scrollen */
    scroll-behavior: smooth; 
}

/* ==========================================================================
   2. TYPOGRAFIE (Deine Vorgaben)
   ========================================================================== */
body {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 26px;
    letter-spacing: 0.07em;
    color: #333; /* Standard-Textfarbe, falls nicht anders definiert */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400; /* Bebas Neue hat meist nur ein Weight */
    text-transform: uppercase; /* Typisch für Bebas Neue */
}

h1 {
    font-size: 45px;
    line-height: 1.5;
}

h2 {
    font-size: 40px;
    line-height: 1.5;
}

h3 {
    font-size: 36px;
    line-height: 1.3;
}

h4 {
    font-size: 28px;
    line-height: 1.3;
}


/* ==========================================================================
   LINK-STYLING
   ========================================================================== */
a {
    text-decoration: none; /* Entfernt den Unterstrich */
    color: inherit;        /* Erbt standardmäßig die Farbe des Textes drumherum */
    transition: color 0.3s ease; /* Macht Farbwechsel beim Drüberfahren geschmeidig */
}

/* Speziell für die Links im Footer */
.main-footer a {
    color: #e3e3e3; /* Deine Wunschfarbe */
}

/* Kleiner Bonus: Ein dezenter Hover-Effekt, damit man merkt, dass es Links sind */
.main-footer a:hover {
    color: #ffffff; /* Wird beim Drüberfahren komplett weiß */
}



/* ==========================================================================
   3. LAYOUT CONTAINER
   ========================================================================== */
/* Für die Sections, die auf 1200px zentriert sein müssen */
.container-1200 {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
}


/* ==========================================================================
   3. DER SCROLL-EFFEKT & FIXIERTES HINTERGRUNDBILD
   ========================================================================== */
/* Das Bild liegt fixiert im Hintergrund hinter allen Sections */
.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Hier dein Fullscreen-Bild für den Hintergrund eintragen: */
    background-image: url('images/puls_studio.jpg'); 
    background-size: cover;
    background-position: center;
    z-index: -1; /* Schiebt das Bild hinter den Content */
}

/* ==========================================================================
   4. FIRST SECTION (Hero - fährt hoch)
   ========================================================================== */
.section-hero {
    display: flex;
    width: 100%;
    height: 100vh; /* Fullscreen */
    position: relative;
    z-index: 2; /* Liegt über dem fixierten Hintergrund */
    background-color: #fff; /* Verhindert, dass das Fixbild hier schon durchschaut */
}

/* Linke Spalte: Foto */
.hero-left {
    flex: 1; /* Nimmt exakt 50% der Breite */
    height: 100%;
    overflow: hidden;
}

.hero-left img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bild füllt die Spalte perfekt aus ohne zu verzerren */
    display: block;
}

/* Rechte Spalte: Text & Hintergrundfarbe */
.hero-right {
    flex: 1; /* Nimmt exakt 50% der Breite */
    background-color: #EDE7E0; /* Deine Wunschfarbe */
    display: flex;
    align-items: center; /* Zentriert den Inhalt vertikal */
    justify-content: flex-start; /* Linksbündig */
    padding: 30px; /* Dein gewünschtes Padding */
}

.hero-text-content {
    max-width: 600px; /* Verhindert, dass der Text bei riesigen Bildschirmen zu lang läuft */
    width: 100%;
}


/* ==========================================================================
   5. ZWEITE SECTION (Transparent, auf 1200px limitiert)
   ========================================================================== */
.section-transparent {
    width: 100%;
    min-height: 100vh; /* Fullscreen, kann bei viel Text aber mitwachsen */
    position: relative;
    z-index: 2;
    background-color: transparent; /* Macht die Section unsichtbar */
    display: flex;
    align-items: center;
    padding: 70px 0; /* Etwas Abstand nach oben und unten */
}

/* Linke Spalte: Weiß, 600px breit */
.transparent-left {
    width: 600px; /* Exakt 600px Breite */
    background-color: #ffffff;
    padding: 25px; 
    padding-top: 25px;
    padding-right: 30px;
    padding-bottom: 50px;
    padding-left: 30px;
    box-sizing: border-box;
}

/* Rechte Spalte: Leer, damit das Hintergrundbild durchscheint */
.transparent-right {
    flex: 1; /* Füllt den Rest der 1200px Breite aus */
    background-color: transparent;
}


/* ==========================================================================
   7. DRITTE SECTION (Vollflächig Weiß, 2 Spalten)
   ========================================================================== */
.section-white {
    width: 100%;
    /* min-height: 100vh;  <-- ENTFERNT, um riesigen Leerraum bei wenig Text zu vermeiden */
    background-color: #ffffff; 
    position: relative;
    z-index: 2;
    display: flex;
    /* align-items: center; <-- ENTFERNT */
    padding: 90px 0;    /* HIER SCHRAUBEN: Erster Wert (60px) ist der Abstand nach oben und unten */
}

.content-grid {
    display: flex;
    align-items: flex-start; /* WICHTIG: Richtet Bild und Text an der Oberkante aus */
    gap: 60px;               /* Abstand zwischen Bild und Text */
}

.white-left {
    flex: 1; /* Nimmt 50% der Breite */
}

.white-left img {
    width: 100%;
    height: auto;
    display: block;
}

.white-right {
    flex: 1; /* Nimmt 50% der Breite */
}

/* Optional: Damit die Abstände nach der Headline im Text passen */
.white-right h2 {
    margin-bottom: 20px;
}


/* ==========================================================================
   8. VIERTE SECTION (Hellgrau mit Top-Grafik & Galerie)
   ========================================================================== */
.section-lightgray {
    width: 100%;
    min-height: 100vh;
    background-color: #e7e7e7;
    position: relative;
    z-index: 2;
    padding-top: 0;      /* Absolut wichtig: Kein Abstand nach oben */
    padding-bottom: 90px; /* Gewünschter Abstand nach unten */
    display: flex;
    flex-direction: column;
}

/* Die Grafik füllt jetzt die 1200px des Containers perfekt aus */
.top-graphic {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* Container für den Content – der Abstand (70px) greift jetzt nach der Grafik */
.gray-content {
    display: block; 
    margin-top: 30px; /* Präziser Abstand zwischen Grafik-Unterkante und H1 */
}

/* (Der Rest für .intro-block, .image-gallery-row und .gallery-col bleibt genau gleich wie vorhin) */
.intro-block {
    margin-bottom: 50px;
}
.intro-block h1 {
    margin-bottom: 20px;
}
.image-gallery-row {
    display: flex;
    gap: 10px;
    width: 100%;
}
.gallery-col {
    flex: 1;
}
.gallery-col img {
    width: 100%;
    height: auto;
    display: block;
}


/* ==========================================================================
   9. FÜNFTE SECTION (Bilderband - FIXES GRID 1200px)
   ========================================================================== */
.section-image-strip {
    width: 100%;
    background-color: #ffffff;
    position: relative;
    z-index: 2;
    padding: 60px 0; 
}

.image-grid-container {
    display: grid !important; /* Überschreibt das 'display: flex' vom Standard-Container */
    
    /* DESKTOP-EINSTELLUNG: Exakt 9 Spalten, die sich die 1200px perfekt teilen (fr = fraction) */
    grid-template-columns: repeat(9, 1fr); 
    
    gap: 15px; /* Fester Abstand zwischen den Bildern (horizontal & vertikal) */
    padding: 0 20px; /* Kleiner Schutzabstand, falls der Screen exakt 1200px breit ist */
    box-sizing: border-box;
}

.strip-item {
    width: 100%;
    /* Da es ein 4:3 Grid ist, definieren wir das Seitenverhältnis direkt im CSS! 
       Der Browser berechnet die Höhe nun vollautomatisch absolut perfekt. */
    aspect-ratio: 3 / 4; 
    overflow: hidden;
}

.strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Füllt das 4:3 Quadrat perfekt aus */
    display: block;
}


/* ==========================================================================
   IMPRESSUM SEITE STYLING
   ========================================================================== */
.section-impressum {
    width: 100%;
    min-height: 80vh;
    background-color: #ffffff;
    position: relative;
    z-index: 2;
    padding: 60px 0 100px 0;
}

.impressum-container {
    flex-direction: column !important;
    padding: 0 20px;
    box-sizing: border-box;
}

.back-btn-wrapper {
    margin-bottom: 40px;
}

.back-to-home-btn {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.07em;
    color: #333;
    background-color: #EDE7E0; /* Passend zum Hero-Ton */
    padding: 12px 24px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.back-to-home-btn:hover {
    background-color: #4A4A4A;
    color: #ffffff;
}

.impressum-content h1 {
    margin-bottom: 20px;
}

.impressum-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 28px;
}

.impressum-content p {
    margin-bottom: 15px;
}

/* ==========================================================================
   MEDIA QUERY FÜR MOBILE (Bildschirme kleiner als 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .image-grid-container {
        /* MOBILE-EINSTELLUNG: Schaltet automatisch auf 3 Spalten um (ergibt bei 18 Bildern 6 Reihen) */
        grid-template-columns: repeat(3, 1fr); 
        gap: 10px; /* Auf Mobile etwas weniger Abstand, damit mehr Bild übrig bleibt */
    }
}


/* ==========================================================================
   11. TRENNLINIE (70% Breite innerhalb des 1200px Containers)
   ========================================================================== */
.section-divider {
    width: 100%;
    background-color: #ffffff; /* Weißer Hintergrund über die volle Breite */
    position: relative;
    z-index: 2;
    padding: 20px 0; /* Wenig Padding oben und unten */
}

.divider-line {
    width: 70%; /* Nimmt exakt 70% von den 1200px ein (also 840px) */
    height: 1px; /* Super feiner 1px Strich */
    background-color: #e7e7e7; /* Deine Wunschfarbe Hellgrau */
    margin: 0 auto; /* Zentriert den Strich innerhalb des 1200px Containers */
}


/* ==========================================================================
   10. SECHSTE SECTION (30/70 Split & Instagram Button)
   ========================================================================== */
.section-instagram-profile {
    width: 100%;
    background-color: #ffffff; /* Weißer Hintergrund */
    position: relative;
    z-index: 2;
    padding: 90px 0; /* Angenehmer Abstand nach oben und unten */
}

.profile-grid {
    display: flex;
    align-items: flex-start; /* Richtet Text- und Bild-Oberkante perfekt aneinander aus */
    gap: 50px; /* Abstand zwischen der linken und rechten Spalte */
    padding: 0 20px;
    box-sizing: border-box;
}

/* Linke Spalte nimmt exakt 30% der verfügbaren Breite minus ein Teil des Gaps */
.profile-left {
    flex: 0 0 calc(30% - 25px); 
}

.profile-left img {
    width: 100%;
    height: auto;
    display: block;
}

/* Rechte Spalte nimmt exakt 70% der verfügbaren Breite minus ein Teil des Gaps */
.profile-right {
    flex: 0 0 calc(70% - 25px);
}

.profile-right h2 {
    margin-bottom: 25px;
}

.profile-right p {
    margin-bottom: 35px; /* Etwas mehr Abstand nach unten, damit der Button frei steht */
}

/* DER SOCIAL MEDIA HOVER BUTTON */
.insta-hover-button {
    display: inline-block;
    /* HIER SCHRAUBEN: Passe Breite und Höhe an die echten Maße deiner PNGs an */
    width: 200px; 
    height: 50px; 
    
    /* Erstes Bild als Standard-Hintergrund laden */
    background-image: url('images/insta_button.png');
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
    
    /* Macht den Wechsel beim Drüberfahren elegant und weich */
    transition: background-image 0.2s ease-in-out; 
}

/* OnMouseOver / Hover Effekt */
.insta-hover-button:hover {
    /* Zweites Bild laden, wenn die Maus drüberfährt */
    background-image: url('images/insta_button2.png');
}



/* ==========================================================================
   12. LETZTE SECTION (Zwei Spalten: Links Text/Buttons, Rechts 3 Bilder)
   ========================================================================== */
.section-social-final {
    width: 100%;
    background-color: #ffffff;
    position: relative;
    z-index: 2;
    padding: 80px 0; /* Schöner, großzügiger Abstand */
}

.final-layout-grid {
    display: flex;
    align-items: flex-start; /* Richtet Text-Oberkante und Bild-Oberkante perfekt aus */
    gap: 60px; /* Abstand zwischen linker Inhaltsseite und rechter Bildseite */
    padding: 0 20px;
    box-sizing: border-box;
}

/* Linke Spalte (Text & Buttons) */
.final-left-content {
    flex: 0 0 calc(45% - 30px); /* 45% Breite minus anteiliger Gap */
}

.final-left-content h2 {
    margin-bottom: 25px;
}

.final-left-content p {
    margin-bottom: 35px;
}

/* Der Flex-Container, der die Buttons nebeneinander hält */
.social-buttons-row {
    display: flex;
    justify-content: flex-start; /* Absolut linksbündig */
    gap: 10px; /* HIER GEÄNDERT: Exakt 10px Abstand zwischen den Buttons */
}

/* Gemeinsame Eigenschaften für BEIDE Buttons */
.social-btn {
    display: inline-block;
    width: auto; 
    height: 50px; /* Behält die gewünschte Höhe */
    
    aspect-ratio: 1 / 1; 
    
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
    transition: background-image 0.2s ease-in-out;
}

.btn-insta { background-image: url('images/insta_button.png'); }
.btn-insta:hover { background-image: url('images/insta_button2.png'); }

.btn-facebook { background-image: url('images/fb_button.png'); }
.btn-facebook:hover { background-image: url('images/fb_button2.png'); }


/* Rechte Spalte: Magisches Grid für das 3-Bilder-Layout */
.final-right-images {
    flex: 0 0 calc(55% - 30px); /* 55% Breite minus anteiliger Gap */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Erstellt 2 gleich große Spalten */
    gap: 15px; /* Abstand zwischen allen Bildern (horizontal & vertikal) */
}

/* Das Querformat soll sich über beide Spalten erstrecken (Zeile 1) */
.img-landscape {
    grid-column: span 2; /* Sagt dem Bild: Besetze 2 Spaltenbreiten */
    width: 100%;
}

.img-landscape img {
    width: 100%;
    height: auto;
    max-height: 300px; /* Optional: Verhindert, dass das Querformat zu hoch wird */
    object-fit: cover;
    display: block;
}

/* Die beiden Hochformate teilen sich automatisch Zeile 2 auf */
.img-portrait {
    width: 100%;
}

.img-portrait img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4; /* Erzwingt ein schönes Hochformat-Verhältnis (z.B. 3:4) */
    object-fit: cover;
    display: block;
}




/* ==========================================================================
   6. FOOTER (Dunkelgrau, 3 Spalten)
   ========================================================================== */
.main-footer {
    width: 100%;
    background-color: #4A4A4A; /* Deine Wunschfarbe für die volle Breite */
    color: #ffffff; /* Weiße Schrift im gesamten Footer */
    padding: 60px 0;
    position: relative;
    z-index: 2; /* Liegt ebenfalls über dem Fixbild */
}

.footer-grid {
    display: flex;
    justify-content: space-between;
}

.footer-col {
    flex: 1; /* Alle 3 Spalten sind gleich groß */
}

.footer-left {
    text-align: left; /* Linksbündig */
}

.footer-center {
    text-align: left; /* Mittlere Spalte auch linksbündig */
}

.footer-right {
    text-align: right; /* Rechte Spalte rechtsbündig */
}


/* ==========================================================================
   MEDIA QUERY: MOBIL-OPTIMIERUNG (Bildschirme unter 768px)
   ========================================================================== */
@media (max-width: 768px) {

    html, body {
        position: relative;
        overflow-x: hidden !important;
        width: 100%;
    }

    /* Blendet das fixierte Hintergrundbild auf dem Smartphone aus */
    .fixed-background {
        display: none !important;
    }
    
    /* ... (Hier bleibt dein restlicher Code wie .container-1200, .section-hero etc.) ... */

    /* GLOBALE BEGRENZUNG FÜR MOBILE: Standard-Container brechen untereinander */
    .container-1200 {
        flex-direction: column !important;
        padding: 0 20px;
        box-sizing: border-box;
    }

    /* 1. SECTION-HERO (Untereinander anordnen) */
    .section-hero {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .hero-left, 
    .hero-right {
        flex: 0 0 auto;
        width: 100%;
    }

    .hero-left {
        height: 50vh;
    }

    .hero-right {
        padding: 40px 20px;
    }


    /* 2. SECTION-TRANSPARENT (Reihenfolge getauscht & Bild perfekt eingepasst) */
    .section-transparent {
        padding: 0;
        display: block !important;
    }

    .section-transparent .container-1200 {
        display: flex !important;
        flex-direction: column-reverse !important; /* Text nach unten, Bild nach oben */
        padding: 0 20px; /* HIER GEÄNDERT: Bringt den symmetrischen Seitenabstand zurück */
        box-sizing: border-box !important;
    }

    /* Die rechte Spalte (wird nun oben angezeigt und erzwingt das Bild) */
    .transparent-right {
        display: block !important;
        width: 100% !important;
        height: 280px !important; /* Feste Höhe für das Bild auf dem Handy */
        flex: none !important;
        margin-top: 20px; /* Kleiner Abstand nach oben zum Hero-Bereich */
        
        /* Das Bild wird reingeladen */
        background-image: url('images/puls_Studio.jpg') !important; 
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }

    .transparent-left {
        width: 100% !important;
        max-width: 100% !important; /* NEU: Zwingt die 600px vom Desktop in die Knie */
        padding: 30px 0 50px 0; 
        box-sizing: border-box !important;
    }


    /* 3. SECTION-WHITE & COCHING (Reihenfolge getauscht: Erst Bild, dann Text) */
    .section-white {
        padding: 50px 0;
    }

    .section-white .container-1200.content-grid {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 30px;
    }

    .white-left, 
    .white-right {
        width: 100% !important;
        flex: 0 0 auto !important;
    }


    /* 4. SECTION-LIGHTGRAY (Galerie-Bilder untereinander anordnen) */
    .section-lightgray {
        padding-bottom: 50px;
    }

    .image-gallery-row {
        flex-direction: column;
        gap: 15px;
    }


    /* 5. SECHSTE SECTION / INSTAGRAM PROFILE (Reihenfolge getauscht: Erst Bild, dann Text) */
    .section-instagram-profile {
        padding: 50px 0;
    }

    .profile-grid {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 30px;
    }

    .profile-left, 
    .profile-right {
        width: 100% !important;
        flex: 0 0 auto !important;
    }


    /* 6. LETZTE SECTION */
    .section-social-final {
        padding: 50px 0;
    }

    .final-layout-grid {
        display: flex !important;
        flex-direction: column !important; /* Text oben, 3er-Bilder-Grid unten */
    }

    .final-left-content, 
    .final-right-images {
        width: 100% !important;
        flex: 0 0 auto !important;
    }

    .final-left-content {
        margin-bottom: 40px;
    }


    /* 7. MAIN-FOOTER (Sauber untereinander anordnen & zentrieren) */
    .main-footer {
        padding: 40px 0;
    }

    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px;
    }

    .footer-col {
        width: 100%;
        text-align: center !important;
    }

} /* Schließt die Media Query nun absolut fehlerfrei und sauber */