/*
 * Shared public-site header.
 * Keep geometry and controls identical across Home, Press, Privacy, and Impressum.
 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    margin: 0;
    border: 0;
    border-bottom: 1px solid rgba(52, 70, 60, 0.13);
    border-radius: 0;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.62), transparent 18rem),
        linear-gradient(180deg, rgba(255, 253, 249, 0.78), rgba(255, 250, 242, 0.52));
    box-shadow:
        0 16px 46px rgba(36, 40, 34, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(18px);
    overflow: visible;
}

:root[data-theme="dark"] .site-header {
    border-color: rgba(230, 219, 199, 0.11);
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.08), transparent 18rem),
        linear-gradient(180deg, rgba(18, 21, 19, 0.82), rgba(18, 21, 19, 0.56));
    box-shadow:
        0 18px 54px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.065);
}

.site-header-inner {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    width: min(calc(100% - 2rem), 74rem);
    min-height: 4.9rem;
    margin: 0 auto;
    padding: 0.65rem 0;
}

.site-header .brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 14.5rem;
    min-width: 0;
    min-height: 2.8rem;
    text-decoration: none;
}

.site-header .primary-signature {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14.5rem;
    max-width: none;
    flex: 0 1 auto;
    transform: translateY(-50%);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    grid-column: 2;
    justify-self: end;
    min-width: 0;
}

.site-theme-control {
    position: relative;
    z-index: 3;
    display: inline-grid;
    grid-template-columns: repeat(3, 1.75rem);
    gap: 0.1rem;
    padding: 0.14rem;
    border: 1px solid rgba(166, 189, 168, 0.32);
    border-radius: 999px;
    color: #2d4739;
    background:
        linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(244, 235, 224, 0.74)),
        rgba(249, 251, 246, 0.93);
    box-shadow: 0 12px 30px rgba(45, 55, 50, 0.09);
}

:root[data-theme="dark"] .site-theme-control {
    color: #d9e3cf;
    background:
        linear-gradient(180deg, rgba(49, 58, 50, 0.88), rgba(27, 29, 26, 0.86)),
        rgba(50, 55, 52, 0.93);
    border-color: rgba(184, 200, 169, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 32px rgba(0, 0, 0, 0.26);
}

.site-theme-button {
    display: grid;
    place-items: center;
    width: 1.75rem;
    min-height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #7b8581;
    cursor: pointer;
    font: inherit;
    transition:
        color 1000ms cubic-bezier(0.22, 1, 0.36, 1),
        background 1000ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 1000ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] .site-theme-button {
    color: #9da6a1;
}

.site-theme-button:hover {
    color: #1a1f1c;
    transform: translateY(-0.04rem);
}

:root[data-theme="dark"] .site-theme-button:hover {
    color: #f0f2ef;
}

.site-theme-button[aria-pressed="true"] {
    color: #2d4739;
    background: rgba(49, 76, 63, 0.08);
    box-shadow: inset 0 0 0 1px rgba(49, 76, 63, 0.07);
}

:root[data-theme="dark"] .site-theme-button[aria-pressed="true"] {
    color: #e1dbcf;
    background: rgba(242, 238, 229, 0.08);
    box-shadow: inset 0 0 0 1px rgba(242, 238, 229, 0.07);
}

.site-theme-icon {
    display: block;
    width: 0.78rem;
    height: 0.78rem;
}

@media (max-width: 680px) {
    .site-header-inner {
        width: min(calc(100% - 1.2rem), 74rem);
        gap: 0.75rem;
        padding: 0.65rem 0;
    }
}

@media (max-width: 380px) {
    .site-header-inner {
        gap: 0.5rem;
    }

    .site-header .brand,
    .site-header .primary-signature {
        width: 11.75rem;
    }
}
