/* Stil für den Hauptcontainer */
.timer-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px; /* Abgerundete Ecken */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); /* Dezenter Schatten */
    width: 100%;
    max-width: 1550px; /* Maximale Breite für bessere Lesbarkeit */
    text-align: center;
    border: 1px solid #e0e0e0; /* Leichter Rand */
}
/* Stil für den Eingabebereich */
.input-section {
    display: flex;
    flex-direction: column; /* Elemente untereinander anordnen */
    gap: 15px; /* Abstand zwischen Elementen */
    margin-bottom: 30px;
    align-items: stretch; /* Elemente über die volle Breite strecken */
}

.input-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Stil für das Texteingabefeld und Textarea */
#timerTitle, #timerDescription {
    flex-grow: 1; /* Nimmt den verfügbaren Platz ein */
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px; /* Abgerundete Ecken */
    font-size: 1.1em;
    outline: none; /* Kein Standard-Outline beim Fokus */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical; /* Nur vertikales Resizing für Textarea erlauben */
    min-height: 40px; /* Mindesthöhe für Textarea */
}

#timerTitle:focus, #timerDescription:focus {
    border-color: #007bff; /* Blauer Rand beim Fokus */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); /* Leichter Schatten beim Fokus */
}

/* Stil für den Toggle-Button (Start/Stop) */
#toggleButton {
    padding: 12px 25px;
    background-color: #28a745; /* Grüne Farbe für Start */
    color: white;
    border: none;
    border-radius: 8px; /* Abgerundete Ecken */
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.2); /* Schatten für den Button */
}

#toggleButton.stop {
    background-color: #dc3545; /* Rote Farbe für Stop */
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.2);
}

#toggleButton:hover {
    transform: translateY(-2px); /* Leichter Hoch-Effekt beim Hover */
    opacity: 0.95;
}

#toggleButton:active {
    transform: translateY(0); /* Zurücksetzen beim Klicken */
}

/* Stil für die Timer-Anzeige */
.timer-display {
    background-color: #e9f5ff; /* Heller blauer Hintergrund */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #cce5ff;
}

#currentTimerTitle {
    font-weight: bold;
    color: #0056b3; /* Dunkleres Blau für den Titel */
    font-size: 1.2em;
    margin-bottom: 10px;
}

#timeElapsed {
     /* Große Schrift für die Zeit  font-size: 3.2em;*/
    font-family: 'Roboto Mono', monospace; /* Monospace-Schriftart für die Zeit */
    margin-top: 10px;
    color: #2c3e50;
    letter-spacing: 1px; /* Leichter Zeichenabstand */
}

/* Stil für die Trennlinie */
hr {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 35px 0;
}

/* Stil für die Liste der Timer */
.timer-list {
    text-align: left;
     /* Maximale Höhe, um Scrollen zu ermöglichen max-height: 1000px; */
    overflow-y: auto; /* Scrollleiste bei Überlauf */
    border: 1px solid #e9ecef;
    padding: 15px;
    border-radius: 8px;
    background-color: #fdfdfd;
}

.timer-list p {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

/* Stil für die Datumsüberschrift */
.date-header {
    font-size: 1.3em;
    font-weight: 700;
    color: #0056b3;
    margin-top: 25px;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 5px;
    border-bottom: 2px solid #cce5ff;
}

/* Stil für einzelne Timer-Elemente in der Liste */
.timer-item {
    background-color: #f0f8ff; /* Sehr heller blauer Hintergrund */
    border: 1px solid #d4edda;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column; /* Titel, Beschreibung, Dauer, Button untereinander */
    justify-content: space-between;
    align-items: flex-start; /* Links ausrichten */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Leichter Schatten für Listenelemente */
    transition: background-color 0.2s ease;
}

.timer-item:hover {
    background-color: #e6f7ff; /* Hellerer Hintergrund beim Hover */
}

.timer-item .item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 5px;
}

.timer-item .item-title {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

.timer-item .item-description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    width: 100%;
    text-align: left;
    white-space: pre-wrap; /* Um Zeilenumbrüche in der Anzeige zu erhalten */
}

.timer-item .item-date {
    font-size: 0.8em;
    color: #999;
    margin-top: 5px;
    align-self: flex-start; /* Datum links ausrichten */
}

.timer-item .duration {
    font-family: 'Roboto Mono', monospace;
    color: #007bff; /* Blau für die Dauer */
    font-weight: 600;
    font-size: 1.05em;
}

.timer-item .restart-button {
    padding: 8px 15px;
    background-color: #007bff; /* Blau für den Restart-Button */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px; /* Abstand zur Beschreibung */
    align-self: flex-end; /* Button rechts ausrichten */
}

.timer-item .restart-button:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.timer-item .restart-button:active {
    transform: translateY(0);
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
    .input-row {
        flex-direction: column;
        gap: 10px;
    }

    #toggleButton {
        width: 100%; /* Button nimmt volle Breite ein */
    }

    .container {
        margin: 10px;
        padding: 20px;
    }

    #timeElapsed {
        font-size: 2.5em; /* Kleinere Schrift auf kleinen Bildschirmen */
    }

    .timer-item .item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timer-item .duration {
        margin-right: 0;
    }

    .timer-item .restart-button {
        align-self: stretch; /* Button volle Breite */
    }
}