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

html {
    scroll-behavior: smooth;
}

/* ===== CSS Variables — Light Mode (Apple-inspired) ===== */
:root {
    --color-bg:           #ffffff;
    --color-bg-hero:      linear-gradient(180deg, #fbf7f2 0%, #ffffff 100%);
    --color-bg-section:   #f5f5f7;
    --color-bg-cta:       linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
    --color-bg-card:      #ffffff;
    --color-text:         #1d1d1f;
    --color-text-muted:   #6e6e73;
    --color-text-subtle:  #86868b;
    --color-text-body:    #424245;
    --color-accent:       #0071e3;
    --color-accent-hover: #0077ed;
    --color-highlight:    #0071e3;
    --color-pill-bg:      rgba(0, 0, 0, 0.05);
    --color-card-shadow:  0 2px 16px rgba(0, 0, 0, 0.06);
    --color-border:       rgba(0, 0, 0, 0.08);
    --color-footer-border:#e0e0e0;
    --color-heart:        #ff2d55;
    --color-caption:      #6e6e73;
    --color-toggle-bg:    rgba(0, 0, 0, 0.06);
    --color-toggle-hover: rgba(0, 0, 0, 0.10);
    --color-toggle-text:  #1d1d1f;
    --radius-card:        20px;
    --radius-pill:        980px;
}

/* ===== CSS Variables — Dark Mode ===== */
[data-theme="dark"] {
    --color-bg:           #000000;
    --color-bg-hero:      linear-gradient(180deg, #1c1c1e 0%, #000000 100%);
    --color-bg-section:   #1c1c1e;
    --color-bg-cta:       linear-gradient(180deg, #000000 0%, #1c1c1e 100%);
    --color-bg-card:      #2c2c2e;
    --color-text:         #f5f5f7;
    --color-text-muted:   #a1a1a6;
    --color-text-subtle:  #6e6e73;
    --color-text-body:    #d1d1d6;
    --color-accent:       #2997ff;
    --color-accent-hover: #45a8ff;
    --color-highlight:    #2997ff;
    --color-pill-bg:      rgba(255, 255, 255, 0.10);
    --color-card-shadow:  0 2px 20px rgba(0, 0, 0, 0.40);
    --color-border:       rgba(255, 255, 255, 0.08);
    --color-footer-border:rgba(255, 255, 255, 0.10);
    --color-heart:        #ff375f;
    --color-caption:      #a1a1a6;
    --color-toggle-bg:    rgba(255, 255, 255, 0.10);
    --color-toggle-hover: rgba(255, 255, 255, 0.16);
    --color-toggle-text:  #f5f5f7;
}

/* ===== System Dark Mode fallback (when no manual override) ===== */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-bg:           #000000;
        --color-bg-hero:      linear-gradient(180deg, #1c1c1e 0%, #000000 100%);
        --color-bg-section:   #1c1c1e;
        --color-bg-cta:       linear-gradient(180deg, #000000 0%, #1c1c1e 100%);
        --color-bg-card:      #2c2c2e;
        --color-text:         #f5f5f7;
        --color-text-muted:   #a1a1a6;
        --color-text-subtle:  #6e6e73;
        --color-text-body:    #d1d1d6;
        --color-accent:       #2997ff;
        --color-accent-hover: #45a8ff;
        --color-highlight:    #2997ff;
        --color-pill-bg:      rgba(255, 255, 255, 0.10);
        --color-card-shadow:  0 2px 20px rgba(0, 0, 0, 0.40);
        --color-border:       rgba(255, 255, 255, 0.08);
        --color-footer-border:rgba(255, 255, 255, 0.10);
        --color-heart:        #ff375f;
        --color-caption:      #a1a1a6;
        --color-toggle-bg:    rgba(255, 255, 255, 0.10);
        --color-toggle-hover: rgba(255, 255, 255, 0.16);
        --color-toggle-text:  #f5f5f7;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ===== Dark Mode Toggle Button ===== */
.dark-mode-toggle {
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    z-index: 999;
    background: var(--color-toggle-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--color-toggle-text);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.dark-mode-toggle:hover {
    background: var(--color-toggle-hover);
    transform: scale(1.08);
}

.dark-mode-toggle:active {
    transform: scale(0.96);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--color-bg-hero);
    transition: background 0.3s ease;
}

.hero-emoji {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 24px rgba(255, 200, 0, 0.25));
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s ease;
}

.hero-emoji:active:not(.popped) {
    transform: scale(0.95);
}

.hero-emoji.popped {
    animation: pop 0.4s ease-out forwards;
    pointer-events: none;
}

@keyframes pop {
    0% { transform: scale(1); opacity: 1; }
    30% { transform: scale(1.4); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}

.hero-emoji.popped-done {
    animation: none;
    cursor: pointer;
    pointer-events: auto;
}

/* ===== Confetti Particles ===== */
.confetti-container {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 100;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    opacity: 1;
    animation: confetti-fall 1s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--confetti-x), var(--confetti-y)) rotate(var(--confetti-r)) scale(0.5);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    font-weight: 400;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.hero-event-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    background: var(--color-pill-bg);
    padding: 1.5rem 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: 1.25rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-event-date {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.03em;
    line-height: 1;
    transition: color 0.3s ease;
}

.hero-event-details {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--color-text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: color 0.3s ease;
}

.hero-event-sep {
    opacity: 0.35;
}

.scroll-hint {
    margin-top: 3rem;
    font-size: 1.5rem;
    color: var(--color-text-subtle);
    animation: bounce 2s ease-in-out infinite;
    transition: color 0.3s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ===== Section Styling ===== */
.section {
    padding: 7rem 1.5rem;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.section-dark {
    background: var(--color-bg-section);
    max-width: 100%;
    padding: 7rem 1.5rem;
    transition: background 0.3s ease;
}

.section-dark .section-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.section-text {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    line-height: 1.75;
    color: var(--color-text-body);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.highlight {
    color: var(--color-highlight);
    font-weight: 600;
    transition: color 0.3s ease;
}

/* ===== Gift / House Section ===== */
.gift-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

/* ===== Holzhaus Image ===== */
.house-image-wrapper {
    margin-top: 3.5rem;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--color-card-shadow);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.house-image-wrapper:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.house-image {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
}

.house-caption {
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-caption);
    padding: 1rem 1.5rem 1.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

/* ===== Feature Cards ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    text-align: center;
}

.feature-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-card);
    padding: 2rem 1.5rem;
    box-shadow: var(--color-card-shadow);
    border: 1px solid var(--color-border);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* ===== CTA / PayPal Section ===== */
.cta-section {
    padding: 6rem 1.5rem;
    text-align: center;
    background: var(--color-bg-cta);
    transition: background 0.3s ease;
}

.cta-inner {
    max-width: 640px;
    margin: 0 auto;
}

.cta-button {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    margin-top: 2rem;
    border: none;
    cursor: pointer;
    letter-spacing: -0.01em;
    box-shadow: 0 2px 16px rgba(0, 113, 227, 0.30);
}

.cta-button:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 113, 227, 0.40);
}

.cta-button:active {
    transform: translateY(0);
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--color-text-subtle);
    font-size: 0.9rem;
    border-top: 1px solid var(--color-footer-border);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.footer-heart {
    color: var(--color-heart);
    transition: color 0.3s ease;
}

/* ===== Location / Map Section ===== */
.location-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.location-info-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    color: var(--color-text-body);
    transition: color 0.3s ease;
}

.location-info-row strong {
    color: var(--color-text);
    transition: color 0.3s ease;
}

.location-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--color-card-shadow);
    border: 1px solid var(--color-border);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    filter: grayscale(0.1);
    transition: filter 0.3s ease;
}

[data-theme="dark"] .map-wrapper iframe {
    filter: grayscale(0.3) brightness(0.85);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .map-wrapper iframe {
        filter: grayscale(0.3) brightness(0.85);
    }
}

.map-link {
    display: inline-block;
    margin-top: 1.25rem;
    color: var(--color-accent);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.map-link:hover {
    color: var(--color-accent-hover);
    opacity: 0.85;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 640px) {
    .section,
    .section-dark,
    .cta-section {
        padding: 4rem 1.25rem;
    }

    .hero {
        padding: 2rem 1.25rem;
        min-height: 100svh;
    }

    .hero-emoji {
        font-size: 3.5rem;
    }

    .dark-mode-toggle {
        top: 0.75rem;
        right: 0.75rem;
        width: 2.4rem;
        height: 2.4rem;
        font-size: 1rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .house-image-wrapper {
        margin-top: 2rem;
    }

    .house-image {
        padding: 0.75rem 0.75rem 0;
    }

    .cta-button {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
        box-sizing: border-box;
    }

    .map-wrapper {
        aspect-ratio: 4 / 3;
    }

    .hero-event-card {
        padding: 1.25rem 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-event-details {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
    }
}

@media (max-width: 768px) {
    .section,
    .section-dark,
    .cta-section {
        padding: 5rem 1.5rem;
    }

    .features {
        gap: 1.25rem;
    }
}

/* ===== Blazor error boundary ===== */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPj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4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }
