/* ================================================================
   OPHYR STORE – Spezifische Styles
   Abhängig von: style.css (Basis-Variablen, Navigation, Hintergrund)
   ================================================================ */

/* --- Body: Scroll-Modus für den Store --- */
body.page-scroll {
    justify-content: flex-start;
    align-items: stretch;
    overflow-y: auto;
}

/* === BACKGROUND VIDEO SYSTEM === */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2; /* Hinter der luxury-bg */
    overflow: hidden;
    pointer-events: none;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.1); /* Etwas dunkler für bessere Lesbarkeit */
}



/* --- Page Content Wrapper (nach dem Hero) --- */
.page-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-bottom: 160px;
    box-sizing: border-box;
}

/* === Hero: Store-spezifisch – kompakter, schärferer Übergang === */
body.page-scroll .hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-top: 160px;
    padding-bottom: 0;
    margin-top: 0;
    min-height: 42vh;
    text-align: center;
    box-sizing: border-box;
}

/* Paracelsus Author im Store: weiß, sichtbar */
body.page-scroll .author {
    opacity: 1;
    filter: none;
    transform: none;
    margin-bottom: 0;
}

/* Goldlinie: stärker sichtbar, mit Glow */
body.page-scroll .hero .line-container {
    position: static;
    left: auto;
    transform: none;
    width: 60vw;
    max-width: 800px;
    align-self: center;
}

body.page-scroll .hero .gold-line {
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
    opacity: 0.65 !important;
}

/* ================================================================
   STORE SECTION – Produktliste
   ================================================================ */
.store-section {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 5vw, 64px);
    width: 100%;
    max-width: 1200px;
    margin: clamp(40px, 6vw, 80px) auto 0;
    padding: 0 clamp(16px, 4vw, 48px);
    box-sizing: border-box;
}

/* ================================================================
   PRODUKT CARD – Zweispaltig (Bild | Info)
   ================================================================ */
.produkt-card {
    display: flex;
    flex-direction: row;
    border: 1px solid rgba(182, 152, 116, 0.10);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.8s ease,
                box-shadow   0.8s ease;
    position: relative;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
}

.produkt-card:hover {
    border-color: rgba(182, 152, 116, 0.28);
    box-shadow: 0 8px 64px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(182, 152, 116, 0.06);
}

/* Spiegelverkehrt: Bild rechts */
.produkt-card--reverse {
    flex-direction: row-reverse;
}

/* --- Produktbild & Produktvideo --- */
.produkt-bild-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: #0a0a0a;
    min-height: clamp(320px, 40vw, 560px); /* sichert sichtbare Höhe für Video */
}

.produkt-bild,
.produkt-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 3s cubic-bezier(0.19, 1, 0.22, 1),
                filter  3s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform, filter;
}

.produkt-card:hover .produkt-bild,
.produkt-card:hover .produkt-video {
    transform: scale(1.04);
    filter: brightness(1.07);
}

/* Dunkelrahmen über dem Bild */
.produkt-bild-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.2) 0%,
        transparent 55%);
    pointer-events: none;
}

/* --- Produkt Info (rechte/linke Seite) --- */
.produkt-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* min-height entfernt – Kachelhöhe folgt dem Inhalt (Material Design / HIG) */
    background: linear-gradient(165deg,
        rgba(42, 32, 18, 0.50) 0%,
        rgba(28, 20, 10, 0.72) 50%,
        rgba(14, 10, 4, 0.92) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: relative;
    overflow: hidden;
}

/* --- Spezifisches Layout für Kacheln mit vollflächigem Video-Hintergrund --- */
.produkt-card--video-bg {
    position: relative;
    background: #000;
    /* Mindesthöhe der Karte – sorgt dafür, dass das Hintergrundvideo sichtbar ist.
       Inhaltsproportional nach Material Design Card-Richtlinien. */
    min-height: 200px;
}

/* Das Video deckt die gesamte Karte ab */
.background-video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85; /* Leicht abgedunkelt für bessere Kontraste */
}

/* Die Info-Kachel schwebt über dem Video (rechts) */
.produkt-card--video-bg .produkt-info {
    z-index: 1;
    background: rgba(18, 12, 6, 0.38);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-left: 0.5px solid rgba(197, 164, 126, 0.08);
    position: relative;
    overflow: hidden;
}

/* Der Blur-Effekt wird über ein Pseudo-Element geregelt, damit wir ihn maskieren können */
.produkt-card--video-bg .produkt-info::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    /* Maske: Oben 100% Blur, ab 50% sanft auslaufend bis 100% Klarheit */
    mask-image: linear-gradient(to bottom, 
        black 0%, 
        black 45%, 
        transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, 
        black 0%, 
        black 45%, 
        transparent 85%);
}

@media (max-width: 768px) {
    .produkt-card--video-bg {
        flex-direction: column;
    }
    
    .produkt-card--video-bg .background-video-wrap {
        position: relative;
        height: 240px; 
    }

    .produkt-card--video-bg .produkt-info {
        background: rgba(30, 30, 30, 0.45); 
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        margin-top: 0;
    }

    /* Auf Mobile lassen wir den Blur ggf. vollflächig für bessere Lesbarkeit */
    .produkt-card--video-bg .produkt-info::before {
        mask-image: none;
        -webkit-mask-image: none;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
}

/* Goldener Micro-Glow in der Info-Spalte */
.produkt-info::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%,
        rgba(197, 164, 126, 0.08) 0%,
        transparent 60%);
    pointer-events: none;
}

/* ================================================================
   PRODUKT-NUMMER — 01 / 02 / 03
   ================================================================ */
.produkt-nummer {
    position: absolute;
    top: 36px;
    right: 52px;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    color: var(--gold-text);
    opacity: 0.36;
    font-family: 'Inter', sans-serif;
    z-index: 2;
    transition: opacity 0.6s ease;
}

.produkt-card:hover .produkt-nummer {
    opacity: 0.72;
}

/* ================================================================
   PRODUKT KOPF – Klickbarer Accordion-Header
   ================================================================ */
.produkt-kopf {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: clamp(20px, 2.5vw, 32px) clamp(24px, 4vw, 56px) clamp(14px, 1.8vw, 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    color: inherit;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    z-index: 1;
    /* 120Hz: nur opacity/background – kein Layout-Trigger */
    transition: background 0.6s ease;
    min-height: 52px; /* Touch-Target */
}

.produkt-kopf:hover {
    background: rgba(255, 255, 255, 0.018);
}

/* Kleines Label über dem Produktnamen */
.produkt-label {
    font-size: clamp(0.60rem, 0.8vw, 0.72rem);
    font-weight: 400;
    letter-spacing: 0.45em;
    color: var(--gold-text);
    text-transform: uppercase;
    opacity: 1.0;
}

/* Hauptname OPHYR 15 / 50 / 150 */
.produkt-name {
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 300;
    letter-spacing: 0.4em;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0;
}

/* Chevron: dreht sich bei Öffnen */
.produkt-chevron {
    margin-top: 6px;
    color: var(--gold-text);
    opacity: 0.65;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1),
                opacity  0.4s ease;
}

.produkt-kopf[aria-expanded="true"] .produkt-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* ================================================================
   ACCORDION – Grid-Row Trick (pixel-perfect, 120Hz ready)
   ================================================================ */
.produkt-collapse {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.88s cubic-bezier(0.19, 1, 0.22, 1);
}

.produkt-collapse.is-open {
    grid-template-rows: 1fr;
}

/* Innerer Wrapper: overflow:hidden ist Pflicht für den Grid-Trick */
.produkt-collapse-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 clamp(20px, 4vw, 56px) clamp(28px, 3.5vw, 44px);
    text-align: center;

    /* GPU-composited fade + slide — 120Hz smooth */
    opacity: 0;
    transform: translateY(22px);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: opacity  0.52s ease                          0.10s,
                transform 0.72s cubic-bezier(0.19, 1, 0.22, 1) 0.06s;
}

.produkt-collapse.is-open .produkt-collapse-inner {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   PRODUKT ACTIONS – BESTELLEN Button (immer sichtbar)
   ================================================================ */
.produkt-actions {
    margin-top: auto;
    padding: clamp(16px, 2vw, 24px) clamp(24px, 4vw, 56px) clamp(32px, 4vw, 52px);
    position: relative;
    z-index: 1;
    text-align: center;
}

/* ================================================================
   TRENNLINIE (Gold) innerhalb des Accordions
   ================================================================ */
.produkt-trennlinie {
    height: 0.5px;
    background: linear-gradient(90deg,
        rgba(182, 152, 116, 0) 0%,
        rgba(182, 152, 116, 0.38) 40%,
        rgba(182, 152, 116, 0.38) 60%,
        rgba(182, 152, 116, 0) 100%);
    margin-bottom: 32px;
}

/* ================================================================
   PRODUKT SPECS (Liste) – im Accordion
   ================================================================ */
.produkt-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
    align-items: center;
}

.produkt-specs li {
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold-text);
    opacity: 1.0;
    padding-left: 18px;
    position: relative;
}

/* Kleiner Gold-Bullet */
.produkt-specs li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gold-text);
    opacity: 0.72;
}

/* ================================================================
   PRODUKT BESCHREIBUNG – im Accordion
   ================================================================ */
.produkt-beschreibung {
    font-size: clamp(0.78rem, 1vw, 0.86rem);
    font-weight: 300;
    line-height: 2.1;
    color: rgba(255, 255, 255, 0.68);
    letter-spacing: 0.05em;
    margin: 0 0 clamp(20px, 3vw, 36px) 0;
}

/* ================================================================
   PRODUKT PREIS – wiederverwendbar (Preview + Accordion)
   ================================================================ */
.produkt-preis-bereich {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.produkt-preis {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.preis-waehrung {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--gold-text);
    opacity: 1.0;
}

.preis-betrag {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 300;
    letter-spacing: 0.03em;
    color: #ffffff;
    line-height: 1;
    background: linear-gradient(to bottom, #fde4c6 0%, #c8a47e 55%, #9c7c56 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preis-sub {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--gold-text);
    opacity: 0.59;
    text-transform: uppercase;
    align-self: center;
}



/* ================================================================
   BESTELL-BUTTON
   ================================================================ */
.bestellen-btn {
    display: inline-block;
    padding: 17px 52px;
    border: 0.5px solid rgba(182, 152, 116, 0.5);
    color: var(--gold-text);
    text-decoration: none;
    font-size: 0.64rem;
    font-weight: 400;
    letter-spacing: 0.52em;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
}

/* Glanz-Sweep beim Hover */
.bestellen-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(182, 152, 116, 0.14) 50%,
        transparent 100%);
    transition: left 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.bestellen-btn:hover::before {
    left: 100%;
}

.bestellen-btn:hover {
    border-color: rgba(182, 152, 116, 0.92);
    color: #ffffff;
    background: rgba(182, 152, 116, 0.07);
    /* Kein letter-spacing shift – verhindert Layout-Reflow auf 120Hz */
}

/* ================================================================
   MOBILE – Store Responsive  ≤ 768px
   ================================================================ */
@media (max-width: 768px) {

    body.page-scroll .hero {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        padding-top: max(90px, calc(72px + env(safe-area-inset-top, 0px)));
        padding-bottom: clamp(32px, 8vw, 52px);
        padding-left:  max(16px, env(safe-area-inset-left,  16px));
        padding-right: max(16px, env(safe-area-inset-right, 16px));
        min-height: auto;
        box-sizing: border-box;
    }

    .store-section {
        padding:
            0
            max(16px, env(safe-area-inset-right, 16px))
            0
            max(16px, env(safe-area-inset-left, 16px));
        margin-top: clamp(16px, 4vw, 28px);
        gap: clamp(16px, 4vw, 24px);
    }

    /* Karte: vertikal gestapelt */
    .produkt-card,
    .produkt-card--reverse {
        flex-direction: column;
        min-height: auto;
        border-radius: 12px;
    }

    /* Bild: fluid Höhe statt fix */
    .produkt-bild-wrap {
        flex: none;
        width: 100%;
        height: clamp(220px, 55vw, 320px);
        min-height: 0;
    }

    /* OPHYR 15: Flasche vollständig sichtbar */
    #ophyr-15 .produkt-bild-wrap {
        height: auto;
        aspect-ratio: 3 / 4;
        background-color: #0a0a0a;
    }

    #ophyr-15 .produkt-bild {
        object-fit: contain;
    }

    /* Info: kein blur auf Mobile für Performance */
    .produkt-info {
        flex: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* Nummer: Safe-Area-aware Position */
    .produkt-nummer {
        top: clamp(16px, 4vw, 24px);
        right: clamp(16px, 4vw, 28px);
    }

    /* Kopf: Touch-optimiert */
    .produkt-kopf {
        padding: clamp(18px, 4.5vw, 24px) clamp(18px, 4.5vw, 26px) clamp(12px, 3vw, 18px);
        min-height: 60px; /* WCAG Touch Target */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .produkt-name {
        font-size: clamp(1.3rem, 7.5vw, 1.8rem);
        letter-spacing: clamp(0.18em, 1.5vw, 0.28em);
    }

    .produkt-label {
        font-size: clamp(0.56rem, 2.2vw, 0.65rem);
        letter-spacing: 0.38em;
    }

    /* Accordion-Inhalt */
    .produkt-collapse-inner {
        padding:
            0
            clamp(16px, 4.5vw, 24px)
            clamp(24px, 6vw, 36px);
    }

    /* Trennlinie */
    .produkt-trennlinie {
        margin-bottom: clamp(18px, 4vw, 28px);
    }

    /* Spec-Liste */
    .produkt-specs {
        gap: clamp(8px, 2vw, 11px);
        margin-bottom: clamp(16px, 4vw, 24px);
    }

    .produkt-specs li {
        font-size: clamp(0.56rem, 2.2vw, 0.64rem);
        letter-spacing: 0.18em;
        text-align: center;
    }

    /* Beschreibung */
    .produkt-beschreibung {
        font-size: clamp(0.76rem, 3vw, 0.84rem);
        line-height: 1.95;
        margin-bottom: clamp(18px, 4vw, 28px);
    }

    /* Preis */
    .produkt-preis-bereich {
        justify-content: center;
        gap: clamp(10px, 3vw, 16px);
        margin-bottom: clamp(18px, 4vw, 28px);
    }

    .preis-betrag {
        font-size: clamp(1.8rem, 9vw, 2.2rem);
    }

    .preis-sub {
        font-size: clamp(0.50rem, 2vw, 0.60rem);
        letter-spacing: 0.14em;
        text-align: center;
        align-self: center;
    }

    /* Actions: kompakt */
    .produkt-actions {
        padding:
            clamp(12px, 3vw, 18px)
            clamp(16px, 4vw, 24px)
            clamp(28px, 7vw, 44px);
    }

    /* Bestell-Button: volle Breite, tappbar */
    .bestellen-btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: clamp(16px, 4.5vw, 20px) clamp(16px, 4vw, 24px);
        box-sizing: border-box;
        min-height: 56px; /* WCAG Touch Target */
        letter-spacing: 0.44em;
        font-size: clamp(0.58rem, 2.2vw, 0.64rem);
        /* 120Hz: nur opacity/color – kein Layout-Trigger */
        transition:
            border-color 0.5s ease,
            color        0.5s ease,
            background   0.5s ease,
            opacity      0.5s ease;
    }

    .bestellen-btn:hover {
        letter-spacing: 0.44em; /* Kein Shift auf Mobile */
    }
}

/* ================================================================
   TINY SCREENS – iPhone SE / 375px / 390px
   ================================================================ */
@media (max-width: 430px) {

    .produkt-bild-wrap {
        height: clamp(190px, 52vw, 240px);
    }

    #ophyr-15 .produkt-bild-wrap {
        aspect-ratio: 4 / 5;
    }

    .produkt-name {
        font-size: clamp(1.15rem, 8vw, 1.4rem);
        letter-spacing: 0.16em;
    }

    .produkt-label {
        font-size: clamp(0.50rem, 2.5vw, 0.60rem);
        letter-spacing: 0.3em;
    }

    .produkt-collapse-inner {
        padding: 0 clamp(14px, 4vw, 20px) clamp(20px, 5vw, 28px);
    }

    .produkt-specs li {
        font-size: clamp(0.52rem, 2.5vw, 0.60rem);
        letter-spacing: 0.14em;
    }

    .produkt-beschreibung {
        font-size: clamp(0.72rem, 3.2vw, 0.80rem);
    }

    .preis-betrag {
        font-size: clamp(1.6rem, 10vw, 2.0rem);
    }

    .bestellen-btn {
        min-height: 52px;
        padding: clamp(14px, 4vw, 18px) 16px;
        font-size: clamp(0.54rem, 2.5vw, 0.62rem);
        letter-spacing: 0.36em;
    }
}
