:root {
    /* Farbpalette (anpassbar) */
    --color-bg: #f4f7f6;
    --color-white: #ffffff;
    --color-blue: #0088ce;  /* Demo² Blau */
    --color-green: #a4c400; /* Demo² Grün */
    --color-text: #333333;
    --color-gray-light: #e0e0e0;
    --color-gray-dark: #666666;
    
    /* Design-Tokens */
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* =========================================
   1. LAYOUT, HEADER & UTILITIES
   ========================================= */
.app-header {
    background-color: var(--color-white);
    text-align: center;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

#app-logo {
    max-height: 50px;
    width: auto;
}

.app-container {
    max-width: 600px; 
    margin: 20px auto;
    padding: 0 15px;
}

.app-section {
    background: var(--color-white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    animation: fadeIn 0.4s ease-in-out;
}

/* Universelle Abstands-Klassen (Utilities) */
.mb-medium { margin-bottom: 15px; }
.mb-large { margin-bottom: 30px; }
.mt-medium { margin-top: 25px; }
.hidden { display: none !important; }

h2 {
    color: var(--color-blue);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--color-green);
    padding-bottom: 5px;
    display: inline-block;
}

h3 {
    margin: 25px 0 10px 0;
    font-size: 1.1rem;
    color: var(--color-blue);
}

/* =========================================
   2. STANDARD-BUTTONS & EINGABEN
   ========================================= */
.btn-primary {
    background-color: var(--color-green);
    color: var(--color-white);
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled {
    background-color: var(--color-gray-light);
    color: var(--color-gray-dark);
    cursor: not-allowed;
}

input[type="text"] {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid var(--color-gray-light);
    border-radius: 8px;
    font-size: 16px;
    background-color: var(--color-bg);
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--color-blue);
}

.transport-modes {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-mode {
    flex: 1;
    background: var(--color-white);
    border: 2px solid var(--color-gray-light);
    color: var(--color-gray-dark);
    padding: 12px 5px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-mode.active {
    border-color: var(--color-blue);
    background-color: var(--color-blue);
    color: var(--color-white);
}

/* =========================================
   3. FORMULARE & TEXTFELDER
   ========================================= */
.form-group { margin-bottom: 30px; }
.form-label { font-weight: bold; margin-bottom: 15px; }

.form-textarea { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid var(--color-gray-light); 
    border-radius: 8px; 
    font-family: inherit; 
    font-size: 1rem; 
    resize: vertical; 
}

.form-textarea:focus {
    outline: none;
    border-color: var(--color-blue);
}

/* =========================================
   4. RADIO TILES (Segmented Controls)
   Das neue, globale Kachel-Design für Umfragen
   ========================================= */
.radio-tile-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.radio-tile-group.col { flex-direction: column; }
.radio-tile-group.row { flex-direction: row; flex-wrap: wrap; }

.radio-tile-group label {
    flex: 1 1 0;
    min-width: 0;
    cursor: pointer;
    margin: 0;
}

/* Mindestbreite, damit Text-Kacheln nebeneinander nicht kollabieren */
.radio-tile-group.row label {
    min-width: 120px; 
}

.radio-tile-group input[type="radio"] {
    display: none;
}

.radio-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-gray-light);
    border-radius: 6px;
    background-color: var(--color-white);
    font-weight: 500;
    color: var(--color-text);
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    font-size: 0.95rem;
    line-height: 1.3;
}

/* Bei vertikaler Anordnung Text linksbündig */
.radio-tile-group.col .radio-tile {
    justify-content: flex-start;
    text-align: left;
}

/* Aktiver Zustand (blau markiert) */
.radio-tile-group input[type="radio"]:checked + .radio-tile {
    background-color: var(--color-blue);
    color: var(--color-white);
    border-color: var(--color-blue);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.scale-labels {
    display: flex; 
    justify-content: space-between; 
    font-size: 0.85rem; 
    color: var(--color-gray-dark); 
    margin-bottom: 5px; 
    padding: 0 5px;
}

/* Fallback für extrem kleine Bildschirme (Handys) */
@media (max-width: 500px) {
    /* Schließt unsere Zahlen-Skalen explizit vom Umbruch aus! */
    .radio-tile-group.row:not(.rating-scale) label { min-width: 100%; }
}

/* =========================================
   5. CLUSTER CARDS (Listen-Ansicht für große Bilder)
   ========================================= */
.cluster-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    margin-top: 15px;
}

.cluster-card {
    width: 100%;
    max-width: 500px;
    background: var(--color-bg);
    border: 3px solid transparent;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    cursor: pointer; 
    transition: all 0.3s ease;
    
    /* NEU: Alle Bilder starten auf Handys & PCs zu 100 % sichtbar! */
    opacity: 1; 
}

/* Minimaler Sprung-Effekt beim Antippen / Hovern */
.cluster-card:hover {
    transform: translateY(-3px);
}

/* Aktiver Zustand (blau markiert) */
.cluster-card.active {
    border-color: var(--color-blue);
    background: var(--color-white);
    box-shadow: 0 4px 15px rgba(0, 136, 206, 0.2);
}

/* 
  DER SMARTE FOKUS-EFFEKT: 
  Sobald das Grid auch nur EINE aktive Karte enthält, 
  werden alle Karten, die NICHT aktiv sind, ausgegraut. 
*/
.cluster-grid:has(.cluster-card.active) .cluster-card:not(.active) {
    opacity: 0.4;
    filter: grayscale(50%); /* Nimmt zusätzlich etwas Farbe raus, wirkt noch klarer */
}

.cluster-card img {
    width: 100%; 
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

/* =========================================
   6. INFO-BOXEN (Framing & Vergleich)
   ========================================= */
.settings-box {
    margin-top: 25px; 
    padding: 25px 20px; 
    background: var(--color-bg); 
    border: 1px solid var(--color-gray-light); 
    border-radius: 8px; 
    text-align: left;
}

.settings-intro {
    line-height: 1.5; 
    margin-bottom: 25px;
}

.framing-box {
    background-color: var(--color-bg);
    border-left: 4px solid var(--color-blue);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 25px;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.comparison-stats-box {
    background: var(--color-bg); 
    padding: 20px; 
    border-radius: 8px; 
    margin-bottom: 40px; 
    border-left: 4px solid var(--color-blue);
}

/* =========================================
   7. MAP & ANIMATIONEN
   ========================================= */
.map-placeholder {
    background-color: var(--color-bg);
    height: 250px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-dark);
    margin-bottom: 20px;
    border: 2px dashed var(--color-gray-light);
}

.map-z-index { z-index: 1; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#loading-overlay {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    border: 5px solid var(--color-gray-light);
    border-top: 5px solid var(--color-green);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-message {
    text-align: center;
    font-size: 18px;
    padding: 30px 0;
}

.success-message p:first-child {
    font-size: 50px;
    margin-bottom: 15px;
}

.reset-area {
    height: 50px; 
    margin-top: 50px;
}

/* =========================================
   8. NAVIGATION (Debug)
   ========================================= */
.app-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px; /* Vorher margin-top */
    padding-bottom: 20px; /* Vorher padding-top */
    border-bottom: 2px dashed var(--color-gray-light); /* Vorher border-top */
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-gray-dark);
    border: 2px solid var(--color-gray-light);
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--color-blue);
    color: var(--color-blue);
}

.btn-secondary:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* =========================================
   9. CHOICE CARDS (Intervention, Phase 3)
   ========================================= */
.cards-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.choice-card {
    background: var(--color-white);
    border: 2px solid var(--color-gray-light);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.choice-card:hover { border-color: #b0b0b0; }

/* Aktive Zustände für Optionen */
.choice-card.active-card[data-option="A"] {
    border: 3px solid var(--color-blue);
    background-color: #f4f9fc;
    box-shadow: 0 4px 12px rgba(0, 136, 206, 0.15);
}

.choice-card.active-card:not([data-option="A"]) {
    border: 3px solid var(--color-green);
    background-color: #f9fdf0;
    box-shadow: 0 4px 12px rgba(164, 196, 0, 0.15);
}

.card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    margin-bottom: 2px;
}

.choice-card[data-option="A"] .card-label { color: var(--color-blue); opacity: 0.7; }
.choice-card:not([data-option="A"]) .card-label { color: var(--color-green); opacity: 0.9; }

.card-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 5px;
}

.choice-card[data-option="A"] .card-title { color: var(--color-blue); }
.choice-card:not([data-option="A"]) .card-title { color: var(--color-green); }

.route-sequence {
    font-size: 0.95rem;
    margin: 5px 0 12px 0;
    color: var(--color-gray-dark);
    font-weight: 500;
}

.card-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.stat-badge {
    background: var(--color-white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--color-text);
    border: 1px solid var(--color-gray-light);
}

.active-card .stat-badge { background: #ffffff; }

.nudge-badge {
    background-color: var(--color-green);
    color: var(--color-white);
    padding: 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

/* =========================================
   10. FLIESSTEXT (Narrativ) FÜR CHOICE CARDS
   ========================================= */
.route-narrative {
    font-size: 0.95rem;
    margin: 10px 0 15px 0;
    color: var(--color-text);
    line-height: 1.5;
    background: var(--color-bg);
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid var(--color-blue); /* Blau für Baseline */
}

/* Wechselt die Farbmarkierung für Alternativen (Option B, C...) auf Grün */
.choice-card:not([data-option="A"]) .route-narrative {
    border-left: 4px solid var(--color-green);
}

/* =========================================
   11. CONTROL PANEL (Filter & Sortierung)
   ========================================= */
.intervention-controls {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--color-bg);
    border: 1px solid var(--color-gray-light);
    border-radius: 8px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid var(--color-gray-light);
    font-family: inherit;
    background-color: var(--color-white);
    color: var(--color-text);
    cursor: pointer;
}

.control-select:focus {
    outline: none;
    border-color: var(--color-blue);
}

/* =========================================
   12. VERGLEICHS-LISTE (Phase 3b)
   ========================================= */
.comparison-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    line-height: 1.8;
}

/* =========================================
   13. RATINGS (Skalen 1-5, global)
   ========================================= */
/* Erzwingt, dass Skalen IMMER in einer Reihe bleiben (kein Umbruch) */
.radio-tile-group.row.rating-scale {
    flex-wrap: nowrap;
}

/* Überschreibt die Mindestbreite, damit 5 Kacheln nebeneinander passen */
.radio-tile-group.row.rating-scale label {
    min-width: 0;
}

.rating-tile {
    padding: 10px 5px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* =========================================
   14. SCHIEBEREGLER (Phase 1b)
   ========================================= */
.slider-group {
    background: var(--color-white);
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-gray-light);
}

.slider-group:last-child {
    border-bottom: none;
}

.slider-group .form-label {
    margin-bottom: 5px;
    display: block;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-top: 40px; /* Zuvor 15px - schafft mehr Luft nach oben */
}

.slider-label {
    font-size: 0.85rem;
    color: var(--color-gray-dark);
    font-weight: 500;
    min-width: 95px;
}

.slider-label:last-child {
    text-align: right;
}

/* Wrapper für den Slider und die Zahl (Bubble) */
.range-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

/* Die schwebende Zahl (Tooltip) - NEU: Am Anfang unsichtbar */
.slider-bubble {
    position: absolute;
    top: -42px; 
    left: 50%;
    /* Etwas nach unten versetzt für eine fließende "Auftauch"-Animation */
    transform: translateX(-50%) translateY(10px);
    background: var(--color-blue);
    color: var(--color-white);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    
    /* Macht die Bubble unsichtbar */
    opacity: 0; 
    visibility: hidden; 
    
    /* 'all' sorgt dafür, dass das Einblenden und Hochfahren weich animiert wird */
    transition: all 0.3s ease; 
    pointer-events: none;
}

/* Kleines optisches Dreieck unter der Bubble (bleibt gleich) */
.slider-bubble::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0;
    border-style: solid;
    border-color: var(--color-blue) transparent transparent transparent;
    transition: border-color 0.3s ease;
}
/* Der Balken (Track) */
.custom-slider {
    -webkit-appearance: none;
    appearance: none; /* Behebt die Warnung im Visual Studio Code */
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--color-gray-light);
    outline: none;
    transition: background 0.2s;
}

/* START-ZUSTAND BLAU: Der greifbare Punkt (Thumb) */
.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-blue);
    cursor: pointer;
    border: 3px solid var(--color-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background 0.3s ease;
}

.custom-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-blue);
    cursor: pointer;
    border: 3px solid var(--color-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background 0.3s ease;
}

/* Hover-Effekt */
.custom-slider::-webkit-slider-thumb:hover { filter: brightness(1.1); }
.custom-slider::-moz-range-thumb:hover { filter: brightness(1.1); }

/* INTERAGIERTER ZUSTAND: Sichtbar machen und grün färben */
.range-wrapper.interacted .slider-bubble {
    background: var(--color-green);
    
    /* Macht die Bubble sichtbar */
    opacity: 1; 
    visibility: visible;
    
    /* Lässt die Bubble sanft auf ihre finale Position hochschweben */
    transform: translateX(-50%) translateY(0); 
}

.range-wrapper.interacted .slider-bubble::after {
    border-top-color: var(--color-green);
}

.custom-slider.interacted::-webkit-slider-thumb {
    background: var(--color-green);
}

.custom-slider.interacted::-moz-range-thumb {
    background: var(--color-green);
}

/* =========================================
   15. FAHRPLAN-DETAILS (Akkordeon in Karten)
   ========================================= */
.card-details-wrapper {
    margin-top: 15px;
    border-top: 1px dashed var(--color-gray-light);
    padding-top: 10px;
}

.btn-toggle-details {
    background: none;
    border: none;
    color: var(--color-blue);
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 5px 0;
    transition: color 0.2s;
}

.btn-toggle-details:hover {
    color: var(--color-green);
}

.card-details-content {
    margin-top: 15px;
    padding: 15px;
    background-color: var(--color-bg); /* Hebt sich leicht weißgrau ab */
    border-radius: 8px;
    font-size: 0.85rem;
}

.route-details-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}

/* Zieht einen Verbindungsstrich zwischen den Etappen (Timeline-Look) */
.detail-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 12px; /* Setzt den Strich exakt unter die Mitte des Icons */
    top: 26px;
    bottom: -15px;
    width: 2px;
    background-color: var(--color-gray-light);
}

.step-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: 50%;
    font-size: 0.75rem;
    z-index: 1; /* Sorgt dafür, dass das Icon den Strich überdeckt */
}

.step-info {
    flex: 1;
    line-height: 1.4;
}

.step-title {
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 2px;
}

.step-time {
    color: var(--color-gray-dark);
    font-size: 0.8rem;
}

/* =========================================
   16. INTERAKTIVE STAT-BADGES (Aufklappbar)
   ========================================= */
.interactive-badge {
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s, background-color 0.2s, flex-basis 0.2s;
    
    /* NEU: Kompakte 2-Spalten-Optik im geschlossenen Zustand */
    flex: 1 1 calc(50% - 10px); 
    min-width: 140px; 
}

.interactive-badge:hover {
    border-color: var(--color-blue);
    background-color: #fcfcfc;
}

.badge-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.info-icon {
    font-size: 0.8rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.interactive-badge:hover .info-icon {
    opacity: 1;
}

.badge-detail {
    display: none; 
    font-size: 0.75rem;
    color: var(--color-gray-dark);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--color-gray-light);
    line-height: 1.4;
    font-weight: normal;
}

/* Erweitert nur das angeklickte Badge auf 100% Breite */
.interactive-badge.expanded {
    flex-basis: 100%;
}

.interactive-badge.expanded .badge-detail {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

/* =========================================
   WILLKOMMENSBILDSCHIRM (Phase 0)
   ========================================= */
/* WILLKOMMENSBILDSCHIRM (Phase 0) - Desktop Ansicht */
.welcome-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.welcome-header h2 {
    color: var(--color-blue);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.welcome-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}

.instructions-box {
    background: var(--color-bg);
    border-left: 4px solid var(--color-blue);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 25px;
}

.instructions-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.instructions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instructions-list li {
    margin-bottom: 12px;
    line-height: 1.5;
}

.privacy-note {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #555;
}

.privacy-icon {
    font-size: 1.5rem;
}

.action-row {
    display: flex;
    justify-content: center;
}

.privacy-section {
    margin-bottom: 30px;
}

.privacy-note {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px 8px 0 0; /* Unten gerade für das Akkordeon */
    font-size: 0.9rem;
    color: #555;
    border-bottom: 1px solid #eaeaea;
}

.privacy-icon {
    font-size: 1.5rem;
}

.privacy-details {
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
    padding: 10px 15px 15px 15px;
    margin-bottom: 20px;
}

.privacy-details summary {
    cursor: pointer;
    color: var(--color-blue);
    font-weight: bold;
    font-size: 0.9rem;
    outline: none;
    transition: color 0.2s;
}

.privacy-details summary:hover {
    color: #005f9e;
}

.privacy-full-text {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #444;
    line-height: 1.5;
    max-height: 400px; /* Begrenzt die Höhe */
    overflow-y: auto;  /* Erzeugt eine innere Scrollbar */
    padding-right: 10px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

/* Formatierung der Inhalte innerhalb des Datenschutz-Volltexts */
.privacy-full-text h4 {
    font-size: 0.95rem;
    color: var(--color-blue);
    margin-top: 10px;
    margin-bottom: 8px;
}

.privacy-full-text p {
    margin-bottom: 10px;
}

.privacy-full-text ul {
    margin-bottom: 10px;
    padding-left: 20px;
    list-style-type: disc; /* Erzwingt die Aufzählungszeichen */
}

.privacy-full-text li {
    margin-bottom: 4px;
}

.privacy-full-text a {
    color: var(--color-blue);
    text-decoration: underline;
}

.privacy-checkbox-wrapper {
    background: #eef2f5;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #d1d8dd;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--color-blue); /* Färbt die Checkbox blau (in modernen Browsern) */
}

/* =========================================
   GLOBALE SMARTPHONE-OPTIMIERUNG
   Wird nur auf Bildschirmen unter 768px angewendet
   ========================================= */

@media (max-width: 768px) {
    /* 1. Die äußere Sektion als alleinige "Karte" nutzen */
    .app-section {
        padding: 15px; /* Sorgt für den nötigen Rand zum Bildschirm */
    }

    /* 2. Alle inneren Haupt-Container unsichtbar machen (verhindert Rahmen im Rahmen) */
    .welcome-container,
    .checkout-container,
    .survey-container,
    .intervention-container {
        padding: 0;            /* Padding übernimmt jetzt rein die app-section */
        border-radius: 0;
        box-shadow: none;      /* Entfernt innere Schatten */
        border: none;          /* LÖSUNG: Entfernt den inneren Rand */
        margin-bottom: 0;
        background: transparent;
    }

    /* 3. Typografie für Handys minimal verkleinern */
    h1, h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }

    /* 4. Buttons auf volle Breite ziehen für leichtere Bedienbarkeit (Fat-Finger-Friendly) */
    .btn-primary, 
    .btn-secondary {
        width: 100%;
        padding: 15px;
        margin-bottom: 10px;
    }
}