/* =========================
   1. Variablen & Reset
   ========================= */
:root {
    /* Standard-Farben (Light Mode) */
    --bg-color: #acc8a2;
    --text-color: #1a2517;
    --switch-bg: #1a2517;
    --switch-knob: #acc8a2;
    --transition-speed: 0.4s;
}

/* Diese Farben werden aktiv, wenn der Body die Klasse .dark-mode hat */
body.dark-mode {
    --bg-color: #1a2517;
    --text-color: #acc8a2;
    --switch-bg: #acc8a2;
    --switch-knob: #1a2517;
}

html,
body {
    min-height: 100vh; /* Füllt die gesamte Bildschirmhöhe */
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: system-ui, -apple-system, sans-serif;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

/* =========================
   2. Switch Container
   ========================= */
.slider-container {
    display: flex;
    justify-content: start;
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.text-switch {
    font-size: 1rem;
    font-weight: 500;
}

/* =========================
   3. Der Schalter (Switch)
   ========================= */
.switch {
    position: relative;
    display: inline-block;
    width: 2.5rem;
    height: 1.375rem;
}

/* Unsichtbares Input über den Schalter legen für Klickbarkeit */
.switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

/* Der Hintergrund des Schalters */
.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--switch-bg);
    border-radius: 2rem;
    border: 2px solid var(--text-color);
    transition: background-color var(--transition-speed) ease;
}

/* Der bewegliche Punkt (Knopf) */
.slider::before {
    content: "";
    position: absolute;
    height: 0.8rem;
    width: 0.8rem;
    left: 0.2rem;
    bottom: 0.15rem;
    background-color: var(--switch-knob);
    border-radius: 50%;
    transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation: Wenn Checkbox aktiv, schiebe den Punkt nach rechts */
.switch input:checked + .slider::before {
    transform: translateX(1.1rem);
}

.header_right {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
}

.button_registering {
    color: var(--bg-color);
    background-color: var(--text-color);
    position: absolute;
    right: 5rem;
    width: 6rem;
    cursor: pointer;
}

.button_login {
    color: var(--bg-color);
    background-color: var(--text-color);
    position: absolute;
    right: 1rem;
    cursor: pointer;
}

.button_registering:hover 
/* =========================
   4. Sonstige Elemente
   ========================= */
.ueberschrift_div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    font-style: italic;
    font-size: 1.4rem;
    padding: 2rem 0;
}

.dropdown_menu {
    cursor: pointer;
}

.dropdown_menu_open {
    cursor: default;
}
