/**
 * inline-migration.css
 * Phase 4: Inline-Styles Migration
 *
 * Ersetzt style="" Attribute mit wiederverwendbaren CSS-Klassen
 * für bessere Wartbarkeit und CSP-Konformität.
 *
 * @version 1.0
 * @date 2025-12-20
 */

/* ═══════════════════════════════════════════════════════════
   DATENSCHUTZ.PHP - Sektion-Titel
   ═══════════════════════════════════════════════════════════ */

.privacy-section-title {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

/* ═══════════════════════════════════════════════════════════
   PROBE-ABO.PHP / SUBSCRIPTION-CANCELED.PHP - Listen & Cards
   ═══════════════════════════════════════════════════════════ */

.benefit-list-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.benefit-list-item:last-child {
    margin-bottom: 0;
}

.gradient-card {
    background: linear-gradient(135deg, #F8F9FB 0%, #FAFBFC 100%);
    border-radius: 16px;
    padding: 2rem;
}

.gradient-card-warm {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFF5EB 100%);
    border-radius: 16px;
    padding: 2rem;
}

/* ═══════════════════════════════════════════════════════════
   DYNAMISCHE PROGRESS-BALKEN
   Verwendung: class="progress-dynamic" style="--progress-width: 75%"
   ═══════════════════════════════════════════════════════════ */

.progress-dynamic {
    width: var(--progress-width, 0%);
    transition: width 0.3s ease;
}

/* SVG Progress Circle */
.progress-circle-dynamic {
    stroke-dashoffset: var(--stroke-offset, 0);
    transition: stroke-dashoffset 0.5s ease;
}

/* ═══════════════════════════════════════════════════════════
   BEDINGTE INTENSITÄTS-FARBEN
   Verwendung: class="intensity-color intensity-low|medium|high"
   ═══════════════════════════════════════════════════════════ */

.intensity-color {
    color: var(--intensity-color);
}

.intensity-low {
    --intensity-color: var(--success, #0BAB7C);
}

.intensity-medium {
    --intensity-color: var(--warning, #F59E0B);
}

.intensity-high {
    --intensity-color: var(--accent, #FA7054);
}

/* ═══════════════════════════════════════════════════════════
   Y-BOCS SPEZIFISCH
   ═══════════════════════════════════════════════════════════ */

.ybocs-progress-bar {
    width: var(--progress-width, 0%);
    height: 100%;
    border-radius: 4px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.ybocs-score-circle {
    --progress-angle: 0deg;
}

/* ═══════════════════════════════════════════════════════════
   FLEXBOX UTILITIES
   ═══════════════════════════════════════════════════════════ */

.flex-center {
    display: flex;
    align-items: center;
}

.flex-center-gap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-gap-05 {
    gap: 0.5rem;
}

.flex-gap-1 {
    gap: 1rem;
}

.flex-gap-1-5 {
    gap: 1.5rem;
}

.flex-1 {
    flex: 1;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   SPACING UTILITIES
   ═══════════════════════════════════════════════════════════ */

/* Margin Top */
.mt-0 { margin-top: 0; }
.mt-05 { margin-top: 0.5rem; }
.mt-1 { margin-top: 1rem; }
.mt-1-5 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }

/* Margin Bottom */
.mb-0 { margin-bottom: 0; }
.mb-05 { margin-bottom: 0.5rem; }
.mb-075 { margin-bottom: 0.75rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-1-5 { margin-bottom: 1.5rem; }
.mb-2 { margin-bottom: 2rem; }

/* Padding */
.p-1 { padding: 1rem; }
.p-1-5 { padding: 1.5rem; }
.p-2 { padding: 2rem; }
.px-1 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 1rem; padding-bottom: 1rem; }

/* ═══════════════════════════════════════════════════════════
   TEXT UTILITIES
   ═══════════════════════════════════════════════════════════ */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-danger {
    color: var(--danger, #DC3545);
}

/* Font Sizes */
.fs-sm {
    font-size: 0.875rem;
}

.fs-xs {
    font-size: 0.75rem;
}

.fs-lg {
    font-size: 1.125rem;
}

/* Font Styles */
.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.font-italic {
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   DISPLAY UTILITIES
   ═══════════════════════════════════════════════════════════ */

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-inline {
    display: inline;
}

.d-inline-block {
    display: inline-block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

/* ═══════════════════════════════════════════════════════════
   WIDTH UTILITIES
   ═══════════════════════════════════════════════════════════ */

.w-100 {
    width: 100%;
}

.w-auto {
    width: auto;
}

.max-w-400 {
    max-width: 400px;
}

.max-w-600 {
    max-width: 600px;
}

/* ═══════════════════════════════════════════════════════════
   BORDER UTILITIES
   ═══════════════════════════════════════════════════════════ */

.border-none {
    border: none;
}

.rounded-12 {
    border-radius: 12px;
}

.rounded-16 {
    border-radius: 16px;
}

/* ═══════════════════════════════════════════════════════════
   SPEZIFISCHE KOMPONENTEN
   ═══════════════════════════════════════════════════════════ */

/* Subscription / Probe-Abo Page Styles */
.subscription-benefit-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

.subscription-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.subscription-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.subscription-period {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Log Monitor Styles */
.log-level-error {
    color: #dc3545;
}

.log-level-warning {
    color: #ffc107;
}

.log-level-info {
    color: #17a2b8;
}

/* Detail Page Styles */
.detail-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.detail-empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

/* ═══════════════════════════════════════════════════════════
   PROBE-ABO / SUBSCRIPTION PAGES
   ═══════════════════════════════════════════════════════════ */

/* Volle Höhe Container für zentrierte Karten */
.subscription-page-container {
    min-height: 80vh;
    padding: 2rem;
}

/* Benefit-Liste Wrapper */
.benefit-list {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2.5rem;
}

/* Untertitel für Abo-Seiten */
.subscription-subtitle {
    font-size: 1.25rem;
    margin-top: 0.5rem;
}

/* Zusätzliche Spacing Utilities */
.mt-075 { margin-top: 0.75rem; }
.mb-2-5 { margin-bottom: 2.5rem; }

/* Subscription Canceled Seite */
.subscription-icon-success {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
}

.subscription-icon-success i {
    color: #4CAF50;
}

.subscription-message-lg {
    font-size: 1.1rem;
    line-height: 1.6;
}

.subscription-message-secondary {
    color: #666;
}

/* Premium Feature Box */
.premium-feature-box {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.premium-feature-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #333;
}

.premium-feature-title .bi-stars {
    color: #FFB300;
}

.premium-feature-list {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: #555;
}

/* Buttons Column Layout */
.buttons-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Secondary Outline Button */
.btn-unified.secondary-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
}

.btn-unified.secondary-outline:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* Contact Submessage */
.subscription-contact {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #888;
}

/* ═══════════════════════════════════════════════════════════
   Y-BOCS SEITEN
   ═══════════════════════════════════════════════════════════ */

/* Dynamische Progress-Balken für Subscores */
.subscore-progress-bar.obsession,
.subscore-progress-bar.compulsion {
    width: var(--progress-width, 0%);
}

/* Info Box (Hinweis-Container) */
.ybocs-info-box {
    background: var(--info-light);
    color: var(--info);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.ybocs-info-box.mb-1 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.ybocs-info-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ybocs-info-title i {
    margin-right: 0.5rem;
}

.ybocs-info-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Score Interpretation Section */
.score-interpretation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.score-label {
    font-weight: 600;
    color: var(--text-primary);
}

.score-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Ordered List Styling */
.symptom-list {
    margin: 0;
    padding-left: 1.25rem;
}

.symptom-list-item {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.symptom-empty {
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
    font-size: 0.875rem;
}

/* Button Full Width + Centered */
.btn-full-center {
    width: 100%;
    justify-content: center;
}

/* Empty State Sizing */
.empty-icon-lg {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

/* Table Header Widths */
.th-date { width: 180px; }
.th-actions { width: 100px; }

/* Action Buttons Container */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Mobile List Grid */
.mobile-list-2col {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Additional Text Utilities */
.fs-md { font-size: 0.9375rem; }
.lh-1-5 { line-height: 1.5; }
.lh-1-4 { line-height: 1.4; }

/* Answer Label Subtitle */
.answer-subtitle {
    margin-top: 0.5rem;
}

.answer-group-title {
    margin: 0.25rem 0 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   DETAIL.PHP - Zwangsdetail-Seite
   ═══════════════════════════════════════════════════════════ */

/* Dynamische Intensitätsbalken */
.intensity-bar-fill {
    width: var(--progress-width, 0%);
}

/* Alert mit angepasstem Spacing */
.alert-modern.mt-1-5 {
    margin-top: 1.5rem;
}

.alert-modern.mb-0 {
    margin-bottom: 0;
}

/* Behavior Grid */
.behavior-grid.mt-1-5 {
    margin-top: 1.5rem;
}

/* Button Container zentriert */
.button-container-center {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Paragraph Reset für Detailansicht */
.detail-paragraph {
    margin: 0;
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════
   ONBOARDING / TEUFELSKREIS - Progress Bars
   ═══════════════════════════════════════════════════════════ */

/* Onboarding Progress Bar */
.progress-slim {
    height: 8px;
}

/* Verstecktes Formular */
.form-hidden {
    display: none;
}
