
:root {
    --electric-border-color: #dd8648;
    --electric-light-color: oklch(from var(--electric-border-color) l c h);
    --gradient-color: oklch(from var(--electric-border-color) 0.3 calc(c / 2) h / 0.4);
    --color-neutral-900: oklch(0.185 0 0);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: oklch(0.145 0 89.876 / 0.89); /* Dunkler Hintergrund */
    color: oklch(0.985 0 0); /* Heller Text */
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- BUTTON STYLING (Neu für Dark Mode) --- */
button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--electric-border-color);
    color: white;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

button:hover {
    background: var(--electric-border-color);
    color: black;
    box-shadow: 0 0 15px var(--electric-border-color);
}

/* --- ELECTRIC BORDER CSS --- */
.main-container { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; }
.svg-container { position: absolute; width: 0; height: 0; } /* Versteckt das SVG, damit es nur als Filter wirkt */

.card-container {
    padding: 2px; border-radius: 24px; position: relative;
    background: linear-gradient(-30deg, var(--gradient-color), transparent, var(--gradient-color)),
    linear-gradient(to bottom, var(--color-neutral-900), var(--color-neutral-900));
}

.inner-container { position: relative; }

.border-outer {
    border: 2px solid rgba(221, 132, 72, 0.5); border-radius: 24px; padding-right: 4px; padding-bottom: 4px;
}

.main-card {
    width: 350px; height: 500px; /* Feste Größe der Karte */
    border-radius: 24px; border: 2px solid var(--electric-border-color);
    margin-top: -4px; margin-left: -4px;
    filter: url(#turbulent-displace); /* Hier wird der SVG Filter angewendet */
}

.glow-layer-1 {
    border: 2px solid rgba(221, 132, 72, 0.6); border-radius: 24px; width: 100%; height: 100%;
    position: absolute; top: 0; left: 0; filter: blur(1px); pointer-events: none;
}

.glow-layer-2 {
    border: 2px solid var(--electric-light-color); border-radius: 24px; width: 100%; height: 100%;
    position: absolute; top: 0; left: 0; filter: blur(4px); pointer-events: none;
}

.overlay-1, .overlay-2 {
    position: absolute; width: 100%; height: 100%; top: 0; left: 0; border-radius: 24px;
    mix-blend-mode: overlay; transform: scale(1.1); filter: blur(16px); pointer-events: none;
    background: linear-gradient(-30deg, white, transparent 30%, transparent 70%, white);
}
.overlay-2 { opacity: 0.5; }

.background-glow {
    position: absolute; width: 100%; height: 100%; top: 0; left: 0; border-radius: 24px;
    filter: blur(32px); transform: scale(1.1); opacity: 0.3; z-index: -1;
    background: linear-gradient(-30deg, var(--electric-light-color), transparent, var(--electric-border-color));
}

/* --- CONTENT LAYOUT --- */
.content-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; z-index: 10;
}

.content-top {
    display: flex; flex-direction: column; padding: 48px; padding-bottom: 16px;
    flex: 0 0 auto; /* Nimmt nur so viel Platz wie nötig */
}

.content-bottom {
    display: flex; flex-direction: column; padding: 30px 48px;
    flex: 1; /* Nimmt den restlichen Platz ein */
    text-align: center;
}

.scrollbar-glass {
    background: rgba(255, 255, 255, 0.04); border-radius: 14px;
    padding: 8px 16px; text-transform: uppercase; font-weight: bold;
    font-size: 14px; color: rgba(255, 255, 255, 0.8); width: fit-content;
    margin-bottom: 10px;
}

.title { font-size: 36px; font-weight: 500; margin-top: auto; }
.description { opacity: 0.5; margin-bottom: 20px; }

.divider {
    border: none; height: 1px; background-color: currentColor; opacity: 0.1; margin: 0 48px;
}


.base-timer {
    position: relative;
    width: 250px;
    height: 150px;
    margin: 20px auto; /* Zentriert den Timer */
}

.base-timer__svg {
    transform: scaleX(-1); /* Dreht den Kreis, damit er gegen den Uhrzeigersinn läuft */
    width: 100%;
    height: 100%;
}

.base-timer__circle {
    fill: none;
    stroke: none;
}

.base-timer__path-elapsed {
    stroke-width: 8px;
    stroke: rgba(255, 255, 255, 0.05); /* Sehr dezenter grauer Hintergrund-Ring */
}

.base-timer__path-remaining {
    stroke-width: 8px;
    stroke-linecap: round;
    transform: rotate(90deg);
    transform-origin: center;
    transition: 1s linear all;
    fill-rule: nonzero;
    stroke: currentColor;
    filter: drop-shadow(0 0 5px currentColor); /* Lässt den Ring leuchten! */
}

.base-timer__path-remaining.green {
    color: rgb(207, 193, 143);
}

.base-timer__path-remaining.orange {
    color: orange;
}

.base-timer__path-remaining.red {
    color: red;
}

.base-timer__label {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--electric-border-color);
    font-family: monospace; /* Passt gut zum Tech-Look */
    text-shadow: 0 0 10px rgba(221, 132, 72, 0.5);
}