/**
 * Bio-Luftballons Bedrucken — Page-Specific Styles
 *
 * Zusammengelegte Seite: Info + Konfigurator (7-Sektionen AIDA)
 * Hero ist im PHP-Template (full-width), Content-Sektionen hier.
 *
 * @package Astra Child
 * @since 2.0
 * @author Claude (Session 2026-02-24)
 */

/* ===== FONT SYSTEM OVERRIDES ===== */

.bedrucken-wrapper h2,
.bedrucken-wrapper h3 {
    font-family: "Nunito", sans-serif !important;
    font-weight: 700;
}

.bedrucken-wrapper h2 {
    font-size: 1.8rem;
    color: #333333;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.bedrucken-wrapper h3 {
    font-size: 1.4rem;
    color: #555555;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.bedrucken-wrapper p,
.bedrucken-wrapper li,
.bedrucken-wrapper td,
.bedrucken-wrapper a {
    font-family: "Nunito", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #374151;
    line-height: 1.7;
}

.bedrucken-wrapper strong {
    font-weight: 600;
}

/* ===== CONTAINER ===== */

.bedrucken-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

@media (max-width: 768px) {
    .bedrucken-wrapper .container {
        padding: 1rem;
    }
}

/* ===== BEDRUCKEN HERO (Sektion 1) ===== */

.bedrucken-hero {
    text-align: center;
    padding: 130px 0;
}

.bedrucken-hero .hero-subtitle {
    max-width: 800px;
    margin: 0.5rem auto 1.5rem;
    font-size: 30px;
    line-height: 34px;
    color: #333333;
    font-family: "Shadows Into Light", cursive !important;
    font-weight: 400;
}

.bedrucken-hero .hero-facts {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-family: "Nunito", sans-serif !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-cta {
    display: inline-block !important; /* Astra setzt display:block auf <a> */
    padding: 16px 48px;
    background: #fff;
    color: #62BC66 !important;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: "Nunito", sans-serif !important;
    border-radius: 8px;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s, box-shadow 0.15s;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: #4fa853 !important;
}

@media (max-width: 768px) {
    .bedrucken-hero {
        padding: 90px 20px;
    }

    .bedrucken-hero .hero-subtitle {
        font-size: 24px;
        line-height: 28px;
    }
}

@media (max-width: 480px) {
    .bedrucken-hero {
        padding: 65px 15px;
    }

    .bedrucken-hero .hero-subtitle {
        font-size: 20px;
        line-height: 24px;
    }
}

/* ===== BEDRUCKEN SECTIONS SPACING ===== */

.bedrucken-section {
    padding: 3rem 0;
}

.bedrucken-section + .bedrucken-section {
    border-top: 1px solid #e5e7eb;
}

/* ===== PREISTABELLE (Sektion 2) ===== */

.pricing-section {
    background-color: #f9fafb;
}

.pricing-section h2 {
    text-align: center;
    color: #62BC66;
    margin-bottom: 1rem;
}

.pricing-section > .container > p {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
}

.pricing-note {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.pricing-note a {
    color: #62BC66;
    text-decoration: none;
    font-weight: 600;
}

.pricing-note a:hover {
    text-decoration: underline;
}

/* Desktop: merged table */
.pricing-desktop {
    display: block;
    overflow-x: auto;
}

.pricing-mobile {
    display: none;
}

@media (max-width: 768px) {
    .pricing-desktop {
        display: none;
    }

    .pricing-mobile {
        display: block;
    }

    .pricing-section > .container > .pricing-note {
        display: none;
    }

    .pricing-mobile h3 {
        text-align: center;
        margin-top: 2rem;
        margin-bottom: 1rem;
        color: #62BC66;
    }

    .pricing-table-split {
        margin-bottom: 2rem;
        width: 100%;
    }
}

/* Tabellen-Styling */
.pricing-table,
.pricing-table-split {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem auto;
    max-width: 1200px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pricing-table th,
.pricing-table td,
.pricing-table-split th,
.pricing-table-split td {
    border: 1px solid #e5e7eb;
    padding: 12px 16px;
    text-align: left;
}

.pricing-table th,
.pricing-table-split th {
    background-color: #62BC66;
    color: white;
    font-weight: 600;
    font-family: "Nunito", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-table tbody tr:nth-child(even),
.pricing-table-split tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.pricing-table tbody tr:hover,
.pricing-table-split tbody tr:hover {
    background-color: #f3f4f6;
}

.pricing-table td:first-child,
.pricing-table-split td:first-child {
    font-weight: 600;
    color: #374151;
}

.pricing-na {
    color: #9ca3af;
    font-style: italic;
    font-weight: 400;
}

@media (max-width: 480px) {
    .pricing-table th,
    .pricing-table td,
    .pricing-table-split th,
    .pricing-table-split td {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* ===== KERN-FAQ (Sektion 3) ===== */

.kern-faq-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
}

.kern-faq-section .faq-item,
.extended-faq-section .faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.kern-faq-section .faq-item summary,
.extended-faq-section .faq-item summary {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 1.05rem;
    color: #333;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kern-faq-section .faq-item summary::after,
.extended-faq-section .faq-item summary::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: 300;
    color: #62BC66;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.kern-faq-section .faq-item[open] summary::after,
.extended-faq-section .faq-item[open] summary::after {
    transform: rotate(45deg);
}

/* Remove default marker in Safari */
.kern-faq-section .faq-item summary::-webkit-details-marker,
.extended-faq-section .faq-item summary::-webkit-details-marker {
    display: none;
}

.kern-faq-section .faq-answer,
.extended-faq-section .faq-answer {
    padding: 0 20px 16px;
}

.kern-faq-section .faq-answer p,
.extended-faq-section .faq-answer p {
    margin: 0 0 0.75rem;
    color: #555;
}

.kern-faq-section .faq-answer a,
.extended-faq-section .faq-answer a {
    color: #62BC66;
    font-weight: 500;
    text-decoration: none;
}

.kern-faq-section .faq-answer a:hover,
.extended-faq-section .faq-answer a:hover {
    text-decoration: underline;
}

/* ===== TRUST-LEISTE (Sektion 4) ===== */

.trust-section {
    background-color: #f9fafb;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.trust-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.trust-label small {
    display: block;
    font-weight: 400;
    color: #6b7280;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .trust-badges {
        gap: 20px;
    }

    .trust-badge {
        flex: 0 0 calc(50% - 10px);
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .trust-badge {
        flex: 0 0 100%;
    }

    .trust-badges {
        gap: 16px;
    }
}

/* ===== REFERENZ-GALERIE (CSS scroll-snap + Pfeile/Dots) ===== */

.reference-gallery-section {
    background-color: #f9fafb;
}

.reference-gallery-section h2 {
    text-align: center;
    color: #62BC66;
    margin-bottom: 1rem;
}

.reference-gallery-section > .container > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #6b7280;
}

/* Wrapper fuer Gallery + Pfeile */
.reference-gallery-wrapper {
    position: relative;
}

.reference-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 16px;
}

/* Scrollbar verstecken (Dots ersetzen sie) */
.reference-gallery::-webkit-scrollbar {
    display: none;
}

.reference-gallery {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.reference-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* Navigations-Pfeile */
.reference-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 18px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.reference-nav:hover:not(:disabled) {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.reference-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.reference-nav-prev {
    left: -22px;
}

.reference-nav-next {
    right: -22px;
}

/* Pagination Dots */
.reference-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0 0;
}

.reference-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.reference-dot:hover {
    background: #9ca3af;
}

.reference-dot.active {
    background: #62BC66;
    transform: scale(1.2);
}

/* Mobile: Pfeile ausblenden (Touch-Scroll reicht), Dots bleiben */
@media (max-width: 768px) {
    .reference-nav {
        display: none;
    }
}

.reference-item img {
    display: block;
    height: 300px;
    width: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* Placeholder fuer fehlende Bilder */
.reference-placeholder {
    width: 400px;
    height: 300px;
    border-radius: 12px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reference-placeholder-inner {
    text-align: center;
    color: #9ca3af;
}

.reference-placeholder-inner span {
    font-size: 2rem;
    display: block;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .reference-item img {
        height: 220px;
    }

    .reference-placeholder {
        width: 300px;
        height: 220px;
    }
}

@media (max-width: 480px) {
    .reference-item img {
        height: 160px;
    }

    .reference-placeholder {
        width: 240px;
        height: 160px;
    }
}

/* ===== EXTENDED FAQ (Sektion 7) ===== */

.extended-faq-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
}

/* ===== CLS FIX: Konfigurator Loading ===== */

.konfigurator-load-wrapper {
    position: relative;
}

/* Placeholder schwebt als Overlay ueber dem Embed */
.konfigurator-placeholder--overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

/* Embed ist im Layout-Flow (definiert Sektionshoehe),
   aber unsichtbar + nicht fokussierbar bis Scripts geladen */
.konfigurator-embed--loading {
    visibility: hidden;
    opacity: 0;
}

/* Sanftes Einblenden nach Script-Load */
.konfigurator-embed {
    transition: opacity 0.3s ease;
}

/* ===== KONFIGURATOR EMBED (Sektion 6) ===== */

#konfigurator > .container > h2 {
    text-align: center;
    color: #62BC66;
    margin-bottom: 1.5rem;
}

/* Konfigurator-Embed bekommt keinen eigenen max-width,
   weil .bedrucken-wrapper .container das bereits setzt */

/* Sticky Bar auf Bedrucken-Seite ausblenden — Konfigurator ist Spielplatz,
   der inline "In den Warenkorb"-Button reicht. */
.bedrucken-wrapper .konfigurator-sticky-bar {
    display: none !important;
}

.bedrucken-wrapper .konfigurator {
    padding-bottom: 0;
}

.bedrucken-wrapper .konfigurator-add-to-cart {
    display: block !important;
}

/* Pricing Card Mobile-Anpassungen */
@media (max-width: 767px) {
    .bedrucken-wrapper .konfigurator-pricing-card {
        padding: 20px 16px;
    }

    .bedrucken-wrapper .konfigurator-price-total-row .konfigurator-price-value {
        font-size: 22px;
    }
}

/* ===== KONTAKT-SECTION (Position 1: Eigene Section mit Karten) ===== */

.contact-section {
    background-color: #f0fdf4;
    padding-bottom: 1rem;
}

.contact-section h2 {
    text-align: center;
    color: #62BC66;
    margin-bottom: 1rem;
}

.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #555;
}

.contact-cards {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: stretch;
}

.contact-card {
    flex: 1;
    max-width: 300px;
    background: #fff;
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.contact-card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.contact-card-icon svg {
    display: inline-block;
    width: 28px;
    height: 28px;
}

.contact-card strong {
    display: block;
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 12px;
}

.contact-card a {
    display: inline-block;
    color: #62BC66 !important;
    font-weight: 600;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card-address {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .contact-cards {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .contact-card {
        max-width: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 16px;
        text-align: left;
    }

    .contact-card-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .contact-card strong {
        font-size: 1rem;
    }

    .contact-card p {
        display: none;
    }

    .contact-card a {
        font-size: 0.95rem;
    }

    .contact-card-address {
        display: none;
    }
}

/* ===== DIY-UEBERLEITUNG (Kontakt-Section → Konfigurator) ===== */

.contact-diy-transition {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #d1e7d2;
}

.contact-section .contact-diy-transition p {
    margin: 0 0 4px;
    color: #555;
}

.contact-section .contact-diy-headline {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.contact-section .contact-diy-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    font-style: italic;
}

.contact-section .contact-diy-arrow {
    font-size: 3rem;
    margin-top: 0;
    padding-top: 2rem;
    padding-bottom: 1rem;
    line-height: 1;
}
