/**
 * Frontend-Elemente Styles
 * Für Gäste und Mitarbeiter
 */

/* ========== GÄSTE-WIZARD ========== */
.bedarfanalyse-guest-wizard {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.guest-wizard-step {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.guest-wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.wizard-step-header h2 {
    font-size: 32px;
    margin: 0 0 10px 0;
    color: #333;
}

.step-subtitle {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Form Styles */
.guest-form {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-hint {
    display: flex;
    align-items: center;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.hint-icon {
    margin-right: 6px;
    font-size: 16px;
}

.form-actions {
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(5px);
}

/* Teaser Content */
.teaser-content {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.teaser-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.teaser-info-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.teaser-info-box h4 {
    margin-top: 0;
    color: #333;
}

.teaser-info-box ul {
    list-style: none;
    padding: 0;
}

.teaser-info-box li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.teaser-info-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* ========== FEUERWERK & CELEBRATION ========== */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease-in;
}

.celebration-content {
    text-align: center;
    color: white;
    z-index: 10001;
    position: relative;
}

.success-checkmark {
    margin-bottom: 30px;
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #4caf50;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4caf50;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #4caf50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #4caf50;
    }
}

.celebration-title {
    font-size: 36px;
    margin: 20px 0;
    animation: slideUp 0.5s ease-out 0.3s both;
}

.celebration-message {
    font-size: 18px;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.6s forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#fireworks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* OK-Pfeil Animation */
.ok-arrow {
    display: inline-block;
    animation: arrowBounce 1s infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

/* ========== MITARBEITER-LOGIN ========== */
.bedarfanalyse-employee-login {
    max-width: 400px;
    margin: 60px auto;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    margin: 0 0 10px 0;
    color: #333;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.form-messages {
    margin: 20px 0;
    padding: 12px;
    border-radius: 6px;
    display: none;
}

.form-messages.show {
    display: block;
}

.form-messages.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== MITARBEITER-DASHBOARD ========== */
.bedarfanalyse-employee-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-header h2 {
    margin: 0;
    color: #333;
}

.dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-button {
    padding: 12px 24px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #667eea;
}

.tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.dashboard-tab-content {
    display: none;
}

.dashboard-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.dashboard-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dashboard-section h3 {
    margin-top: 0;
    color: #333;
}

.table-responsive {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.dashboard-table th {
    font-weight: 600;
    color: #333;
    background: #f8f9fa;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-draft {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-in-progress {
    background: #cfe2ff;
    color: #084298;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* ========== MITARBEITER-KATALOG ========== */
.bedarfanalyse-employee-catalog {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.catalog-header {
    text-align: center;
    margin-bottom: 40px;
}

.catalog-header h2 {
    margin: 0 0 10px 0;
    color: #333;
}

.catalog-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.search-input,
.filter-select {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}

.catalog-content {
    display: grid;
    gap: 20px;
}

.catalog-section-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.section-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.section-icon {
    font-size: 32px;
}

.section-card-header h3 {
    flex: 1;
    margin: 0;
    color: #333;
}

.question-count {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.section-description {
    color: #666;
    margin-bottom: 20px;
}

.section-questions h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.questions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.question-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.question-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.question-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
}

.question-type {
    background: #e0e0e0;
    padding: 2px 8px;
    border-radius: 4px;
}

.question-required {
    background: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: 4px;
}

.catalog-note {
    margin-top: 30px;
    padding: 15px;
    background: #fff3cd;
    border-radius: 8px;
    color: #856404;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .bedarfanalyse-guest-wizard,
    .bedarfanalyse-employee-dashboard,
    .bedarfanalyse-employee-catalog {
        padding: 20px 10px;
    }

    .guest-form {
        padding: 25px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .catalog-filters {
        flex-direction: column;
    }
}

