* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5; /* 50% Sichtbarkeit */
}

.content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Räume nach unten */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8); /* 80% durchsichtig */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Überschrift - 200% größer */
h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 3.5em; /* 200% größer */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.room-card {
    background: rgba(255, 255, 255, 0.8); /* 80% durchsichtig */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3498db;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(5px); /* Leichter Blur-Effekt für bessere Lesbarkeit */
}

.room-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9); /* Weniger durchsichtig beim Hover */
}

.room-card h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.welcome-message {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-style: italic;
    line-height: 1.4;
}

.meeting-id {
    color: #7f8c8d;
    font-size: 12px;
    margin-bottom: 10px;
    font-family: monospace;
    background: rgba(248, 249, 250, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

/* Moderator Button - GRÜN */
.btn-moderator {
    background: #219a52; /* Gewünschtes Grün */
    color: white;
    border: 2px solid #219a52;
}

.btn-moderator:hover {
    background: #1a7a41; /* Dunkleres Grün für Hover */
    border-color: #1a7a41;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(33, 154, 82, 0.3);
}

/* Teilnehmer Button - BLAU */
.btn-attendee {
    background: #2980b9; /* Gewünschtes Blau */
    color: white;
    border: 2px solid #2980b9;
}

.btn-attendee:hover {
    background: #216897; /* Dunkleres Blau für Hover */
    border-color: #216897;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(41, 128, 185, 0.3);
}

.btn-primary {
    background: #27ae60;
    color: white;
    border: 2px solid #27ae60;
}

.btn-primary:hover {
    background: #219a52;
    border-color: #219a52;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    border: 2px solid #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
    border-color: #7f8c8d;
    transform: translateY(-1px);
}

/* Admin Styles */
.admin-container {
    max-width: 800px;
    background: rgba(255, 255, 255, 0.8); /* 80% durchsichtig */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
    background: white;
}

.room-config {
    background: rgba(248, 249, 250, 0.8); /* 80% durchsichtig */
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 4px solid #34495e;
    transition: background-color 0.3s ease;
}

.room-config:hover {
    background: rgba(233, 236, 239, 0.9); /* Weniger durchsichtig beim Hover */
}

.room-config h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.password-prompt {
    max-width: 400px;
    margin: 50px auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.8); /* 80% durchsichtig */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.error-message {
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

small {
    color: #7f8c8d;
    font-size: 12px;
}

/* Zusätzliche Styles */
.btn-info {
    background: #3498db;
    color: white;
    border: 2px solid #3498db;
}

.btn-info:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: translateY(-1px);
}

.btn-warning {
    background: #f39c12;
    color: white;
    border: 2px solid #f39c12;
}

.btn-warning:hover {
    background: #e67e22;
    border-color: #e67e22;
    transform: translateY(-1px);
}

.room-actions {
    margin-top: 10px;
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-link {
    color: #3498db;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.admin-actions {
    margin-bottom: 20px;
    text-align: center;
}

.admin-actions .btn {
    margin: 0 5px;
}

.alert {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(212, 237, 218, 0.9);
    color: #155724;
    border-color: #c3e6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2.5em; /* Kleinere Schrift auf Mobile */
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .admin-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .admin-actions .btn {
        margin: 0;
    }
    
    .content {
        padding: 10px;
        justify-content: flex-end;
    }
}

/* Verbesserte Form Styles */
textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

input[type="number"].form-control {
    max-width: 100px;
}

/* Success/Error States */
.success-message {
    background: rgba(212, 237, 218, 0.9);
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: rgba(248, 215, 218, 0.9);
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Spezielle Anordnung für Laptop-Ansicht */
@media (min-width: 769px) {
    .content {
        min-height: 100vh;
        justify-content: flex-end;
        padding-bottom: 50px;
    }
    
    .container {
        margin-bottom: 0;
    }
}

/* Noch bessere Hintergrund-Nutzung für große Bildschirme */
@media (min-width: 1200px) {
    .content {
        padding-bottom: 100px;
    }
    
    h1 {
        margin-bottom: 50px;
        font-size: 4em; /* Noch größer auf großen Bildschirmen */
    }
}

/* Verbesserte Lesbarkeit bei durchsichtigen Hintergründen */
.room-card h2,
.room-card .welcome-message,
.room-card .meeting-id {
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.container h1 {
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}