/* ==========================================================================
   WICHTELBRIEFE TO GO - MOBILE FIRST DESIGN SYSTEM
   ========================================================================== */

@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: #0a3352;
    --cover-blue-mid: #0f4975;
    --cover-blue-light: #18649c;
    --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(24, 100, 156, 0.4), transparent 60%),
        radial-gradient(circle at 10% 40%, rgba(200, 32, 39, 0.15), transparent 45%);
    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 - Visuell hervorgehoben */
.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),
        0 0 20px rgba(244, 197, 66, 0.2);
    transition: all 0.3s ease;
}

.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;
    user-select: none;
}

.print-tips-accordion summary::-webkit-details-marker {
    display: none;
}

.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);
}

/* ==========================================================================
   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);
    -webkit-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;
}

/* Touch-optimized Buttons (Min 48px height) */
.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;
}

/* ==========================================================================
   AMAZON REVIEW BOX
   ========================================================================== */

.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;
    width: 100%;
    max-width: 400px;
}

/* FOOTER */
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;
}

/* ==========================================================================
   MOBILE-FIRST BREAKPOINTS
   ========================================================================== */

@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;
    }

    .hero-intro-text {
        font-size: 0.92rem;
    }
}
