header.omm-site-header {
    display: block;
    box-sizing: border-box;
    width: calc(min(100%, 1440px) - 8vw);
    min-height: 0;
    margin: 14px auto 16px;
    padding: 0;
    border: 0;
}

header.omm-site-header > .omm-brand {
    display: grid;
    grid-template-columns: minmax(0, 34fr) minmax(0, 66fr);
    align-items: center;
    min-width: 0;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: #131f17;
}

.omm-site-header .omm-brand-word {
    min-width: 0;
    padding: clamp(14px, 1.65vw, 22px) 14px;
}

.omm-site-header .omm-brand-scene {
    min-width: 0;
}

.omm-site-header .omm-brand img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
}

.omm-site-header .omm-brand-word img {
    width: min(100%, 385px);
    margin-inline: 0;
}

.omm-site-header .omm-brand-scene img {
    -webkit-mask: url("scene-kontur.svg") center / 100% 100% no-repeat;
    mask: url("scene-kontur.svg") center / 100% 100% no-repeat;
}

.omm-site-header .omm-brand img[data-brand-theme="light"],
html[data-theme="light"] .omm-site-header .omm-brand img[data-brand-theme="dark"] {
    display: none;
}

html[data-theme="light"] .omm-site-header .omm-brand img[data-brand-theme="light"] {
    display: block;
}

html[data-theme="light"] .omm-site-header > .omm-brand {
    background: #fcf5e8;
}

@media (prefers-color-scheme: light) {
    html:not([data-theme]) .omm-site-header > .omm-brand {
        background: #fcf5e8;
    }

    html:not([data-theme]) .omm-site-header .omm-brand img[data-brand-theme="dark"] {
        display: none;
    }

    html:not([data-theme]) .omm-site-header .omm-brand img[data-brand-theme="light"] {
        display: block;
    }
}

.omm-hero-tools-slot {
    width: calc(min(100%, 1440px) - 8vw);
    margin: 0 auto 12px;
}

.omm-hero-tools-slot:empty {
    display: none;
}

.omm-hero-tools {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

main .hero > .omm-hero-tools,
main .blog-hero > .omm-hero-tools {
    position: absolute;
    top: clamp(8px, 2vw, 20px);
    right: clamp(8px, 2vw, 20px);
    z-index: 4;
    max-width: calc(100% - 16px);
}

.omm-hero-tools > #globalSearch,
.omm-hero-tools > #theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.omm-hero-tools > :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Gleiche seitliche Abstände wie der Inhaltsbereich. */
@media (max-width: 800px) {
    header.omm-site-header,
    .omm-hero-tools-slot {
        width: calc(100% - 32px);
    }
}

@media (max-width: 700px) {
    header.omm-site-header > .omm-brand {
        border-radius: 18px;
    }
}

@media (max-width: 720px) {
    header.omm-site-header {
        margin-top: 6px;
    }

    .omm-site-header .omm-brand-word {
        padding: 8px clamp(4px, 1.8vw, 12px);
    }
}
