/* ============================================
   UmfraGE - Hauptstyles
   ============================================ */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #4ade80;
    --danger-color: #ef4444;
    --warning-color: #fbbf24;
    --info-color: #3b82f6;
    --light-bg: #f8f9fa;
    --dark-text: #333;
    --muted-text: #6c757d;
    
    /* Dark Mode Colors */
    --dark-bg-primary: #1a1a2e;
    --dark-bg-secondary: #0f3460;
    --dark-bg-tertiary: #16213e;
    --dark-text-primary: #ffffff;
    --dark-text-secondary: #b8c1ec;
    --dark-accent: #e94560;
    --dark-accent-secondary: #f27121;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-bg);
    color: var(--dark-text);
}

/* ============================================
   Kiosk Container (Tablet-Ansicht)
   ============================================ */

.kiosk-container {
    min-height: 100vh;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.kiosk-header {
    text-align: center;
    margin-bottom: 3rem;
}

.kiosk-header h1 {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ============================================
   Survey Grid (Startseite)
   ============================================ */

.survey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.survey-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.survey-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.survey-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.survey-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.survey-card p {
    color: var(--muted-text);
    margin-bottom: 1rem;
}

.survey-card-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.no-surveys {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

/* ============================================
   Question Cards
   ============================================ */

.survey-header {
    margin-bottom: 2rem;
}

.question-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.question-header {
    display: flex;
    align-items: start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.question-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-text);
    margin: 0;
}

.question-body {
    padding-left: 4rem;
}

/* ============================================
   Traffic Light (Ampel)
   ============================================ */

.traffic-light-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.traffic-light-option {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 15px;
    background: white;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.traffic-light-option input {
    display: none;
}

.traffic-light-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    transition: all 0.3s ease;
}

.traffic-light-option.red .traffic-light-circle {
    background: #fee;
    color: #dc2626;
}

.traffic-light-option.yellow .traffic-light-circle {
    background: #fef3c7;
    color: #f59e0b;
}

.traffic-light-option.green .traffic-light-circle {
    background: #dcfce7;
    color: #16a34a;
}

.traffic-light-option:hover,
.traffic-light-option.selected {
    transform: scale(1.05);
}

.traffic-light-option.red:hover,
.traffic-light-option.red.selected {
    border-color: #dc2626;
    background: #fef2f2;
}

.traffic-light-option.yellow:hover,
.traffic-light-option.yellow.selected {
    border-color: #f59e0b;
    background: #fffbeb;
}

.traffic-light-option.green:hover,
.traffic-light-option.green.selected {
    border-color: #16a34a;
    background: #f0fdf4;
}

.traffic-light-option span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* ============================================
   Scale 1-10
   ============================================ */

.scale-options {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.scale-option {
    cursor: pointer;
}

.scale-option input {
    display: none;
}

.scale-number {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    background: white;
    border: 3px solid #e5e7eb;
    transition: all 0.3s ease;
}

.scale-option:hover .scale-number,
.scale-option.selected .scale-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    color: var(--muted-text);
    font-size: 0.9rem;
    padding: 0 1rem;
}

/* Scale 10-100 specific styling */
.scale-10-100 .scale-number {
    width: 70px;
    font-size: 1.3rem;
}

/* ============================================
   Stars
   ============================================ */

.stars-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.star-option {
    cursor: pointer;
}

.star-option input {
    display: none;
}

.star-option i {
    font-size: 3rem;
    color: #e5e7eb;
    transition: all 0.3s ease;
}

.star-option:hover i,
.star-option.selected i,
.star-option.filled i,
.star-option.hover i {
    color: #fbbf24;
    transform: scale(1.2);
}

/* ============================================
   Emoji
   ============================================ */

.emoji-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.emoji-option {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 15px;
    background: white;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.emoji-option input {
    display: none;
}

.emoji {
    font-size: 5rem;
    transition: all 0.3s ease;
}

.emoji-option:hover,
.emoji-option.selected {
    border-color: var(--primary-color);
    background: #f0f4ff;
    transform: scale(1.05);
}

.emoji-option:hover .emoji,
.emoji-option.selected .emoji {
    transform: scale(1.2);
}

.emoji-option span {
    font-weight: 600;
    color: var(--muted-text);
}

/* ============================================
   Yes/No
   ============================================ */

.yes-no-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.yes-no-option {
    cursor: pointer;
    flex: 1;
    max-width: 300px;
}

.yes-no-option input {
    display: none;
}

.yes-no-button {
    padding: 2rem;
    border-radius: 15px;
    background: white;
    border: 3px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.yes-no-button i {
    font-size: 3rem;
}

.yes-no-button span {
    font-size: 1.5rem;
    font-weight: bold;
}

.yes-no-option.yes:hover .yes-no-button,
.yes-no-option.yes.selected .yes-no-button {
    border-color: var(--success-color);
    background: #f0fdf4;
    color: var(--success-color);
    transform: scale(1.05);
}

.yes-no-option.no:hover .yes-no-button,
.yes-no-option.no.selected .yes-no-button {
    border-color: var(--danger-color);
    background: #fef2f2;
    color: var(--danger-color);
    transform: scale(1.05);
}

/* ============================================
   Multiple Choice
   ============================================ */

.multiple-choice-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.multiple-choice-option {
    cursor: pointer;
}

.multiple-choice-option input {
    display: none;
}

.choice-button {
    padding: 1.5rem;
    border-radius: 10px;
    background: white;
    border: 3px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.choice-button i {
    font-size: 1.5rem;
    color: #e5e7eb;
}

.choice-button span {
    font-size: 1.2rem;
    font-weight: 500;
}

.multiple-choice-option:hover .choice-button,
.multiple-choice-option.selected .choice-button {
    border-color: var(--primary-color);
    background: #f0f4ff;
}

.multiple-choice-option.selected .choice-button i {
    color: var(--primary-color);
}

/* ============================================
   Text Input
   ============================================ */

.text-input textarea {
    width: 100%;
    padding: 1rem;
    border: 3px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1.1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.text-input textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ============================================
   Submit Section
   ============================================ */

.submit-section {
    margin-top: 3rem;
    text-align: center;
}

.btn-submit {
    padding: 1.5rem 4rem;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .kiosk-header h1 {
        font-size: 2rem;
    }
    
    .survey-grid {
        grid-template-columns: 1fr;
    }
    
    .question-body {
        padding-left: 0;
    }
    
    .question-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .scale-options {
        gap: 0.25rem;
    }
    
    .scale-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .traffic-light-circle {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }
}

/* ============================================
   Tablet Optimizations
   ============================================ */

@media (min-width: 768px) and (max-width: 1024px) {
    .kiosk-container {
        padding: 3rem;
    }
    
    .question-card {
        padding: 3rem;
    }
    
    .traffic-light-circle,
    .emoji {
        font-size: 5rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .btn, .navbar, .survey-card-footer {
        display: none;
    }
}
