/* IT-Rodeo Vogtland - Main Stylesheet */

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
}

/* Header */
.header-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Navigation */
.nav {
    text-align: center;
    padding: 20px;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    margin: 0 10px;
    display: inline-block;
    transition: background 0.3s;
}

.nav a:hover {
    background: rgba(255,255,255,0.3);
}

.nav a.active {
    background: rgba(255,255,255,0.4);
}

/* Typography */
h1 {
    color: white;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

h2 {
    color: #333;
}

.event-info {
    text-align: center;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.subtitle {
    color: rgba(255,255,255,0.9);
    text-align: center;
    margin: 5px 0;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.location {
    color: rgba(255,255,255,0.8);
    text-align: center;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Layout */
.main-wrapper {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    gap: 20px;
    padding: 20px;
}

.content-area {
    flex: 1;
    min-width: 0; /* Wichtig für Flexbox */
}

.container {
    max-width: 500px; /* Feste maximale Breite für Content */
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

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

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn:active {
    transform: translateY(0);
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: slideIn 0.3s;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar h3 {
    margin-bottom: 15px;
    color: #333;
}

.participant {
    background: #f8f9fa;
    padding: 8px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.participant.veggie {
    border-left: 3px solid #28a745;
}

.empty-list {
    text-align: center;
    color: #999;
    padding: 10px;
    font-size: 0.85rem;
    font-style: italic;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    color: #666;
    margin-top: 5px;
}

/* Proposals */
.proposal {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: transform 0.2s;
}

.proposal:hover {
    transform: translateX(5px);
}

.proposal-content {
    flex: 1;
}

.proposal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.proposal-host {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.proposal-description {
    color: #555;
    line-height: 1.5;
}

.vote-btn {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 15px;
}

.vote-btn:hover {
    transform: scale(1.1);
}

.vote-btn.voted {
    background: #667eea;
    color: white;
}

.vote-count {
    font-size: 0.7rem;
    font-weight: 600;
}

.empty {
    text-align: center;
    color: #999;
    padding: 40px;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .main-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
    }
}
