/*
 * header.css
 *
 * Weisses, abgesetztes Header-Band (Bauform A - Contained).
 * Nach page.css einbinden.
 *
 * Das Band liegt INNERHALB von .page und ist damit genau so
 * breit wie der Inhalt darunter. Die weisse Flaeche selbst
 * kommt aus .surface (page.css) - im Markup steht
 * <div class="site-header surface">, deshalb setzt .site-header
 * hier nur noch den Abstand.
 *
 * Struktur, ausgegeben von header.php:
 *
 *   .site-header.surface
 *     .header
 *       .header-logo          links, optional
 *       .header-titles        rechts
 *         .header-title
 *         .header-subtitle    optional
 *     .site-header-accent     CI-Linie als untere Kante
 */


/* =========================================================
   BAND
   ========================================================= */

.site-header {
    margin-bottom: 20px;
}


/* =========================================================
   KOPFZEILE
   ========================================================= */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 10px 15px;
}


/* Logo links */

.header-logo {
    flex: 0 0 auto;
}

.header-logo img {
    display: block;

    max-width: 180px;
    height: auto;

    border: 0;
}


/*
 * Titelblock rechts.
 * margin-left:auto haelt ihn auch dann rechts, wenn kein Logo
 * ausgegeben wird (header.php laesst den Slot dann komplett weg).
 */

.header-titles {
    flex: 0 1 auto;

    margin-left: auto;

    text-align: right;
}

.header-title {
    color: var(--heading);

    font-size: 24px;
    font-weight: bold;
    line-height: 1.25;
}

.header-subtitle {
    margin-top: 2px;

    color: var(--text-muted);

    font-size: 16px;
    line-height: 1.4;
}


/* =========================================================
   CI-LINIE
   Untere Kante des Bandes. Die Farbe kommt zur Laufzeit per
   Inline-Style aus $header_accent ($v_cicolor); der Wert hier
   ist nur der Fallback.
   ========================================================= */

.site-header-accent {
    height: 5px;

    background: var(--accent);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 700px) {

    .site-header {
        margin-bottom: 15px;
    }

    .header {
        gap: 12px;

        padding: 8px 12px;
    }

    .header-title {
        font-size: 18px;
    }

    .header-subtitle {
        font-size: 15px;
    }

    .header-logo img {
        max-width: 120px;
    }

}

@media screen and (max-width: 450px) {

    .header-title {
        font-size: 19px;
    }

    .header-logo img {
        max-width: 100px;
    }

}
