@import 'fonts.css';

:root {
    /*Hauptfarben*/
    --primary: #167db5;
    --primary-dark: #083147;
    --primary-light: #1da6f1;

    /*Sekundärfarben*/
    --secondary: #b51621;
    --secondary-dark: #f11d2b;
    --secondary-light: #47080d;

    /*Tertiärfarben*/
    --tertiary: #b5b116;
    --tertiary-dark: #474408;
    --tertiary-light: #f1e91d;

    /*Grautöne*/
    --black: #000000;
    --dark-grey: #1a1a1a;
    --medium-grey: #777777;
    --light-grey: #bbbbbb;
    --white: #ffffff;

    /*Funktionale Farben*/
    --success: #00ff3c;
    --info: #0022ff;
    --warning: #ffc400;
    --danger: #ff0015;

    /*Schatten*/
    --box-shadow: 0 2px 10px rgba(26, 26, 26, 0.1);

    /*Abstände*/
    --spacing-xs: 0.25rem;  /* 4px */
    --spacing-sm: 0.5rem;   /* 8px */
    --spacing-md: 1rem;     /* 16px */
    --spacing-lg: 2rem;     /* 32px */
    --spacing-xl: 3rem;     /* 48px */

    /*Übergänge*/
    --transition-speed: 0.3s;
}

/* Basis-Stile */
body {
    background-color: var(--dark-grey);
    font-family: 'RobotoCondensed', sans-serif;
    color: var(--dark-grey);
    line-height: 1.6;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', Arial, sans-serif;
    font-weight: 900;
}

/* Countdown Timer Styles */
.countdown-container {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    max-width: 100%;
    box-shadow: var(--box-shadow);
}

.countdown-timer {
    margin-top: 15px;
}

.countdown-box {
    border-radius: 5px;
    color: var(--dark-grey);
    transition: transform 0.3s ease;
    box-shadow: var(--box-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.countdown-box:hover {
    transform: scale(1.05);
}

.countdown-box .display-6 {
    color: var(--secondary);
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 5px;
}

/* Alternative Time Display Styles */
.alt-time-stack {
    width: 100%;
    margin: 0 auto;
}

.alt-time-box {
    transition: transform 0.2s ease;
    color: var(--dark-grey);
    position: relative;
    text-align: center;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px !important;
}

.alt-time-box:hover {
    transform: scale(1.01);
}

.alt-time-box span.fw-bold {
    font-size: 1.2rem;
    color: var(--secondary);
}

.alt-time-box .unit-label {
    position: absolute;
    bottom: 2px;
    right: 8px;
    font-size: 0.65rem;
    color: var(--medium-grey);
}

/* Result Display Styles */
.result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 1rem;
    color: var(--dark-grey); /* Dunkle Textfarbe für bessere Lesbarkeit */
}

.success-icon {
    color: var(--dark-grey); /* Farbe auf dunkelgrau ändern */
    animation: pulse-success 2s infinite;
}

.danger-icon {
    color: var(--dark-grey); /* Farbe auf dunkelgrau ändern */
    animation: pulse-danger 2s infinite;
}

@keyframes pulse-success {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes pulse-danger {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Target Date Styles */
.target-date-info {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .countdown-box .display-6 {
        font-size: 1.4rem;
    }
    
    .countdown-box .small {
        font-size: 0.65rem;
    }
    
    .alt-time-box span.fw-bold {
        font-size: 1rem;
    }
    
    .alt-time-box .unit-label {
        font-size: 0.6rem;
    }
    
    .result-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .countdown-box .display-6 {
        font-size: 1.1rem;
    }
    
    .countdown-container {
        padding: 0.75rem !important;
    }
    
    h4.alert-heading {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .countdown-timer {
        margin-top: 10px;
    }
    
    .alt-time-box {
        height: 32px;
    }
    
    .alt-time-box span.fw-bold {
        font-size: 0.9rem;
    }
    
    .alt-time-box .unit-label {
        font-size: 0.55rem;
        right: 5px;
        bottom: 1px;
    }
}