/* =============================================
   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;
    }

    /* ── Header: switch to mobile layout ── */
    .header-menu-toggle {
        display: flex;
        order: 1;
    }

    .header-top-inner {
        flex-wrap: wrap;
        justify-content: space-between;
        height: auto;
        padding: var(--space-sm) var(--space-md);
        gap: var(--space-sm);
    }

    /* Search moves to its own row below logo */
    .header-search {
        flex: unset;
        padding: 0 var(--space-md) var(--space-sm);
        order: 4;
        width: 100%;
    }

    /* Logo centered */
    .logo {
        order: 2;
        margin: 0 auto;
    }

    .header-icons {
        order: 3;
        gap: var(--space-sm);
    }

    /* Hide icon text labels on mobile */
    .icon-btn-label {
        display: none;
    }

    .icon-btn img {
        width: 28px;
        height: 28px;
    }

    /* Hide desktop nav on mobile */
    .main-nav {
        display: none;
    }

    .logo img {
        height: 42px;
    }

    /* 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) {
    .hide-mobile { display: none; }

    /* Mobile-Nav: auf kleinen Schirmen volle Breite */
    .mobile-nav {
        width: 100%;
        left: -100%;
    }

    /* 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; }
    .deco-player-tr {
        width: 90px;
        height: 110px;
        top: -30px;
        left: -15px;
    }

    .deco-player-bl {
        width: 100px;
        height: 100px;
        top: -30px;
        right: -20px;
    }

    .deco-discover-insta {
        display: inline-block;
        width: 48px;
        height: 48px;
        vertical-align: middle;
        margin-right: 12px;
        filter: drop-shadow(0 2px 6px #383838);
        transform: rotate(340deg);
    }

    .deco-discover-tiktok {
        display: inline-block;
        width: 48px;
        height: 48px;
        vertical-align: middle;
        margin-left: 12px;
        filter: drop-shadow(0 2px 6px #383838);
        transform: rotate(20deg);
    }

    /* Produktkarten-Buttons: vertikal stapeln auf Tablet (2-Spalten-Grid) */
    .product-card-actions {
        flex-direction: column;
        gap: 6px;
    }

    .product-card-actions .btn-add-to-cart {
        flex: unset;
        width: 100%;
    }

    .btn-variant {
        width: 100%;
        justify-content: center;
        padding: 9px 10px;
        font-size: 0.78rem;
    }
    
    .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;
    }

    /* 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-lg) 0;
    margin: var(--space-md);
    border-radius: var(--radius-lg);
  }

  .proof-grid {
    gap: 5px;
    grid-template-columns: 1fr 1fr;
    border-radius: 12px;
    margin-bottom: 0px;
  }

  .reviews-carousel {
    display: flex;
    gap: var(--space-lg);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-top: var(--space-lg);
    padding-bottom: 0px;
    scrollbar-width: thin;
  }

  /* 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: 2.2rem;
    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 — smaller touch targets */
    .icon-btn img {
        width: 28px;
        height: 28px;
    }

    .header-menu-toggle img {
        width: 34px;
        height: 34px;
    }

    .header-search {
        flex: unset;
        padding: 0 0 10px 0;
        order: 4;
        width: 100%;
    }

    /* 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 {
        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;
        padding-bottom: var(--space-lg);
    }

    .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-top: var(--space-md);
    }

    .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 1fr;
        gap: var(--space-lg);
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-badges {
        flex-direction: column;
        align-items: center;
        gap: 0px;
    }

    /* 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;
    }

    /* 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.8rem;
        padding: 2px 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.2rem;
        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 {
        flex: 0;
        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 */
    .product-card-price {
        margin-top: auto;
        display: flex;
        align-items: baseline;
        gap: var(--space-sm);
        flex-wrap: wrap;
    }

    .price-original {
        font-size: 0.85rem;
        color: var(--color-text-muted);
        text-decoration: line-through;
    }

    .price-savings {
        font-size: 0.75rem;
        color: var(--color-success);
        font-weight: 600;
    }

    .price-range-sep {
        font-size: 0.7rem;
        color: var(--color-text-muted);
        margin: 0px;
    }

    .price-range-max {
        font-size: 0.7rem;
        color: var(--color-text-muted);
    }

    .price-current {
        font-size: 0.7rem;
    }

    .btn-add-to-cart {
        padding: 10px;
        font-size: 0.8rem;
    }

    .product-card-actions {
        flex-direction: column-reverse;
        gap: var(--space-xs, 6px);
    }

    .product-card-actions .btn-add-to-cart {
        height: 32px;
        font-size: 0.6rem;
        flex: unset;
        width: 100%;
    }

    .btn-variant {
        width: 100%;
        font-weight: 700;
        padding: 6px 8px;
        font-size: 0.6rem;
        justify-content: center;
    }

    .btn-primary {
        font-style: italic;
        width: auto;
        height: 40px;
        border: none;
        background: #dc3545;
        color: var(--color-bg);
    }

    /* 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;
    }

    .btn-wishlist {
        position: absolute;
        padding: 6px;
        font-size: 0.75rem;
        top: 6px;
        right: 6px;
        width: 30px;
        height: 30px;
    }
    
}

/* =============================================
   GESCHENKEFINDER — Responsive
   ============================================= */

@media (max-width: 768px) {
    .finder-hero h1 {
        font-size: 1.65rem;
    }
    .finder-options {
        grid-template-columns: repeat(2, 1fr);
    }
    .finder-top3 {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .finder-top-card {
        flex-direction: row;
    }
    .finder-top-image {
        width: 120px;
        flex-shrink: 0;
        aspect-ratio: auto;
    }
    .finder-top-rank {
        font-size: 1.35rem;
    }
    .progress-step {
        font-size: 0;
    }
    .progress-step span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .finder-hero h1 {
        font-size: 1.35rem;
    }
    .finder-hero p {
        font-size: 0.95rem;
    }
    .finder-options {
        grid-template-columns: 1fr;
    }
    .finder-option {
        flex-direction: row;
        padding: var(--space-md);
    }
    .finder-option-icon svg {
        width: 24px;
        height: 24px;
    }
    .finder-progress {
        gap: var(--space-xs);
    }
    .progress-step span {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    .finder-top-image {
        width: 90px;
    }
    .finder-nav {
        flex-direction: column;
        gap: var(--space-sm);
    }
    .finder-nav-right {
        width: 100%;
    }
    .finder-nav-right .btn {
        flex: 1;
    }

    .aboutustitle {
    padding-bottom: 20px;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    }
}

/* =============================================
   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;
    }
}
