/* ===== CSS Reset & Variables ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0f0f0f;
    --color-bg-light: #1a1a2e;
    --color-bg-card: #16213e;
    --color-primary: #f59e0b;
    --color-primary-light: #fbbf24;
    --color-secondary: #e74c3c;
    --color-accent: #10b981;
    --color-text: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-border: rgba(255, 255, 255, 0.08);
    --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --gradient-primary: linear-gradient(135deg, #f59e0b, #f97316);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.15);
    --radius: 16px;
    --radius-sm: 8px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 15, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.06);
}

/* ===== Calendar Download Button ===== */
.btn-calendar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 7px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary-light);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-calendar:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(231, 76, 60, 0.06) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 24px;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-date {
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.date-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius);
    padding: 20px 40px;
}

.date-day {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.date-month {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-time {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-emoji {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0.5;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(5deg); }
    66% { transform: translateY(10px) rotate(-3deg); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    opacity: 1;
    animation: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* ===== Countdown ===== */
.countdown-section {
    background: var(--color-bg-light);
    padding: 48px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.countdown-value {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.countdown-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
}

/* ===== Section Shared ===== */
.section {
    padding: 96px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* ===== Details Section ===== */
.details-section {
    background: var(--color-bg);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.detail-card {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: var(--shadow-glow);
}

.detail-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.detail-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--color-primary-light);
}

.detail-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.detail-card p strong {
    color: var(--color-text);
}

/* ===== Location Section ===== */
.location-section {
    background: var(--color-bg-light);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 48px;
}

.location-info h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.location-address {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.location-description {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

/* ===== Mitbringen Section ===== */
.mitbringen-section {
    background: var(--color-bg);
}

.mitbringen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.mitbringen-card {
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--color-border);
}

.mitbringen-card.provided {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.2);
}

.mitbringen-card.bring {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.2);
}

.mitbringen-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.mitbringen-icon {
    font-size: 1.8rem;
}

.mitbringen-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
}

.mitbringen-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mitbringen-card li {
    font-size: 1rem;
    color: var(--color-text-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.mitbringen-card li:last-child {
    border-bottom: none;
}

/* ===== Salat Section ===== */
.salat-section {
    background: var(--color-bg-light);
}

.salat-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 16px;
}

.salat-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.salat-form .btn {
    opacity: 1;
    animation: none;
    align-self: flex-start;
}

.salat-list-container h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.salat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.salat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    animation: fadeInUp 0.4s ease;
}

.salat-item-emoji {
    font-size: 1.5rem;
}

.salat-item-info {
    display: flex;
    flex-direction: column;
}

.salat-item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.salat-item-type {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.salat-empty {
    color: var(--color-text-muted);
    font-style: italic;
    padding: 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--color-border);
}

/* ===== Admin Delete Button ===== */
.salat-item {
    position: relative;
}

.salat-delete-btn {
    display: none;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(231, 76, 60, 0.3);
    background: rgba(231, 76, 60, 0.1);
    color: var(--color-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.salat-delete-btn:hover {
    background: rgba(231, 76, 60, 0.25);
    border-color: var(--color-secondary);
    transform: scale(1.1);
}

.admin-mode .salat-delete-btn {
    display: flex;
}

.admin-mode .section-title::after {
    content: ' (Admin)';
    font-size: 0.5em;
    color: var(--color-secondary);
    vertical-align: middle;
}

/* ===== Galerie Section ===== */
.galerie-section {
    background: var(--color-bg-light);
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 32px;
}

.galerie-item {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.galerie-item:hover {
    transform: scale(1.03);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: var(--shadow-glow);
}

.galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.galerie-item:hover img {
    transform: scale(1.08);
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox::backdrop {
    background: transparent;
}

.lightbox:not([open]) {
    display: none;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 2.5rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    opacity: 0.7;
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

@media (max-width: 768px) {
    .galerie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }
}

/* ===== News Section ===== */
.news-section {
    background: var(--color-bg);
}

/* ===== WhatsApp Section ===== */
.whatsapp-section {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.08) 0%, rgba(37, 211, 102, 0.03) 50%, rgba(16, 185, 129, 0.06) 100%);
    border-top: 1px solid rgba(37, 211, 102, 0.15);
    border-bottom: 1px solid rgba(37, 211, 102, 0.15);
}

.whatsapp-section .section-title {
    color: #25D366;
}

.whatsapp-section .section-subtitle {
    color: var(--color-text-muted);
}

.whatsapp-logo {
    text-align: center;
    margin-bottom: 16px;
}

.whatsapp-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin-top: 16px;
}

.whatsapp-qr {
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-qr img {
    border-radius: var(--radius-sm);
    display: block;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    opacity: 1;
    animation: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    background: #22c55e;
}

.news-feed {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 16px;
}

.news-card {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.news-card:hover {
    border-color: rgba(245, 158, 11, 0.15);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 12px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.news-date-day {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.news-date-month {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-body h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.news-body p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
    padding: 64px 0 40px;
    text-align: center;
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
}

.footer-emoji {
    font-size: 2rem;
    margin-bottom: 16px;
    letter-spacing: 8px;
}

.footer p {
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.footer-names {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary) !important;
    margin-top: 8px !important;
}

.footer-small {
    font-size: 0.8rem;
    margin-top: 24px !important;
    color: rgba(255, 255, 255, 0.2) !important;
}

/* ===== Toast Notification ===== */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-accent);
    color: #fff;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .countdown {
        gap: 20px;
    }

    .countdown-value {
        font-size: 2.2rem;
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .salat-content {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mitbringen-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        flex-direction: column;
        gap: 16px;
    }

    .news-date {
        flex-direction: row;
        gap: 8px;
        min-width: auto;
        align-self: flex-start;
    }

    .section {
        padding: 64px 0;
    }

    .floating-emoji {
        font-size: 1.5rem;
        opacity: 0.3;
    }
}

@media (max-width: 480px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .date-badge {
        padding: 16px 28px;
    }

    .date-day {
        font-size: 2.8rem;
    }

    .countdown-value {
        font-size: 1.8rem;
    }

    .countdown-item {
        min-width: 70px;
    }
}
