/*
Theme Name: jetztjetztCustomTheme (jetzt-jetzt)
Author: Celine Correngourt - Studio HE
Description: Massgeschneidertes Block Theme für jetzt-jetzt.
Version: 1.2
*/

/* =========================================================
   1. SCHRIFTARTEN & TYPOGRAFIE
   ========================================================= */

   body {
    font-family: 'LaNord', sans-serif !important;
}

/* Spezifische Anpassung für deine Überschriften im Cover-Bereich */
.custom-middle-cover h3.wp-block-heading {
    font-family: 'LaNord', sans-serif !important;
    margin: 0 0 0.2rem 0 !important;
    padding: 0 !important;
    font-weight: 400; /* Regular */
    font-size: clamp(1.8rem, 3.2vw, 2.8rem) !important;
    line-height: 1.25 !important;
    color: #000;
}

/* Fett-gedruckte Abschnitte nutzen automatisch den Bold-Schnitt */
.custom-middle-cover h3.wp-block-heading strong {
    font-family: 'LaNord', sans-serif !important;
    font-weight: 700; /* Bold */
}

/* =========================================================
   2. GLOBALES FLEX-LAYOUT (Desktop & Basis)
   ========================================================= */

/* HINTERGRUND AUF BLAU SETZEN: Verhindert das Durchscheinen weißer Subpixel-Linien am Rand */
html, body {
    background-color: #92A6FF !important;
}

html, body,
.wp-site-blocks,
.entry-content,
.post-content,
main {
    margin: 0 !important;
    padding: 0 !important;
    height: 100dvh !important; /* 100dvh passt sich dynamisch den mobilen Browser-Leisten an */
    max-height: 100dvh !important;
    width: 100% !important; /* 100% statt 100vw verhindert unschöne Spalten & horizontales Scrollen */
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* =========================================================
   3. OBERER & UNTERER BALKEN
   ========================================================= */

.custom-top-bar,
.custom-bottom-bar {
    background-color: #92A6FF !important;
    width: 100% !important;
    height: auto !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    line-height: 0 !important;
}

.custom-top-bar {
    justify-content: flex-start !important;
}

.custom-bottom-bar {
    justify-content: flex-end !important;
}

.custom-top-bar figure,
.custom-bottom-bar figure {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
}

/* Bilder-Höhen (Desktop & Tablets) */
.custom-top-bar img,
.custom-bottom-bar img {
    width: auto !important;
    height: auto !important;
    max-height: 22vh !important;
    display: block !important;
    vertical-align: bottom !important; /* Behebt den feinen Safari-Spalt unter/über Bildern */
    object-fit: contain !important;
}

/* =========================================================
   4. MITTLERER COVER-BEREICH (Desktop Default: Nebeneinander)
   ========================================================= */

.custom-middle-cover {
    flex: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.custom-middle-cover .wp-block-cover__inner-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 100% !important;
    padding: 2rem 5vw !important;
    box-sizing: border-box !important;
}

.custom-text-left {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

.custom-text-right {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    text-align: right !important;
}

/* Links in den Textblöcken wie normalen Text aussehen lassen */
.custom-text-right a,
.custom-middle-cover a {
    color: inherit !important;
    text-decoration: none !important;
}

/* Optional: Dezenter Effekt beim Drüberfahren (Hover) */
.custom-text-right a:hover,
.custom-middle-cover a:hover {
    opacity: 0.7;
}

/* =========================================================
   5. RESPONSIVE ANPASSUNGEN
   ========================================================= */

/* A) Sehr große Bildschirme (Screens ab 1400px Breite & 800px Höhe) */
@media (min-width: 1400px) and (min-height: 800px) {
    .custom-top-bar img,
    .custom-bottom-bar img {
        max-height: 28vh !important;
    }
}

/* B) MOBILANSICHT (Smartphones & schmale Bildschirme unter 768px) */
@media (max-width: 768px) {
    /* Verhindert das Abschneiden unten: Erlaubt Scrollen, falls Display zu klein ist */
    html, body,
    .wp-site-blocks,
    .entry-content,
    .post-content,
    main {
        height: 100dvh !important;
        max-height: 100dvh !important;
        overflow-y: auto !important;
    }

    /* Bilder oben/unten leicht verkleinern für mehr Textplatz */
    .custom-top-bar img,
    .custom-bottom-bar img {
        max-height: 10vh !important;
    }

    /* Container für die gesamte Mitte */
    .custom-middle-cover .wp-block-cover__inner-container {
        flex-direction: column !important;
        padding: 1.2rem 6vw !important;
    }

    /* Linker Block (jetzt-jetzt, Coaching...) oben & linksbündig */
    .custom-text-left {
        width: 100% !important;
        text-align: left !important;
        align-items: flex-start !important;
    }

    /* Zweiter Block (Christina Renz + Mail/Telefon) dehnt sich vertikal aus */
    .custom-text-right {
        width: 100% !important;
        flex: 1 !important; /* Füllt die verbleibende Höhe aus */
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important; /* "Christina Renz" oben, "Mail/Telefon" unten */
        align-items: flex-start !important; /* Linksbündig */
        text-align: left !important; /* Linksbündig */
        margin-top: 1.2rem !important; /* Abstand von "Christina Renz" nach oben */
    }

    /* Untergruppe für Mail & Telefon linksbündig */
    .custom-text-right .wp-block-group {
        align-items: flex-start !important;
        text-align: left !important;
        width: 100% !important;
    }

    /* Leicht angepasste Schriftgröße für mobile Bildschirme */
    .custom-middle-cover h3.wp-block-heading {
        text-align: left !important;
        font-size: clamp(1.7rem, 5vw, 2rem) !important;
        margin-bottom: 0.15rem !important;
    }
}