/* ========================================
   Prosa.at – Main Stylesheet
   ======================================== */

:root {
    --color-primary: #222;
    --color-primary-light: #2a2a2a;
    --color-accent: #333;
    --color-accent-hover: #111;
    --color-accent-light: rgba(0, 0, 0, 0.05);
    --color-warm: #f5e6d3;
    --color-warm-dark: #d4b896;
    --color-text: #2c2c2c;
    --color-text-light: #666;
    --color-text-muted: #888;
    --color-bg: #fdfaf6;
    --color-bg-alt: #f7f0e8;
    --color-white: #ffffff;
    --color-border: #e8ddd0;
    --color-thalia: #005c2e;
    --color-thalia-hover: #004422;
    --color-amazon: #FF9900;
    --color-amazon-hover: #e68a00;
    --color-cookie-btn: #555;
    --color-cookie-btn-hover: #333;
    --font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --header-height: 70px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.3;
    color: var(--color-primary);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 16px;
    text-align: center;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto 48px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 250, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.nav-brand a {
    display: flex;
    align-items: center;
}

.nav-brand img {
    height: 44px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-accent);
    background: var(--color-accent-light);
}

/* Burger button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    z-index: 1001;
}

.nav-toggle:hover {
    background: rgba(0,0,0,0.04);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: var(--color-bg-alt);
    color: var(--color-text);
    padding: 120px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--color-primary);
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.cta-button {
    background: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.cta-button:hover {
    background: var(--color-accent-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-2px);
}

/* Book Stack Animation */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.book-stack-animation {
    position: relative;
    width: 340px;
    height: 340px;
}

.anim-book {
    position: absolute;
    line-height: 0;
}

.anim-book svg {
    display: block;
}

/* ========================================
   MISSION SECTION
   ======================================== */

.mission-section {
    padding: 100px 0;
    background: var(--color-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 24px;
}

.feature-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   BOOKS / AFFILIATE SECTION
   ======================================== */

.books-section {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.affiliate-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto 48px;
}

.affiliate-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 48px 32px 40px;
    border: 2px solid var(--color-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: var(--color-text);
}

.affiliate-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    color: var(--color-text);
}

.thalia-card:hover {
    border-color: var(--color-thalia);
}

.amazon-card:hover {
    border-color: var(--color-amazon);
}

.affiliate-card-icon {
    margin-bottom: 20px;
}

.affiliate-card-icon svg {
    max-height: 50px;
    width: auto;
}

.affiliate-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.affiliate-card p {
    color: var(--color-text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

.affiliate-cta {
    font-weight: 600;
    font-size: 1.05rem;
    padding: 12px 28px;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-block;
}

.thalia-card .affiliate-cta {
    color: var(--color-thalia);
    background: rgba(0, 92, 46, 0.08);
}

.thalia-card:hover .affiliate-cta {
    background: var(--color-thalia);
    color: var(--color-white);
}

.amazon-card .affiliate-cta {
    color: #232F3E;
    background: rgba(255, 153, 0, 0.12);
}

.amazon-card:hover .affiliate-cta {
    background: var(--color-amazon);
    color: #232F3E;
}

.affiliate-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.06);
    color: var(--color-text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.charity-note {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 24px 32px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.charity-note-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.charity-note p {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */

.how-it-works-section {
    padding: 100px 0;
    background: var(--color-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    position: relative;
}

a.step-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    font-family: var(--font-heading);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.step-card h3 {
    margin-bottom: 12px;
}

.step-card p {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ========================================
   IMPACT SECTION
   ======================================== */

.impact-section {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.impact-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.impact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.impact-value {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 12px;
}

.impact-value .unit {
    font-size: 1.8rem;
    font-weight: 700;
}

.impact-label {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    padding: 80px 0;
    background: var(--color-white);
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 32px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-thalia {
    background: #3d7a56;
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(0, 60, 30, 0.2);
}

.btn-thalia:hover {
    background: #2d5e40;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 60, 30, 0.3);
}

.btn-amazon {
    background: #d4890a;
    color: #fff;
    box-shadow: 0 4px 16px rgba(180, 120, 0, 0.2);
}

.btn-amazon:hover {
    background: #b87408;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(180, 120, 0, 0.3);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: #1a1a1a;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer h4 a {
    color: var(--color-white);
}

.footer h4 a:hover {
    color: var(--color-accent);
}

.footer p {
    line-height: 1.7;
    font-size: 0.9rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer ul a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
}

.footer-bottom a:hover {
    color: var(--color-white);
}

.affiliate-disclosure {
    margin-top: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* ========================================
   SCROLL TO TOP
   ======================================== */

#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

#scrollToTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollToTopBtn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
}

/* ========================================
   COOKIE POPUP
   ======================================== */

.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 30px rgba(0,0,0,0.1);
    padding: 20px;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-text h4 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.cookie-text p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.cookie-link {
    font-size: 0.85rem;
    white-space: nowrap;
}

.cookie-accept-btn {
    background: var(--color-cookie-btn);
    color: var(--color-white);
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.cookie-accept-btn:hover {
    background: var(--color-cookie-btn-hover);
}

/* ========================================
   ANIMATIONS – Fade in on scroll
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE – TABLET
   ======================================== */

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        order: -1;
    }

    .book-stack-animation {
        height: 280px;
    }
}

/* ========================================
   RESPONSIVE – MOBILE
   ======================================== */

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        padding: 80px 32px 40px;
        box-shadow: -4px 0 30px rgba(0,0,0,0.15);
        transition: right 0.35s ease;
        z-index: 1000;
        gap: 4px;
        align-items: stretch;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        padding: 14px 16px;
        font-size: 1.1rem;
        border-radius: var(--radius-sm);
    }

    .nav-link:hover {
        background: var(--color-accent-light);
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 80px 0 50px;
        min-height: auto;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .hero p {
        font-size: 1rem;
    }

    .book-stack-animation {
        width: 220px !important;
        height: 200px !important;
        margin-top: -10px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .affiliate-cards {
        grid-template-columns: 1fr;
    }

    .affiliate-card {
        padding: 36px 24px 32px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .impact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 36px;
    }

    .mission-section,
    .books-section,
    .how-it-works-section,
    .impact-section {
        padding: 50px 0;
    }

    .cta-section {
        padding: 50px 0;
    }

    .charity-note {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    #scrollToTopBtn {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

/* Overlay for mobile menu */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ========================================
   IMPRESSUM PAGE STYLES
   ======================================== */

.page-content {
    padding: 120px 0 80px;
    min-height: 70vh;
}

.page-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 32px;
}

.page-content h2 {
    text-align: left;
    font-size: 1.5rem;
    margin: 40px 0 16px;
}

.page-content h3 {
    margin: 24px 0 12px;
}

.page-content p,
.page-content li {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 12px;
}

.page-content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.page-content a {
    color: var(--color-accent);
}

.page-content a:hover {
    text-decoration: underline;
}

#datenschutz {
    padding-top: 20px;
}

/* ========================================
   PRINT
   ======================================== */

@media print {
    .header, .nav-toggle, #scrollToTopBtn, .cookie-popup, .hero-visual {
        display: none !important;
    }

    .hero {
        background: none !important;
        color: #000 !important;
        padding: 20px 0;
        min-height: auto;
    }

    .hero h1 {
        color: #000 !important;
    }

    body {
        font-size: 12pt;
        background: #fff;
    }
}
