html, body {
    margin: 0;
    padding: 0;
    background-color: white;
    color: black;
    font-family: 'Arial', sans-serif;
    height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: background-color 0.5s, color 0.5s;
}

.container {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
}

.title {
    font-size: 6vh;
    margin-bottom: 4vh;
}

.clock {
    font-size: 20vw;
    max-width: 100%;
    word-wrap: break-word;
    font-weight: bold;
    color: black;
    line-height: 1;
}

.date {
    font-size: 5vh;
    color: #cc0000;
    margin-top: 4vh;
}

/* Countdown-Balken */
.progressbar {
    width: 100%;
    height: 20px;
    background-color: #eee;
    margin: 20px auto;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 20px;
    width: 0%;
    transition: width 0.2s linear;
    border-radius: 5px;
    background-color: green; /* wird dynamisch überschrieben */
    background-image: linear-gradient(to right, rgba(255,255,255,0.1), rgba(0,0,0,0.1));
}


/* Countdown-Text */
.reminder-text {
    font-size: 2.8vh;
    margin-top: 2vh;
    color: black;
}

body.dark .reminder-text {
    color: white;
}

/* Eingabeformular */
.reminder-input {
    margin-top: 4vh;
    font-size: 2.5vh;
    background: rgba(255, 255, 255, 0.85);
    padding: 1vh 2vh;
    border-radius: 10px;
}

.reminder-input input,
.reminder-input button {
    font-size: 2.5vh;
    margin: 0.5vh;
    padding: 0.5vh 1vh;
}

/* Schalter oben */
.mode-toggle,
.reminder-toggle {
    position: absolute;
    top: 1rem;
    font-size: 1.2rem;
    z-index: 1000;
}

.mode-toggle {
    right: 1rem;
}

.reminder-toggle {
    left: 1rem;
}

.mode-toggle input,
.reminder-toggle input {
    transform: scale(1.5);
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Dark Mode Farben */
body.dark {
    background-color: #111;
    color: white;
}

body.dark .clock {
    color: white;
}

body.dark .date {
    color: #ff4444;
}

body.dark .reminder-input {
    background: rgba(0, 0, 0, 0.7);
}

.legal-links {
    flex-shrink: 0;
    text-align: center;
    font-size: 1.8vh;
    color: black;
    padding: 1vh 0;
    background-color: inherit;
}

.legal-links a {
    color: inherit;
    text-decoration: none;
    margin: 0 0.5em;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.legal-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

body.dark .legal-links {
    color: white;
}