/* --- Styling für das Task-Modal --- */

/* 1. Das Modal selbst: Runder und mit weichem Schatten */
.modal-content {
    border: none;
    border-radius: 16px; /* Modern abgerundet */
    box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important;
    overflow: hidden; /* Damit der runde Header nicht übersteht */
}

/* 2. Der Header: Farbe reinbringen! */
.modal-header {
    background: linear-gradient(135deg, #6fdce3 0%, #4696eb 100%); /* Frischer Farbverlauf */
    color: white;
    padding: 1.5rem;
    border-bottom: none;
}
.modal-title {
    font-weight: 800; /* Sehr fett für gute Lesbarkeit */
    letter-spacing: 0.5px;
}
.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%); /* Macht das X weiß */
}

/* 3. Die Aufgabenbeschreibung (der graue Kasten im Screenshot) */
.task-description.alert-light {
    background-color: #eff6ff; /* Leicht bläulicher Hintergrund satt grau */
    border: none !important; /* 1px solid #eff6ff !important; */
    border-radius: none; /* 12px; */
    padding: 1.5rem;
    color: #131b23;
    font-size: 1.15rem; /* Text minimal größer lesen ist angenehmer */
    font-weight: 200;
    margin: -1rem;
}

/* Die Liste hübscher machen */
.task-description ol li {
    margin-bottom: 0.8rem; /* Mehr Luft zwischen den Schritten */
    line-height: 1.6;
    padding-left: 0.5rem;
}

/* Die Liste hübscher machen */
.task-description h3 {
    margin-bottom: 1.1rem; /* Mehr Luft zwischen den Schritten */
    font-size: larger;
    font-weight: bold;
    color: #05080d;
}

/* Die Liste hübscher machen */
.task-description h4 {
    margin-bottom: 0.8rem; /* Mehr Luft zwischen den Schritten */
    margin-top: 0.2rem;
    font-size: larger;
    font-weight: bold;
    color: #05080d;
}

/* Die Liste hübscher machen */
.task-description h5 {
    margin-bottom: 0.8rem; /* Mehr Luft zwischen den Schritten */
    margin-top: 0.2rem;
    font-size: large;
    font-weight: bold;
    color: #05080d;
}

/* Die Liste hübscher machen */
.task-description h6 {
    margin-bottom: 0.8rem; /* Mehr Luft zwischen den Schritten */
    font-size: normal;
    font-weight: bold;
    color: #05080d;
}

/* Wichtige Begriffe automatisch fetten (via HTML <strong> tags empfohlen, 
   aber hier globaler Kontrast) */
.task-description strong {
    color: #05080d; /* Primärfarbe für Keywords */
    font-weight: bold;
}

/* Styling für den "Achtung" Teil - falls du keine Klassen ändern willst */
/* Wir suchen nach dem Absatz, der "Achtung" enthält. Besser wäre eine Klasse! */
/* Aber als optischer Fix für den unteren Bereich: */
.notanelement {
    background: #fff3cd;
    color: #664d03;
    padding: 1rem;
    border-radius: 8px;
    border-left: 5px solid #ffc107;
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* 4. Das Eingabefeld (Textarea) */
textarea[name="solution_text"] {
    background-color: #fafafa;
    border: 2px solid #eee;
    border-radius: 12px;
    resize: vertical;
    padding: 1rem;
    transition: all 0.2s;
}
textarea[name="solution_text"]:focus {
    background-color: #fff;
    border-color: #4696eb; /* Fokus in Headerfarbe */
    box-shadow: 0 0 0 4px rgba(70, 150, 235, 0.1);
}

/* 5. Buttons modernisieren */
#submitBtn {
    border-radius: 50px; /* Pillenform */
    padding: 0.5rem 2rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(25, 135, 84, 0.2);
    /* Falls Bootstrap 'btn-success' ist: */
    background-color: #198754; 
    border: none;
}
#submitBtn:hover {
    transform: translateY(-2px); /* Button "hebt ab" beim Hover */
    box-shadow: 0 6px 12px rgba(25, 135, 84, 0.3);
}

/* Hilfe Button */
.btn-outline-warning {
    border-radius: 50px;
    border-width: 2px;
    font-weight: 600;
}

/* --- 1. Die Liste modernisieren ("Bubble-Numbers") --- */
/* alt!
.task-description ol {
    counter-reset: my-counter;
    list-style: none;
    padding-left: 0;
}

.task-description ol li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    padding-top: 3px;
}

.task-description ol li::before {
    counter-increment: my-counter;
    content: counter(my-counter);
    
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background-color: #e3f2fd;
    color: #0d6efd; 
    font-weight: bold;
    border-radius: 50%;
    text-align: center;
    line-height: 32px; 
    font-family: sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}*/

/* --- 1. Die Liste modernisieren ("Bubble-Numbers") --- */
.task-description ol {
    list-style: none; /* Standard-Nummern ausblenden */
    padding-left: 0;
}

.task-description ol li {
    position: relative;
    padding-left: 50px; 
    margin-bottom: 1.2rem;
    line-height: 1.5;
    padding-top: 3px;
    
    /* WICHTIG: Wir sagen dem Browser explizit, dass er dieses Element zählen soll */
    counter-increment: list-item; 
}

.task-description ol li::before {
    content: counter(list-item); 
    
    /* Design des Kreises (bleibt identisch) */
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background-color: #e3f2fd;
    color: #0d6efd;
    font-weight: bold;
    border-radius: 50%;
    border: 1px solid #59afff;
    text-align: center;
    line-height: 32px;
    font-family: sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* --- 2. Das gelbe Highlight (Mark) hübscher machen --- */
.task-description mark {
    background-color: #fff3cd; /* Weniger grell als Standard-Gelb */
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    color: #856404;
    font-weight: 500;
}

/* --- 4. Das Datei-Upload Feld aufwerten --- */
/* Das native file-input ist schwer zu stylen, aber wir können den Container stylen */
input[type="file"] {
    background: #f8f9fa;
    padding: 10px;
    border: 2px dashed #dee2e6; /* Gestrichelter Rand wirkt wie "Dropzone" */
    border-radius: 8px;
    width: 100%;
    transition: 0.2s;
}
input[type="file"]:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* --- 5. Textarea modernisieren --- */
textarea.form-control {
    background-color: #fdfdfd;
    border-radius: 12px;
    border: 1px solid #ced4da;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03); /* Leichter innerer Schatten */
}
textarea.form-control:focus {
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15); /* Weicher Fokus-Ring */
    border-color: #86b7fe;
}

#helpSection .alert {
background-color: blue !important; margin-left: -1rem;  margin-right: -1rem;  border-radius: 0;  padding: 1.5rem;  margin-bottom: 0;
}
