/* ====================================================================
   ALLGÄU WAGYU SHOP - STYLES
   ==================================================================== */

/* ====================================================================
   VERBESSERTE HERO SECTION - MOBILE-OPTIMIERT
   ==================================================================== */

/* Hero Container - Optimierte Höhen */
.hero-video-section {
    position: relative;
    /* KORRIGIERT: Nutzt dynamische Viewport-Höhe für bessere mobile Darstellung */
    height: 100dvh; 
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: white;
}

/* Video Background */
.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover;
    pointer-events: none; /* Verhindert Klicks auf das Video */
}

/* Versteckt die Video-Steuerelemente (Play-Button, Leiste etc.) in Webkit-Browsern wie Chrome & Safari */
.hero-bg-video::-webkit-media-controls {
    display: none !important;
}

/* Verstärkter Video Overlay für besseren Kontrast */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: -1;
}

/* Gezieltes Ausblenden des nativen Play-Buttons in WebKit-Browsern (Safari) */
.hero-bg-video::-webkit-media-controls-play-button,
.hero-bg-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none !important;
}




/* ====================================================================
   HERO CONTENT - VERBESSERTE LESBARKEIT
   ==================================================================== */

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
}

/* Hero Title - Verstärkte Sichtbarkeit */
.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.2rem;
    color: #ffffff;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.9);
    animation: fadeInUp 1.5s ease-out;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.title-main {
    display: block;
}

.title-sub {
    display: block;
    font-size: 0.75em;
    color: #f8f9fa;
    margin-top: 0.3rem;
    font-weight: 700;
}

/* Hero Subtitle - Verbesserte Lesbarkeit */
.hero-subtitle {
    font-size: clamp(0.9rem, 2.2vw, 1.4rem);
    margin-bottom: 1.8rem;
    animation: fadeInUp 1.5s ease-out 0.3s both;
    line-height: 1.5;
    max-width: 600px;
    color: #f8f9fa;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Hero Features - Verbesserte Sichtbarkeit */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.5s ease-out 0.6s both;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: clamp(0.75rem, 1.8vw, 0.95rem);
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.feature-badge i {
    color: #28a745;
    font-size: 1.1em;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.8));
}

/* Hero CTA Button - Verstärkt */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    padding: 1.1rem 2.2rem;
    border-radius: 50px;
    font-size: clamp(1rem, 2.3vw, 1.2rem);
    font-weight: 800;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.4);
    animation: fadeInUp 1.5s ease-out 0.9s both;
    min-height: 52px;
    min-width: 200px;
    justify-content: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.5);
    color: white;
    background: linear-gradient(135deg, #20c997, #28a745);
}

/* ====================================================================
   OVERLAY ELEMENTS - MOBILE-OPTIMIERT
   ==================================================================== */

/* Quality Badge - Deutlich sichtbarer */
.quality-badge {
    position: absolute;
    top: 75px;
    left: 20px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.8rem 1.4rem;
    border-radius: 25px;
    font-weight: 800;
    font-size: clamp(0.75rem, 1.8vw, 0.95rem);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    z-index: 5;
    animation: fadeInDown 1.5s ease-out 1.2s both;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.quality-badge i {
    font-size: 1.2em;
    color: #f39c12;
}

.badge-text {
    display: inline;
    font-weight: 800;
}

/* Logo Stempel - Deutlich sichtbarer */
.logo-stamp-img {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 6;
    width: clamp(160px, 28vw, 400px);
    height: clamp(160px, 28vw, 400px);
    object-fit: contain;
    opacity: 0.95;
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.5));
}

/* Video Controls - Verbessert */
.video-controls {
    position: absolute;
    bottom: 25px;
    right: 25px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.video-control-btn {
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.video-control-btn:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Scroll Indicator - Verstärkt */
.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
    z-index: 5;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.scroll-indicator i {
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    display: block;
    margin-bottom: 0.4rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.8));
}

.scroll-text {
    font-size: clamp(0.7rem, 1.8vw, 0.9rem);
    white-space: nowrap;
    font-weight: 600;
}

/* ====================================================================
   MOBILE RESPONSIVE BREAKPOINTS - OPTIMIERT
   ==================================================================== */

/* Tablet Landscape */
@media (max-width: 1024px) {
    .hero-video-section {
        height: 100dvh;
        min-height: 550px;
    }
    
    .hero-video-overlay {
        background: linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.3) 100%
        );
    }
    
    .logo-stamp-img {
        top: 50px;
        right: 15px;
    }
    
    .quality-badge {
        top: 50px;
        left: 15px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .hero-video-section {
        height: 100dvh;
        min-height: 520px;
    }
    
    .hero-video-overlay {
        background: linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.3) 100%
        );
    }
    
    .hero-content {
        padding: 0 1.2rem;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .feature-badge {
        padding: 0.5rem 1rem;
    }
    
    .hero-cta {
        padding: 1rem 1.8rem;
        min-width: 180px;
    }
    
    .logo-stamp-img {
        top: 70px;
        right: 12px;
        width: clamp(140px, 22vw, 220px);
        height: clamp(140px, 22vw, 220px);
    }
    
    .quality-badge {
        top: 70px;
        left: 12px;
        padding: 0.7rem 1.2rem;
    }
    
    .video-controls {
        bottom: 18px;
        right: 18px;
    }
    
    .video-control-btn {
        width: 44px;
        height: 44px;
        padding: 10px;
    }
}

/* Mobile - iPhone Optimiert */
@media (max-width: 576px) {
    .hero-video-section {
        height: 100dvh;
        min-height: 480px;
    }
    
    .hero-video-overlay {
        background: linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.3) 100%
        );
    }
    
    .hero-content {
        text-align: left;
        padding: 0 1rem;
    }
    
    .hero-title {
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1.8rem;
    }
    
    .feature-badge {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
        min-width: 200px;
        justify-content: center;
    }
    
    .hero-cta {
        padding: 0.9rem 1.6rem;
        font-size: 1rem;
        min-width: 170px;
    }
    
    .logo-stamp-img {
        top: 40px;
        left: 50%; /* Positioniert den linken Rand des Bildes in der Mitte */
        transform: translateX(-50%);
        width: clamp(180px, 30vw, 180px); /* Korrigierte Clamp-Funktion */
        height: clamp(180px, 30vw, 180px);
    }
    
    .quality-badge {
        top: 80px;
        left: 8px;
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }
    
    .badge-text {
        display: inline;
    }
    
    .scroll-indicator {
        bottom: 18px;
    }
}

/* Extra Small Mobile - iPhone SE etc. */
@media (max-width: 400px) {
    .hero-video-section {
        height: 100dvh;
        min-height: 450px;
    }
    
    .hero-video-overlay {
        background: linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.3) 100%
        );
    }
    
    .hero-features {
        margin-bottom: 1.5rem;
    }
    
    .feature-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
        min-width: 180px;
    }
    
    .hero-cta {
        padding: 0.8rem 1.4rem;
        min-width: 150px;
        font-size: 0.95rem;
    }
    
    .logo-stamp-img {
        top: 40px;
        left: 50%; /* Positioniert den linken Rand des Bildes in der Mitte */
        transform: translateX(-50%);
        width: clamp(180px, 30vw, 180px); /* Korrigierte Clamp-Funktion */
        height: clamp(180px, 30vw, 180px);
    }
    
    .quality-badge {
        padding: 0.5rem 0.8rem;
        top: 85px;
        left: 5px;
    }
    
    .badge-text {
        display: none;
    }
}

/* ====================================================================
   ANIMATIONS - VERSTÄRKT
   ==================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-12px);
    }
    60% {
        transform: translateX(-50%) translateY(-6px);
    }
}

/* ====================================================================
   ACCESSIBILITY & PERFORMANCE
   ==================================================================== */

/* Reduzierte Animationen für Performance */
@media (prefers-reduced-motion: reduce) {
    .hero-title,
    .hero-subtitle,
    .hero-features,
    .hero-cta,
    .quality-badge {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .video-control-btn:hover,
    .hero-cta:hover,
    .feature-badge:hover {
        transform: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero-video-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .feature-badge {
        background: rgba(255, 255, 255, 0.95);
        color: #000;
        border-color: #000;
    }
    
    .quality-badge {
        background: #ffff00;
        color: #000;
        border-color: #000;
    }
    
    .hero-title,
    .hero-subtitle {
        text-shadow: 4px 4px 8px rgba(0,0,0,1);
    }
}

/* ====================================================================
   NAVIGATION ANPASSUNG FÜR VIDEO
   ==================================================================== */

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    /* HINZUGEFÜGT: Berücksichtigt den sicheren Bereich oben (z.B. für iPhone Notch) */
    padding-top: env(safe-area-inset-top);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* ====================================================================
   PRODUCT CARDS
   ==================================================================== */

.product-card {
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ====================================================================
   CART STYLES
   ==================================================================== */

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}


/* ====================================================================
   NEUES PREMIUM-DESIGN FÜR STANDARDPAKETE (Dunkelgrau-Variante mit Goldrahmen)
   ==================================================================== */

.package-highlight {
    background-color: #f1f3f5; /* Fallback-Farbe */
    /* HIER: Dunklerer Grauverlauf */
    background: linear-gradient(145deg, #f1f3f5, #dee2e6); 
    /* HIER: Permanenter goldener Rahmen */
    border: 2px solid #d4af37;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    transition: all 0.3s ease-in-out;
}

/* Hover-Effekt für die gesamte Karte */
.package-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    /* HIER: Rahmenfarbe ändert sich nicht mehr, da sie permanent ist */
}

/* Anpassung der Schriftfarben für die helle Karte */
.package-highlight .card-title {
    color: #212529; /* Titel in Schwarz für besten Kontrast */
}

.package-highlight .text-muted {
    color: #6c757d !important;
}

.package-highlight .h5 {
    color: #212529; /* Preis in Schwarz für klaren Fokus */
}

/* Anpassung der Produktauflistung im Paket */
.package-highlight .row.g-2 .small {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 5px;
}

/* ==================================================================== */

.product-type-toggle {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #dee2e6;
}

.quantity-input {
    width: 80px;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1050;
    overflow-y: auto;
}

.cart-sidebar.show {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ====================================================================
   FOOTER STYLES
   ==================================================================== */

.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
}

.footer-wave {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3e%3cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff'%3e%3c/path%3e%3c/svg%3e") no-repeat;
    background-size: cover;
}

.footer-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0 2rem;
}

.footer-section h5 {
    color: #2ecc71;
    font-weight: bold;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    border-radius: 1px;
}

.footer-link {
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.3rem 0;
    position: relative;
}

.footer-link:hover {
    color: #2ecc71;
    transform: translateX(5px);
}

.footer-link:hover::before {
    content: '→';
    position: absolute;
    left: -20px;
    color: #2ecc71;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.contact-item i {
    width: 20px;
    color: #2ecc71;
    margin-right: 1rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid rgba(46, 204, 113, 0.3);
    border-radius: 50%;
    color: #2ecc71;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: #2ecc71;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.newsletter-form {
    margin-top: 1rem;
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    width: 100%;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.25);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
    background: linear-gradient(135deg, #27ae60, #229954);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2ecc71;
    text-decoration: none;
}

.footer-legal {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #2ecc71;
}

.quality-badges {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.quality-badge-footer {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #ecf0f1;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.quality-badge-footer i {
    color: #f39c12;
    margin-right: 0.5rem;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    backdrop-filter: blur(10px);
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

/* ====================================================================
   PRODUKTTYP-BUTTONS UND PRODUKTBILDER
   ==================================================================== */

/* Eigener Stil für Produkttyp-Buttons in den Kacheln */
.type-btn i {
    margin-right: 0.4rem;
}

.type-btn.active {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

/* Stile für Produktbilder in den Kacheln */
.product-image-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: .25rem;
    background-color: #f8f9fa;
}

.product-image-container .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Paket-Karten Bilder */
.package-highlight .product-image-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: .25rem .25rem 0 0;
    background-color: #f8f9fa;
}

.package-highlight .product-image-container .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Paket-Karten Bilder */
.package-image-container {
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-radius: .25rem .25rem 0 0;
    background-color: #f8f9fa;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Container für das Produktbild mit einem festen Seitenverhältnis von 4:3 */
.product-image-container-responsive {
    aspect-ratio: 4 / 3; /* Sorgt für ein konsistentes 4:3 Verhältnis */
    overflow: hidden;    /* Versteckt Teile des Bildes, die überlappen */
    position: relative;
}

/* Bild so anpassen, dass es den Container komplett ausfüllt */
.product-image-cover {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Wichtigste Eigenschaft: Skaliert das Bild, um den Platz zu füllen. Kann Ränder abschneiden. */
    position: center;
}

/* ====================================================================
   SPEZIELLER FOOTER-LINK
   ==================================================================== */

/* Spezieller Footer-Link für "Über uns" */
.footer-link-special {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(39, 174, 96, 0.1));
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: 2px solid rgba(46, 204, 113, 0.3);
    display: inline-flex;
    align-items: center;
    margin: 1rem 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.footer-link-special::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.footer-link-special:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
    border-color: #2ecc71;
}

.footer-link-special:hover::before {
    left: 100%;
}

.footer-link-special:hover::after {
    content: '→';
    position: absolute;
    right: 15px;
    color: white;
    font-weight: bold;
}

.footer-link-special i {
    transition: transform 0.3s ease;
}

.footer-link-special:hover i {
    transform: scale(1.2);
    color: #ffed4e;
}

/* Pulsing Animation für mehr Aufmerksamkeit */
.footer-link-special {
    animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(46, 204, 113, 0.1);
    }
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .footer-link-special {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Navbar buttons */

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;        
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.account-dropdown {
    position: relative;
    display: inline-block;
}

.account-dropdown .dropdown-menu {
    min-width: 200px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Package Image Cover - erzwingt vollständige Füllung */
.package-image-cover {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* Mobile Anpassungen für Package Container */
@media (max-width: 576px) {
    .package-image-container {
        height: 180px !important;
    }
    
    .package-highlight .card-body {
        padding: 1rem !important;
    }
    
    .package-highlight .btn-group .btn {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.6rem !important;
    }
}

/* --- STYLES FÜR MOBILEN HERO-BEREICH --- */

/* Bild standardmäßig auf Desktop ausblenden */
.hero-bg-image {
    display: none;
    /* Stellt sicher, dass das Bild den Bereich füllt, genau wie das Video */
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2; /* Hinter dem Overlay, aber sichtbar */
}

/* Media Query für Smartphones (z.B. alles unter 768px Breite) */
@media (max-width: 768px) {
    
    /* Video auf Mobile komplett ausblenden */
    .hero-bg-video {
        display: none;
    }

    /* Dafür das Standbild einblenden */
    .hero-bg-image {
        display: block;
    }

    /* Video-Steuerbuttons auf Mobile ausblenden, da sie nutzlos sind */
    .video-controls {
        display: none;
    }
}

/* ====================================================================
   NEUES DESIGN FÜR PRODUKTTYP-BUTTONS
   ==================================================================== */

/* Allgemeines Styling für die Button-Gruppe */
.product-type-selector .btn-group {
    border-radius: 0.375rem; /* Abgerundete Ecken für die gesamte Gruppe */
    overflow: hidden;      /* Stellt sicher, dass die Ecken der Buttons die Gruppen-Ecken nicht überlappen */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Grundzustand aller Buttons (inaktiv) */
.product-type-selector .type-btn {
    background-color: #ffffff; /* Weißer Hintergrund */
    border: 1px solid #dee2e6;  /* Dünner, heller Rahmen */
    color: #495057;             /* Dunkelgraue Schrift */
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

/* Hover-Effekt für inaktive Buttons */
.product-type-selector .type-btn:not(.active):hover {
    background-color: #f8f9fa; /* Sehr helles Grau beim Hovern */
    border-color: #adb5bd;
    transform: translateY(-1px); /* Leichter Schwebe-Effekt */
}

/* Aktiver Zustand des Buttons */
.product-type-selector .type-btn.active {
    background-color: #212529; /* Schwarz als Hintergrund */
    border-color: #212529;     /* Schwarzer Rahmen */
    color: #ffffff;            /* Weiße Schrift */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transform: translateY(-2px); /* Stärkerer Schwebe-Effekt für den aktiven Button */
    z-index: 2; /* Stellt sicher, dass der aktive Button über den anderen liegt */
}

/* Kein Hover-Effekt für den bereits aktiven Button */
.product-type-selector .type-btn.active:hover {
    background-color: #343a40; /* Etwas helleres Schwarz beim Hovern auf dem aktiven Button */
    border-color: #343a40;
}


/* ====================================================================
   MOBILES NAVIGATIONSMENÜ
   ==================================================================== */

.mobile-nav {
    position: fixed;
    top: 0;
    left: -320px; /* Startet außerhalb des Bildschirms */
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 5px 0 15px rgba(0,0,0,0.2);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1100;
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0s 0.4s;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.mobile-nav-content {
    padding: 1rem;
    overflow-y: auto;
    flex-grow: 1;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #343a40;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: background-color 0.2s, color 0.2s;
}

.mobile-nav-link:hover {
    background-color: #f8f9fa;
    color: #d4af37; /* Geändert von Blau zu Gold */
}

.mobile-nav-heading {
    display: block;
    padding: 1rem 1rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
}

.btn-premium-outline {
    color: #d4af37; /* Goldene Schrift */
    border-color: #d4af37; /* Goldener Rand */
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-premium-outline:hover {
    background-color: #d4af37; /* Goldener Hintergrund bei Hover */
    color: #ffffff; /* Weiße Schrift bei Hover */
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

/* static/css/shop.css */

/* --- STYLES FÜR VISUELLE KATEGORIE-NAVIGATION --- */
.category-card {
    min-height: 250px;
    border-radius: 15px;
    overflow: hidden;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.category-card .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Stellt sicher, dass das Bild die Kachel füllt */
    transition: transform 0.3s ease;
}

.category-card:hover .card-img {
    transform: scale(1.1);
}

.category-card .card-img-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    border-radius: 15px;
    justify-content: flex-start; /* Titel unten links */
    padding: 1.5rem;
}

.category-card .card-title {
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Spezial-Styling für "Alle anzeigen" */
.category-card[data-filter="alle"] {
    background-color: #f8f9fa; /* Heller Hintergrund */
}
.category-card[data-filter="alle"] .card-title {
    color: #343a40; /* Dunkler Text */
    text-shadow: none;
}
.category-card[data-filter="alle"]:hover {
    background-color: #e9ecef;
}

/* Aktiv-Zustand für geklickte Kategorie */
.category-card.active {
    border: 4px solid #c0392b; /* Roter Rahmen für aktive Kategorie */
    box-shadow: 0 10px 30px rgba(192, 57, 43, 0.3);
}

/* --- STYLES FÜR EIN- UND AUSBLENDEN DER PRODUKTE --- */

/* Versteckt die Produktkarten initial und bereitet die Animation vor */
.product-item-wrapper {
    display: none; /* Standardmäßig versteckt */
    animation: fadeIn 0.5s ease-out;
}

/* Definiert die Einblend-Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ZUSÄTZLICHE OPTIMIERUNGEN FÜR MOBILGERÄTE --- */
@media (max-width: 768px) {
    /* Kleinere Schrift für die Kategorie-Titel auf dem Handy */
    .category-card .card-title {
        font-size: 1rem; /* Schriftgröße reduzieren */
        margin-bottom: -5px; /* Titel etwas nach unten rücken */
    }

    /* Weniger Höhe für die Kategorie-Karten, damit mehr reinpasst */
    .category-card {
        min-height: 160px;
    }

    /* Den grauen Beschreibungstext in den Produktkarten kleiner machen */
    .product-card .card-text.text-muted {
        font-size: 0.8rem;   /* Schriftgröße der Beschreibung reduzieren */
        margin-bottom: 0.5rem !important; /* Abstand verringern */
    }
}

/* --- Individuelle Farbe für "In den Warenkorb" Buttons --- */

/* Ziel: Beide Button-Typen (für Pakete und Einzelstücke) ansprechen */
.add-package-to-cart-btn,
.add-to-cart-btn {
    background-color: #a43434; /* Ein sattes, dunkles Fleischrot */
    border-color: #a43434;
    color: #ffffff; /* Weiße Schrift für besten Kontrast */
    transition: background-color 0.2s ease-in-out; /* Weicher Übergang */
}

/* Hover-Effekt: Der Button wird beim Überfahren leicht dunkler */
.add-package-to-cart-btn:hover,
.add-to-cart-btn:hover {
    background-color: #8b2525; /* Ein noch dunklerer Rotton */
    border-color: #8b2525;
    color: #ffffff;
}

/* --- Anpassung der Footer-Akzentfarbe auf Premium-Gold --- */

/* Überschriften im Footer (z.B. "Shop", "Service") */
.footer-section h5 {
    color: #d4af37; /* Gold */
}

/* Unterstrich unter den Überschriften */
.footer-section h5::after {
    background: #d4af37; /* Gold */
}

/* Icons neben den Kontaktdaten (Telefon, E-Mail, etc.) */
.contact-item i {
    color: #d4af37; /* Gold */
}

/* Hover-Effekt für normale Links im Footer */
.footer-link:hover,
.footer-link:hover::before {
    color: #d4af37; /* Gold */
}

/* Spezial-Link ("Mehr über uns") */
.footer-link-special {
    background: rgba(212, 175, 55, 0.1); /* Gold, transparent */
    border-color: rgba(212, 175, 55, 0.3);
}

.footer-link-special:hover {
    background: #d4af37; /* Gold */
    border-color: #d4af37;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    color: #1a1a1a !important; /* Dunkle Schrift für besseren Kontrast */
}

/* Social Media Icons */
.social-link {
    color: #d4af37;
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.1);
}

.social-link:hover {
    background: #d4af37;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    color: #ffffff; /* Weiße Schrift für guten Kontrast */
}

/* Scroll-to-Top Button */
.scroll-to-top {
    background: #d4af37;
}

.scroll-to-top:hover {
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* --- Anpassung weiterer Footer-Elemente auf Premium-Gold --- */

/* "Mehr über uns" Link */
.footer-link-special {
    background: rgba(212, 175, 55, 0.1); /* Gold, leicht transparent */
    border-color: rgba(212, 175, 55, 0.3);
    color: #ecf0f1; /* Helle Schrift im Normalzustand */
}

.footer-link-special:hover {
    background: #d4af37; /* Goldener Hintergrund bei Hover */
    border-color: #d4af37;
    color: #1a1a1a !important; /* WICHTIG: Dunkle Schrift für besten Kontrast */
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Newsletter Button */
.newsletter-btn {
    background: #d4af37; /* Gold */
    border: none;
    color: #1a1a1a; /* Dunkle Schrift für besten Kontrast */
    font-weight: 600;
}

.newsletter-btn:hover {
    background: #c7a232; /* Etwas dunkleres Gold bei Hover */
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* --- Anpassung des Pulsierens auf Weiß --- */

@keyframes gentle-pulse {
    0%, 100% {
        /* Start- und Endzustand: Ein kaum sichtbarer weißer Schein */
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        /* Höhepunkt der Animation: Ein größerer, aber fast transparenter weißer Ring */
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

/* --- Anpassung des Newsletter-Buttons an den "Mehr über uns"-Stil (ohne Pulsieren) --- */

.newsletter-btn {
    /* Grundstil (dezent, durchsichtig) */
    background: rgba(212, 175, 55, 0.1); /* Gold, leicht transparent */
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: #ecf0f1; /* Helle Schrift */
    
    /* Beibehaltung der Button-Eigenschaften */
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    /* Hover-Stil (kräftig, golden) */
    background: #d4af37;
    border-color: #d4af37;
    color: #1a1a1a; /* Dunkle Schrift für besten Kontrast */
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

/* --- Anpassung des Hero-Buttons auf Fleischrot --- */

.hero-cta {
    /* Ersetzt den grünen Farbverlauf durch einen satten Rot-Verlauf */
    background: linear-gradient(135deg, #a43434, #8b2525);
    /* Passt den Schatten an die neue Farbe an */
    box-shadow: 0 10px 30px rgba(164, 52, 52, 0.4);
}

.hero-cta:hover {
    /* Kehrt den Farbverlauf für einen dynamischen Effekt um */
    background: linear-gradient(135deg, #8b2525, #a43434);
    /* Verstärkt den Schatten beim Hover */
    box-shadow: 0 15px 40px rgba(164, 52, 52, 0.5);
}

/* --- Anpassung für permanenten Bild-Hintergrund in der Hero Section --- */

/* Sorgt dafür, dass das Bild immer sichtbar ist */
.hero-bg-image {
    display: block; /* Stellt von 'none' auf 'block' um */
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
}

/* Versteckt das Video permanent */
.hero-bg-video {
    display: none;
}

/* Versteckt die Video-Steuerung permanent */
.video-controls {
    display: none;
}

/* Mobile Navigation Fixes */
.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Kategorien Sektion sichtbar machen wenn angesprochen */
#edelstuecke:target {
    display: block !important;
}

/* Smooth scrolling für alle Anchor-Links */
html {
    scroll-behavior: smooth;
}

/* ===================================
   NEUE STYLES FÜR VERFÜGBARKEIT IN BUTTONS
   Füge diese Styles in deine CSS-Datei ein
   =================================== */

/* Verfügbarkeitstext in Buttons */
.type-btn .availability-text {
    font-size: 0.75rem;
    font-weight: normal;
    opacity: 0.9;
}

/* Button-Stil wenn nicht verfügbar */
.type-btn.btn-unavailable {
    opacity: 0.6;
}

.type-btn.btn-unavailable::first-line {
    text-decoration: line-through;
}

.type-btn.btn-unavailable:hover {
    cursor: not-allowed;
    background-color: transparent;
}

/* Farben für Verfügbarkeitsstatus */
.availability-text.text-danger {
    color: #dc3545 !important;
}

.availability-text.text-warning {
    color: #ffc107 !important;
    font-weight: 600;
}

/* Responsive Anpassung für kleine Bildschirme */
@media (max-width: 576px) {
    .type-btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }
    
    .type-btn .availability-text {
        display: block;
        font-size: 0.65rem;
        margin-top: 2px;
    }
}

/* Hover-Effekt für verfügbare Buttons */
.type-btn:not(.btn-unavailable):hover .availability-text {
    font-weight: 600;
}

/* Aktiver Button bekommt stärkere Verfügbarkeitsanzeige */
.type-btn.active .availability-text {
    font-weight: 600;
    opacity: 1;
}