/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    padding: 0.6rem 1.25rem;
    border-bottom: 1px solid #222;
}

.site-header-inner {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: center;

    width: 100%;
    min-width: 0;

    column-gap: 2rem;
}

.site-header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.site-header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: clamp(.75rem, 2vw, 2.5rem);

    min-width: 0;
}

@media (max-width: 760px) {
    .site-header {
        padding-inline: .75rem;
    }

    .site-header-inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "logo"
            "tools"
            "nav";

        column-gap: 0;
        row-gap: .85rem;
    }

    .site-header-left {
        grid-area: logo;
    }

    .site-nav {
        grid-area: nav;

        justify-content: center;

        width: 100%;
        min-width: 0;
    }

    .site-header-tools {
        grid-area: tools;

        width: 100%;
        min-width: 0;

        justify-content: space-between;
        gap: .5rem;
    }
}

   .header-icon-form {
        display: inline-flex;
        align-items: center;
        margin: 0;
   }

    .header-tool-group {
        display: flex;
        align-items: center;
        gap: 0.35rem; /* Abstand innerhalb der Gruppe */
    }

    .site-logo {
        font-family: var(--font-logo);
        font-weight: 700;
        font-size: 2.2rem;
        line-height: 1;
        letter-spacing: 0.04em;
        text-decoration: none;
    }

   .header-icon-link,
   .header-icon-button {
       display: inline-flex;
       align-items: center;
       justify-content: center;
       width: 1.6rem;
       height: 1.6rem;
       padding: 0;
       margin: 0;
       border: 0;
       background: transparent;
       color: var(--color-fg);
       cursor: pointer;
   }

   .header-icon {
       display: block;
       width: 1.5rem;
       height: 1.5rem;
   }

    .language-switcher {
        position: relative;
        display: inline-flex;
        align-items: center;
    }

    .language-current {
        display: inline-flex;
        align-items: center;
        gap: 0.15rem;

        min-height: 2.5rem;
        padding: 0;

        color: inherit;

        list-style: none;
        cursor: pointer;

        line-height: 1;
        white-space: nowrap;
    }

    .language-current__icon {
        flex: 0 0 auto;
        font-size: 2.5rem;
        line-height: 1;
    }

    .language-current__label {
        line-height: 1;
    }

    .language-current::marker {
        content: "";
    }

    .language-current::-webkit-details-marker {
        display: none;
    }

    .language-current:hover {
        opacity: 0.7;
    }

    .language-current:focus-visible {
        outline: 1px solid currentColor;
        outline-offset: 3px;
    }

    .language-menu {
        position: absolute;
        top: calc(100% + 0.45rem);
        left: 0;
        z-index: 100;
        display: flex;
        flex-direction: column;
        min-width: 3rem;
        padding: 0.4rem 0;
        background: #ffffff;
        white-space: nowrap;
    }

    .language-option {
        appearance: none;
        -webkit-appearance: none;
        display: block;
        padding: 0.35rem 0.65rem;
        border: 0;
        background: transparent;
        color: var(--color-fg, #0b0b0c);
        font: inherit;
        line-height: 1;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
    }

    .language-option:hover {
        text-decoration: none;
        background: #f2f2f2;
    }

    .market-switcher {
        display: inline-flex;
        align-items: center;
        margin: 0;
    }

    .market-dropdown {
        position: relative;
        display: inline-flex;
        align-items: center;
    }

    .market-current {
        list-style: none;
        cursor: pointer;
        line-height: 1;
        white-space: nowrap;
    }

    .market-current::-webkit-details-marker {
        display: none;
    }

    .market-current:hover {
        opacity: 0.7;
    }

    button.market-current {
        appearance: none;
        -webkit-appearance: none;
        display: inline-flex;
        align-items: center;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        color: inherit;
        font: inherit;
        text-decoration: none;
    }

    button.market-current:focus-visible {
        outline: 1px solid currentColor;
        outline-offset: 3px;
    }

    .market-menu {
        position: absolute;
        top: calc(100% + 0.45rem);
        right: 0;
        z-index: 100;
        display: flex;
        flex-direction: column;
        min-width: 5.5rem;
        max-height: 70vh;
        overflow-y: auto;
        padding: 0.4rem 0;
        background: #ffffff;
        white-space: nowrap;
    }

    .market-menu-separator {
        height: 1px;
        margin: 0.4rem 0;
        background: currentColor;
        opacity: 0.14;
    }

    .market-option {
        display: block;
        width: 100%;
        padding: 0.35rem 0.65rem;
        border: 0;
        background: transparent;
        color: var(--color-fg);
        line-height: 1;
        text-align: left;
        cursor: pointer;
    }

    .market-option:hover {
        background: #f2f2f2;
    }

    .site-header-icon-form {
        display: inline-flex;
        align-items: center;
        margin: 0;
    }

    .site-header-icon-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-header-icon {
        display: block;
        width: 1.35rem;
        height: 1.35rem;
    }
