/* ===================================
   LERNPLAN GENERATOR STYLES
   =================================== */

:root {
    --empfehlung-warn-bg: #fff3e0;
    --empfehlung-warn-border: #ff9800;
    --empfehlung-erfolg-bg: #e8f5e9;
    --empfehlung-erfolg-border: #4caf50;
    --empfehlung-tipp-bg: #e3f2fd;
    --empfehlung-tipp-border: #2196f3;
    --empfehlung-info-bg: #f3e5f5;
    --empfehlung-info-border: #9c27b0;
    --empfehlung-subtitle-bg: linear-gradient(135deg, rgba(255, 183, 197, 0.24), rgba(212, 181, 241, 0.2));
    --empfehlung-subtitle-text: var(--primary-dark);
}

[data-theme="dark"] {
    --empfehlung-warn-bg: rgba(255, 152, 0, 0.12);
    --empfehlung-warn-border: #ffb74d;
    --empfehlung-erfolg-bg: rgba(104, 210, 187, 0.14);
    --empfehlung-erfolg-border: #68d2bb;
    --empfehlung-tipp-bg: rgba(199, 169, 255, 0.14);
    --empfehlung-tipp-border: #c7a9ff;
    --empfehlung-info-bg: rgba(255, 46, 230, 0.12);
    --empfehlung-info-border: #ff9bf2;
    --empfehlung-subtitle-bg: linear-gradient(135deg, rgba(255, 46, 230, 0.18), rgba(104, 210, 187, 0.14));
    --empfehlung-subtitle-text: #ffe6f4;
}

/* ===================================
   WIZARD CONTAINER
   =================================== */

.lernplan-wizard {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Progress Bar */
.wizard-progress {
    margin-bottom: 3rem;
}

.progress-bar {
    height: 8px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-full);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.progress-step.active .step-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(255, 183, 197, 0.2);
}

.progress-step.completed .step-circle {
    border-color: var(--secondary);
    background: var(--secondary);
    color: white;
}

.progress-step.completed .step-circle::after {
    content: '✓';
    position: absolute;
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

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

/* ===================================
   WIZARD STEPS
   =================================== */

.wizard-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.wizard-step {
    min-height: 400px;
}

.step-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.step-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 2rem;
    box-sizing: border-box;
    max-width: 100%;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--text-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-sizing: border-box;
    max-width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 183, 197, 0.2);
}

.form-hint {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.form-range {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    outline: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 183, 197, 0.4);
}

.form-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 183, 197, 0.4);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Choice Buttons (Step 1) */
.button-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.choice-button {
    padding: 1.5rem;
    border: 3px solid var(--text-light);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.choice-button:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.choice-button.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 183, 197, 0.1) 0%, rgba(212, 181, 241, 0.1) 100%);
    box-shadow: var(--shadow-colored);
}

.choice-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.choice-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

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

/* Radio & Checkbox Groups */
.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label, .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--text-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-label:hover, .checkbox-label:hover {
    border-color: var(--primary);
    background: var(--bg-primary);
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.radio-label span, .checkbox-label span {
    flex: 1;
}

.checkbox-label.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-label-standalone {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.checkbox-label-standalone:hover {
    border-color: var(--primary);
}

.checkbox-label-standalone input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-top: 0.25rem;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Radio Cards */
.radio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.radio-card {
    padding: 1.5rem 1rem;
    border: 3px solid var(--text-light);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.radio-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 183, 197, 0.1) 0%, rgba(212, 181, 241, 0.1) 100%);
    box-shadow: var(--shadow-colored);
}

.radio-card input[type="radio"] {
    display: none;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.card-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

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

/* Radio Inline (Step 3) */
.radio-inline {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-label-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    white-space: nowrap;
}

.radio-label-inline input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

/* Themen Liste (Step 3) */
#themen-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.thema-item {
    padding: 1.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--text-light);
    border-radius: var(--radius-md);
}

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

.thema-header .form-input {
    flex: 1;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.25rem;
}

.btn-icon:hover {
    background: #ff5252;
    color: white;
    transform: scale(1.1);
}

.btn-remove {
    background: #ffebee;
    color: #d32f2f;
}

.thema-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.option-label {
    min-width: 100px;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* Weekday Grid (Step 4) */
.weekday-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.weekday-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--text-light);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.weekday-item.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 183, 197, 0.1) 0%, rgba(212, 181, 241, 0.1) 100%);
}

.weekday-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.weekday-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.weekday-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.weekday-hours {
    width: 70px;
    padding: 0.5rem 0.25rem;
    border: 1px solid var(--text-light);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.weekday-hours:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 183, 197, 0.2);
}

.weekday-hours:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-primary);
}

/* Desktop: Show input, hide select */
.weekday-hours-desktop {
    display: block;
}

.weekday-hours-mobile {
    display: none;
}

/* Mobile: Hide input, show select */
@media (max-width: 768px) {
    .weekday-hours-desktop {
        display: none;
    }

    .weekday-hours-mobile {
        display: block;
    }
}

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

/* Time Warnings */
.time-warning {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-top: 1rem;
    border-left: 4px solid;
}

.warning-critical {
    background: #fff3e0;
    color: #e65100;
    border-color: #ff9800;
}

.warning-sufficient {
    background: #e3f2fd;
    color: #0d47a1;
    border-color: #2196f3;
}

.warning-optimal {
    background: #e8f5e9;
    color: #1b5e20;
    border-color: #4caf50;
}

.warning-excellent {
    background: #f3e5f5;
    color: #4a148c;
    border-color: #9c27b0;
}

/* Info Box */
.info-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 183, 197, 0.1) 0%, rgba(212, 181, 241, 0.1) 100%);
    border-radius: var(--radius-md);
    border: 2px solid var(--primary);
    margin-top: 2rem;
}

.info-box-icon {
    font-size: 2rem;
}

.info-box-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-box-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Validation Errors */
.validation-error {
    padding: 1rem;
    background: #ffebee;
    color: #c62828;
    border-radius: var(--radius-sm);
    border-left: 4px solid #d32f2f;
    margin-top: 1.5rem;
    font-weight: 500;
}

/* Navigation Buttons */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

/* ===================================
   PLAN OUTPUT
   =================================== */

.plan-output {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.plan-emoji {
    font-size: 2.5rem;
}

.plan-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Metadata Cards */
.plan-metadata {
    margin-bottom: 2rem;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.metadata-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.metadata-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.metadata-card.erfolgschance {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

.metadata-icon {
    font-size: 2.5rem;
}

.metadata-content {
    flex: 1;
}

.metadata-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.metadata-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Empfehlungen */
.empfehlungen-section {
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--empfehlung-subtitle-text);
    background: var(--empfehlung-subtitle-bg);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
}

.empfehlungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.empfehlung-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border-left: 4px solid;
}

.empfehlung-warnung {
    background: var(--empfehlung-warn-bg);
    border-color: var(--empfehlung-warn-border);
}

.empfehlung-erfolg {
    background: var(--empfehlung-erfolg-bg);
    border-color: var(--empfehlung-erfolg-border);
}

.empfehlung-tipp {
    background: var(--empfehlung-tipp-bg);
    border-color: var(--empfehlung-tipp-border);
}

.empfehlung-info {
    background: var(--empfehlung-info-bg);
    border-color: var(--empfehlung-info-border);
}

.empfehlung-icon {
    font-size: 1.5rem;
}

.empfehlung-titel {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.empfehlung-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.empfehlung-aktion {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-style: italic;
    color: var(--primary);
}

/* Toolbar */
.plan-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.reminder-banner {
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px dashed var(--primary);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    align-items: center;
}

.reminder-icon {
    font-size: 1.5rem;
}

.reminder-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reminder-title {
    font-weight: 700;
    color: var(--text-primary);
}

.reminder-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.reminder-extra {
    font-size: 0.9rem;
    color: var(--primary);
}

.toolbar-left, .toolbar-right {
    display: flex;
    gap: 0.75rem;
    box-sizing: border-box;
    max-width: 100%;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-primary);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
}

.toggle-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn:hover {
    background: var(--bg-card);
}

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

/* Sessions Liste */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.day-group {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

.day-date {
    font-weight: 600;
    font-size: 1.1rem;
}

.day-meta {
    font-size: 0.875rem;
    opacity: 0.9;
}

.day-sessions {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Session Cards */
.session-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-primary);
    border: 2px solid var(--text-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.session-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.session-content {
    flex: 1;
}

.session-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.session-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.session-separator {
    color: var(--text-light);
}

.session-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tag-komplexität {
    background: #e3f2fd;
    color: #1565c0;
}

.tag-leicht {
    background: #e8f5e9;
    color: #2e7d32;
}

.tag-mittel {
    background: #fff3e0;
    color: #ef6c00;
}

.tag-schwer {
    background: #ffebee;
    color: #c62828;
}

.tag-priorität {
    background: #f3e5f5;
    color: #6a1b9a;
}

.tag-hoch {
    background: #fce4ec;
    color: #c2185b;
}

.tag-niedrig {
    background: #e0f7fa;
    color: #00838f;
}

.tag-pomodoro {
    background: #fff3e0;
    color: #e65100;
}

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

/* Kalender View */
.kalender-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.week-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--primary);
    color: white;
}

.week-header h4 {
    margin: 0;
}

.week-sessions {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calendar-session {
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-session:hover {
    background: var(--bg-card);
    transform: translateX(4px);
}

.cal-session-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.cal-session-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.cal-session-duration {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Session Details Modal */
.plan-modal {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.session-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--text-light);
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
}

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

.aktivität-detail {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
}

.aktivität-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.aktivität-dauer {
    color: var(--primary);
    font-weight: 600;
}

.aktivität-beschreibung {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.checkpunkte ul {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
}

.checkpunkte li {
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

.tipps-list {
    margin-left: 1.5rem;
}

.tipps-list li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* ===================================
   RESPONSIVE
   =================================== */

/* Bug 5 Fix: Show/hide max sessions input based on viewport */
.max-sessions-mobile {
    display: none;
}

.max-sessions-desktop {
    display: block;
}

@media (max-width: 768px) {
    .progress-steps {
        display: none;
    }

    .wizard-content {
        padding: 1.5rem;
        box-sizing: border-box;
        max-width: 100%;
        overflow-x: hidden;
    }

    .step-title {
        font-size: 1.75rem;
    }

    .form-group {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .form-input,
    .form-input[type="date"],
    .form-input[type="number"],
    .form-input[type="text"],
    .form-input[type="email"] {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .button-group {
        grid-template-columns: 1fr;
    }

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

    .weekday-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .metadata-grid {
        grid-template-columns: 1fr 1fr;
    }

    .plan-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }

    .toolbar-left, .toolbar-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .toolbar-right {
        gap: 0.5rem;
    }

    .toolbar-right .btn {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
        white-space: nowrap;
    }

    .kalender-grid {
        grid-template-columns: 1fr;
    }

    .wizard-navigation {
        flex-direction: column-reverse;
    }

    .wizard-navigation .btn {
        width: 100%;
    }

    /* Bug 7 Fix: Enhanced plan header/title for mobile */
    .plan-header {
        margin-bottom: 3rem;
        padding: 2rem 1rem;
        background: linear-gradient(135deg, rgba(255, 183, 197, 0.15) 0%, rgba(212, 181, 241, 0.15) 100%);
        border-radius: var(--radius-lg);
        position: relative;
        overflow: hidden;
    }

    .plan-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    }

    .plan-title {
        font-size: 3rem;
        margin-bottom: 1rem;
        gap: 1rem;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .plan-emoji {
        font-size: 3.5rem;
        animation: celebration 0.6s ease-out;
    }

    @keyframes celebration {
        0% { transform: scale(0) rotate(0deg); }
        50% { transform: scale(1.2) rotate(10deg); }
        100% { transform: scale(1) rotate(0deg); }
    }

    .plan-text {
        text-shadow: 0 0 40px rgba(255, 183, 197, 0.3);
    }

    .plan-subtitle {
        font-size: 1.3rem;
        font-weight: 500;
        max-width: 600px;
        margin: 0 auto;
    }

    /* Bug 6 Fix: Enhanced ungenutzte Zeit styling for mobile */
    .empfehlung-ungenutzte_zeit {
        background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 193, 7, 0.1) 100%);
        border-color: var(--empfehlung-warn-border);
        border-width: 3px;
        padding: 1.5rem;
        box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
    }

    .empfehlung-ungenutzte_zeit .empfehlung-icon {
        font-size: 2rem;
    }

    .empfehlung-ungenutzte_zeit .empfehlung-titel {
        font-size: 1.1rem;
        font-weight: 700;
    }

    .empfehlung-ungenutzte_zeit .empfehlung-text {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .empfehlung-aktion-btn {
        margin-top: 1rem;
        padding: 0.75rem 1.5rem;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: var(--radius-sm);
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 0.95rem;
    }

    .empfehlung-aktion-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 183, 197, 0.4);
    }

    /* Bug 5 Fix: Show dropdown on mobile, hide number input */
    .max-sessions-desktop {
        display: none;
    }

    .max-sessions-mobile {
        display: block;
    }
}

@media (max-width: 480px) {
    .lernplan-wizard {
        padding: 1rem 0.5rem;
    }

    .wizard-content {
        padding: 1rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .choice-icon {
        font-size: 2rem;
    }

    .metadata-grid {
        grid-template-columns: 1fr;
    }

    .empfehlungen-grid {
        grid-template-columns: 1fr;
    }

    .option-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .option-label {
        min-width: auto;
        width: 100%;
    }

    .radio-inline {
        width: 100%;
    }

    .radio-label-inline {
        font-size: 0.9rem;
    }

    .plan-toolbar {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .toolbar-right .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem;
    }

    .view-toggle {
        width: 100%;
    }

    .toggle-btn {
        flex: 1;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}
