/* ============================================================
   birgit theme — chrome.css (navbar + dropdown + mobile toggle, footer,
   back-to-top, page-header, contact-bar, page-figure/page-intro, and the
   shared prose blocks .section-block / .bullet-list) — loaded on every page.
   Rules moved verbatim; cascade preserved via enqueue order.
   ============================================================ */

/* ============================================================
   NAVBAR
   ============================================================ */

.site-header {
    background: var(--color-cream-100);
    width: 100%;
    position: sticky;        /* stays pinned to the top on every page as you scroll */
    top: 0;
    z-index: 200;            /* above page content, the desktop dropdown (60) and back-to-top (100) */
}

/* Keep the sticky header below the WordPress admin bar for logged-in users
   (Birgit / editors). The admin bar is fixed over the page: 32px wide screens,
   46px at ≤782px. Public visitors have no admin bar, so the header sits at top: 0. */
.admin-bar .site-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* ── Brand (logo + two-line wordmark) ─────────────────────── */
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-shrink: 0;
}

.brand__logo {
    width: 54px;
    height: auto;
    display: block;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.brand__name,
.brand__tagline {
    font-family: var(--font-sans);
    color: var(--color-navy-800);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.brand__name {
    font-size: 0.82rem;
    font-weight: 600;
}

.brand__tagline {
    font-size: 0.7rem;
    font-weight: 400;
}

/* ── Primary menu ─────────────────────────────────────────── */
.nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav__link {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--color-navy-800);
    padding: 0.25rem 0;
    transition: color 160ms ease;
}

.nav__link:hover {
    color: var(--color-navy-600);
}

/* ============================================================
   MOBILE NAV  (hamburger + dropdown)
   ============================================================ */

/* ── Hamburger button: hidden on desktop ─────────────────── */
.nav-toggle {
    display: none;                  /* desktop default */
    background: transparent;
    border: 0;
    padding: 0.5rem;
    margin: 0;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-navy-800);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Hamburger → cross transition when menu is open */
.nav.is-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav.is-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}
.nav.is-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Below the breakpoint: show hamburger, hide menu by default ── */
@media (max-width: 932px), (max-width: 1024px) and (orientation: portrait) {
    
    .nav {
        position: relative;         /* anchor for absolute dropdown */
    }
    
    .brand {
        flex-shrink: 1;   /* override the desktop flex-shrink: 0 */
        min-width: 0;      /* allow the text to wrap instead of overflowing */
    }
    
    .nav-toggle {
        display: flex;              /* now visible */
    }
    
    /* Menu becomes a full-width dropdown panel below the navbar.
       Hidden by default; revealed when .nav.is-open is set by JS. */
    .nav__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 0;
        background: var(--color-cream-100);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease, opacity 0.25s ease, visibility 0.3s;
        z-index: 50;
    }
    
    .nav.is-open .nav__menu {
        max-height: 80vh;
        opacity: 1;
        visibility: visible;
    }
    
    .nav__menu li {
        width: 100%;
    }
    
    .nav__link {
        display: block;
        padding: 1rem 2.5rem;
        border-bottom: 1px solid var(--color-stone-200);
        font-size: 1rem;
    }
    
    .nav__menu li:last-child .nav__link {
        border-bottom: none;
    }
}

/* ============================================================
   NAV DROPDOWN  (Leistungen → sub-pages)
   Desktop: reveal on hover / keyboard focus.
   Mobile:  rendered as an indented static list (see media block).
   ============================================================ */
.nav__item--has-submenu {
    position: relative;
}

.nav__submenu {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(6px);
    min-width: 240px;
    background: var(--color-cream-50);
    border: 1px solid var(--color-cream-200);
    border-radius: 3px;
    box-shadow: 0 10px 26px rgba(15, 40, 66, 0.14);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
    z-index: 60;
}

/* Reveal on hover or when a child receives keyboard focus */
.nav__item--has-submenu:hover > .nav__submenu,
.nav__item--has-submenu:focus-within > .nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__submenu li {
    width: 100%;
}

.nav__sublink {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-navy-800);
    padding: 0.6rem 1.4rem;
    white-space: nowrap;
    transition: background 150ms ease, color 150ms ease;
}

.nav__sublink:hover,
.nav__sublink:focus-visible {
    background: var(--color-cream-100);
    color: var(--color-navy-600);
}

.nav__sublink[aria-current="page"] {
    color: var(--color-green-600);
    font-weight: 500;
}

/* Mobile: collapse the dropdown into the hamburger panel as a static,
   indented sub-list (always shown while the mobile menu is open). */
@media (max-width: 932px), (max-width: 1024px) and (orientation: portrait) {
    .nav__item--has-submenu .nav__submenu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: 0;
        padding: 0;
        background: var(--color-cream-50);
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
    .nav__sublink {
        padding: 0.85rem 2.5rem 0.85rem 3.5rem;   /* indent under Leistungen */
        border-bottom: 1px solid var(--color-stone-200);
        font-size: 0.95rem;
    }
}

/* ============================================================
   CONTACT BAR  (full-width navy band with centred link)
   ============================================================ */

.contact-bar {
    background: var(--color-navy-800);
    padding: 3.25rem 1.5rem;
    text-align: center;
}

.contact-bar__link {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.85);
    transition: opacity 160ms ease;
}

.contact-bar__link:hover {
    opacity: 0.75;
}

/* ============================================================
   SITE FOOTER  (navy band, copyright left + link list right)
   ============================================================ */

/* ─── Site footer (vierspaltig) ─────────────────────────── */
.site-footer {
    margin-top: auto;
    background: var(--footer-bg, #1e3a52);
    color: var(--footer-text, #c9d3dd);
}

.site-footer__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 3rem 1.75rem;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.875rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.25rem;
}
@media (max-width: 900px) {
    .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .site-footer__grid { grid-template-columns: 1fr; }
}

.site-footer__heading {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--footer-heading, #faf7f0);
    margin: 0 0 0.625rem;
}

.site-footer__rule {
    width: 2rem;
    height: 2px;
    background: var(--footer-accent, #c0563a);
    margin-bottom: 1rem;
}

.site-footer__about { margin: 0; line-height: 1.7; }

.site-footer__list,
.site-footer__contact,
.site-footer__legal {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__list li + li,
.site-footer__contact li + li { margin-top: 0.5rem; }

.site-footer__contact { line-height: 1.7; }

.site-footer a {
    color: var(--footer-text, #c9d3dd);
    text-decoration: none;
    transition: color 0.2s ease;
}
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--footer-heading, #faf7f0); }

.site-footer__bottom {
    margin-top: 2.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--footer-border, rgba(255, 255, 255, 0.12));
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 768px) {
    .site-footer__bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.site-footer__copy { margin: 0; }

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* ============================================================
   PAGE HEADER  (used on Über mich and other inner pages)
   ============================================================ */

.page-header {
    background: var(--color-cream-50);
    padding: 4rem 1.5rem 2.5rem;
    text-align: center;
}

/* ============================================================
   PAGE HEADER  (used on Über mich and other inner pages)
   ============================================================ */

.page-header {
    background: var(--color-cream-50);
    padding: 4rem 1.5rem 2.5rem;
    text-align: center;
}

.page-header__heading {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-navy-800);
    margin: 0 0 1rem;
}

.page-header__subtitle {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-navy-800);
    margin: 0;
}

/* ============================================================
   PAGE FIGURE  (large centred hero image on inner pages)
   ============================================================ */
.page-figure {
    background: var(--color-cream-50);
    padding: 0 1.5rem 3rem;
    display: flex;
    justify-content: center;
}
.page-figure__img {
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;
    border-radius: 2px;
}

/* ============================================================
   PAGE INTRO  (intro paragraph band)
   ============================================================ */
.page-intro {
    background: var(--color-cream-100);
    padding: 4rem 1.5rem;
    display: flex;
    justify-content: center;
}
.page-intro__text {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-stone-800);
    max-width: 52ch;
    margin: 0;
}

/* ============================================================
   SECTION BLOCK  (Qualifikationen / Fort- und ... / Berufserfahrung)
   ============================================================ */

.section-block {
    background: var(--color-cream-50);
    padding: 3rem 2.5rem;
}

.section-block__inner {
    max-width: 760px;
    margin: 0 auto;
}

/* Alternate the cream tone between sections for the soft banding look */
.section-block:nth-of-type(even) {
    background: var(--color-cream-100);
}

.section-block__heading {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.75rem;
    color: var(--color-navy-800);
    text-align: center;
    margin: 0 0 2rem;
}

.section-block__para {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-stone-800);
    margin: 1.25rem 0;
}

/* ─── Plain bullet list (Fort-/Weiter- and Berufserfahrung) ── */
.bullet-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-stone-800);
}

.bullet-list li {
    padding-left: 1rem;
    position: relative;
}

.bullet-list li::before {
    content: "•";
    position: absolute;
    left: 0;
}

/* Make the page-wide background match between alternating section blocks
   so the whole Über mich body reads as one continuous cream area.
   Body-level bg under everything: */
body { background: var(--color-cream-100); }

/* Shared-prose small-screen tweak (split from a shared @media; .about-intro half is in ueber-mich.css) */
@media (max-width: 720px) {
    .section-block { padding: 2rem 1.25rem; }
    .section-block__heading { font-size: 1.5rem; margin-bottom: 1.5rem; }
}

/* ---------- Back-to-top Button ---------- */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-green-900);
    color: var(--color-cream-50);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s ease;
    z-index: 100;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-green-800);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 640px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}


/* Admin-only "Administration" navbar item — red, to catch Birgit's eye.
   (Injected for logged-in admins only; never shown to the public.) */
.nav__link--admin { color: #C0392B; }
.nav__link--admin:hover,
.nav__item--admin:hover > .nav__link--admin,
.nav__item--admin:focus-within > .nav__link--admin { color: #A93226; }
