:root {
    --primary: #0f172a;
    /* Slate 900 */
    --accent: #f59e0b;
    /* Amber 500 */
    --accent-hover: #d97706;
    /* Amber 600 */
    --bg: #f8fafc;
    /* Slate 50 */
    --card: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    /* Slate 500 */
    --border: #e2e8f0;
    /* Slate 200 */
    --radius-lg: 32px;
    --radius-md: 16px;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    font-weight: 800;
}

.hidden {
    display: none !important;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

.logo {
    font-size: 1.25rem;
    cursor: pointer;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -1px;
}

.logo-choice {
    color: var(--accent);
}

/* Layout Containers */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 64px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

section {
    width: 100%;
    animation: fadeIn 0.6s ease-out;
}

/* Landing Page */
.landing-page {
    padding: 4rem 1.5rem;
    text-align: center;
}

.badge-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.rating-badge {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-badge i {
    color: var(--accent);
}

.study-badge {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tech-tag {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-style: italic;
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 4.5rem);
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -3px;
    overflow-wrap: break-word;
    hyphens: auto;
}

.hero-title span {
    color: var(--accent);
    text-transform: uppercase;
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.cta-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

.meta-divider {
    color: var(--border);
    font-weight: 400;
}


.btn-cta {
    background: var(--primary);
    color: white;
    padding: 1.5rem 3.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-style: italic;
    text-transform: uppercase;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin-bottom: 1.5rem;
}

.btn-cta:hover {
    transform: translateY(-4px) scale(1.02);
    background: #1e293b;
}



/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
}

.testimonial-card {
    background: transparent;
    padding: 1rem;
    text-align: left;
    transition: all 0.3s ease;
}

.stars {
    color: var(--accent);
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    color: var(--text);
    font-weight: 500;
}

.author-info .name {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--primary);
}

.author-info .role {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Survey Section */
.survey-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.survey-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.back-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.5rem;
    transition: color 0.3s;
}

.back-btn:hover {
    color: var(--accent);
}

.progress-counter {
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.progress-counter span {
    color: var(--accent);
}

.progress-bar-track {
    height: 6px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Question Layout */
.question-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.5);
    display: flex;
    flex-direction: column;
}

.split-layout {
    display: flex;
    flex-direction: column;
}

.image-container {
    width: 100%;
    background: white;
    /* Einheitliches Weiß wie gewünscht */
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.image-container img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 20px;
}

.content-container {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

/* No-Image Layout (Centered) */
.question-card.no-image .split-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.question-card.no-image .content-container {
    width: 100%;
    max-width: 600px;
    text-align: center;
    padding: 4rem 2rem;
}

.question-card.no-image .options-grid,
.question-card.no-image .special-form,
.question-card.no-image .free-text-wrap {
    width: 100%;
    text-align: left;
}

.question-card.no-image .question-text {
    text-align: center;
    width: 100%;
    font-size: 2.25rem;
}

.question-text {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    line-height: 1.3;
    color: var(--primary);
}

/* Free Text Styling */
.free-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

textarea {
    width: 100%;
    min-height: 160px;
    padding: 1.5rem;
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--primary);
    resize: none;
    transition: var(--transition);
}

textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

textarea::placeholder {
    color: #94a3b8;
    font-style: italic;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    grid-auto-rows: 1fr;
    /* ERZWINGT GLEICHE HÖHE FÜR ALLE BUTTONS IN EINER REIHE */
    align-items: stretch;
}

.option-btn {
    padding: 1.25rem 1rem;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 20px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    /* Wichtig für grid-auto-rows */
    line-height: 1.2;
}

.option-btn:hover {
    background: white;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.option-btn:active,
.option-btn.selected {
    border-color: var(--accent) !important;
    /* Goldene Umrandung bei Auswahl */
    background: white;
    transform: scale(0.98);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

/* Q49 Specific */
.special-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group label {
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: block;
}

.gender-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gender-btn {
    padding: 0.75rem;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.gender-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.slider-wrap {
    display: flex;
    flex-direction: column;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.slider-header label {
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.slider-value {
    color: var(--accent);
    font-weight: 800;
    font-style: italic;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

/* Fact View (Intermission) */
.fact-view {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 70vh;
}

.fact-card {
    background: white;
    padding: 4rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    max-width: 600px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--border);
    animation: slideUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fact-icon {
    width: 80px;
    height: 80px;
    background: #fff7ed;
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.1);
}

.fact-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 900;
}

.fact-text {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary);
    margin-bottom: 2rem;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Premium Loading View --- */
.premium-loader {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5rem 2rem;
    border-radius: 40px;
    width: 100%;
    max-width: 550px;
    margin: 4rem auto;
    text-align: center;
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
}

.loader-ring {
    width: 140px;
    height: 140px;
    border: 6px solid #f1f5f9;
    border-top: 6px solid var(--accent);
    border-radius: 50%;
    margin: 0 auto 2.5rem;
    animation: spin 1.2s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

.loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--primary);
    font-size: 1.2rem;
    font-style: italic;
}

.loader-logo::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    bottom: 5px;
    right: -12px;
}

font-size: 1.8rem;
color: var(--primary);
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.loader-progress {
    width: 100%;
    max-width: 300px;
    height: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    margin: 0 auto 2rem;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #ffb236);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.loader-title {
    font-family: 'Outfit', sans-serif;
    font-style: italic;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.loading-msg {
    color: var(--slate-500);
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
}

.loading-percent {
    display: block;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-style: italic;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-msg {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-style: italic;
    animation: pulseText 1.5s infinite;
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Checkout View */
.checkout-view {
    padding: 3rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.checkout-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.checkout-benefits {
    text-align: left;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    border-radius: 16px;
    margin: 1.5rem 0;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.checkout-video-placeholder:hover {
    transform: scale(1.01);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.7));
    gap: 0.75rem;
}

.video-overlay i {
    font-size: 3.5rem;
    color: var(--accent);
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.4));
}

.video-overlay span {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.benefit-icon {
    width: 32px;
    height: 32px;
    background: #fffbeb;
    color: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.price-box {
    margin: 2.5rem 0;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 700;
}

.new-price {
    font-size: 4rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -2px;
    line-height: 1;
}

.new-price span {
    font-size: 1.5rem;
}

/* Desktop Styles */
@media (min-width: 900px) {
    .split-layout {
        flex-direction: row;
        min-height: 600px;
    }

    .image-container {
        width: 50%;
        padding: 4rem;
    }

    .content-container {
        width: 50%;
        padding: 5rem;
    }

    .question-text {
        font-size: 2.25rem;
        text-align: left;
    }

    .content-container .option-btn {
        font-size: 1.1rem;
    }

    /* Override for No-Image on Desktop */
    .question-card.no-image .split-layout {
        flex-direction: column;
    }

    .question-card.no-image .question-text {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Spalten wie im Screenshot gewuenscht */
        gap: 10px;
    }

    .hero-title {
        font-size: 1.75rem;
        letter-spacing: -1px;
        hyphens: auto;
        overflow-wrap: break-word;
    }

    .hero-title span {
        display: block;
        font-size: 1.6rem;
    }

    .survey-page {
        padding: 1rem;
    }

    .question-card {
        padding: 0;
        border-radius: 24px;
        background: white;
        box-shadow: var(--shadow);
        border: 1px solid var(--border);
        overflow: hidden;
        margin: 0 auto;
        width: 100%;
    }

    .content-container {
        padding: 1.5rem 1rem 2rem;
    }

    .question-text {
        font-size: 1.4rem;
        margin: 1rem 0 1.5rem;
        padding: 0;
        line-height: 1.2;
    }

    .image-container {
        min-height: 180px;
        border-radius: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer {
    padding: 3rem 2rem;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-copyright {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.footer-divider {
    color: var(--accent);
    margin: 0 10px;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-links {
        gap: 1.5rem;
    }
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 18px;
    font-weight: 900;
    cursor: pointer;
    font-style: italic;
    text-transform: uppercase;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.25);
}

.btn-primary i {
    color: var(--accent);
}

/* --- Report View --- */
.report-view {
    padding: 3rem 1.5rem;
    max-width: 950px;
    margin: 0 auto;
}

/* Spinner für Ladezustand */
.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(15, 23, 42, 0.1);
    border-left-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- PREMIUM REPORT STYLING --- */
.report-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
    margin-bottom: 3rem;
}

.report-section {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
}

@media (max-width: 768px) {
    .report-section {
        padding: 1.25rem !important;
        border-radius: 16px;
    }

    .section-header {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .report-section h2 {
        font-size: 1.2rem !important;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }

    .section-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .report-container {
        gap: 1.5rem;
    }

    .report-section h2 {
        font-size: 1.4rem !important;
    }

    .report-content-body {
        font-size: 1.05rem !important;
        line-height: 1.7 !important;
    }
}

.report-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

/* Sektions-Icons & Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #fef3c7;
}

.section-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
    flex-shrink: 0;
}

.report-section h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-size: 1.75rem;
    margin: 0;
    font-style: italic;
    font-weight: 700;
    overflow-wrap: break-word;
}

/* Spezielle Sektions-Farben */
.section-disclaimer {
    background: #f8fafc;
    border-left: 6px solid #94a3b8;
}

.section-summary {
    background: linear-gradient(135deg, #fff 0%, #fffbeb 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.section-summary .section-header {
    border-color: rgba(245, 158, 11, 0.3);
}

.section-plan {
    background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.section-plan .section-icon {
    background: #0ea5e9;
}

/* Evidenz-Badges */
.evidence-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 8px 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.badge-green {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.badge-yellow {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fef08a;
}

.badge-blue {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.badge-purple {
    background: #f3e8ff;
    color: #6b21a8;
    border: 1px solid #e9d5ff;
}

/* Typografie im Bericht */
.report-content-body {
    line-height: 1.9;
    color: #334155;
    font-size: 1.15rem;
}

/* Tabellen Styling */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: white;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background: #f8fafc;
}

tr:hover {
    background: #f1f5f9;
}

td strong {
    color: var(--primary);
}

.report-content-body p {
    margin-bottom: 1.5rem;
}

.report-content-body ul {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.report-content-body li {
    margin-bottom: 1.25rem;
    position: relative;
    padding-left: 2rem;
}

.report-content-body li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 900;
    font-size: 1.2rem;
}

.report-content-body strong {
    color: var(--primary);
    font-weight: 700;
}

/* --- Report Actions & Buttons --- */
.report-actions-hidden {
    display: none !important;
}

.report-actions-visible {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--slate-100);
    width: 100%;
}

.btn-master {
    width: 100% !important;
    max-width: 600px;
    padding: 1.5rem 2rem !important;
    font-size: 1.15rem !important;
    background: var(--primary) !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-master:hover {
    background: #1e293b !important;
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2) !important;
}

.report-link-info {
    text-align: center;
    font-size: 0.95rem;
    color: var(--slate-500);
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* PDF RENDERING FIXES */
#pdf-export-mode {
    font-family: 'Inter', sans-serif !important;
}

#pdf-export-mode #report-content {
    background: white !important;
    color: #0f172a !important;
}

/* --- RESPONSIVE TABLES & PDF STACKING (KARTEN-STRUKTUR) --- */
.report-view .table-container,
#pdf-export-mode .table-container {
    border: none !important;
    overflow-x: visible !important;
}

.report-view table,
.report-view thead,
.report-view tbody,
.report-view th,
.report-view td,
.report-view tr,
#pdf-export-mode table,
#pdf-export-mode thead,
#pdf-export-mode tbody,
#pdf-export-mode th,
#pdf-export-mode td,
#pdf-export-mode tr {
    display: block !important;
    width: 100% !important;
}

.report-view thead tr,
#pdf-export-mode thead tr {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
}

.report-view tr,
#pdf-export-mode tr {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    margin-bottom: 1.5rem !important;
    padding: 1.25rem !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03) !important;
}

.report-view td,
#pdf-export-mode td {
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    position: relative !important;
    padding: 0.75rem 0.5rem 0.75rem 0.5rem !important;
    /* Etwas mehr seitliches Padding am Handy */
    text-align: left !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

.report-view td:last-child,
#pdf-export-mode td:last-child {
    border-bottom: none !important;
}

.report-view td::before,
#pdf-export-mode td::before {
    content: attr(data-label);
    display: block;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.report-view td:first-child,
#pdf-export-mode td:first-child {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
    border-bottom: 2px solid #f1f5f9 !important;
    margin-bottom: 0.5rem !important;
    padding-top: 0 !important;
}

/* FORCED CARD VIEW FOR HTML2PDF (ID-based, ignores media query width) */
#pdf-export-mode .table-container {
    border: none !important;
    overflow-x: visible !important;
}

#pdf-export-mode table,
#pdf-export-mode thead,
#pdf-export-mode tbody,
#pdf-export-mode th,
#pdf-export-mode td,
#pdf-export-mode tr {
    display: block !important;
    width: 100% !important;
}

#pdf-export-mode thead tr {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
}

#pdf-export-mode tr {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    margin-bottom: 2rem !important;
    padding: 1.5rem !important;
}

#pdf-export-mode td {
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    position: relative !important;
    padding: 1rem 0 !important;
    text-align: left !important;
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
}

#pdf-export-mode td::before {
    content: attr(data-label);
    display: block;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 6px;
}

#pdf-export-mode td:first-child {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
    border-bottom: 2px solid #f1f5f9 !important;
}

#pdf-export-mode .report-section {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    margin-bottom: 30px !important;
    display: block !important;
}

#pdf-export-mode .section-header {
    break-after: avoid !important;
    page-break-after: avoid !important;
}

#pdf-export-mode tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    display: block !important;
    margin-bottom: 2rem !important;
}

#pdf-export-mode {
    font-family: 'Inter', sans-serif !important;
    background: white !important;
    color: #0f172a !important;
    width: 100% !important;
    padding: 40px !important;
    /* Puffer für html2pdf Export */
}


/* --- Newsletter Opt-In --- */
.newsletter-optin {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    border: 1px solid transparent;
}

.newsletter-optin:hover {
    background: white;
    border-color: var(--accent);
}

.newsletter-optin input {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--accent);
}

.newsletter-text {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.4;
}

.newsletter-text strong {
    color: var(--primary);
    display: block;
    margin-bottom: 2px;
}

/* --- Print Styles --- */
@media print {
    @page {
        size: A4 portrait;
        margin: 20mm !important;
    }

    html,
    body {
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        color: #0f172a !important;
        width: 100% !important;
    }

    /* Radikale Entfernung von Website-Elementen */
    .main-header,
    .footer,
    #report-actions,
    .btn-master,
    .newsletter-optin,
    .nav-container,
    .rating-badge,
    .study-badge,
    .online-status,
    .tech-tag,
    .print-only-header,
    .section-icon,
    .no-print,
    #report-loading,
    .loading-view,
    .checkout-view,
    .landing-page,
    .survey-page {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
    }

    .view:not(.report-view) {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
    }

    /* Der Bericht bekommt seinen eigenen Rand für Sauberkeit */
    .report-view {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        display: block !important;
        position: static !important;
    }

    .report-card {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        background: transparent !important;
    }

    .report-section {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
        margin-bottom: 2rem !important;
        border-bottom: 1px solid #f1f5f9 !important;
        padding-bottom: 1.5rem !important;
        display: block;
    }

    h1,
    h2,
    h3 {
        color: #0f172a !important;
        page-break-after: avoid !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}