/* =============================================
   Card4Fun — Responsive Stylesheet
   Breakpoints: 1024px / 768px / 480px
   ============================================= */

/* =============================================
   DESKTOP (max-width: 1200px)
   ============================================= */
@media (max-width: 1200px) {
    .highlight-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .highlight-card:nth-child(4),
    .highlight-card:nth-child(5) {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =============================================
   TABLET (max-width: 1024px)
   ============================================= */
@media (max-width: 1024px) {
    :root {
        --header-height: 60px;
    }

    /* Navigation */
    .hamburger {
        display: flex;
    }

    .main-nav {
        display: none;
    }

    .header-inner {
        padding: 0 var(--space-md);
    }

    /* Hero Slider */
    .slider {
        aspect-ratio: 1024 / 450;
    }

    .slide-content {
        max-width: 400px;
    }

    .slide-content h2 {
        font-size: 1.6rem;
    }

    .banner-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    transform: translateY(-4px);
    transform: scale(1.03);
    }

    .slide-content p {
        font-size: 0.95rem;
    }

    /* Grids */
    .highlight-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .banner-trio {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-trio .banner-card:last-child {
        grid-column: 1 / -1;
    }

    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Product Detail */
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    /* Checkout */
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-sidebar {
        position: static;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .mobile-subnav a {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        color: #222 !important;
        font-size: 1rem !important;
        background: none !important;
        font-weight: 600 !important;
    }

    .mobile-subnav a img {
        min-width: 22px !important;
        min-height: 22px !important;
        max-width: 24px !important;
        max-height: 24px !important;
        object-fit: contain !important;
        margin-right: 8px !important;
        display: inline-block !important;
    }
}

/* =============================================
   MOBILE (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {
    /* Smaller decorative images on mobile */
    .deco-discover-tl { width: 80px; height: 80px; top: -30px; left: -12px; }
    .deco-discover-br { width: 110px; height: 110px; bottom: 0px; right: -25px; }
    
    .btn-primary {
        width: auto;
        height: 45px;
        border: none;
        background: rgb(231, 76, 60, 0.80);
        border-width: 5px;
        border-color: rgb(231, 76, 60, 0.80);
        color: #fff;
    }

    .deco-player-tr {
        width: 90px;
        height: 110px;
        top: -30px;
        left: -15px;
    }

    .deco-player-bl {
        width: 100px;
        height: 100px;
        top: -30px;
        right: -20px;
    }

    /* Typography */
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }

    .section-title {
        color: #fff;
        font-size: 1.7rem;
        margin-bottom: var(--space-lg);
    }

    /* Container */
    .container {
        padding: 0 var(--space-md);
    }

    .discover-section {
        padding-bottom: 0px;
        margin-top: 0px;
        padding-top: var(--space-xl);
        margin-bottom: var(--space-md);
    }

    /* Sections
    .category-highlights,
    .theme-tiles,
    .player-count-section,
    .game-world {
    }*/

    /* Social Proof */
    .social-proof {
    padding: var(--space-xl) 0;
    margin: var(--space-md);
    border-radius: var(--radius-lg);
  }

  .proof-grid {
    gap: 5px;
    grid-template-columns: 1fr 1fr;
    border-radius: 12px;
  }

  /* Kunden + Bewertung: 2 Spalten */
  .proof-item {
    border-right: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1.25rem 0.75rem;
    gap: 6px;
  }

  /* Mittleres Item (Bewertung): keine rechte Border */
  .proof-item:nth-child(2) {
    border-right: none;
  }

  /* Spiele: volle Breite, horizontal ausgerichtet */
  .proof-item:last-child {
    grid-column: 1 / -1;
    border-bottom: none;
    border-right: none;
    flex-direction: row;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
  }

  .proof-item1 {
    border-right: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1.25rem 0.75rem;
    gap: 6px;
  }

  /* Mittleres Item (Bewertung): keine rechte Border */
  .proof-item1:nth-child(2) {
    border-right: none;
  }

  /* Spiele: volle Breite, horizontal ausgerichtet */
  .proof-item1:last-child {
    grid-column: 1 / -1;
    border-bottom: none;
    border-right: none;
    flex-direction: row;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
  }

  .proof-item2 {
    border-right: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1.25rem 0.75rem;
    gap: 6px;
  }

  /* Mittleres Item (Bewertung): keine rechte Border */
  .proof-item2:nth-child(2) {
    border-right: none;
  }

  /* Spiele: volle Breite, horizontal ausgerichtet */
  .proof-item2:last-child {
    grid-column: 1 / -1;
    border-bottom: none;
    border-right: none;
    flex-direction: row;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
  }

  .proof-number {
    font-size: 2rem;
  }

  .proof-label {
    font-size: 10px;
  }

  .proof-icon {
    width: 32px; height: 32px;
  }

  .proof-eyebrow {
    font-weight: 700;
    color: #fff;
    font-size: 34px;
    margin-bottom: 1.25rem;
    letter-spacing: 0.03em;
  }

    .newsletter-section {
        border-radius: 24px 24px 0 0;
    }

    .reviews-section,
    .about-section,
    .faq-section {
        padding: var(--space-2xl) 0;
    }

    /* Header */
    .logo img {
        height: 34px;
    }

    /* Catalog Overlay Mobile */
    .catalog-overlay-inner {
        padding: 20px 16px 40px;
    }

    .catalog-header {
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 24px;
    }

    .catalog-title {
        font-size: 1.2rem;
    }

    .catalog-filter input {
        width: 160px;
    }

    .catalog-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Hero Slider */
    .slider {
        aspect-ratio: 9 / 16;
        max-height: 70vh;
    }

    .slide img {
        object-position: center center;
    }

    .slide-content {
        max-width: 85%;
        bottom: 12%;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }

    .slide-content h2 {
        font-size: 1.3rem;
    }

    .slide-content p {
        font-size: 0.85rem;
        margin-bottom: var(--space-md);
    }

    .slide-content .btn {
        padding: 10px 20px;
    }

    /* USP */
    .usp-grid {
        flex-direction: row;
        gap: var(--space-sm);
        justify-content: space-between;
    }

    .usp-item {
        text-align: center;
        flex-direction: column;
        text-align: center;
        gap: var(--space-xs);
        flex: 1;
        min-width: 0;
    }

    .usp-item svg {
        width: 22px;
        height: 22px;
    }

    .usp-item strong {
        color: var(--color-bg-dark);
        font-size: 0.7rem;
    }

    .usp-item span {
        font-size: 0.65rem;
    }

    /* Grids */
    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .highlight-card:nth-child(4),
    .highlight-card:nth-child(5) {
        display: block;
    }

    .banner-trio {
        grid-template-columns: 1fr;
    }

    .banner-trio .banner-card:last-child {
        grid-column: auto;
    }

    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .theme-card {
        aspect-ratio: 340 / 144;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* About */
    .about-section {
        padding: var(--space-xl) 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .about-text .btn {
        display: inline-block;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        width: 100%;
        max-width: 360px;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    /* Tabs */
    .tab-nav {
        gap: var(--space-xs);
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* Reviews */
    .review-card {
        flex: 0 0 270px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    /* Newsletter */
    .newsletter-fields {
        flex-direction: column;
    }

    /* Cart */
    .cart-table thead {
        display: none;
    }

    .cart-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        padding: var(--space-md) 0;
        border-bottom: 1px solid var(--color-border-light);
        gap: var(--space-sm);
        align-items: center;
    }

    .cart-table td {
        padding: var(--space-xs);
        border: none;
    }

    .cart-summary {
        max-width: 100%;
    }

    /* Checkout */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* FAQ */
    .faq-tabs {
        flex-wrap: wrap;
    }

    /* Search Overlay */
    .search-form {
        flex-direction: column;
    }

    .search-submit {
        width: 100%;
    }

    /* Toast */
    .toast {
        left: var(--space-md);
        right: var(--space-md);
        bottom: var(--space-md);
        max-width: 100%;
    }
}

/* =============================================
   SMALL MOBILE (max-width: 480px)
   ============================================= */
@media (max-width: 480px) {
    /* Announcement Bar: einzeilig auf kleinen Screens */
    .announcement-bar {
        font-size: 0.78rem;
        padding: 8px 0;
    }

    .announcement-bar p {
        gap: 2px;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .announce-arrow {
        display: none;
    }

    .announce-text-full {
        display: none;
    }

    .announce-text-short {
        display: inline;
    }

    h1 { font-size: 1.3rem; }
    h2 { font-size: 1.15rem; }

    .section-title {
        font-size: 2.5rem;
        color: var(--color-baground-dark);
    }

    /* Hero */
    .slider {
        aspect-ratio: 9 / 16;
        max-height: 60vh;
    }

    .slide-content {
        bottom: 10%;
    }

    .slide-content h2 {
        font-size: 1.1rem;
    }

    .slide-content p {
        display: none;
    }

    /* About */
    .about-text p {
        font-size: 0.9rem;
    }

    .about-image img {
        max-width: 280px;
    }

    /* Grids */
    .highlight-grid {
        grid-template-columns: 1fr 1fr;
    }

    .theme-grid {
        grid-template-columns: 1fr;
    }

    .theme-card {
        aspect-ratio: 340 / 144;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    /* Product Card */
    .product-card-info {
        padding: var(--space-sm);
    }

    .product-card-name {
        font-size: 0.8rem;
    }

    .product-card-desc {
        display: none;
    }

    .product-description {
    text-align: justify;
    margin-left: 16px;
    margin-right: 16px;
    padding: 4px;
    }

    .price-current {
        font-size: 1rem;
    }

    .btn-add-to-cart {
        padding: 10px;
        font-size: 0.8rem;
    }

    .btn-primary {
        width: auto;
        height: 45px;
        border: none;
        background: rgb(231, 76, 60, 0.80);
        border-width: 5px;
        border-color: rgb(231, 76, 60, 0.80);
        color: #fff;
    }

    /* Tabs */
    .tab-nav {
        align-items: stretch;
    }

    .tab-btn {
        text-align: center;
    }

    /* Add to Cart Form */
    .add-to-cart-form {
        flex-direction: column;
    }

    .quantity-input {
        align-self: flex-start;
    }

    /* Gallery Thumbs */
    .gallery-thumb {
        width: 60px;
        height: 60px;
    }

    /* Cart Product */
    .cart-product img {
        width: 50px;
        height: 50px;
    }
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
    .announcement-bar,
    .site-header,
    .newsletter-section,
    .footer-main,
    .footer-bottom,
    .hamburger,
    .mobile-nav,
    .mobile-nav-overlay,
    .toast {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
