:root {
    --color-primary:   var(--color-primary);
    --color-secondary: var(--color-secondary);
}

/* ============================================================
   Wellness Fragebogen – Hauptstylesheet
   Design 1:1 aus der Original-HTML-Datei übernommen
   ============================================================ */

/* --- Grundlegendes Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

h1, h2, h3, h4 {
    margin-top: 0;
    line-height: 1.3;
}

p { margin-top: 0; }

a { color: var(--color-primary); }

/* ============================================================
   Hauptcontainer
   ============================================================ */
.wellness-fragebogen-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================================
   Header
   ============================================================ */
.wellness-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 30px;
}

.wellness-header h1 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.9rem;
}

.wellness-header p {
    color: white;
    opacity: 0.95;
    margin: 0;
}

/* ============================================================
   Content-Card
   ============================================================ */
.wellness-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   Section Divider  (z. B. "Teil 1 – ...", "Ihre Kontaktdaten")
   ============================================================ */
.section-divider {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid var(--color-primary);
}

.section-divider h2 {
    color: var(--color-primary);
    margin: 0 0 4px;
    font-size: 1.2rem;
}

.section-divider p {
    margin: 0;
    color: #555;
    font-size: 14px;
}

/* ============================================================
   Disclaimer
   ============================================================ */
.disclaimer {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    font-size: 14px;
    color: #856404;
}

/* ============================================================
   Fragen-Abschnitt
   ============================================================ */
.question-section {
    margin-bottom: 35px;
    animation: fadeIn 0.5s ease-in;
}

/* Pflichtfeld-Stern */
.required-star {
    color: #ef4444;
    font-weight: 700;
}

/* Fehlende Pflichtfrage visuell markieren */
.question-section.missing {
    padding: 10px;
    border-radius: 8px;
    background: #fff5f5;
    outline: 2px solid #ef4444;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.question-section h3 {
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    padding-left: 16px;
    position: relative;
}

.question-section h3::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 2px;
    width: 4px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* ============================================================
   Antwort-Optionen
   ============================================================ */
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.option:hover {
    border-color: var(--color-primary);
    background: #f0f9ff;
    transform: translateX(5px);
}

.option input[type="checkbox"],
.option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.option label {
    cursor: pointer;
    flex-grow: 1;
    margin: 0;
}

.option.selected {
    border-color: var(--color-primary);
    background: #f0f9ff;
}

/* ============================================================
   Eingabefelder (Text)
   ============================================================ */
.text-input,
.customer-fields input[type="text"],
.customer-fields input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
    outline: none;
    background: white;
}

.text-input:focus,
.customer-fields input:focus {
    border-color: var(--color-primary);
}

/* ============================================================
   Kundendaten-Felder
   ============================================================ */
.customer-fields {
    margin-top: 10px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 15px;
}

.consent-group {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.consent-label span {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

.consent-group.missing {
    border-color: #ef4444;
    background: #fff5f5;
}

/* ============================================================
   Progress Bar
   ============================================================ */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    width: 0%;
    transition: width 0.5s ease;
}

/* ============================================================
   Submit-Button
   ============================================================ */
.button-container {
    text-align: center;
    margin-top: 40px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 173, 233, 0.3);
    font-family: inherit;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 173, 233, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   Allgemeine Buttons
   ============================================================ */
.btn-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 173, 233, 0.3);
    color: white;
}

/* ============================================================
   Ergebnis-Bereich
   ============================================================ */
.highlight {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.highlight h2 { color: white; margin-bottom: 10px; }
.highlight p  { color: white; margin: 0; opacity: 0.95; }

.phase-container {
    background: white;
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.phase-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.result-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-card {
    background: #f8f9fa;
    border-left: 4px solid var(--color-primary);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.result-card h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1.05rem;
    padding-left: 0;
}

.result-card h3::before { display: none !important; }

.result-card-desc {
    color: #555;
    font-size: 14px;
    margin-bottom: 12px;
}

.result-benefits {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}

.result-benefits li {
    padding: 3px 0;
    font-size: 14px;
    color: #444;
}

.result-benefits li i {
    color: var(--color-secondary);
    margin-right: 6px;
}

.result-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.btn-detail,
.btn-shop {
    padding: 9px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    font-family: inherit;
}

.btn-detail {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

.btn-shop {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
}

.btn-shop:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 173, 233, 0.3);
    color: white;
}

/* ============================================================
   Info-Box
   ============================================================ */
.info-box {
    padding: 18px 20px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    font-size: 14px;
    color: #0369a1;
    margin-top: 20px;
}

.info-box p { margin: 0; }
.info-box i  { margin-right: 6px; }

/* ============================================================
   Produkt-Modal
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: white;
    border-radius: 12px;
    max-width: 650px;
    width: 100%;
    margin: auto;
    padding: 35px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-title {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin: 0;
    flex: 1;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0 0 0 12px;
    line-height: 1;
    flex-shrink: 0;
}

.modal-close:hover { color: #333; }

.modal-description {
    color: #555;
    margin-bottom: 18px;
}

.modal-section {
    margin-bottom: 18px;
}

.modal-section h4 {
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.modal-benefits {
    margin: 0 0 0 20px;
    padding: 0;
    line-height: 1.8;
}

.modal-dosage-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.modal-dosage-table th,
.modal-dosage-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.modal-dosage-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
}

.modal-cta {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.modal-buy-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.modal-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 173, 233, 0.3);
    color: white;
}

/* ============================================================
   Bestätigungs-Seite
   ============================================================ */
.confirmation-box {
    text-align: center;
    padding: 50px 30px;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: white;
}

.confirmation-box h2 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

/* ============================================================
   Fehler-Hinweise
   ============================================================ */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}

.alert-danger {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #842029;
}

.alert-success {
    background: #d1e7dd;
    border-left: 4px solid #198754;
    color: #0f5132;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
    .wellness-fragebogen-container { padding: 10px; }
    .wellness-header { padding: 30px 20px; }
    .wellness-header h1 { font-size: 1.5rem; }
    .wellness-content { padding: 20px 15px; }
    .submit-btn { padding: 16px 30px; font-size: 16px; }
    .modal-box { padding: 25px 20px; }
    .result-card-actions { flex-direction: column; }
    .phase-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}
