/* =====================================================
   1. THEME-VARIABLEN (COLOR PALETTES)
   ===================================================== */

/* Fallback / Standard: Blue (mit kontrastreichem CTA) */
:root, [data-theme="blue"] {
    --bg-main: #f8fafc;
    --hero-bg: linear-gradient(135deg, #1e3a8a, #3b82f6);
    --h2-color: #1e3a8a;
    --h3-color: #2563eb;
    --btn-bg: #f97316;        /* Signal-Orange für maximalen Kontrast */
    --btn-hover: #ea580c;     /* Etwas dunkleres Orange beim Hover */
    --btn-text: #ffffff;      /* Weiße Schrift */
    --badge-bg: #dbeafe;
    --badge-text: #1e40af;
}

[data-theme="green"] {
    --bg-main: #f5f7f6;
    --hero-bg: linear-gradient(135deg, #315a4a, #6f947f);
    --h2-color: #315a4a;
    --h3-color: #3f6657;
    --btn-bg: #e8a34a;
    --btn-hover: #d99136;
    --btn-text: #1d2622;
    --badge-bg: #e2ece7;
    --badge-text: #234236;
}

[data-theme="orange"] {
    --bg-main: #fafaf9;
    --hero-bg: linear-gradient(135deg, #9a3412, #ea580c);
    --h2-color: #9a3412;
    --h3-color: #c2410c;
    --btn-bg: #111827;
    --btn-hover: #1f2937;
    --btn-text: #ffffff;
    --badge-bg: #ffedd5;
    --badge-text: #9a3412;
}

[data-theme="dark"] {
    --bg-main: #0f172a;
    --hero-bg: linear-gradient(135deg, #1f2937, #374151);
    --h2-color: #38bdf8;
    --h3-color: #60a5fa;
    --btn-bg: #2563eb;
    --btn-hover: #1d4ed8;
    --btn-text: #ffffff;
    --badge-bg: #334155;
    --badge-text: #94a3b8;
}

/* =====================================================
   2. GRUNDDESIGN & RESET
   ===================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: #334155;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Dunkler Modus Textanpassung */
[data-theme="dark"] body {
    color: #cbd5e1;
}

/* =====================================================
   3. HERO BEREICH
   ===================================================== */
.hero {
    background: var(--hero-bg);
    color: #ffffff;
    padding: 70px 20px;
    text-align: center;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 700;
    color: #ffffff;
}

.hero p {
    font-size: 1.15rem;
    max-width: 760px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

/* Badge / Kategorie */
.badge {
    display: inline-block;
    background-color: var(--badge-bg);
    color: var(--badge-text);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =====================================================
   4. LAYOUT, CONTAINER & LISTEN (PUNKT 2: CHECKMARKS)
   ===================================================== */
.container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 45px 20px;
    flex: 1;
}

section {
    background: #ffffff;
    margin-bottom: 25px;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] section {
    background: #1e293b;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

/* Typografie in Sektionen */
h2 {
    margin-top: 0;
    color: var(--h2-color);
    font-size: 1.65rem;
    margin-bottom: 1rem;
}

h3 {
    color: var(--h3-color);
    margin-bottom: 8px;
}

p {
    margin-bottom: 18px;
    font-size: 1rem;
}

/* PUNKT 2: Optische Häkchen (✓) für Listen */
section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 18px;
}

section ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
}

section ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    color: #16a34a; /* Kräftiges Grün */
    font-weight: 800;
    font-size: 1.15rem;
}

[data-theme="dark"] section ul li::before {
    color: #4ade80; /* Helleres Grün im Dunkelmodus */
}

/* =====================================================
   5. BUTTONS / CTA & MOBILE STICKY (PUNKT 4)
   ===================================================== */
.cta, .cta-button {
    display: inline-block;
    background-color: var(--btn-bg);
    color: var(--btn-text) !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
}

.cta:hover, .cta-button:hover {
    background-color: var(--btn-hover);
    transform: translateY(-1px);
    opacity: 0.95;
}

.cta-center {
    text-align: center;
    margin: 35px 0;
}

/* PUNKT 4: Mitscrollender CTA-Button auf Mobilgeräten */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    border-top: 1px solid #e2e8f0;
}

[data-theme="dark"] .mobile-sticky-bar {
    background: rgba(15, 23, 42, 0.95);
    border-top-color: #1e293b;
}

.mobile-sticky-bar .cta, .mobile-sticky-bar .cta-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   6. SEO & FAQ AKKORDEON (PUNKT 5)
   ===================================================== */
.faq-section {
    margin-top: 2.5rem;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
}

[data-theme="dark"] .faq-item {
    border-bottom-color: #334155;
}

.faq-item:last-child {
    border-bottom: 0;
}

/* PUNKT 5: Akkordeon-Header / Aufklapp-Funktion */
.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: bold;
    color: #64748b;
    margin-left: 12px;
    line-height: 1;
}

[data-theme="dark"] .faq-item summary::after {
    color: #94a3b8;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    margin-top: 12px;
    padding-right: 20px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Affiliate Hinweis */
.notice {
    font-size: 0.9rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 18px;
    border-radius: 8px;
    margin-top: 20px;
}

[data-theme="dark"] .notice {
    background: #1e293b;
    color: #94a3b8;
}

/* =====================================================
   7. FOOTER & RESPONSIVENESS
   ===================================================== */
footer {
    text-align: center;
    padding: 30px 20px 45px;
    font-size: 0.875rem;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
    background-color: #ffffff;
}

[data-theme="dark"] footer {
    background-color: #0f172a;
    border-top-color: #1e293b;
    color: #64748b;
}

footer a {
    color: #64748b;
    text-decoration: none;
}

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

/* Responsiveness */
@media(max-width: 650px) {
    .hero { padding: 50px 18px; }
    section { padding: 25px 20px; }
    
    /* Aktivierung der Sticky Bar auf Mobilgeräten */
    .mobile-sticky-bar { display: block; }
    body { padding-bottom: 75px; } /* Verhindert Überlappung mit dem Footer */
}