/*
 * App-Oberflaeche: Header, Dashboard, Kacheln, Bottom-Navigation, Burger-Menue.
 *
 * Einzige Quelle fuer diese Styles. Frueher lag der Block doppelt inline in
 * header.php und header-app.php, wodurch Aenderungen nur an einer Stelle wirkten.
 */

:root {
    --color-primary: #1a1a1a;
    --color-accent: #e25b45;
    --color-bg: #f8f8f8;
    --color-card: #ffffff;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    /*
     * Platz, den die untere Navigation inklusive Home-Indikator einnimmt.
     * Seiteninhalt und Aktionsbereiche brauchen diesen Abstand nach unten.
     */
    --bottom-nav-stack: calc(92px + var(--safe-bottom));
    /* Breite der Buehne am Rechner, siehe Abschnitt "Darstellung am Rechner". */
    --app-max: 430px;
    /* Gemeinsame linke Kante: Ueberschrift und erster Reiter (Alle Produkte, …). */
    --page-gutter: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/*
 * Safari auf iOS faerbt Schaltflaechen ohne eigene Farbangabe in seinem
 * Systemblau, am Desktop faellt das nicht auf. "inherit" uebernimmt statt
 * dessen die Textfarbe der Umgebung. Als Element-Auswahl hat die Regel die
 * geringste Gewichtung, jede gezielte Angabe im Theme gewinnt weiterhin.
 */
button,
input[type="button"],
input[type="submit"] {
    color: inherit;
    font-family: inherit;
}

/*
 * Waagerechtes Ueberlaufen unterdruecken, ohne position: sticky zu brechen.
 * "hidden" macht das Element zum Scroll-Behaelter, wodurch die Kopfzeile
 * nicht mehr am Viewport haftet. "clip" schneidet nur ab und laesst sticky
 * unberuehrt.
 */
html, body {
    max-width: 100vw;
    overflow-x: clip;
    /*
     * Kein Doppel-Tipp-Zoom, kein Gummiband am Rand: soll sich wie eine
     * installierte App anfuehlen, nicht wie eine Website in Safari.
     */
    touch-action: manipulation;
    overscroll-behavior: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /*
     * Wenn die Kategorie-Leiste einklapt, darf der Browser die Scroll-Position
     * nicht nachziehen — sonst huepft die Seite auf kurzen Screens.
     */
    overflow-anchor: none;
}

/*
 * iOS zoomt das Viewport, sobald ein Feld kleiner als 16px ist. Dann wirkt
 * die ganze Seite wie eine Website, und die unteren Leisten sind angeschnitten.
 */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="date"],
select,
textarea {
    font-size: 16px;
    /* Sonst bleibt die Systemschrift des Geraets, nicht Mulish von body. */
    font-family: inherit;
}

/* Aeltere Browser ohne clip: dort greift wieder hidden. */
@supports not (overflow: clip) {
    html, body {
        overflow-x: hidden;
    }
}

body {
    font-family: 'Mulish', sans-serif;
    background: white;
    /* Freiraum fuer die feste untere Navigation. */
    padding-bottom: var(--bottom-nav-stack);
}

/*
 * Die Login-Wand hat keine untere Navigation. Das Polster
 * ließ in der Home-Bildschirm-App einen weißen Streifen (FB-046).
 */
body.login-wall-page {
    padding-bottom: 0;
}

/* App Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: white;
    padding: 12px 16px;
    padding-top: calc(12px + var(--safe-top));
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Optische Trennung zum Inhalt darunter. */
    border-bottom: 1px solid #E1E1E1;
}

.app-header__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-header__burger {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.app-header__burger svg {
    width: 36px;
    height: 36px;
    stroke: #000;
}

.app-header__logo img {
    height: 44px;
    width: auto;
}

.app-header__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-header__btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    position: relative;
    color: #1a1a1a;
}

.app-header__btn svg {
    width: 22px;
    height: 22px;
}

/*
 * Inline eingebundene Symbole der Kopfzeile: Hoehe fest, Breite frei, damit
 * das Seitenverhaeltnis der Datei erhalten bleibt. Die Flaeche folgt der
 * Schriftfarbe des Knopfs.
 */
.app-header__btn .app-header__icon {
    height: 24px;
    width: auto;
    fill: currentColor;
}

.app-header__badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--color-accent);
    color: white;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard Styles */
.dashboard {
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.dashboard__header {
    background: #FBF9F5;
    padding: 20px 16px;
    box-sizing: border-box;
    width: 100%;
}

.dashboard__greeting h1 {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-primary);
}

.dashboard__status {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    max-width: 100%;
    overflow: hidden;
}

.dashboard__content {
    background: white;
    padding: 10px 16px 20px;
    width: 100%;
    box-sizing: border-box;
}

.status-card,
.dashboard__status .be-dashboard-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 10px 14px;
    border-radius: 25px;
    font-size: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none;
    color: inherit;
}

.status-card__icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.status-card__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.status-card__label {
    font-weight: 600;
    font-size: 12px;
    color: #1a1a1a;
}

.status-card__value {
    font-size: 11px;
    color: #1a1a1a;
}

.status-card__progress {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 6px;
}

.status-card__progress-bar {
    height: 100%;
    background: #1a1a1a;
    border-radius: 2px;
    width: 70%;
}

.dashboard__customize {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

/* Tiles Grid */
.dashboard__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
    width: 100%;
}

.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--color-primary);
    transition: transform 0.2s;
    aspect-ratio: 1;
    width: 100%;
}

.tile {
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
}

.tile:active {
    transform: scale(0.98);
}

.tile__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    object-fit: contain;
}

.tile span {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    white-space: nowrap;
}

/* Kachel Farben wie im Design */
.tile--pink { background: #fce4e4; }
.tile--blue { background: #e4eef5; }
.tile--lavender { background: #efe4f5; }
.tile--sage { background: #e8efe4; }
.tile--yellow { background: #fef4d8; }
.tile--rose { background: #fce8ec; }
.tile--peach { background: #fef0e4; }
.tile--green { background: #e4f5e8; }
.tile--gray { background: #e8eaef; }
.tile--champagne { background: #f5efe6; }

/* News-Streifen im Dashboard (Slider) */
.dash-news {
    margin-bottom: 16px;
}

.dash-news__head {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.dash-news__all {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

.dash-news__slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Platz fuer denselben Schatten wie bei den Kacheln (overflow clippt sonst). */
    padding: 4px 6px 18px 2px;
}

.dash-news__slider::-webkit-scrollbar {
    display: none;
}

.dash-news__card {
    flex: 0 0 85%;
    scroll-snap-align: start;
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #F1F2F3;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
}

.dash-news__card:active {
    background: #e6e7e8;
}

.dash-news__image {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.dash-news__image--placeholder {
    background: linear-gradient(135deg, #fef4d8 0%, #fce4e4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-news__image--placeholder svg {
    width: 28px;
    height: 28px;
    color: #ccc;
}

.dash-news__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dash-news__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.dash-news__category {
    padding: 3px 8px;
    background: #fef4d8;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.dash-news__category--produkte { background: #fce4e4; }
.dash-news__category--events { background: #fef0e4; }
.dash-news__category--schulungen { background: #fef4d8; }
.dash-news__category--unternehmen { background: #e4eef5; }
.dash-news__category--tipps { background: #e8efe4; }
.dash-news__category--aktionen { background: #efe4f5; }

.dash-news__date {
    font-size: 11px;
    color: #999;
}

.dash-news__headline {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dash-news__excerpt {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* eVE Support */
.dashboard__eve {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #F0E6D8;
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 16px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
    cursor: pointer;
}

.eve-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.eve-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eve-text strong {
    display: block;
    font-size: 18px;
}

.eve-text span {
    font-size: 15px;
    color: #666;
}

/*
 * Kategorie-Ebene mit den runden Symbolen. Klappt beim Scrollen weg, sobald
 * am body die Klasse is-scrolled steht (siehe assets/js/app-shell.js). Die
 * Hoehe traegt dasselbe Skript als --category-nav-h ein, weil sie von
 * Schriftgroesse und Umbruch der Beschriftungen abhaengt.
 */
.category-nav-wrapper {
    max-height: var(--category-nav-h, 200px);
    overflow: hidden;
    transition: max-height .3s ease, opacity .2s ease;
    /*
     * Sonst zieht der Browser beim Einklappen die Seite nach, um denselben
     * Anker im Blick zu behalten — auf kurzen Seiten die Ursache des Flackerns.
     */
    overflow-anchor: none;
}

body.is-scrolled .category-nav-wrapper {
    max-height: 0;
    opacity: 0;
}

/*
 * Sub-Navigation: waagerechte Reiter unterhalb der Kopfzeile. Einzige Quelle,
 * dockt auf allen Seiten unter der Kopfzeile an. Deren Hoehe schwankt durch
 * den oberen Sicherheitsabstand, daher kommt sie als --app-header-h aus
 * assets/js/app-shell.js.
 */
.sub-nav {
    display: flex;
    gap: 0;
    padding: 12px var(--page-gutter) 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: white;
    position: sticky;
    top: var(--app-header-h, 64px);
    z-index: 40;
    border-top: 1px solid #e8e8e8;
}

/* Abgesetzt, sobald der Streifen angedockt ist. */
body.is-scrolled .sub-nav {
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.sub-nav::-webkit-scrollbar {
    display: none;
}

.sub-nav__tab {
    font-size: 18px;
    font-weight: 500;
    color: #646464;
    text-decoration: none;
    white-space: nowrap;
    padding: 0 12px;
    border-right: 1px solid #ddd;
    transition: all 0.2s;
}

/* Erster Reiter auf derselben Kante wie Shop / Wissen / … darueber. */
.sub-nav__tab:first-child {
    padding-left: 0;
}

.sub-nav__tab:last-child {
    border-right: none;
}

.sub-nav__tab.active {
    color: #1a1a1a;
    font-weight: 700;
}

/*
 * Zweite Leiste nur unter Kabinenware und Verkaufsware. Dieselben Worte wie
 * ueber dem Produktnamen, etwas kleiner als die Reiter darueber, seitlich scrollbar.
 */
.sub-nav--steps {
    top: calc(var(--app-header-h, 64px) + var(--sub-nav-h, 46px));
    z-index: 39;
    padding-top: 4px;
    padding-bottom: 12px;
    border-top: 0;
}

.sub-nav--steps .sub-nav__tab {
    font-size: 14px;
    padding: 0 10px;
}

.sub-nav--steps .sub-nav__tab:first-child {
    padding-left: 0;
}

body.is-scrolled .sub-nav:has(+ .sub-nav--steps) {
    box-shadow: none;
}

/*
 * Titel der Ueberseiten (Shop, Wissen, Academy, …). Links dieselbe
 * 16px-Kante wie der erste Text-Reiter darunter.
 */
.page-intro {
    background: #fff;
    padding: 16px var(--page-gutter) 8px;
}

.page-intro h1.page-intro__title {
    font-size: 26px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
    letter-spacing: 0;
    text-transform: inherit;
    line-height: 1.1;
}

.page-intro__subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #888;
    margin: 0;
    line-height: 1.35;
}

/* Push-Hinweis über der Bottom-Nav (K2-3: muss sich schließen lassen) */
.bh-eve-push {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}
.bh-eve-push[hidden] {
    display: none !important;
}
.bh-eve-push.is-open {
    pointer-events: auto;
}
.bh-eve-push__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.4);
}
.bh-eve-push__sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.16);
    padding-bottom: calc(16px + var(--safe-bottom, 0px));
    transform: translateY(110%);
    transition: transform 0.28s ease;
}
.bh-eve-push.is-open .bh-eve-push__sheet {
    transform: translateY(0);
}
.bh-eve-push__head {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F0E6D8;
    border-radius: 20px 20px 0 0;
    padding: 16px 12px 14px 16px;
}
.bh-eve-push__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}
.bh-eve-push__who {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bh-eve-push__who strong {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}
.bh-eve-push__who span {
    font-size: 13px;
    color: #666;
    line-height: 1.2;
}
.bh-eve-push__close {
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    font-size: 28px;
    line-height: 1;
    color: #e25b45;
    cursor: pointer;
    flex-shrink: 0;
}
.bh-eve-push__body {
    padding: 18px 16px 8px;
}
.bh-eve-push__bubble {
    margin: 0 0 16px;
    background: #F0E6D8;
    color: #1a1a1a;
    border-radius: 4px 16px 16px 16px;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.45;
}
.bh-eve-push__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bh-eve-push__actions[hidden] {
    display: none !important;
}
.bh-eve-push__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border-radius: 999px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
}
.bh-eve-push__btn:disabled {
    opacity: 0.55;
    cursor: wait;
}
.bh-eve-push__btn.is-busy {
    opacity: 1;
}
.bh-eve-push__btn.is-busy::before {
    content: "";
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: bhEveSpin 0.7s linear infinite;
    flex: 0 0 auto;
}
@keyframes bhEveSpin {
    to { transform: rotate(360deg); }
}
.bh-eve-push__btn--primary {
    background: #1a1a1a;
    color: #fff;
}
.bh-eve-push__btn--ghost {
    background: transparent;
    color: #555;
}

body.bh-eve-push-open {
    overflow: hidden;
}

.bh-willkommen-hinweis {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.4;
    color: #1a1a1a;
}

#bhEveWelcome .bh-eve-welcome__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #F0E6D8;
}
#bhEveWelcome .bh-eve-welcome__avatar img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    display: block;
}

/* iOS Safari: dezente eVE-Info-Bubble am Rand (kein Voll-Sheet) */
.bh-eve-chip {
    position: fixed;
    right: 12px;
    bottom: calc(96px + var(--safe-bottom, 0px));
    z-index: 120;
    max-width: min(300px, calc(100vw - 24px));
    pointer-events: none;
}
.bh-eve-chip[hidden] {
    display: none !important;
}
.bh-eve-chip__fab,
.bh-eve-chip__card {
    pointer-events: auto;
}
.bh-eve-chip__fab {
    display: block;
    width: 56px;
    height: 56px;
    margin-left: auto;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #F0E6D8;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    overflow: hidden;
}
.bh-eve-chip__fab[hidden] {
    display: none !important;
}
.bh-eve-chip__fab img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bh-eve-chip__card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #F0E6D8;
    color: #1a1a1a;
    border-radius: 18px;
    padding: 12px 36px 12px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}
.bh-eve-chip__card[hidden] {
    display: none !important;
}
.bh-eve-chip__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}
.bh-eve-chip__content {
    flex: 1;
    min-width: 0;
}
.bh-eve-chip__name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}
.bh-eve-chip__text {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
}
.bh-eve-chip__link {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #e25b45;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.bh-eve-chip__min {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 22px;
    line-height: 1;
    color: #888;
    cursor: pointer;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    padding: 10px 24px;
    padding-bottom: calc(26px + var(--safe-bottom));
    border-top: none;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 18px rgba(0,0,0,0.16);
    z-index: 50;
}

.bottom-nav a,
.bottom-nav button.bottom-nav__search {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #000;
    font-size: 11px;
    padding: 0 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.bottom-nav a.active {
    color: var(--color-primary);
}

/*
 * Groesse: 29×24 wie in style.css. Shop/Wissen/Termine/News sind
 * <img>, Suche bleibt Inline-SVG — beides traegt .bottom-nav__icon.
 */
.bottom-nav__icon {
    color: #000;
    width: 29px;
    height: 24px;
    object-fit: contain;
}

/*
 * Aktiver Eintrag: dafuer liegen eigene Dateien (…-aktiv.svg) im Ordner nav/,
 * die Flaechenfarbe steckt bereits darin. Hier bleibt nur die Kontur schwarz
 * wie auf den Dashboard-Kacheln.
 */
.bottom-nav a.active .bottom-nav__icon {
    color: #000;
}

/*
 * Suche: das aktive Symbol erscheint, solange das Suchfenster offen ist.
 * Die Klasse am body setzt inc/search-modal.php.
 */
.bottom-nav__icon--suche,
.bottom-nav__icon--suche-aktiv {
    transform: scale(0.86);
    transform-origin: center;
}

.bottom-nav__icon--suche-aktiv,
body.suche-offen .bottom-nav__icon--suche {
    display: none;
}

body.suche-offen .bottom-nav__icon--suche-aktiv {
    display: block;
}

body.suche-offen .bottom-nav__search {
    color: var(--color-primary);
}

/* ========================================
   Banner-Slider (inc/hero-banner.php)
   Gilt fuer Shop und Academy, beide nutzen dasselbe Markup.
   ======================================== */

.shop-hero-wrapper {
    position: relative;
    padding: 16px;
    background: white;
}

/* In Bereichen mit eigenem Innenabstand, z. B. .academy-content. */
.shop-hero-wrapper--eingebettet {
    padding: 0 0 24px;
    background: transparent;
}

.shop-hero-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.shop-hero-slider::-webkit-scrollbar {
    display: none;
}

/* Aktive Folie: Strich. Weitere Folien: Punkt. Liegt unten auf dem Banner. */
.shop-hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
    pointer-events: none;
}

.shop-hero-wrapper--eingebettet .shop-hero-dots {
    bottom: 36px;
}

.shop-hero-dots__item {
    pointer-events: auto;
    box-sizing: border-box;
    width: 10px;
    height: 10px;
    padding: 0;
    border: 2px solid #1a1a1a;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 1px #fff;
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.shop-hero-dots__item.is-active {
    width: 24px;
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.shop-hero {
    flex: 0 0 calc(100% - 0px);
    scroll-snap-align: start;
}

.shop-hero__slide {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #87CEEB 0%, #5BA3C6 100%);
    padding: 24px;
    height: 200px;
    display: flex;
    align-items: center;
}

/*
 * Aufhellung fuer die Lesbarkeit des Textes. Sie liegt ueber dem ganzen
 * Banner und laeuft zur rechten Seite vollstaendig aus. Frueher lag der
 * Verlauf auf dem Textkasten selbst und brach an dessen Kante sichtbar ab.
 */
.shop-hero__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(100deg,
        rgba(255,255,255,0.92) 0%,
        rgba(255,255,255,0.80) 28%,
        rgba(255,255,255,0.40) 52%,
        rgba(255,255,255,0) 78%);
    pointer-events: none;
    z-index: 1;
}

.shop-hero__content {
    position: relative;
    z-index: 2;
    max-width: 50%;
    padding: 30px 0px 30px 0;
}

.shop-hero__label {
    font-family: 'Mulish', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0px;
    text-transform: uppercase;
}

.shop-hero__title {
    font-family: 'Mulish', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    margin-bottom: 8px;
    text-transform: uppercase;
    line-height: 1.15;
}

.shop-hero__subtitle {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.shop-hero__btn {
    display: inline-block;
    background: #1a1a1a;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.shop-hero__image {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 160px;
    /* Ueber der Aufhellung, damit das Produktbild klar bleibt. */
    z-index: 2;
}

.shop-hero__image img {
    max-height: 100%;
    width: auto;
}

/* Heller Text braucht keine weisse Aufhellung. */
.shop-hero__slide.text-light::before {
    display: none;
}

.shop-hero__slide.text-light .shop-hero__label,
.shop-hero__slide.text-light .shop-hero__title,
.shop-hero__slide.text-light .shop-hero__subtitle {
    color: white;
}

.shop-hero__slide.text-light .shop-hero__btn {
    background: white;
    color: #1a1a1a;
}

/* ========================================
   Einfache Inhaltsseiten (singular.php), z. B. die Kasse
   ======================================== */

.page-simple {
    background: white;
    min-height: calc(100vh - 140px);
    box-sizing: border-box;
    /*
     * "clip" statt "hidden": hidden wuerde einen Scroll-Behaelter erzeugen und
     * die klebende Ueberschrift darin ausser Kraft setzen.
     */
    overflow-x: clip;
}

@supports not (overflow: clip) {
    .page-simple {
        overflow-x: hidden;
    }
}

/*
 * Zurück-Streifen unter der Kopfzeile (Kasse, Warenkorb, Inhaltsseiten).
 * Dieselbe Lage und Farbe wie Produktdetail und Wissen-Detail.
 */
.app-back-bar {
    position: sticky;
    top: var(--app-header-h, 64px);
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #F8F4EE;
    border-bottom: 1px solid #f0f0f0;
}

.app-back-bar__row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
    color: #1a1a1a;
}

.app-back-bar__btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
    border-radius: 50%;
    text-decoration: none;
    color: #1a1a1a;
}

.app-back-bar__btn svg {
    width: 20px;
    height: 20px;
}

.app-back-bar__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

body.woocommerce-order-received .app-back-bar__title {
    font-size: 14px;
    font-weight: 500;
}

/*
 * Aelterer Titelstreifen ohne Pfeil, falls eine Seite ihn noch setzt.
 */
.page-simple__title {
    position: sticky;
    top: var(--app-header-h, 64px);
    z-index: 40;
    margin-bottom: 20px;
    padding: 16px;
    background: #F8F4EE;
    font-size: 18px;
    font-weight: 700;
}

.page-simple__content {
    padding: 0 20px 32px;
    font-size: 16px;
    line-height: 1.6;
    max-width: 100%;
}

/*
 * Typografie fuer Rechtstexte (AGB, Impressum, Datenschutz).
 * Der globale Reset in style.css setzt bei allen Elementen padding und margin
 * auf 0. Dadurch verlieren Listen ihren Einzug und die Zaehler stehen ausserhalb
 * des Randes. Die folgenden Regeln geben den Inhalten wieder Abstaende.
 */
.page-simple__content > *:first-child {
    margin-top: 0;
}

.page-simple__content p {
    margin: 0 0 14px;
}

.page-simple__content h1,
.page-simple__content h2 {
    margin: 28px 0 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.page-simple__content h3,
.page-simple__content h4 {
    margin: 22px 0 10px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.page-simple__content ul,
.page-simple__content ol {
    margin: 0 0 14px;
    padding-left: 22px;
}

.page-simple__content li {
    margin-bottom: 8px;
}

.page-simple__content li > ul,
.page-simple__content li > ol {
    margin-top: 8px;
}

/*
 * Die Zwischentitel der AGB stehen im Inhalt als einzelne Listenpunkte mit
 * fettem Text. Ohne Aufzaehlungspunkt lesen sie sich wie Ueberschriften.
 */
.page-simple__content ul > li > strong:only-child,
.page-simple__content ul > li > b:only-child {
    display: block;
    font-size: 17px;
}

.page-simple__content a {
    color: inherit;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.page-simple__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 14px;
    font-size: 15px;
}

/*
 * Aufklappbare Fragen der FAQ. Der Inhalt nutzt details und summary, also
 * Bordmittel des Browsers ohne zusaetzliches JavaScript.
 */
.page-simple__content details {
    border-bottom: 1px solid #E5E0D8;
    margin: 0;
}

.page-simple__content details:first-of-type {
    border-top: 1px solid #E5E0D8;
}

.page-simple__content summary {
    position: relative;
    padding: 14px 32px 14px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

/* Das Standarddreieck von Safari und Chrome entfernen. */
.page-simple__content summary::-webkit-details-marker {
    display: none;
}

/* Eigenes Zeichen: Plus im geschlossenen, Minus im offenen Zustand. */
.page-simple__content summary::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 4px;
    width: 12px;
    height: 2px;
    background: #1a1a1a;
    transform: translateY(-50%);
}

.page-simple__content summary::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 9px;
    width: 2px;
    height: 12px;
    background: #1a1a1a;
    transform: translateY(-50%);
    transition: opacity 0.15s ease;
}

.page-simple__content details[open] summary::before {
    opacity: 0;
}

.page-simple__content details > *:not(summary) {
    margin-bottom: 12px;
}

.page-simple__content details > *:last-child {
    margin-bottom: 16px;
}

.page-simple__content h5 {
    margin: 16px 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.page-simple__content th,
.page-simple__content td {
    padding: 8px;
    border: 1px solid #E5E0D8;
    text-align: left;
}

/*
 * Rechtstexte: Abschnittstitel statt Bullet-Listen, Absaetze als Karten.
 */
body.bh-legal-page .page-simple__content {
    padding: 4px 16px 100px;
    font-size: 15px;
    line-height: 1.65;
    color: #333;
}

body.bh-legal-page .page-simple__content .legal-section {
    margin: 28px 0 12px;
    padding: 16px 0 0;
    border-top: 1px solid #ebebeb;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
}

body.bh-legal-page .page-simple__content .legal-section--lead,
body.bh-legal-page .page-simple__content .legal-section:first-child {
    margin-top: 4px;
    padding-top: 0;
    border-top: none;
    font-size: 18px;
}

body.bh-legal-page .page-simple__content .legal-sub {
    margin: 18px 0 10px;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
}

body.bh-legal-page .page-simple__content ul {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

body.bh-legal-page .page-simple__content ol {
    margin: 0 0 4px;
    padding-left: 0;
    list-style: none;
    counter-reset: legal-item;
}

body.bh-legal-page .page-simple__content ol > li,
body.bh-legal-page .page-simple__content > p,
body.bh-legal-page .page-simple__content p {
    position: relative;
    margin: 0 0 12px;
    padding: 0;
    background: #fff;
    border-radius: 0;
}

body.bh-legal-page .page-simple__content ol > li {
    padding-left: 28px;
    counter-increment: legal-item;
}

body.bh-legal-page .page-simple__content ol > li::before {
    content: counter(legal-item) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.65;
}

body.bh-legal-page .page-simple__content a {
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ========================================
   Kasse (WooCommerce Blocks)
   ======================================== */

/*
 * Mobile: Woo Blocks rendert die Bestelluebersicht zweimal —
 * Accordion in der Sidebar (oben, vor den Formularfeldern) und per SlotFill
 * die volle Aufstellung unten vor dem Bestellbutton (.checkout-order-summary-
 * block-fill-wrapper). Die obere Sidebar ausblenden; Fill bleibt.
 *
 * Nur im schmalen Container/Viewport: auf Desktop (isLarge) gibt es keinen Fill,
 * die Sidebar ist dann die einzige Aufstellung (#158).
 */
@container (max-width: 699px) {
    .wc-block-checkout__sidebar {
        display: none;
    }
}

@media (max-width: 699px) {
    .wc-block-checkout__sidebar {
        display: none;
    }
}

/*
 * Die Blocks-Ueberschriften (Bestelluebersicht, Kontaktinformationen,
 * Lieferadresse, Versandoptionen) kommen aus dem Core mit normalem Schnitt.
 * Die doppelte Klasse entspricht der Spezifitaet der Core-Regel.
 */
.wc-block-components-title.wc-block-components-title {
    font-weight: 700;
}
.wc-block-components-formatted-money-amount {
    font-size: 18px;
}

/*
 * Esra K2-8: Gesamtsumme und Betrag in der Bestelluebersicht fett.
 * Die MwSt-Zeile darunter bleibt normal.
 */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-formatted-money-amount,
.wc-block-components-totals-footer-item .wc-block-components-formatted-money-amount {
    font-weight: 700 !important;
}
/* ========================================
   Produktkarten
   ======================================== */

/*
 * Gemeinsame Darstellung der Produktkarten. Lag vorher nur im Stilblock von
 * woocommerce/archive-product.php und stand damit auf anderen Seiten nicht zur
 * Verfuegung. Jetzt eine Quelle fuer die Shop-Liste und die passenden Produkte
 * auf den Wissen-Beitraegen. Die Werte sind unveraendert uebernommen.
 *
 * Diese Datei wird nach style.css geladen (Abhaengigkeit bh-style), die
 * aelteren Regeln dort werden also weiterhin ueberschrieben.
 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px;
    background: white;
}

/* Ohne eigenen Innenabstand, wenn der umgebende Bereich schon einen hat. */
.product-grid--flush {
    padding: 0;
    background: none;
}

.product-card {
    background: white;
    border-radius: 6px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
    position: relative;
    text-decoration: none;
    color: inherit;
}

.product-card__wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 5;
}

.product-card__wishlist svg {
    width: 18px;
    height: 18px;
    stroke: #999;
    fill: none;
}

.product-card__wishlist.active svg {
    stroke: #e25b45;
    fill: #e25b45;
}

.product-card__image {
    aspect-ratio: 1;
    background: white;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.product-card__image img {
    max-width: 100%;
    max-height: 100%;
}

.product-card--outofstock .product-card__image img {
    opacity: 0.55;
    filter: grayscale(0.2);
}

.product-card--outofstock .product-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(251, 249, 245, 0.15) 0%,
        rgba(251, 249, 245, 0.55) 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* Störer: dezentes Badge unten im Bild */
.product-card__stoerer {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 4;
    margin: 0;
    padding: 8px 16px;
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.94);
    color: #1a1a1a;
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.product-card__stoerer--test {
    left: 12px;
    top: 12px;
    bottom: auto;
    transform: none;
    padding: 5px 10px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    box-shadow: none;
}

.product-card__content {
    padding: 12px;
}

.product-card__step {
    font-size: 11px;
    color: #000000;
    margin-bottom: 4px;
}

.product-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-card__price {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Groessen und Farben einer Produktgruppe, auf der Produktseite. */
.pg-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 12px 0 4px;
}
.pg-chips::-webkit-scrollbar { display: none; }
.pg-chips__item {
    flex: 0 0 auto;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 999px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
}
.pg-chips__item.is-current {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}
.pg-wahl { margin-top: 12px; }
.pg-wahl__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #646464;
    margin-bottom: 6px;
}
.pg-wahl .pg-chips { margin-top: 0; }

/* Bereich unter dem Raster, ueber den weitere Produktseiten nachkommen. */
.product-more {
    display: flex;
    justify-content: center;
    padding: 8px 16px 32px;
    background: #FBF9F5;
}

.product-more__btn {
    display: inline-block;
    border: 1px solid #1a1a1a;
    background: transparent;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 25px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.product-more__btn:disabled {
    opacity: .5;
    cursor: default;
}

/*
 * Meldungen: springt der Browser zu einer Meldung, soll sie unter den
 * klebenden Leisten stehen und nicht dahinter verschwinden. Deckt die
 * Spruenge ab, die WooCommerce selbst ausloest; den Fall, dass WooCommerce
 * gar nicht springt, faengt assets/js/app-shell.js ab.
 *
 * Icon (::before) braucht linken Innenabstand – der globale * { padding:0 }
 * und style.css (gleichmaessiges padding) haben das zerstoert.
 */
.wc-block-components-notice-banner,
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    position: relative;
    display: block;
    scroll-margin-top: calc(var(--app-header-h, 64px) + 70px);
    padding: 14px 16px 14px 48px !important;
    margin: 0 0 16px !important;
    border-radius: 12px;
    border: 0;
    border-top: 0;
    list-style: none;
    line-height: 1.45;
    font-size: 14px;
    color: #1a1a1a;
    box-sizing: border-box;
}

.woocommerce-message {
    background: #ecfdf5 !important;
}

.woocommerce-info {
    background: #eff6ff !important;
}

.woocommerce-error {
    background: #fef2f2 !important;
}

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
    font-family: WooCommerce !important;
    display: inline-block !important;
    position: absolute !important;
    top: 50% !important;
    left: 14px !important;
    transform: translateY(-50%);
    margin: 0 !important;
    line-height: 1 !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    width: 1em;
    text-align: center;
}

.woocommerce-message::before {
    content: "\e015" !important;
    color: #16a34a !important;
}

.woocommerce-info::before {
    content: "\e028" !important;
    color: #2563eb !important;
}

.woocommerce-error::before {
    content: "\e016" !important;
    color: #dc2626 !important;
}

.woocommerce-error .button,
.woocommerce-info .button,
.woocommerce-message .button {
    float: none;
    display: inline-block;
    margin: 8px 0 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: #1a1a1a;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

.woocommerce-error a:not(.button),
.woocommerce-info a:not(.button),
.woocommerce-message a:not(.button) {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/*
 * Bestellen-Button wie „SICHER ZUR KASSE“: groesser, Versalien, Orange.
 * Die Auswahl ist absichtlich so lang: WooCommerce setzt Groesse und Farben
 * ueber .wc-block-components-button:not(.is-link).contained, eine kuerzere
 * Regel wuerde verlieren. Die Zustaende sind mit aufgefuehrt, da WooCommerce
 * dort eigene Werte vorgibt.
 */
.wc-block-components-button:not(.is-link).wc-block-components-checkout-place-order-button,
.wc-block-components-button:not(.is-link).wc-block-components-checkout-place-order-button:hover,
.wc-block-components-button:not(.is-link).wc-block-components-checkout-place-order-button:focus,
.wc-block-components-button:not(.is-link).wc-block-components-checkout-place-order-button:active {
    width: 100%;
    padding: 16px;
    border-radius: 999px;
    background-color: var(--color-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.wc-block-components-checkout-place-order-button .wc-block-components-button__text {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/*
 * Warenkorb-Leiste: nicht fixiert (scrollt mit), Produkt-Leiste bleibt
 * ebenfalls im Fluss. !important gegen aeltere Template-/Media-Regeln.
 */
.cart-coupon__leer {
    margin: 10px 0 0;
    font-size: 14px;
    color: #b91c1c;
}

.cart-coupon__or {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.02em;
}

.bh-elite-claim-form {
    margin: 0;
}

.cart-coupon .bh-elite-claim-form:not(:has(.bh-elite-cart-claim)) {
    display: none;
}

.cart-coupon:not(:has(.bh-elite-cart-claim)) .cart-coupon__or {
    display: none;
}

.cart-coupon .bh-elite-cart-claim {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.cart-coupon .bh-elite-claim-form + .cart-coupon__or,
.cart-coupon .bh-elite-cart-claim + .cart-coupon__or {
    margin-top: 24px;
}

.bh-elite-cart-claim {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin: 0 0 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.bh-elite-cart-claim__title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
    line-height: 1.3;
}

.bh-elite-cart-claim__text {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px;
    line-height: 1.4;
}

.bh-elite-cart-claim__bv-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bh-elite-cart-claim__bv-btns--one {
    display: block;
}

.bh-elite-cart-claim__btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    box-sizing: border-box;
}

.bh-elite-cart-claim__btn--block {
    width: 100%;
}

.bh-elite-cart-claim__applied {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.bh-elite-cart-claim__applied-amount {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 13px;
    font-weight: 700;
}

.bh-elite-cart-claim__code {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: #f5f5f5;
    border: 1px dashed #e0e0e0;
    border-radius: 8px;
    padding: 6px 10px;
    color: #1a1a1a;
}

.cart-footer {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: calc(100% + 40px) !important;
    max-width: none !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
    transform: none !important;
    z-index: auto !important;
    padding-bottom: 16px !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Muss !important schlagen: sonst bleibt der Button 100% und rutscht unter die Anzahl. */
.product-buy-row {
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
}

.product-buy-row .product-quantity {
    flex: 0 0 auto !important;
    width: auto !important;
    margin-bottom: 0 !important;
}

.product-add-to-cart {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    z-index: auto !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
}

/*
 * Kasse: Bestellbutton nicht unter der Bottom-Nav, Bestelluebersicht
 * nicht festgepinnt. sticky (K2-7) hat die ganze untere Aufstellung
 * am Viewport gehalten; Abstand reicht ueber padding.
 */
body.woocommerce-checkout .page-simple__content {
    padding-bottom: 48px;
}

body.woocommerce-checkout .wc-block-checkout__actions,
body.woocommerce-checkout .wp-block-woocommerce-checkout-actions-block,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
    margin-bottom: 8px;
}

body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
body.woocommerce-checkout .wc-block-checkout__actions,
body.woocommerce-checkout .wp-block-woocommerce-checkout-actions-block {
    position: static;
    top: auto;
    bottom: auto;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select-input select,
body.woocommerce-checkout input.input-text,
body.woocommerce-checkout textarea {
    font-size: 16px !important;
}

/* Dashboard Edit Mode - iPhone Wiggle */
@keyframes wiggle {
    0%, 100% { transform: rotate(-1.5deg); }
    50% { transform: rotate(1.5deg); }
}

.dashboard__grid.edit-mode .tile {
    animation: wiggle 0.15s ease-in-out infinite;
    cursor: grab;
    pointer-events: auto;
}

.dashboard__grid.edit-mode .tile:nth-child(2n) {
    animation-delay: 0.075s;
}

.dashboard__grid.edit-mode .tile:active {
    cursor: grabbing;
    transform: scale(1.05);
    animation: none;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.dashboard__grid.edit-mode .tile.dragging {
    opacity: 0.5;
}

.dashboard__grid.edit-mode .tile.drag-over {
    transform: scale(0.95);
    animation: none;
}

.dashboard__customize {
    cursor: pointer;
}

.dashboard__customize:hover {
    color: var(--color-primary);
}

.dashboard__customize.save-mode {
    color: var(--color-accent);
    font-weight: 600;
}

/* Burger Menu */
.burger-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FBF9F5;
    z-index: 90;
    padding-top: var(--safe-top);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    padding-bottom: var(--bottom-nav-stack);
}

.burger-menu.active {
    opacity: 1;
    visibility: visible;
}

/*
 * Hintergrund nicht mitscrollen, solange das Burger offen ist.
 * overflow:hidden allein greift auf iOS oft nicht — deshalb position:fixed
 * am body (Scroll-Offset setzt openBurgerMenu per top).
 */
html.burger-open,
html.burger-open body {
    overflow: hidden !important;
    overscroll-behavior: none;
}

body.burger-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
}

@media (min-width: 700px) {
    body.burger-open {
        max-width: var(--app-max);
        margin-inline: auto;
    }
}

.burger-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #FBF9F5;
}

.burger-menu__header span {
    font-size: 14px;
    color: #666;
}

.burger-menu__close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.burger-menu__nav {
    padding: 0;
}

.burger-menu__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 16px;
    text-decoration: none;
    color: #1a1a1a;
    border-bottom: 1px solid #eee;
    background: white;
}

.burger-menu__item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.burger-menu__item span {
    flex: 1;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 1px;
}

.burger-menu__arrow {
    width: 20px;
    height: 20px;
    color: #999;
    transition: transform 0.2s;
}

.burger-menu__item.active .burger-menu__arrow {
    transform: rotate(180deg);
}

/* Shop Farben */
.burger-menu__item.active[data-toggle="submenu-shop"] {
    background: #F7E3E0;
}

#submenu-shop {
    background: #FEFAF9;
}

.burger-menu__eve-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Burger Submenu */
.burger-submenu {
    display: none;
    background: white;
    border-bottom: 1px solid #eee;
}

.burger-submenu.active {
    display: block;
}

.burger-submenu__item--favorites {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e25b45;
    font-weight: 600;
}
.burger-submenu__badge {
    background: #e25b45;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.burger-submenu__item {
    display: block;
    padding: 16px 16px 16px 60px;
    text-decoration: none;
    color: #1a1a1a;
    font-family: 'Mulish', sans-serif;
    font-size: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.burger-submenu__item:last-child {
    border-bottom: none;
}

.burger-submenu__item:hover {
    background: #fafafa;
}

/*
 * Darstellung am Rechner
 * ----------------------
 * Die App ist fuer 393x852 gebaut. Ab 700px Fensterbreite wird sie deshalb
 * mittig in einer Buehne von --app-max gezeigt, statt in die Breite zu laufen.
 * Am Telefon greift nichts davon.
 *
 * Feste Elemente (untere Navigation, Burger, Modale, Kauf-Leisten) richten sich
 * am Fenster aus, nicht am body. Sie werden darum unten einzeln auf die Buehne
 * geholt. Die Selektoren tragen "body" davor, damit sie die Regeln aus den
 * <style>-Bloecken der Templates ueberschreiben.
 */
@media (min-width: 700px) {
    html {
        background: #e6e6e6;
    }

    body {
        max-width: var(--app-max);
        margin-inline: auto;
        min-height: 100vh;
        background: white;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.12);
    }

    /* Login-Wall: feste Fullscreen-Position am Desktop aufheben (siehe template-login-wall.php). */
    body.login-wall-page {
        position: relative;
        inset: auto;
        height: 100dvh;
        overflow: hidden;
    }

    body.login-wall-page .login-wall {
        position: absolute;
        inset: 0;
        max-width: none;
    }

    body .site-header,
    body .bottom-nav,
    body .burger-menu,
    body .cart-modal,
    body .search-modal,
    body .share-modal,
    body .retoure-modal,
    body .modal-overlay,
    body .lightbox,
    body .app-splash,
    body .order-details-panel {
        left: 50%;
        right: auto;
        width: 100%;
        max-width: var(--app-max);
        transform: translateX(-50%);
    }

    /* Steht mit Abstand zum Rand, deshalb eigene Breite. */
    body .termin-detail__actions {
        left: 50%;
        right: auto;
        width: calc(100% - 32px);
        max-width: calc(var(--app-max) - 32px);
        transform: translateX(-50%);
    }
}

/* —— Partner Benefits —— */
.partner-benefits {
    background: #fff;
    padding: 8px 16px calc(24px + var(--bottom-nav-stack));
    min-height: 40vh;
}

.partner-benefits__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.partner-benefit-card {
    position: relative;
    display: block;
    background: #fbf9f5;
    border-radius: 16px;
    overflow: hidden;
    color: inherit;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.partner-benefit-card__hit {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.partner-benefit-card__hit span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.partner-benefit-card:has(.partner-benefit-card__hit:focus-visible) {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

.partner-benefit-card__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 0 0;
}

.partner-benefit-card__logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.partner-benefit-card__name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.partner-benefit-card__media {
    position: relative;
    aspect-ratio: 16 / 7.5;
    margin: 12px 16px 0 0;
    border-radius: 0 12px 12px 0;
    overflow: hidden;
    background: #eee;
}

.partner-benefit-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.partner-benefit-card__image--placeholder {
    background: #f0ebe3;
}

.partner-benefit-card__badge {
    position: absolute;
    left: 0;
    bottom: 10px;
    padding: 4px 10px;
    border-radius: 0 999px 999px 0;
    background: rgba(255, 255, 255, 0.94);
    font-size: 11px;
    font-weight: 600;
    color: #1a1a1a;
    border: 1px solid rgba(26, 26, 26, 0.08);
}

.partner-benefit-card__body {
    padding: 14px 16px 16px 0;
}

.partner-benefit-card__vorteil {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.partner-benefit-card__desc {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.45;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.partner-benefit-card__code {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(26, 26, 26, 0.08);
}

.partner-benefit-card__code-label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.partner-benefit-card__code-value {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.02em;
}

.partner-benefit-card__copy {
    position: relative;
    z-index: 2;
    border: none;
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
}

.partner-benefit-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.partner-benefit-card__btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
}

.partner-benefit-card__btn--primary {
    position: relative;
    z-index: 2;
    background: #1a1a1a;
    color: #fff;
}

.partner-benefit-card__btn--ghost {
    background: #fff;
    color: #1a1a1a;
    border: 1px solid rgba(26, 26, 26, 0.12);
}

.partner-benefits__empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 15px;
    line-height: 1.5;
}

.partner-benefit-detail {
    background: #fff;
    padding: 8px 16px calc(24px + var(--bottom-nav-stack));
}

.partner-benefit-detail__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.partner-benefit-detail__logo {
    display: block;
    height: 44px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.partner-benefit-detail__name {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #1a1a1a;
}

.partner-benefit-detail__vorteil {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #1a1a1a;
}

.partner-benefit-detail__media {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #eee;
}

.partner-benefit-detail__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.partner-benefit-detail__desc {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #444;
}

.partner-benefit-detail .partner-benefit-card__code {
    margin-bottom: 16px;
}

.partner-benefit-detail__go {
    display: inline-block;
    margin-bottom: 20px;
    background: #1a1a1a;
    color: #fff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 10px;
}

.partner-benefit-detail__block {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.partner-benefit-detail__block h2 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

.partner-benefit-detail__bedingungen {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.partner-benefit-detail__ablauf {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

.partner-benefit-detail__ablauf p {
    margin: 0 0 10px;
}
