/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tree Emoji Styling - remove white box */
.tree-emoji {
    display: inline-block;
    font-style: normal;
    line-height: 1;
    vertical-align: middle;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a1f14 0%, #1a472a 50%, #0d2818 100%);
    background-attachment: fixed;
    color: #333;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Schneefall-Animation mit Glow */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2em;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}

.snowflake:nth-child(1) { left: 10%; animation: snowfall 10s linear infinite 0s; }
.snowflake:nth-child(2) { left: 20%; animation: snowfall 12s linear infinite 1s; }
.snowflake:nth-child(3) { left: 30%; animation: snowfall 8s linear infinite 2s; }
.snowflake:nth-child(4) { left: 40%; animation: snowfall 14s linear infinite 0.5s; }
.snowflake:nth-child(5) { left: 50%; animation: snowfall 11s linear infinite 1.5s; }
.snowflake:nth-child(6) { left: 60%; animation: snowfall 9s linear infinite 2.5s; }
.snowflake:nth-child(7) { left: 70%; animation: snowfall 13s linear infinite 0.8s; }
.snowflake:nth-child(8) { left: 80%; animation: snowfall 10s linear infinite 1.2s; }
.snowflake:nth-child(9) { left: 90%; animation: snowfall 12s linear infinite 2.2s; }
.snowflake:nth-child(10) { left: 95%; animation: snowfall 11s linear infinite 0.3s; }

@keyframes snowfall {
    0% {
        transform: translateY(-20px) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(30px) rotate(360deg);
        opacity: 0.8;
    }
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Header mit Glassmorphism */
header {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.95) 0%, rgba(139, 26, 46, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 30px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 60px rgba(196, 30, 58, 0.3);
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0.4;
}

.header-content {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3),
                 0 0 20px rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.95;
}

nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-nav {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
    font-size: 0.95em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

.btn-nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-nav:hover::before {
    width: 300px;
    height: 300px;
}

.btn-nav:hover,
.btn-nav.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-nav.active {
    background: rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.6);
}

/* Main Content */
main {
    padding: 20px 0 60px;
}

/* Christmas Card mit Glassmorphism */
.christmas-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 60px rgba(212, 175, 55, 0.15),
                inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    margin-bottom: 30px;
    border: 2px solid rgba(212, 175, 55, 0.6);
    position: relative;
    animation: cardZoomIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), cardFloat 6s ease-in-out 0.6s infinite;
    transform-style: preserve-3d;
}

@keyframes cardZoomIn {
    0% { 
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}



.christmas-card::before {
    content: "🎄";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3em;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 1));
    padding: 0 20px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4),
                0 0 40px rgba(212, 175, 55, 0.3);
    animation: iconSpin 10s linear infinite;
}

@keyframes iconSpin {
    0%, 100% { transform: translateX(-50%) rotate(-3deg); }
    50% { transform: translateX(-50%) rotate(3deg); }
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.card-header h2 {
    color: #c41e3a;
    font-size: 2em;
    margin-bottom: 10px;
}

.card-header p {
    color: #666;
    font-size: 1.1em;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
    animation: fadeInUp 0.5s ease-out backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(221, 221, 221, 0.6);
    border-radius: 12px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #c41e3a;
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.15),
                0 0 20px rgba(196, 30, 58, 0.2),
                0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
}

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

/* Meal Selection Cards */
.meal-selection-group {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px solid #e0e0e0;
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.meal-selection-group h3 {
    color: #c41e3a;
    margin-bottom: 20px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.meal-option {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(221, 221, 221, 0.6);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.meal-option:hover {
    border-color: #c41e3a;
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.2),
                0 0 40px rgba(196, 30, 58, 0.1);
    background: rgba(255, 255, 255, 1);
}

.meal-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.meal-option label {
    cursor: pointer;
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.meal-info {
    flex: 1;
}

.meal-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.meal-description {
    color: #666;
    font-size: 0.9em;
    font-weight: 400;
}

.dietary-restrictions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.dietary-restrictions label {
    font-size: 0.95em;
    margin-bottom: 8px;
}

/* Submit Button mit Epic Effects */
.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #c41e3a 0%, #8b1a2e 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4),
                0 0 40px rgba(196, 30, 58, 0.2);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.5),
                0 0 60px rgba(196, 30, 58, 0.4),
                0 0 80px rgba(255, 215, 0, 0.2);
    background: linear-gradient(135deg, #d4243e 0%, #9d1f35 100%);
}

.btn-submit:active {
    transform: translateY(-2px) scale(0.98);
}

/* Info Box */
/* Tree Emoji Styling mit Glow */
.tree-emoji {
    display: inline-block;
    font-style: normal;
    line-height: 1;
    vertical-align: middle;
    animation: emojiGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

@keyframes emojiGlow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4)); }
    50% { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6)); }
}

.info-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                0 0 60px rgba(212, 175, 55, 0.2),
                inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    border-left: 5px solid #d4af37;
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: infoBoxGlow 10s ease-in-out infinite;
}

@keyframes infoBoxGlow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(180deg); }
}

.info-box h3 {
    color: #c41e3a;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.info-box ul {
    list-style: none;
}

.info-box li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #333;
}

.info-box li::before {
    content: "🎁";
    position: absolute;
    left: 0;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

footer a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffd700;
}

/* Admin Styles */
.admin-login {
    max-width: 500px;
    margin: 100px auto;
}

.admin-dashboard {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

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

.stat-card {
    background: linear-gradient(135deg, #c41e3a 0%, #8b1a2e 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

thead {
    background: #f8f9fa;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    font-weight: 600;
    color: #c41e3a;
}

tr:hover {
    background: #f8f9fa;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    
    .christmas-card {
        padding: 25px;
    }
    
    .card-header h2 {
        font-size: 1.5em;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.9em;
    }
    
    th, td {
        padding: 10px;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #c41e3a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Delete Styling */
.btn-delete {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.btn-delete:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* Button Edit Styling */
.btn-edit {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* Success Message */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Custom Notification */
.custom-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.98), rgba(25, 135, 84, 0.98));
    backdrop-filter: blur(20px);
    color: white;
    padding: 40px 50px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 100px rgba(40, 167, 69, 0.4),
                inset 0 0 0 2px rgba(255, 255, 255, 0.2);
    z-index: 10000;
    text-align: center;
    opacity: 0;
    animation: notificationShow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    min-width: 400px;
}

.custom-notification-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: iconBounce 0.6s ease-in-out 0.3s;
}

.custom-notification-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 10px;
}

.custom-notification-message {
    font-size: 1.1em;
    opacity: 0.95;
    line-height: 1.5;
}

.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes notificationShow {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Zoom-in class for elements */
.zoom-in {
    animation: zoomInElement 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}

@keyframes zoomInElement {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Custom Confirm Dialog */
.custom-confirm {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.98), rgba(139, 26, 46, 0.98));
    backdrop-filter: blur(20px);
    color: white;
    padding: 40px 50px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 100px rgba(196, 30, 58, 0.4),
                inset 0 0 0 2px rgba(255, 255, 255, 0.2);
    z-index: 10001;
    text-align: center;
    opacity: 0;
    animation: notificationShow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    min-width: 450px;
    max-width: 90%;
}

.custom-confirm-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.custom-confirm-title {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 15px;
}

.custom-confirm-message {
    font-size: 1.1em;
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: 30px;
}

.custom-confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.custom-confirm-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 120px;
}

.custom-confirm-btn-yes {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.custom-confirm-btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
}

.custom-confirm-btn-no {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.custom-confirm-btn-no:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Smooth Transitions für alle interaktiven Elemente */
button, .btn, .btn-submit, .btn-nav, .btn-delete, .btn-edit, input, textarea, select {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.meal-option label {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Smooth Page Transitions */
.page-transition-out {
    animation: fadeOutScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fadeOutScale {
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Print Styles */
@media print {
    .snowflakes,
    header nav,
    .btn-submit,
    .btn-delete,
    footer {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .christmas-card {
        border: 2px solid #333;
        box-shadow: none;
    }
}
