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

        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;700;800&display=swap');

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            padding: 30px 20px;
            color: #333;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.4);
            border-radius: 24px;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
            overflow: hidden;
        }

        .header {
            background: rgba(255, 255, 255, 0.5);
            border-bottom: 1px solid rgba(255, 255, 255, 0.3);
            color: #333;
            padding: 40px 30px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .header-content {
            position: relative;
            z-index: 1;
        }

        .ekg-wrapper {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            opacity: 0.15;
            pointer-events: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .ekg-wrapper svg {
            width: 100%;
            height: 100%;
        }

        .ekg-path {
            fill: none;
            stroke: url(#ekgGradient);
            stroke-width: 6;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-dasharray: 2000;
            animation: dash 4s linear infinite;
        }

        @keyframes dash {
            from {
                stroke-dashoffset: 2000;
            }
            to {
                stroke-dashoffset: -2000;
            }
        }

        .header h1 {
            font-family: 'Outfit', sans-serif;
            font-size: 3.8em;
            font-weight: 800;
            background: linear-gradient(135deg, #4A90E2 0%, #004B87 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 5px;
            letter-spacing: -1.5px;
        }

        .header p {
            opacity: 0.9;
            font-size: 1.25em;
            color: #555;
            font-weight: 500;
        }

        .user-info {
            background: rgba(255, 255, 255, 0.2);
            padding: 10px 20px;
            border-radius: 20px;
            display: inline-block;
            margin-top: 15px;
        }

        .btn {
            background: linear-gradient(135deg, #4A90E2 0%, #004B87 100%);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 25px;
            cursor: pointer;
            font-size: 1em;
            font-weight: 600;
            transition: all 0.3s ease;
            margin: 5px;
            text-decoration: none;
            display: inline-block;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }

        .btn-microsoft {
            background: white;
            color: #5e5e5e;
            border: 2px solid #8c8c8c;
            padding: 12px 30px;
            font-size: 1.1em;
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .btn-microsoft:hover {
            background: #f3f3f3;
        }

        .btn-secondary {
            background: #6c757d;
        }

        .btn-danger {
            background: #dc3545;
        }

        .content {
            padding: 30px;
        }

        .login-container {
            max-width: 500px;
            margin: 100px auto;
            padding: 40px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            text-align: center;
        }

        .login-container h2 {
            color: #333;
            margin-bottom: 10px;
        }

        .login-container p {
            color: #666;
            margin-bottom: 30px;
        }

        .microsoft-logo {
            width: 24px;
            height: 24px;
        }

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

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
        }

        input,
        textarea,
        select {
            width: 100%;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1em;
            font-family: inherit;
        }

        textarea {
            min-height: 100px;
            resize: vertical;
        }

        .proposal-card {
            background: rgba(255, 255, 255, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.5);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .proposal-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
        }

        .badge {
            display: inline-block;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.85em;
            font-weight: 600;
            margin-right: 5px;
        }

        .badge-lob {
            background: #d4edda;
            color: #155724;
        }

        .badge-kritik {
            background: #f8d7da;
            color: #721c24;
        }

        .badge-vorschlag {
            background: #d1ecf1;
            color: #0c5460;
        }

        .badge-student {
            background: #cfe2ff;
            color: #084298;
        }

        .badge-teacher {
            background: #d1e7dd;
            color: #0f5132;
        }

        .vote-btn {
            padding: 10px 20px;
            margin: 5px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            background: white;
            cursor: pointer;
            font-weight: 600;
        }

        .vote-btn.agree {
            border-color: #28a745;
            color: #28a745;
        }

        .vote-btn.agree.voted {
            background: #28a745;
            color: white;
        }

        .vote-btn.disagree {
            border-color: #dc3545;
            color: #dc3545;
        }

        .vote-btn.disagree.voted {
            background: #dc3545;
            color: white;
        }

        .vote-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            background: #e0e0e0 !important;
            border-color: #ccc !important;
            color: #999 !important;
        }

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

        .hidden {
            display: none;
        }

        .error {
            color: #dc3545;
            margin-top: 10px;
        }

        .success {
            color: #28a745;
            margin-top: 10px;
        }

        .tab-buttons {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .tab-btn {
            padding: 10px 20px;
            border: 2px solid #667eea;
            border-radius: 20px;
            background: white;
            color: #667eea;
            cursor: pointer;
        }

        .tab-btn.active {
            background: #667eea;
            color: white;
        }

        .admin-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }

        .stat-card {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
        }

        .stat-value {
            font-size: 2em;
            font-weight: 700;
            color: #667eea;
        }

        .loading {
            text-align: center;
            padding: 50px;
            color: #666;
        }

        .stat-detail-card {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 12px;
            border: 1px solid #e0e0e0;
        }

        .stat-detail-card h4 {
            margin: 0 0 15px 0;
            color: #667eea;
        }

        .chart-card {
            background: white;
            padding: 25px;
            border-radius: 12px;
            border: 1px solid #e0e0e0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .chart-card h4 {
            margin: 0 0 20px 0;
            color: #333;
        }

        .stat-row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid #e0e0e0;
        }

        .stat-row:last-child {
            border-bottom: none;
        }

        .stat-label {
            color: #666;
            font-size: 0.95em;
        }

        .stat-value {
            font-weight: 600;
            color: #333;
        }

        .top-proposal-item {
            background: white;
            padding: 15px;
            margin-bottom: 10px;
            border-radius: 8px;
            border-left: 4px solid #667eea;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .proposal-rank {
            font-size: 1.5em;
            font-weight: 700;
            color: #667eea;
            margin-right: 15px;
            min-width: 30px;
        }

        .proposal-info {
            flex: 1;
        }

        .proposal-stats {
            text-align: right;
            font-size: 0.9em;
            color: #666;
        }

        .approval-badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 0.9em;
            margin-top: 5px;
        }

        .approval-high {
            background: #d4edda;
            color: #155724;
        }

        .approval-medium {
            background: #fff3cd;
            color: #856404;
        }

        .approval-low {
            background: #f8d7da;
            color: #721c24;
        }

        @media (max-width: 768px) {
            .content {
                padding: 15px;
            }

            .header h1 {
                font-size: 1.5em;
            }

            .login-container {
                margin: 50px auto;
                padding: 30px 20px;
            }
        }

        /* Styles für das Regeln-Modal */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: none;
            /* Standardmäßig versteckt */
            justify-content: center;
            align-items: center;
            z-index: 2000;
            padding: 20px;
        }

        .modal-content {
            background: white;
            padding: 30px;
            border-radius: 20px;
            max-width: 650px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
        }

        .rules-box {
            border-left: 4px solid #764ba2;
            padding-left: 15px;
            margin: 20px 0;
        }

        .tips-box {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 12px;
            font-size: 0.95em;
            border: 1px dashed #667eea;
        }

        .modal-buttons {
            display: flex;
            justify-content: flex-end;
            gap: 15px;
            margin-top: 25px;
        }

        .btn-secondary {
            background: #eee;
            color: #333;
            border: none;
            padding: 12px 20px;
            border-radius: 10px;
            cursor: pointer;
            font-weight: bold;
        }

        .btn-primary-confirm {
            background: linear-gradient(135deg, #4A90E2 0%, #004B87 100%);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 10px;
            cursor: pointer;
            font-weight: bold;
        }
        .webk-logo {
            position: absolute;
            top: 25px;
            left: 25px;
            height: 55px;
            z-index: 2;
            object-fit: contain;
        }

        .footer {
            margin-top: 40px;
            padding: 20px;
            text-align: center;
            color: #666;
            font-size: 0.9em;
        }

        .footer a {
            color: #004B87;
            text-decoration: none;
            margin: 0 10px;
            font-weight: 600;
        }

        .footer a:hover {
            text-decoration: underline;
        }