/* =====================================================
   TABBY - Premium Product Landing Page
   MOBILE FIRST APPROACH
   ===================================================== */

:root {
    --stripe: 30px;
    --red: #e11d2e;
    --red-light: #ff4757;
    --red-dark: #b01625;
    --cream: #fef7f0;
    --chocolate: #4a2c2a;
    --ink: #0f1115;
    --muted: #6b7280;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.18);
    --shadow-red: 0 20px 50px rgba(225, 29, 46, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =====================================================
   ANIMATED BACKGROUND STRIPES
   ===================================================== */
.background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.stripes-base,
.stripes-red {
    position: absolute;
    inset: 0;
}

.stripes-base {
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.stripes-red {
    transform: scaleY(0);
}

.stripes-red-top {
    transform-origin: top center;
    background: repeating-linear-gradient(
        90deg,
        transparent 0 var(--stripe),
        var(--red) var(--stripe) calc(var(--stripe) * 2),
        transparent calc(var(--stripe) * 2) calc(var(--stripe) * 4)
    );
    opacity: 0.12;
}

.stripes-red-bottom {
    transform-origin: bottom center;
    background: repeating-linear-gradient(
        90deg,
        transparent 0 calc(var(--stripe) * 3),
        var(--red) calc(var(--stripe) * 3) calc(var(--stripe) * 4)
    );
    opacity: 0.08;
}

body.is-animated .stripes-red-top {
    animation: stripeDown 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.is-animated .stripes-red-bottom {
    animation: stripeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

/* =====================================================
   FLOATING DECORATIONS
   ===================================================== */
.floaters {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floater {
    position: absolute;
    opacity: 0;
}

.floater-splash {
    width: 140px;
    bottom: -2%;
    left: -3%;
    transform: rotate(15deg) scale(0.8);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

body.is-animated .floater-splash {
    animation: floatIn 1.2s ease 1.8s forwards;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.main-content {
    position: relative;
    z-index: 2;
}

/* =====================================================
   HERO SECTION - MOBILE FIRST
   ===================================================== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 5rem 1.25rem 3rem;
}

/* Hero Visual - Mobile */
.hero-visual {
    order: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
}

body.is-animated .hero-visual {
    animation: heroVisualIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.hero-image-container {
    width: 100%;
    max-width: 320px;
}

.hero-main-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.25));
    transform: scale(0.9);
    opacity: 0;
}

body.is-animated .hero-main-image {
    animation: imageReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

/* Hero Content - Mobile */
.hero-content {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

body.is-animated .hero-content {
    animation: contentIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.distributor {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 1rem;
}

.distributor-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.distributor-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ink);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--red);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-red);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.title-line {
    display: block;
}

.title-accent {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.55em;
}

.title-big {
    color: var(--red);
    font-size: 1.1em;
}

.hero-lead {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

/* Features - Mobile */
.features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--glass);
    padding: 0.65rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
}

.feature-icon {
    font-size: 1.2em;
}

/* CTA Group - Mobile */
.cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 100%);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 100px;
    box-shadow: var(--shadow-red);
}

.btn-primary:hover,
.btn-primary:active {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 28px 60px rgba(225, 29, 46, 0.4);
}

.btn-small {
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.cta-hint {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}

.cta-hint strong {
    color: var(--red);
    font-weight: 700;
}

/* =====================================================
   SHOWCASE SECTION - MOBILE FIRST
   ===================================================== */
.showcase {
    padding: 3rem 1.25rem;
}

.showcase-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--muted);
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    background: var(--glass);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:active {
    transform: scale(0.98);
}

.gallery-item img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.18));
}

.gallery-main {
    min-height: 300px;
}

.gallery-main img {
    max-height: 280px;
}

.gallery-label {
    position: absolute;
    bottom: 0.85rem;
    left: 0.85rem;
    background: var(--ink);
    color: var(--white);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* =====================================================
   NUTRITION SECTION - MOBILE FIRST
   ===================================================== */
.nutrition-section {
    padding: 2rem 1.25rem 3rem;
    display: flex;
    justify-content: center;
}

.nutrition-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
    max-width: 500px;
    width: 100%;
}

.nutrition-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.nutrition-badge {
    background: var(--cream);
    color: var(--chocolate);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nutrition-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.nutrition-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.5rem;
    background: var(--cream);
    border-radius: 12px;
}

.nutrition-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
}

.nutrition-unit {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--red);
    margin-top: 0.15rem;
}

.nutrition-label {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.4rem;
    font-weight: 500;
}

/* =====================================================
   VIDEO SECTION - MOBILE FIRST
   ===================================================== */
.video-section {
    padding: 3rem 1.25rem 4rem;
}

.video-header {
    text-align: center;
    margin-bottom: 2rem;
}

.video-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.video-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.video-wrapper {
    width: 100%;
    max-width: 280px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--ink);
}

.product-video {
    width: 100%;
    display: block;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    background: var(--ink);
}

.video-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
}

.video-cta {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.video-cta p {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 500;
}

/* =====================================================
   FOOTER - MOBILE FIRST
   ===================================================== */
.footer {
    position: relative;
    z-index: 2;
    background: var(--ink);
    color: var(--white);
    padding: 2.5rem 1.25rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--red);
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-link:hover,
.footer-link:active {
    color: var(--red);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* =====================================================
   MODAL - MOBILE FIRST
   ===================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 17, 21, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: var(--white);
    margin: 3vh auto;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    max-width: 92%;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 0.85rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover,
.modal-close:active {
    background: rgba(225, 29, 46, 0.1);
    color: var(--red);
}

.modal-content h2 {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--red);
    margin-bottom: 1.25rem;
}

.impressum-content {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--ink);
}

.impressum-content p {
    margin-bottom: 0.85rem;
}

.impressum-content strong {
    color: var(--red);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes stripeDown {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

@keyframes stripeUp {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

@keyframes heroVisualIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes imageReveal {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }
    60% {
        opacity: 1;
        transform: scale(1.03);
    }
    80% {
        transform: scale(0.97);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes contentIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: rotate(15deg) scale(0.8);
    }
    to {
        opacity: 0.6;
        transform: rotate(8deg) scale(1);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =====================================================
   TABLET BREAKPOINT (600px+)
   ===================================================== */
@media (min-width: 600px) {
    .hero {
        padding: 6rem 2rem 4rem;
        gap: 2.5rem;
    }
    
    .hero-image-container {
        max-width: 400px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-lead {
        font-size: 1.1rem;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .feature {
        flex: 0 0 auto;
    }
    
    .cta-group {
        align-items: center;
    }
    
    .btn-primary {
        width: auto;
        padding: 1rem 2.2rem;
    }
    
    .showcase,
    .video-section {
        padding: 4rem 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .gallery-item:first-child {
        grid-column: span 2;
    }
    
    .gallery-item:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
    }
    
    .gallery-item:hover img {
        transform: scale(1.05);
    }
    
    .gallery-item img {
        transition: transform 0.4s ease;
    }
    
    .video-wrapper {
        border-radius: 24px;
    }
    
    .video-grid {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
    
    .video-wrapper {
        max-width: 260px;
    }
    
    .nutrition-section {
        padding: 3rem 2rem;
    }
    
    .nutrition-card {
        padding: 2rem;
    }
    
    .nutrition-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .floater-splash {
        width: 200px;
        bottom: -4%;
        left: -5%;
    }
    
    .footer {
        padding: 3rem 2rem;
    }
    
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .modal-content {
        max-width: 560px;
        padding: 2.5rem;
        margin: 5vh auto;
    }
}

/* =====================================================
   DESKTOP BREAKPOINT (1024px+)
   ===================================================== */
@media (min-width: 1024px) {
    .hero {
        display: grid;
        grid-template-columns: 1fr 1.1fr;
        gap: 4rem;
        align-items: center;
        min-height: 100vh;
        padding: 4rem 4rem;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .hero-visual {
        order: 0;
    }
    
    .hero-image-container {
        max-width: 550px;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-lead {
        font-size: 1.25rem;
        max-width: 500px;
        margin-left: 0;
        padding: 0;
    }
    
    .features {
        justify-content: flex-start;
    }
    
    .cta-group {
        align-items: flex-start;
    }
    
    .btn-primary {
        font-size: 1.1rem;
        padding: 1.1rem 2.5rem;
    }
    
    .cta-hint {
        text-align: left;
    }
    
    .showcase,
    .video-section {
        padding: 5rem 4rem;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .nutrition-section {
        padding: 3rem 4rem;
    }
    
    .nutrition-card {
        max-width: 600px;
    }
    
    .nutrition-value {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .product-gallery {
        grid-template-columns: 1.2fr 1fr 1fr;
    }
    
    .gallery-item:first-child {
        grid-column: auto;
    }
    
    .gallery-main {
        min-height: 380px;
    }
    
    .gallery-main img {
        max-height: 360px;
    }
    
    .gallery-item img {
        max-height: 300px;
    }
    
    .gallery-item {
        padding: 2rem;
        border-radius: 24px;
        min-height: 320px;
    }
    
    .video-section {
        padding-bottom: 6rem;
    }
    
    .video-grid {
        gap: 3rem;
    }
    
    .video-wrapper {
        max-width: 320px;
    }
    
    .floater-splash {
        width: clamp(250px, 25vw, 380px);
        bottom: -12%;
        left: -8%;
    }
    
    .footer {
        padding: 3.5rem 4rem;
    }
    
    .footer-inner {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .footer-logo {
        font-size: 1.8rem;
    }
}

/* =====================================================
   LARGE DESKTOP (1400px+)
   ===================================================== */
@media (min-width: 1400px) {
    .hero-title {
        font-size: 4.2rem;
    }
    
    .hero-image-container {
        max-width: 600px;
    }
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-visual,
    .hero-content,
    .hero-main-image,
    .floater {
        opacity: 1;
        transform: none;
    }
    
    .stripes-red {
        transform: scaleY(1);
    }
}
