:root {
    --bg: #ffffff;
    --text: #111111;
    --card: #f2f2f2;
    --accent: #0078ff;
}

body.dark {
    --bg: #0f0f11;
    --text: #e6e6e6;
    --card: #1a1a1c;
    --accent: #f5c400;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
    transition: 0.25s ease;
}

html, body {
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: var(--card);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 22px;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
}

/* HERO */
.hero {
    text-align: center;
    padding: 80px 20px;
}

/* SECTIONS */
.section {
    padding: 50px 20px;
    max-width: 900px;
    margin: auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card);
    padding: 20px;
    border-radius: 10px;
}

/* STOERFÄLLE */
.stoerfall-list {
    margin-top: 20px;
}

.stoerfall {
    background: var(--card);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* DISCORD */
.discord-btn {
    display: inline-block;
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 10px;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: var(--card);
    margin-top: 40px;
}

/* SWITCHER */
.switcher {
    display: flex;
    align-items: center;
}

/* Toggle Container */
.toggle {
    position: relative;
    width: 55px;
    height: 28px;
    display: inline-block;
}

/* Hide Checkbox */
.toggle input {
    display: none;
}

/* Slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #888;
    border-radius: 30px;
    transition: 0.3s;
}

/* Circle */
.slider::before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

/* Checked State */
.toggle input:checked + .slider {
    background: var(--accent);
}

.toggle input:checked + .slider::before {
    transform: translateX(27px);
}

/* POPUP */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.hidden {
    display: none;
}

.popup-content {
    background: var(--card);
    padding: 25px;
    border-radius: 12px;
    width: 350px;
    color: var(--text);
}

.popup-content h2 {
    margin-top: 0;
}

.popup-content textarea {
    width: 100%;
    height: 80px;
    resize: none;
    margin-bottom: 10px;
}

.popup-buttons {
    display: flex;
    justify-content: space-between;
}

.popup-buttons button {
    padding: 10px 15px;
    border: none;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

/* ADMIN BUTTON */
.admin-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 900;
}
