/* ==========================================================================
   WICHTELBRIEFE TO GO - MOBILE FIRST DESIGN SYSTEM (WITH MODAL & LEAD MAGNET)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Outfit:wght@500;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Caveat:wght@600;700&display=swap');

:root {
    --cover-blue-dark: #072238;
    --cover-blue-mid: #0a3352;
    --cover-blue-light: #0f4975;
    --wichtel-red: #c82027;
    --wichtel-red-dark: #9c151b;
    --wichtel-red-bright: #e63946;
    --gold-accent: #f4c542;
    --gold-light: #fff3c4;
    
    --parchment-bg: #fcf8ef;
    --parchment-border: #e6dccb;
    --parchment-shadow: rgba(0, 0, 0, 0.15);
    
    --text-on-dark: #ffffff;
    --text-muted-blue: #a3cced;
    --text-dark: #2d1e18;
    --text-muted-dark: #6e584f;

    --font-heading: 'Outfit', sans-serif;
    --font-hand: 'Fredoka', 'Caveat', cursive;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--cover-blue-dark);
    color: var(--text-on-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(15, 73, 117, 0.5), transparent 60%),
        radial-gradient(circle at 10% 40%, rgba(200, 32, 39, 0.18), transparent 45%),
        radial-gradient(circle at 90% 70%, rgba(7, 34, 56, 0.6), transparent 50%);
    background-attachment: fixed;
}

/* Background Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   HEADER & MOBILE HERO
   ========================================================================== */

header {
    padding: 1.2rem 1.2rem 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted-blue);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.admin-login-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
}

/* Hero Grid */
.hero-split-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hero-cover-col {
    display: flex;
    justify-content: center;
}

.book-cover-wrapper {
    position: relative;
    display: inline-block;
}

.book-cover-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle, 
        rgba(255, 255, 255, 0.55) 0%, 
        rgba(244, 197, 66, 0.3) 40%, 
        transparent 75%
    );
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
}

.book-cover-img {
    position: relative;
    z-index: 1;
    max-width: 240px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.hero-info-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.welcome-badge {
    display: inline-block;
    background: rgba(244, 197, 66, 0.15);
    color: var(--gold-accent);
    border: 1px solid rgba(244, 197, 66, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.hero-main-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.6rem;
    color: #ffffff;
}

.hero-intro-text {
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--text-muted-blue);
    max-width: 600px;
}

/* Mobile Tips Accordion */
.mobile-tips-container {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding: 0 1.2rem;
}

.print-tips-accordion {
    background: linear-gradient(135deg, rgba(15, 73, 117, 0.75), rgba(10, 51, 82, 0.85));
    border: 2px solid var(--gold-accent);
    border-radius: 16px;
    padding: 0.9rem 1.2rem;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.print-tips-accordion summary {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--gold-accent);
    outline: none;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.accordion-arrow {
    font-size: 0.8rem;
    background: rgba(244, 197, 66, 0.2);
    color: var(--gold-accent);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.print-tips-accordion[open] .accordion-arrow {
    transform: rotate(180deg);
}

.print-tips-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.8rem;
    margin-top: 0.8rem;
    text-align: left;
}

.tip-item {
    background: rgba(10, 51, 82, 0.7);
    border: 1px solid rgba(244, 197, 66, 0.25);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    line-height: 1.35;
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip-item strong {
    display: block;
    color: var(--gold-accent);
}

.tip-item span {
    color: var(--text-muted-blue);
}

/* ==========================================================================
   EMAIL LEAD-MAGNET SECTION
   ========================================================================== */

.email-bonus-section {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1.2rem;
}

.email-bonus-box {
    background: linear-gradient(135deg, rgba(200, 32, 39, 0.25), rgba(15, 73, 117, 0.8));
    border: 2px dashed var(--gold-accent);
    border-radius: 20px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.bonus-badge {
    background: var(--wichtel-red);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.email-bonus-box h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.email-bonus-box p {
    font-size: 0.92rem;
    color: var(--text-muted-blue);
    max-width: 600px;
    margin: 0 auto 1.2rem;
    line-height: 1.5;
}

.subscribe-form {
    display: flex;
    gap: 0.6rem;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.subscribe-input {
    flex: 1;
    min-width: 240px;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
}

.subscribe-btn {
    background: linear-gradient(135deg, var(--gold-accent), #e5b026);
    color: var(--text-dark);
    font-weight: 800;
    padding: 0.8rem 1.4rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    white-space: nowrap;
}

.dsgvo-notice {
    font-size: 0.76rem !important;
    color: var(--text-muted-blue) !important;
    opacity: 0.8;
    margin-top: 0.8rem !important;
    margin-bottom: 0 !important;
    max-width: 520px;
    margin-left: auto;
    margin-left: auto;
}

.footer-links {
    margin: 0.6rem 0;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--gold-accent);
    text-decoration: none;
    margin: 0 0.3rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   STICKY MOBILE SEARCH & CATEGORIES
   ========================================================================== */

.sticky-mobile-search {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 51, 82, 0.92);
    backdrop-filter: blur(15px);
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.search-bar-wrapper {
    position: relative;
    margin-bottom: 0.6rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.2rem 1rem 3.2rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
    background: #ffffff;
    border: 2px solid var(--gold-accent);
    border-radius: 50px;
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    outline: none;
    min-height: 50px;
}

.search-input:focus {
    border-color: var(--wichtel-red);
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wichtel-red);
}

.categories-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.3rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
}

.cat-btn.active {
    background: var(--wichtel-red);
    border-color: var(--wichtel-red-bright);
    color: #ffffff;
    font-weight: 700;
}

/* ==========================================================================
   LETTERS GRID & TOUCH CARDS
   ========================================================================== */

main {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1.2rem;
}

.letters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.parchment-card {
    background: var(--parchment-bg);
    border-radius: 16px;
    padding: 1.4rem;
    color: var(--text-dark);
    position: relative;
    border: 1px solid var(--parchment-border);
    box-shadow: 0 8px 20px var(--parchment-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wax-seal {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, #e63946, #9c151b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.card-header {
    margin-bottom: 0.8rem;
    padding-right: 2.8rem;
}

.letter-num {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--wichtel-red);
    text-transform: uppercase;
    background: rgba(200, 32, 39, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.3rem;
}

.letter-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.letter-desc {
    font-size: 0.9rem;
    color: var(--text-muted-dark);
    line-height: 1.45;
    margin-bottom: 1.2rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-print, .btn-download {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 0.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    min-height: 48px;
    border: none;
}

.btn-print {
    background: linear-gradient(135deg, var(--wichtel-red), var(--wichtel-red-dark));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(200, 32, 39, 0.35);
}

.btn-download {
    background: rgba(15, 73, 117, 0.12);
    color: var(--cover-blue-dark);
    border: 1px solid rgba(15, 73, 117, 0.3);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
}

/* ==========================================================================
   DANKE MODAL (POST-ACTION REVIEW POPUP)
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 20, 32, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: linear-gradient(135deg, #103c5e, #0a263d);
    border: 2px solid var(--gold-accent);
    border-radius: 24px;
    padding: 2.2rem 1.8rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem; right: 1.2rem;
    background: none; border: none;
    color: var(--text-muted-blue);
    font-size: 1.8rem;
    cursor: pointer;
}

.modal-stars {
    font-size: 1.8rem;
    color: var(--gold-accent);
    margin-bottom: 0.5rem;
}

.modal-card h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

.modal-card p {
    font-size: 0.95rem;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.modal-subtext {
    font-size: 0.88rem;
    color: var(--text-muted-blue);
    margin-bottom: 1.5rem !important;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.modal-amazon-btn {
    width: 100%;
    justify-content: center;
}

.btn-already-reviewed {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
    padding: 0.7rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-already-reviewed:hover {
    background: rgba(34, 197, 94, 0.3);
}

.btn-skip {
    background: none;
    border: none;
    color: var(--text-muted-blue);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 0.3rem;
}

/* ==========================================================================
   AMAZON REVIEW BOX & FOOTER
   ========================================================================== */

.amazon-review-section {
    max-width: 1200px;
    margin: 3rem auto 2.5rem;
    padding: 0 1.2rem;
}

.review-box {
    background: linear-gradient(135deg, #103c5e, #0a263d);
    border: 2px solid var(--gold-accent);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
}

.stars-rating {
    font-size: 1.6rem;
    color: var(--gold-accent);
    margin-bottom: 0.5rem;
}

.review-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.review-desc {
    color: var(--text-muted-blue);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 auto 1.5rem;
}

.amazon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--gold-accent), #e5b026);
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    min-height: 50px;
}

footer {
    padding: 2rem 1.2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 20, 32, 0.95);
    color: var(--text-muted-blue);
    font-size: 0.85rem;
}

.disclaimer-text {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.6rem;
}

@media (max-width: 850px) {
    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .hero-info-col {
        align-items: center;
        text-align: center;
    }

    .book-cover-img {
        max-width: 170px;
    }

    .hero-main-heading {
        font-size: 1.9rem;
    }

    .subscribe-form {
        flex-direction: column;
    }
}

/* TYPICAL AMAZON YELLOW BUY BUTTON */
.amazon-buy-btn {
    background: linear-gradient(135deg, #ffa41c, #ff8c00);
    color: #111111;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 0.7rem 1.3rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.35);
    border: 1px solid #cc7000;
    transition: all 0.2s ease;
    margin-top: 0.8rem;
}

.amazon-buy-btn:hover {
    background: linear-gradient(135deg, #ffb338, #ff9900);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.5);
    color: #000000;
}
