/* css/countdown.css */

/* --- SEITEN-LAYOUT (Absolut linksbündig) --- */
.countdown-section {
    margin-bottom: 45px;
    text-align: left;
}

.countdown-section h1, 
.countdown-section h2 {
    margin: 0 0 10px 0;
    color: #222;
}

.countdown-section p {
    color: #666;
    margin: 0 0 20px 0;
}

/* --- EINGABEFELDER, DROPDOWNS & GRUPPEN --- */
.input-group {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
}

/* Für den fixen Timer: Sorgt für die perfekte Ausrichtung der oberen Kanten */
.timer-inputs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; 
    gap: 12px;
}

/* Einheitliche Inputs, Auswahllisten & Buttons teilen sich dieselbe Höhe */
.input-group input,
.input-group select {
    padding: 10px 14px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
    box-sizing: border-box;
    height: 44px;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input-group select {
    cursor: pointer;
}

.dropdown-inputs .time-field select {
    min-width: 90px;
}

/* Spalten-Anordnung für Eingabefeld + darunterliegender Text (Std, Min, Sek) */
.time-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.time-field input[type="number"] {
    width: 70px;
    text-align: center;
}

.time-field label {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
    padding-left: 4px;
}

/* Bereinigte Doppelpunkt-Ausrichtung */
.timer-inputs .separator {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ccc;
    margin: 0;
    line-height: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
}

/* --- EINHEITLICHE BUTTONS (ALLE AUFGEPEPPT!) --- */
.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    border: none;
    border-radius: 6px;
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-btn:hover {
    background: linear-gradient(180deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.primary-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.2);
}

.close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    border: none;
    border-radius: 6px;
    background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-btn:hover {
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(185, 28, 28, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.close-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(185, 28, 28, 0.2);
}

.pause-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff; /* Weißer Text wirkt oft edler im Gesamtkontext */
    border: none;
    border-radius: 6px;
    background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.25), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pause-btn:hover {
    background: linear-gradient(180deg, #d97706 0%, #92400e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180, 83, 9, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.pause-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(180, 83, 9, 0.2);
}

/* --- POPUP / MODAL FENSTER (In sich zentriert) --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 1);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center; 
    min-width: 360px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: #333;
}

.modal-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.countdown-display {
    font-size: 10vw; 
    font-weight: bold;
    margin: 25px 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-variant-numeric: tabular-nums; /* Verhindert das lästige Wackeln der Zahlen beim Umschalten */
    white-space: nowrap;
}

/* --- ANIMATIONEN --- */
.blink-animation {
    animation: blinker 1s linear infinite;
    color: #dc3545;
}

@keyframes blinker {
    50% { opacity: 0; }
}
