/* Hinweis „Du brauchst noch mehr?“ bei der Höchstmenge (20 Sechser, 10 Zwanziger) - unverändert aus inc/odin-category-grid.php
   der alten Seite (dort auf jeder Seite). Öffnet sich aus dem Warenkorb-Fenster, dem Warenkorb und später dem Trunklager. */
/* ══════════════════════════════════════════════════════════════
   SPEDITIONS-POPUP — Viking/Odin Style
   ══════════════════════════════════════════════════════════════ */
/* ── SPEDITIONS-LIMIT POPUP — 1:1 wie Land-Popup Stil ── */
.odin-spedition-overlay {
    position: fixed; inset: 0; z-index: 9999999;
    display: flex; align-items: flex-start; justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
    padding: min(20px, 2.5vh);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.odin-spedition-overlay.is-visible {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.odin-spedition-box {
    background:
        url('bilder/vignette.png') center / cover no-repeat,
        url('bilder/card_odin_game_bg_pattern_s.jpg') center / 200px repeat;
    border: none;
    border-radius: 16px;
    padding: min(40px, 5vh) 36px min(32px, 4vh);
    max-width: 520px; width: 92%;
    margin: auto;
    text-align: center;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(197, 160, 89, 0.15);
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
    position: relative;
    overflow: hidden;
}
.odin-spedition-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 0;
}
.odin-spedition-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(120deg, #c5a059, #d4b06a, #f3d895, #ffe3a0, #f3d895, #d4b06a, #c5a059);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
}
.odin-spedition-box > * {
    position: relative;
    z-index: 1;
}
.odin-spedition-overlay.is-visible .odin-spedition-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}
/* Title — 1:1 wie Land-Popup (.odin-popup-title) */
.odin-spedition-title {
    font-family: 'ITC Odin Con', serif;
    font-size: min(3rem, 5vh);   /* kleiner: zwei Zeilen „Du brauchst / noch mehr?“ */
    font-weight: 500;
    text-transform: uppercase;
    line-height: 0.95em;
    letter-spacing: 0.04em;
    padding: min(15px, 2vh);
    padding-bottom: 0;
    color: #F4C064;
    background: linear-gradient(135deg, #e2c38c 0%, #ffeeb0 20%, #F4C064 60%);
    background-size: 300% auto;
    animation: none;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(244, 192, 100, 0.6)) drop-shadow(0 0 16px rgba(244, 192, 100, 0.35));
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}
/* Bild — größer */
.odin-spedition-img {
    width: min(340px, 42vh);
    margin: max(-20px, -2.5vh) auto min(20px, 2.5vh);
    display: block;
    border-radius: 8px;
    position: relative;
    z-index: 3;
}
.odin-spedition-text {
    text-wrap: balance;   /* gleichmäßige Zeilen, kein einzelnes Wort unten */
    font-family: 'ITC Odin Con', serif;
    font-size: min(1.5rem, 2.2vh);
    font-weight: 400;
    color: #d6be9f;
    line-height: 1.4em;
    margin-bottom: min(20px, 2.5vh);
}
/* Maximale Menge Label */
.odin-spedition-label {
    font-family: 'ITC Odin Con', serif;
    font-size: min(1.2rem, 1.8vh);
    font-weight: 400;
    color: #d6be9f;
    margin-bottom: min(12px, 1.5vh);
}
/* Produkt-Reihe: [Bild Head Sub] [Bild Head Sub] [Besiegeln] */
.odin-spedition-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: min(20px, 2.5vh);
    margin-bottom: min(24px, 3vh);
}
/* Einzelne Produkt-Karte: Bild links, Text rechts */
.odin-spedition-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 0;
}
.odin-spedition-card-img {
    width: min(86px, 11vh);
    height: min(86px, 11vh);
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.odin-spedition-card-info {
    text-align: left;
}
.odin-spedition-card-name {
    font-family: 'ITC Odin Con', serif;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    background: linear-gradient(120deg, #f3d895 0%, #ffe3a0 40%, #fff0c4 70%, #ffe3a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 1px;
}
.odin-spedition-card-amount {
    font-family: 'ITC Odin Con', serif;
    font-size: 0.9rem;
    color: #d6be9f;
}
/* Besiegeln + Mehr Anfragen — gleiche Basis */
.odin-spedition-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(200px, 22vw, 280px);
    height: min(54px, 7vh);
    padding: 0 clamp(20px, 2.5vw, 32px);
    border: none;
    border-radius: 999px;
    background: transparent;
    position: relative;
    cursor: pointer;
    font-family: 'ITC Odin Con', serif;
    font-size: 1.15rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
    overflow: visible;
    text-decoration: none !important;
    transition: box-shadow 0.6s ease;
}
/* Grüner Ring (Besiegeln) */
.odin-spedition-btn--green {
    box-shadow: 0 0 12px rgba(90, 220, 90, 0.5), 0 0 28px rgba(90, 220, 90, 0.25), inset 0 0 8px rgba(90, 220, 90, 0.1);
}
.odin-spedition-btn--green::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    padding: 2px;
    background: linear-gradient(120deg, #3a9a3a, #5bc55b, #7ae07a, #a0ffb0, #7ae07a, #5bc55b, #3a9a3a);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}
.odin-spedition-btn--green .odin-spedition-btn-text {
    background: linear-gradient(120deg, #5bc55b 0%, #7ae07a 40%, #a0ffb0 70%, #7ae07a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.odin-spedition-btn--green:hover {
    box-shadow: 0 0 14px rgba(90, 220, 90, 0.7), 0 0 28px rgba(90, 220, 90, 0.35) !important;
    transition: box-shadow 0.3s ease !important;
}
.odin-spedition-btn-text {
    position: relative;
    z-index: 2;
    pointer-events: none;
}
/* Schließen + Mehr Anfragen — nebeneinander */
.odin-spedition-bottom {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: min(4px, 0.5vh);
    width: 100%;
}
.odin-spedition-bottom .odin-spedition-btn {
    flex: 1;
    max-width: 200px;
}
.odin-spedition-btn--gold {
    box-shadow: 0 0 8px rgba(241, 198, 91, 0.3), 0 0 16px rgba(230, 168, 91, 0.15), 0 0 28px rgba(230, 168, 91, 0.08);
}
.odin-spedition-btn--gold::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    padding: 2px;
    background: linear-gradient(120deg, #c5a059, #d4b06a, #f3d895, #ffe3a0, #f3d895, #d4b06a, #c5a059);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}
.odin-spedition-btn--gold .odin-spedition-btn-text {
    background: linear-gradient(120deg, #f3d895 0%, #ffe3a0 40%, #fff0c4 70%, #ffe3a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.odin-spedition-btn--gold:hover {
    box-shadow: 0 0 14px rgba(230, 168, 91, 0.7), 0 0 28px rgba(230, 168, 91, 0.35) !important;
    transition: box-shadow 0.3s ease !important;
}
/* ── Roter Button (Schließen) ── */
.odin-spedition-btn--red {
    box-shadow: 0 0 8px rgba(255, 60, 60, 0.3), 0 0 16px rgba(255, 60, 60, 0.15), 0 0 28px rgba(255, 60, 60, 0.08);
}
.odin-spedition-btn--red::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    padding: 2px;
    background: linear-gradient(120deg, #ff6b6b 0%, #ff8888 40%, #ffaaaa 70%, #ff8888 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.odin-spedition-btn--red .odin-spedition-btn-text {
    background: linear-gradient(120deg, #ff6b6b 0%, #ff8888 40%, #ffaaaa 70%, #ff8888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.odin-spedition-btn--red:hover {
    box-shadow: 0 0 14px rgba(255, 60, 60, 0.7), 0 0 28px rgba(255, 60, 60, 0.35) !important;
    transition: box-shadow 0.3s ease !important;
}
@media (max-width: 599px) {
    .odin-spedition-box {
        padding: min(28px, 3.5vh) 16px min(22px, 2.8vh);
    }
    .odin-spedition-title {
        font-size: min(2.3rem, 4.4vh);
    }
    .odin-spedition-img {
        width: min(260px, 34vh);
    }
    .odin-spedition-row {
        flex-wrap: wrap;
        gap: min(12px, 1.5vh);
    }
    .odin-spedition-row .odin-spedition-btn {
        width: 100%;
        justify-content: center;
    }
    .odin-spedition-card-img {
        width: min(72px, 9vh);
        height: min(72px, 9vh);
    }
    .odin-spedition-btn--gold,
    .odin-spedition-btn--green,
    .odin-spedition-btn--red {
        height: min(50px, 6.5vh);
    }
}
@media (max-width: 380px) {
    .odin-spedition-box {
        padding: min(22px, 3vh) 12px min(18px, 2.5vh);
        border-radius: 14px;
    }
    .odin-spedition-title {
        font-size: min(1.95rem, 3.9vh);
        padding: min(10px, 1.3vh);
        padding-bottom: 0;
    }
    .odin-spedition-img {
        width: min(160px, 22vh);
        margin: max(-14px, -1.8vh) auto min(12px, 1.5vh);
    }
    .odin-spedition-text {
        font-size: min(1.1rem, 1.7vh);
        margin-bottom: min(12px, 1.5vh);
    }
    .odin-spedition-label {
        font-size: min(1rem, 1.5vh);
        margin-bottom: min(8px, 1vh);
    }
    .odin-spedition-card-img {
        width: min(56px, 7.5vh);
        height: min(56px, 7.5vh);
    }
    .odin-spedition-card-name {
        font-size: min(0.95rem, 1.5vh);
    }
    .odin-spedition-card-amount {
        font-size: min(0.8rem, 1.2vh);
    }
    .odin-spedition-row {
        gap: min(10px, 1.3vh);
        margin-bottom: min(16px, 2vh);
    }
    .odin-spedition-btn--gold,
    .odin-spedition-btn--red {
        height: min(48px, 6.5vh);
        min-width: 170px;
        font-size: min(1.1rem, 1.7vh);
    }
    .odin-spedition-btn--green {
        height: min(44px, 6vh);
        font-size: min(1rem, 1.5vh);
    }
}

/* ═══ LIMIT-POPUP HEIGHT SCALING — nur breite Screens mit wenig Höhe ═══ */

/* Laptops / iPad Landscape (Höhe ≤ 840px, Breite > 599px) */
@media screen and (max-height: 840px) and (min-width: 600px) {
    .odin-spedition-overlay {
        padding: min(16px, 2vh);
    }
    .odin-spedition-box {
        padding: min(28px, 3.5vh) 28px min(24px, 3vh);
    }
}

/* Landscape Phones (Höhe ≤ 500px) */
@media screen and (max-height: 500px) {
    .odin-spedition-overlay {
        padding: 6px;
    }
}

/* BeTheme-Grundlagen (be.min.css), die der Hinweis live mitbekommt: Maße ohne Innenabstand, Knöpfe mit den BeTheme-Werten */
:where(#odin-spedition-popup) { box-sizing: content-box; }
:where(#odin-spedition-popup) :where(*, *::before, *::after) { box-sizing: inherit; }
:where(#odin-spedition-popup) button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; position: relative; box-sizing: border-box;
    font-family: "Norse Bold"; font-size: 24px; font-style: inherit; letter-spacing: 0px; line-height: 1.2; padding: 20px 32px;
    border-width: 0; border-style: none; border-radius: 0; outline: unset; text-decoration: none; cursor: pointer; overflow: hidden;
}
:where(#odin-spedition-popup) img:not([src$=".svg"]) { max-width: 100%; height: auto; }
/* BeTheme-Grundschrift nach Breite (wie .odin-inhalt--voll in sorten.css) */
:where(#odin-spedition-popup) { font-size: 16px; line-height: 26px; }
@media only screen and (min-width: 768px) and (max-width: 959px) { :where(#odin-spedition-popup) { font-size: 14px; line-height: 22px; } }
@media only screen and (min-width: 480px) and (max-width: 767px) { :where(#odin-spedition-popup) { font-size: 13px; line-height: 20px; } }
@media only screen and (max-width: 479px) { :where(#odin-spedition-popup) { font-size: 13px; line-height: 19px; } }
