/*
 * Copyright (c) 2026 Smekker24 GmbH. Original work.
 * Smekker home and navigation refresh. Load after storefront.css and polish.css.
 * Brand images remain the unchanged assets documented in ASSET_PROVENANCE.md.
 */

.smekker-header__main {
    grid-template-columns: 174px minmax(180px, 1fr) auto;
    gap: 24px;
    min-height: 98px;
}

.smekker-header-actions {
    align-items: center;
    gap: 12px;
}

.smekker-account-controls {
    display: grid;
    min-width: 0;
    padding: 5px 7px;
    border: 1px solid #dfeae7;
    border-radius: 14px;
    background: #f7fbf9;
}

.smekker-header-action--account {
    padding: 0;
}

.smekker-account-logout {
    justify-self: start;
    margin-left: 47px;
    padding: 3px 0 2px;
    color: #4f696d;
    font-size: 12px;
    line-height: 1.45;
    text-underline-offset: 3px;
}

.smekker-account-logout:hover,
.smekker-account-logout:focus-visible {
    color: #0d6965;
}

.smekker-header-language {
    min-width: 0;
    max-width: 140px;
}

.smekker-header-language:empty {
    display: none;
}

.smekker-header-language .form-language {
    display: grid;
    gap: 3px;
    margin: 0;
}

.smekker-header-language label {
    margin: 0;
    color: var(--smekker-muted);
    font-size: 11px;
    line-height: 1.3;
}

.smekker-header-language select {
    width: 100%;
    max-width: 140px;
    min-height: 35px;
    padding: 5px 24px 5px 8px;
    border-color: #d6e4df;
    border-radius: 9px;
    background-color: #fff;
    color: var(--smekker-ink);
    font-size: 12px;
}

/* Equal grid rows keep every category group aligned from its heading. */
.smekker-mega-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: start;
    align-content: start;
    gap: 28px 26px;
    column-count: auto;
    column-width: auto;
    width: 100%;
    max-width: none;
    max-height: min(64vh, 600px);
    padding: 23px 26px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.smekker-mega-group {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.smekker-mega-group h2 {
    min-height: 42px;
    margin: 0 0 10px;
    padding: 0 0 10px;
    border-bottom: 2px solid #d5eae2;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;
}

.smekker-mega-group > ul > li + li {
    margin-top: 5px;
}

.smekker-mega-group > ul > li > a,
.smekker-mega-group > ul > li > .smekker-mega-branch > summary {
    padding: 7px 5px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.smekker-mega-branch > ul {
    margin: 4px 0 10px;
    padding: 3px 6px 6px 14px;
}

.smekker-mega-branch > ul > li + li {
    margin-top: 4px;
}

.smekker-mega-branch > ul > li > a,
.smekker-mega-branch > ul > li > .smekker-mega-branch > summary {
    padding: 5px 4px;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.45;
}

.smekker-mega-branch .smekker-mega-branch > ul > li > a,
.smekker-mega-branch .smekker-mega-branch > ul > li > .smekker-mega-branch > summary {
    font-size: 12px;
}

.smekker-mega-branch[open] {
    margin-block: 4px 12px;
    border-color: #e9d9e1;
}

.smekker-mega-heading strong {
    overflow-wrap: anywhere;
}

.smekker-mega-heading a {
    flex-shrink: 0;
}

/* The navigation controller can clamp this small panel beside its trigger. */
.smekker-mega-panel--compact {
    left: var(--smekker-panel-left, 0);
    right: auto;
    width: var(--smekker-panel-width, 340px);
    max-width: calc(100vw - 32px);
}

.smekker-mega-panel--compact .smekker-mega-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
}

.smekker-mega-panel--compact .smekker-mega-group h2 {
    min-height: 0;
}

.smekker-hero-wrap {
    overflow: hidden;
    border-bottom: 1px solid #e6eeea;
    background: linear-gradient(112deg, #eff9f4 0%, #fafaf1 56%, #fff1f5 100%);
}

.smekker-hero {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    gap: 30px;
    min-height: 585px;
}

.smekker-hero-copy {
    position: relative;
    z-index: 1;
    padding-block: 65px;
}

.smekker-hero h1 {
    margin-block: 20px 23px;
    font-size: clamp(40px, 4.5vw, 66px);
    line-height: 1.06;
    letter-spacing: -.047em;
}

.smekker-hero h1 em {
    color: #cf6084;
}

.smekker-hero-copy > p {
    max-width: 585px;
    color: #536d71;
    font-size: 17px;
    line-height: 1.75;
}

.smekker-hero-actions {
    align-items: flex-start;
    gap: 12px;
    margin-top: 27px;
}

.smekker-hero-actions .button {
    padding: 13px 19px;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.smekker-ordersatz-action {
    display: flex;
    min-width: 0;
    max-width: 100%;
    flex-direction: column;
    gap: 6px;
}

.smekker-ordersatz-hint,
.smekker-ordersatz-feedback {
    display: block;
    margin: 0;
    color: #536d71;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: break-word;
}

.smekker-hero-proof {
    gap: 10px 19px;
    margin-top: 23px;
    font-size: 12px;
}

.smekker-hero-stage {
    isolation: isolate;
    grid-template-columns: 125px minmax(0, 1fr);
    width: 100%;
    min-height: 525px;
}

.smekker-hero-stage::before,
.smekker-hero-stage::after {
    position: absolute;
    z-index: -1;
    display: block;
    border-radius: 50%;
    pointer-events: none;
    content: '';
}

.smekker-hero-stage::before {
    top: 29px;
    left: -28px;
    width: 310px;
    height: 310px;
    background: #aee4da;
}

.smekker-hero-stage::after {
    right: -47px;
    bottom: 29px;
    width: 365px;
    height: 365px;
    background: #f5c7d8;
}

.smekker-hero-bear {
    z-index: 0;
    align-self: center;
    width: 265px;
    max-width: 54%;
    margin: 0 0 64px;
    filter: drop-shadow(0 13px 14px rgb(51 92 80 / 10%));
}

.smekker-hero-stage > .smekker-quick-card {
    align-self: center;
    width: min(350px, 100%);
    margin: 88px 0 0;
    border-color: rgb(255 255 255 / 90%);
    border-radius: 24px;
    box-shadow: 0 24px 56px rgb(65 70 67 / 13%);
}

.smekker-home-section {
    padding-block: 53px 12px;
    scroll-margin-top: 170px;
}

.smekker-home-section > h2 {
    margin-block: 10px 25px;
    font-size: 34px;
}

.smekker-category-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 17px;
}

.smekker-category-cards a {
    position: relative;
    min-height: 78px;
    align-items: center;
    padding: 12px 21px;
    overflow: hidden;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
    border: 1px solid #d1e9e2;
    border-radius: 21px;
    background: #e0f3ec;
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.smekker-category-cards a::before {
    position: absolute;
    top: -35px;
    right: -24px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: rgb(255 255 255 / 35%);
    pointer-events: none;
    content: '';
}

.smekker-category-cards a:nth-child(5n+2) {
    border-color: #eddae3;
    background: #f9e2ed;
}

.smekker-category-cards a:nth-child(5n+3) {
    border-color: #e1daf0;
    background: #ece6f7;
}

.smekker-category-cards a:nth-child(5n+4) {
    border-color: #eae4c8;
    background: #f6efd6;
}

.smekker-category-cards a:nth-child(5n) {
    border-color: #d3e4ee;
    background: #e2eff8;
}

.smekker-category-cards a > strong,
.smekker-category-cards a > span {
    position: relative;
    min-width: 0;
}

.smekker-category-cards a > strong {
    /* Last-resort wrap where the browser has no dictionary for a long word. */
    overflow-wrap: break-word;
}

.smekker-category-cards a > span {
    flex: 0 0 28px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 70%);
    border-radius: 50%;
    background: rgb(255 255 255 / 52%);
    color: #2b5e60;
    font-size: 18px;
}

.smekker-category-cards a:hover,
.smekker-category-cards a:focus-visible {
    transform: translateY(-3px);
    border-color: #79bcb1;
    box-shadow: 0 12px 23px rgb(42 82 75 / 8%);
    color: var(--smekker-ink);
}

.smekker-account-section {
    padding-block: 62px 65px;
}

.smekker-account-banner {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 38px;
    min-height: 355px;
    padding: 47px 64px;
    overflow: hidden;
    border-radius: 31px;
    background: linear-gradient(110deg, #123f42, #176461);
    color: #fff;
}

.smekker-account-banner::before,
.smekker-account-banner::after {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    content: '';
}

.smekker-account-banner::before {
    top: -183px;
    right: -106px;
    width: 495px;
    height: 495px;
    background: rgb(130 222 199 / 10%);
}

.smekker-account-banner::after {
    right: 224px;
    bottom: -249px;
    width: 410px;
    height: 410px;
    background: rgb(199 239 221 / 7%);
}

.smekker-account-banner__copy {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.smekker-account-banner h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.16;
    letter-spacing: -.035em;
}

.smekker-account-banner p {
    max-width: 600px;
    margin: 12px 0 0;
    color: #d0e9e4;
    font-size: 16px;
    line-height: 1.65;
}

.smekker-account-banner p.smekker-account-banner__lead {
    color: #fff;
    font-size: 19px;
    font-weight: 650;
}

.smekker-account-banner__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 24px;
    margin-top: 28px;
}

.button.smekker-account-banner__primary {
    gap: 13px;
    min-height: 49px;
    padding: 13px 20px;
    border-color: #d2eee4;
    border-radius: 13px;
    background: #d2eee4;
    color: #143e3c;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.button.smekker-account-banner__primary:hover,
.button.smekker-account-banner__primary:focus-visible {
    border-color: #fff;
    background: #fff;
    color: #143e3c;
}

.smekker-account-banner__login {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-underline-offset: 5px;
}

.smekker-account-banner__login:hover,
.smekker-account-banner__login:focus-visible {
    color: #c9eee2;
}

.smekker-account-banner__bear {
    position: relative;
    z-index: 0;
    width: 258px;
    height: auto;
    max-width: 100%;
    align-self: end;
    justify-self: center;
    margin-block: -20px -64px;
    filter: drop-shadow(0 12px 17px rgb(0 30 27 / 15%));
}

.smekker-footer {
    border-top: 1px solid #e2ebe5;
    background: #f6f9f4;
    color: var(--smekker-ink);
}

.smekker-footer__inner {
    padding-block: 48px 24px;
}

.smekker-footer__main {
    display: grid;
    grid-template-columns: minmax(210px, 1.35fr) repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 42px;
}

.smekker-footer__brand p {
    max-width: 235px;
    margin: 19px 0 0;
    color: #5c736e;
    font-size: 14px;
    line-height: 1.7;
}

.smekker-footer__logo {
    display: inline-block;
    max-width: 210px;
}

.smekker-footer__logo img {
    display: block;
    width: 195px;
    max-width: 100%;
    height: auto;
}

.smekker-footer__group h2 {
    margin: 0 0 14px;
    color: #244a46;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;
}

.smekker-footer__group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.smekker-footer__group li + li {
    margin-top: 8px;
}

.smekker-footer__group a {
    display: inline-block;
    padding-block: 3px;
    color: #526d67;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.smekker-footer a:hover,
.smekker-footer a:focus-visible {
    color: #126b60;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.smekker-footer__native-links {
    gap: 15px;
    margin-top: 35px;
    padding-top: 24px;
    border-top: 1px solid #dce7de;
    color: #536b65;
    font-size: 12px;
    line-height: 1.65;
}

.smekker-footer__native-links .links {
    gap: 10px 23px;
}

.smekker-footer__copyright {
    margin-top: 19px;
    color: #687d73;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .smekker-header__main {
        grid-template-columns: 145px minmax(160px, 1fr) auto;
        gap: 14px;
    }

    .smekker-header-actions {
        gap: 7px;
    }

    .smekker-account-logout {
        margin-left: 44px;
    }

    .smekker-hero {
        gap: 22px;
    }

    .smekker-hero-stage {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .smekker-hero-stage::before {
        left: -8px;
        width: 255px;
        height: 255px;
    }

    .smekker-hero-stage::after {
        right: -35px;
        width: 320px;
        height: 320px;
    }

    .smekker-hero-bear {
        width: 220px;
    }

    .smekker-category-cards {
        gap: 12px;
    }

    .smekker-category-cards a {
        padding: 12px 15px;
        font-size: 14px;
    }

    .smekker-account-banner {
        grid-template-columns: minmax(0, 1fr) 230px;
        gap: 25px;
        padding: 40px;
    }

    .smekker-account-banner__bear {
        margin-bottom: -57px;
    }

    .smekker-footer__main {
        grid-template-columns: minmax(180px, 1.1fr) repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .smekker-header__main {
        grid-template-columns: 145px minmax(0, 1fr) auto;
        min-height: 0;
    }

    .smekker-header-actions {
        min-width: 0;
        flex-wrap: wrap;
        justify-content: flex-end;
        row-gap: 6px;
    }

    .smekker-header-action--account small {
        display: block;
        font-size: 10px;
    }

    .smekker-header-language {
        max-width: 115px;
    }

    .smekker-mega-columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 26px 23px;
        max-height: none;
        padding: 22px;
        overflow: visible;
    }

    .smekker-mega-panel--compact {
        width: 100%;
        max-width: none;
    }

    .smekker-mega-group li > a,
    .smekker-mega-branch > summary {
        min-height: 40px;
    }

    .smekker-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        min-height: 0;
    }

    .smekker-hero-copy {
        max-width: 710px;
        padding-block: 43px 21px;
    }

    .smekker-hero h1 {
        font-size: 58px;
    }

    .smekker-hero-stage {
        grid-template-columns: minmax(115px, 1fr) minmax(0, 350px);
        width: min(600px, 100%);
        min-height: 385px;
        padding-bottom: 18px;
    }

    .smekker-hero-stage::before {
        top: 6px;
        left: -12px;
        width: 290px;
        height: 290px;
    }

    .smekker-hero-stage::after {
        right: -22px;
        bottom: 20px;
        width: 340px;
        height: 340px;
    }

    .smekker-hero-bear {
        width: 240px;
        margin-bottom: 18px;
    }

    .smekker-hero-stage > .smekker-quick-card {
        margin-top: 34px;
    }

    .smekker-category-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .smekker-category-cards a {
        min-height: 72px;
    }

    .smekker-account-banner {
        grid-template-columns: minmax(0, 1fr) 175px;
        gap: 16px;
        padding: 34px;
    }

    .smekker-account-banner__bear {
        align-self: center;
        margin-block: 0 -40px;
    }

    .smekker-footer__main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 40px;
    }
}

@media (max-width: 620px) {
    .smekker-mega-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .smekker-hero h1 {
        font-size: 48px;
    }

    .smekker-account-banner {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 32px;
    }

    .smekker-account-banner__bear {
        width: 155px;
        justify-self: end;
        margin: 0 0 -47px;
    }
}

@media (max-width: 560px) {
    .smekker-header__main {
        grid-template-columns: 117px minmax(0, 1fr) 42px;
        gap: 9px 8px;
    }

    .smekker-header-actions {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        justify-content: flex-start;
        gap: 9px;
    }

    .smekker-header__search {
        grid-row: 3;
    }

    .smekker-menu-button {
        grid-row: 1;
    }

    .smekker-account-controls {
        padding: 5px 9px;
    }

    .smekker-header-action--account small {
        display: block;
    }

    .smekker-account-logout {
        margin-left: 0;
        padding-block: 5px 2px;
        font-size: 11px;
    }

    .smekker-header-actions > .smekker-header-action small {
        display: block;
        font-size: 10px;
    }

    .smekker-header-language {
        max-width: 100px;
    }

    .smekker-header-language label {
        max-width: 100px;
        font-size: 10px;
    }

    .smekker-header-language select {
        max-width: 100px;
        font-size: 12px;
    }

    .smekker-hero-copy {
        padding-block: 34px 21px;
    }

    .smekker-hero-copy > .smekker-eyebrow {
        font-size: 10px;
        line-height: 1.6;
        letter-spacing: .065em;
    }

    .smekker-hero h1 {
        margin-block: 15px 18px;
        font-size: clamp(31px, 8.5vw, 46px);
        line-height: 1.1;
    }

    .smekker-hero-copy > p {
        font-size: 16px;
        line-height: 1.7;
    }

    .smekker-hero-actions {
        align-items: stretch;
        margin-top: 23px;
    }

    .smekker-hero-actions .button {
        justify-content: center;
        padding-inline: 14px;
    }

    .smekker-hero-proof {
        gap: 8px 13px;
        margin-top: 19px;
    }

    .smekker-hero-stage {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 19px;
        min-height: 0;
        padding: 3px 0 36px;
    }

    .smekker-hero-stage::before {
        top: 15px;
        left: calc(50% - 98px);
        width: 196px;
        height: 196px;
    }

    .smekker-hero-stage::after {
        right: -30px;
        bottom: 26px;
        width: 285px;
        height: 285px;
    }

    .smekker-hero-bear {
        grid-column: 1;
        grid-row: 1;
        width: 171px;
        max-width: 100%;
        justify-self: center;
        margin: 0;
    }

    .smekker-hero-stage > .smekker-quick-card {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        margin: 0;
    }

    .smekker-home-section {
        padding-block: 37px 6px;
        scroll-margin-top: 210px;
    }

    .smekker-home-section > h2 {
        margin-bottom: 21px;
        font-size: 28px;
    }

    .smekker-category-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .smekker-category-cards a {
        min-height: 72px;
        gap: 8px;
        padding: 10px 13px;
        border-radius: 17px;
        font-size: 14px;
    }

    .smekker-category-cards a > span {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
        font-size: 16px;
    }

    .smekker-account-section {
        padding-block: 39px 41px;
    }

    .smekker-account-banner {
        padding: 29px 24px;
        border-radius: 25px;
    }

    .smekker-account-banner h2 {
        font-size: 29px;
    }

    .smekker-account-banner p {
        font-size: 14px;
    }

    .smekker-account-banner p.smekker-account-banner__lead {
        font-size: 17px;
    }

    .smekker-account-banner__actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 19px;
        margin-top: 23px;
    }

    .button.smekker-account-banner__primary {
        width: 100%;
        justify-content: center;
        padding-inline: 14px;
        font-size: 13px;
    }

    .smekker-account-banner__bear {
        margin-bottom: -44px;
    }

    .smekker-footer__inner {
        padding-block: 35px 24px;
    }

    .smekker-footer__main {
        gap: 30px 20px;
    }

    .smekker-footer__brand {
        grid-column: 1 / -1;
    }

    .smekker-footer__brand p {
        max-width: 270px;
    }

    .smekker-footer__group li + li {
        margin-top: 10px;
    }

    .smekker-footer__native-links {
        margin-top: 29px;
    }
}

@media (max-width: 420px) {
    .smekker-mega-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
        padding: 19px 16px;
    }

    .smekker-mega-group h2 {
        min-height: 0;
    }

    .smekker-mega-heading {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .smekker-category-cards a {
        transition: none;
    }

    .smekker-category-cards a:hover,
    .smekker-category-cards a:focus-visible {
        transform: none;
    }
}

@media print {
    .smekker-account-section,
    .smekker-footer {
        display: none;
    }

    .smekker-hero-wrap {
        overflow: visible;
        background: #fff;
    }
}
