:root {
    --primary: #004aad;
    --accent: #00bf63;
    --background: #000000;
    --card-bg: #111111;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --hover-bg: rgba(0, 74, 173, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

/* Grundlegende Stile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* align-items: center; */ /* Testweise auskommentiert */
    background: var(--background);
    color: var(--text-primary);
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    padding: 2rem;
    padding-top: 10rem;
    line-height: 1.6;
}

/* Typografie */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2rem;
    color: var(--accent);
}

h3 {
    font-size: 1.5rem;
    color: var(--primary);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Formulare */
.form-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    margin: 2rem auto;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 191, 99, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 191, 99, 0.2);
    text-decoration: none;
    color: var(--text-primary);
}

.btn-secondary {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--hover-bg);
    border-color: var(--accent);
}

/* Dashboard spezifische Stile */
.group-container {
    width: 100%;
    max-width: 900px;
    margin-bottom: 1.5rem;
}

.group-header {
    cursor: pointer;
    padding: 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.group-header::after {
    content: '▼';
    font-size: 1.5rem;
    color: var(--accent);
    transition: var(--transition);
    margin-left: 1rem;
    text-shadow: 0 0 10px rgba(0, 191, 99, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    font-weight: bold;
}

.group-header.active::after {
    transform: rotate(180deg);
    color: var(--primary);
}

.group-header:hover::after {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(0, 191, 99, 0.5);
}

.group-details {
    display: none;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
    padding: 1.5rem;
    animation: slideDown 0.3s ease-out;
}

/* Tabellen */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1rem 0;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.table tr:hover td {
    background: var(--hover-bg);
}

/* Status Buttons */
.button-container {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.btn-status {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.btn-status:hover {
    border-color: var(--accent);
    background: var(--hover-bg);
}

.btn-active {
    background: linear-gradient(135deg, var(--accent), #008f4c);
    border: none;
    color: var(--text-primary);
}

.btn-active:hover {
    background: linear-gradient(135deg, #008f4c, var(--accent));
    border: none;
}

.btn-break {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    border: none;
    color: var(--text-primary);
}

.btn-break:hover {
    background: linear-gradient(135deg, #FF8C00, #FFA500);
    border: none;
}

.btn-not-aktiv {
    background: linear-gradient(135deg, #FF4444, #CC0000);
    border: none;
    color: var(--text-primary);
}

.btn-not-aktiv:hover {
    background: linear-gradient(135deg, #CC0000, #FF4444);
    border: none;
}

.btn-inactive {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-inactive:hover {
    border-color: var(--border-color);
    background: rgba(255, 255, 255, 0.05);
}

/* Einladungslink Container */
.invite-link-container {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
}

.invite-link-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.invite-link {
    background: rgba(0, 74, 173, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
    color: var(--accent);
    font-family: monospace;
    word-break: break-all;
    position: relative;
}

.copy-button {
    align-self: flex-start;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--text-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 191, 99, 0.2);
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

/* Nachrichten */
.error-message {
    background: rgba(255, 68, 68, 0.1);
    border-left: 4px solid #FF4444;
    color: #FF4444;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: var(--border-radius);
}

.success-message {
    background: rgba(0, 191, 99, 0.1);
    border-left: 4px solid var(--accent);
    color: var(--accent);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: var(--border-radius);
}

/* Animationen */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .button-container {
        flex-direction: column;
    }

    .btn-status {
        width: 100%;
    }

    .table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .form-container {
        padding: 1rem;
    }
}

/* Utility Klassen */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.w-100 { width: 100%; }
.max-w-md { max-width: 768px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.header-logo {
    display: none;
}