/* Header proposals (?header=1|2|3). */
.ogp-hd {
    --hd-ink: var(--wp--preset--color--contrast, #1f2d1f);
    --hd-line: #e5e0d5;
    --hd-bg: var(--wp--preset--color--bg-page-background, #f8f6f1);
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--hd-bg);
    border-bottom: 1px solid var(--hd-line);
    color: #2b2b24;
}
.admin-bar .ogp-hd { top: 32px; }
/* Anchor jumps (#bereiche, #themen) must not land under the sticky header. */
html:has(.ogp-hd) { scroll-padding-top: 190px; }
.wp-site-blocks > .ogp-hd + * { margin-block-start: 0; }
.ogp-hd a { color: inherit; text-decoration: none; }
.ogp-hd-row {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 40px);
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2.5rem);
}

/* USP bar — spread across the full width, check marks instead of "+" */
.ogp-hd-usp {
    border-bottom: 1px solid var(--hd-line);
    color: #5c5c52;
}
.ogp-hd-usp-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem clamp(16px, 3vw, 40px);
    display: flex;
    justify-content: space-between;
    gap: 0.4rem 2rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.ogp-hd-usp a { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.ogp-hd-usp svg { color: var(--ogp-green, #5a8f3c); flex: 0 0 auto; }
.ogp-hd-usp a:hover { color: var(--hd-ink); }
.ogp-hd-usp a:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* Logo */
.ogp-hd-logo { display: flex; flex-direction: column; line-height: 1; flex: 0 0 auto; }
.ogp-hd-logo-name {
    font-family: var(--wp--preset--font-family--heading, Georgia, serif);
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
}
.ogp-hd-logo-5 { color: var(--ogp-green, #5a8f3c); }
.ogp-hd-logo-tag {
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6b6b60;
    margin-top: 0.3rem;
}

/* Nav */
.ogp-hd-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.ogp-hd-nav li > a {
    display: block;
    padding: 0.45rem 0.8rem;
    font-size: 0.92rem;
    border-radius: 999px;
    white-space: nowrap;
}
.ogp-hd-nav li:not(.ogp-nav-cta) > a:hover { background: rgba(31, 45, 31, 0.06); }
.ogp-hd-nav li.is-current:not(.ogp-nav-cta) > a { font-weight: 600; box-shadow: inset 0 -2px 0 var(--hd-ink); border-radius: 0; }
.ogp-hd-nav li.ogp-nav-cta { margin-left: 0.4rem; }

/* Icons */
.ogp-hd-icons { display: flex; align-items: center; gap: 0.25rem; flex: 0 0 auto; }
.ogp-hd-icons a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
}
.ogp-hd-icons a:hover { background: rgba(31, 45, 31, 0.06); }
.ogp-hd-icon-label { font-size: 0.65rem; color: #6b6b60; }

/* Search */
.ogp-hd-search {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #d8d4c6;
    border-radius: 999px;
    padding: 0.2rem 0.2rem 0.2rem 0.9rem;
    min-width: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ogp-hd-search:focus-within { border-color: var(--hd-ink); box-shadow: 0 0 0 3px rgba(31, 45, 31, 0.1); }
.ogp-hd-search-icon { display: flex; color: #8a8a7f; }
.ogp-hd-search-icon svg { width: 18px; height: 18px; }
.ogp-hd-search input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.92rem;
    padding: 0.55rem 0.6rem;
    outline: none;
}
.ogp-hd-search button {
    border: none;
    border-radius: 999px;
    background: var(--hd-ink);
    color: #fff;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    cursor: pointer;
}
.ogp-hd-search select {
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.5rem 0.4rem;
    margin-right: 0.4rem;
    border-right: 1px solid #e5e0d5;
    cursor: pointer;
    outline: none;
}

/* 1 — Houzz: logo | big search | icons, nav row below */
.ogp-hd-1 .ogp-hd-main { padding-top: 0.9rem; padding-bottom: 0.9rem; }
.ogp-hd-1 .ogp-hd-search { flex: 1; max-width: 720px; }
.ogp-hd-1 .ogp-hd-icons { margin-left: auto; }
.ogp-hd-1 .ogp-hd-navrow { padding-bottom: 0.55rem; }

/* 2 — classic centered, compact */
.ogp-hd-2 .ogp-hd-main {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding-top: 0.9rem;
    padding-bottom: 0.6rem;
}
.ogp-hd-2 .ogp-hd-search { max-width: 320px; }
.ogp-hd-2 .ogp-hd-logo { align-items: center; }
.ogp-hd-2 .ogp-hd-icons { justify-self: end; }
.ogp-hd-2 .ogp-hd-navrow { justify-content: center; padding-bottom: 0.55rem; }

/* 3 — marketplace: logo | nav | icons, full search bar below */
.ogp-hd-3 .ogp-hd-main { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.ogp-hd-3 .ogp-hd-nav { flex: 1; display: flex; justify-content: center; }
.ogp-hd-3 .ogp-hd-logo-name { font-size: 1.55rem; }
.ogp-hd-3 .ogp-hd-searchrow { background: var(--hd-ink); padding: 0.65rem 0; }
.ogp-hd-3 .ogp-hd-search { flex: 1; border-color: transparent; }

/* Mobile */
@media (max-width: 1100px) {
    .ogp-hd-3 .ogp-hd-main { flex-wrap: wrap; }
    .ogp-hd-3 .ogp-hd-nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
}
@media (max-width: 900px) {
    .ogp-hd-usp-inner { justify-content: space-around; }
    .ogp-hd-usp a:nth-of-type(n+3) { display: none; }
    .ogp-hd-row { gap: 0.75rem; }
    .ogp-hd-main { flex-wrap: wrap; }
    .ogp-hd-1 .ogp-hd-search, .ogp-hd-2 .ogp-hd-search { order: 3; flex-basis: 100%; max-width: none; }
    .ogp-hd-2 .ogp-hd-main { display: flex; justify-content: space-between; }
    .ogp-hd-2 .ogp-hd-logo { align-items: flex-start; }
    .ogp-hd-nav { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
    .ogp-hd-nav::-webkit-scrollbar { display: none; }
    .ogp-hd-icon-label { display: none; }
    .ogp-hd-search select { max-width: 7.5rem; }
}

/* ---- Phones: compact header ------------------------------------------- */
@media (max-width: 782px) {
    /* Sticky header would eat a third of the screen on phones. */
    .ogp-hd { position: relative; }
    .ogp-hd-nav { min-width: 0; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 1.5rem; }
}
@media (max-width: 600px) {
    .ogp-hd-usp-inner { justify-content: center; }
    .ogp-hd-usp a:nth-of-type(n+2) { display: none; }
    .ogp-hd-search select { display: none; }
    .ogp-hd-search input[type="search"] { min-width: 0; }
}
