/**
 * Hochzeitsgalerie Eva & Thomas
 * Stylesheet - Eleganter Wedding Style
 */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */

:root {
    /* Farbpalette */
    --color-primary: #8B7355;
    --color-primary-light: #A89076;
    --color-primary-dark: #6B5A45;
    --color-secondary: #D4AF37;
    --color-secondary-light: #E5C65C;
    --color-accent: #F5E6D3;
    --color-dark: #2C2C2C;
    --color-light: #FDFBF7;
    --color-white: #FFFFFF;
    --color-error: #C45050;
    --color-success: #5A9E6F;

    /* Typografie */
    --font-serif: "Cormorant Garamond", Georgia, serif;
    --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Schatten */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

    /* Uebergaenge */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light);
    min-height: 100vh;
}

/* Globale hidden-Attribut Regel */
[hidden] {
    display: none !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-page {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height fuer iOS */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    background: var(--color-dark);
    position: relative;
    overflow: hidden;
}

/* Video Hintergrund */
.video-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(139, 115, 85, 0.75) 0%,
        rgba(107, 90, 69, 0.8) 50%,
        rgba(44, 44, 44, 0.85) 100%
    );
    backdrop-filter: blur(2px);
}

.login-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 2;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    padding: var(--spacing-3xl) var(--spacing-xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

/* Dekorative Linien */
.login-decoration {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}

.login-decoration--top {
    top: var(--spacing-xl);
}

.login-decoration--bottom {
    bottom: var(--spacing-xl);
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.login-subtitle {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    display: block;
    margin-bottom: var(--spacing-sm);
}

.login-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 8vw, 2.75rem);
    font-weight: 500;
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

.login-date {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-primary);
    text-align: center;
}

/* Formular */
.login-form {
    margin-top: var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    padding-left: 3rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    text-align: center;
    letter-spacing: 0.05em;
    color: var(--color-dark);
    background: var(--color-white);
    border: 2px solid var(--color-primary-light);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-input::placeholder {
    color: var(--color-primary-light);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    opacity: 0.6;
}

/* Passwort-Feld ohne Passwortmanager-Trigger */
.form-input.password-field {
    -webkit-text-security: disc;
    text-security: disc;
}

.input-icon {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary-light);
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-input:focus + .input-icon {
    color: var(--color-secondary);
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--color-primary-light);
    text-align: center;
    margin-top: var(--spacing-xs);
}

/* Error Message */
.error-message {
    background: rgba(196, 80, 80, 0.1);
    color: var(--color-error);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Login Button */
.login-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.button-icon svg {
    width: 20px;
    height: 20px;
    transition: var(--transition-fast);
}

.login-button:hover .button-icon svg {
    transform: translateX(4px);
}

/* Login Button im Lade-Zustand */
.login-button--loading {
    pointer-events: none;
    min-width: 180px;
}

.login-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: loginSpin 0.8s linear infinite;
}

@keyframes loginSpin {
    to { transform: rotate(360deg); }
}

/* Passwort vergessen Link (inline in Fehlermeldung) */
.forgot-link {
    display: inline;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    color: var(--color-error);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    transition: var(--transition-fast);
}

.forgot-link:hover {
    color: var(--color-primary);
}

/* Passwort vergessen / Favorit entfernen Modal */
.modal--small .modal-content {
    max-width: 360px;
    width: calc(100% - 32px);
    min-width: 280px;
}

.modal-body--centered {
    text-align: center;
    padding: 36px 28px;
}

/* Modal Footer - Buttons untereinander, dezent */
.modal--small .modal-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: var(--spacing-lg);
    padding: 0;
}

.modal--small .modal-footer .modal-btn {
    width: 100%;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    margin-top: 0;
}

.modal--small .modal-footer .modal-btn--cancel {
    background: transparent;
    border: 1px solid rgba(139, 115, 85, 0.3);
    color: var(--color-primary);
    box-shadow: none;
}

.modal--small .modal-footer .modal-btn--cancel:hover {
    background: rgba(139, 115, 85, 0.08);
    border-color: rgba(139, 115, 85, 0.4);
}

.modal--small .modal-footer .modal-btn--accept {
    background: var(--color-primary);
    box-shadow: none;
}

.modal--small .modal-footer .modal-btn--accept:hover {
    background: var(--color-primary-dark);
    transform: none;
}

/* Kleineres Icon */
.modal--small .forgot-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-md);
}

.modal--small .forgot-icon svg {
    width: 28px;
    height: 28px;
}

.modal--small .forgot-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.modal--small .forgot-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-muted);
    margin: 0;
}

/* Mobile Anpassungen */
@media (max-width: 400px) {
    .modal--small .modal-content {
        width: calc(100% - 24px);
    }

    .modal--small .modal-body--centered {
        padding: 28px 20px;
    }

    .modal--small .forgot-title {
        font-size: 1.15rem;
    }

    .modal--small .forgot-text {
        font-size: 0.85rem;
    }

    .modal--small .forgot-icon {
        width: 56px;
        height: 56px;
    }

    .modal--small .forgot-icon svg {
        width: 24px;
        height: 24px;
    }

    .modal--small .modal-footer .modal-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* Desktop/Tablet: Etwas mehr Luft */
@media (min-width: 481px) {
    .modal-body--centered {
        padding: 40px 36px;
    }

    .modal-body--centered .modal-btn {
        margin-top: var(--spacing-lg);
    }
}

.forgot-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin-bottom: var(--spacing-xl);
    background: var(--color-accent);
    border-radius: var(--radius-full);
    color: var(--color-primary);
}

.forgot-icon svg {
    width: 48px;
    height: 48px;
}

.forgot-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-dark);
    margin: 0 0 var(--spacing-lg) 0;
}

.forgot-text {
    font-size: 1rem;
    color: var(--color-dark);
    line-height: 1.7;
    margin-bottom: var(--spacing-2xl);
}

.modal-body--centered .modal-btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    margin-top: var(--spacing-md);
}

/* Modal Actions (Buttons nebeneinander) */
.modal-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.modal-actions .modal-btn {
    flex: 1;
    margin-top: 0;
}

/* Logout Modal Styles */
.logout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-bottom: var(--spacing-md);
    background: rgba(139, 115, 85, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-primary);
}

.logout-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-dark);
    margin: 0 0 var(--spacing-sm) 0;
}

.logout-text {
    font-size: 0.9rem;
    color: var(--color-dark);
    line-height: 1.6;
    margin: 0;
}

.logout-text strong {
    color: var(--color-success);
}

.modal-btn--logout {
    background: var(--color-primary);
    color: var(--color-white);
}

.modal-btn--logout:hover {
    background: var(--color-primary-dark);
}

/* Kompakter auf Mobile */
@media (max-width: 480px) {
    .modal-body--centered {
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    .forgot-icon {
        width: 70px;
        height: 70px;
        margin-bottom: var(--spacing-md);
    }

    .forgot-icon svg {
        width: 36px;
        height: 36px;
    }

    .forgot-title {
        font-size: 1.4rem;
        margin-bottom: var(--spacing-md);
    }

    .forgot-text {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-lg);
    }

    .modal-body--centered .modal-btn {
        margin-top: 0;
    }
}

/* ============================================
   CELEBRATION OVERLAY
   ============================================ */

.celebration-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg,
        rgba(44, 44, 44, 0.97) 0%,
        rgba(107, 90, 69, 0.95) 50%,
        rgba(139, 115, 85, 0.97) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.celebration-overlay.active {
    opacity: 1;
    visibility: visible;
}

.celebration-overlay.fade-out {
    opacity: 0;
    transition: opacity 0.8s ease;
}

#confetti-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Ton-Hinweis oben links bei Animation */
.celebration-sound-hint {
    position: absolute;
    top: var(--spacing-lg);
    left: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 400;
    z-index: 10;
    animation: soundHintPulse 2s ease-in-out infinite;
}

.celebration-sound-hint svg {
    flex-shrink: 0;
    opacity: 0.9;
}

@keyframes soundHintPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.03);
    }
}

.photo-teaser {
    position: relative;
    width: min(90vw, 800px);
    height: min(70vh, 600px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(212, 175, 55, 0.3),
        0 0 60px rgba(212, 175, 55, 0.15);
    z-index: 2;
}

.teaser-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.teaser-img.active {
    opacity: 1;
    transform: scale(1);
}

.teaser-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 115, 85, 0.3);
}

.teaser-placeholder-icon svg {
    width: 100px;
    height: 100px;
    color: rgba(255, 255, 255, 0.4);
}

.celebration-text {
    position: absolute;
    bottom: 12%;
    right: 0;
    text-align: center;
    z-index: 3;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem 2.5rem 1.25rem;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.celebration-subtitle {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.celebration-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 500;
    color: var(--color-dark);
    line-height: 1.2;
    margin: 0;
}

.celebration-date {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-primary);
    margin: 0.5rem 0 0;
    letter-spacing: 0.05em;
}

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

/* Lade-Animation in Celebration - mittig mit Herz */
.celebration-loader {
    position: absolute;
    bottom: calc(50% - 120px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    z-index: 10;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.5s forwards;
}

.celebration-loader .loader-rings {
    width: 100px;
    height: 100px;
}

.celebration-loader .loader-ring--outer {
    width: 100px;
    height: 100px;
}

.celebration-loader .loader-ring--inner {
    width: 70px;
    height: 70px;
}

.celebration-loader .loader-heart svg {
    width: 32px;
    height: 32px;
}

.celebration-loader-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-family: var(--font-sans);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* ============================================
   GALERIE PAGE
   ============================================ */

.galerie-page {
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
}

/* Verhindert horizontales Overflow - aber nicht auf body (bricht sticky!) */
html {
    overflow-x: hidden;
}

/* ============================================
   SLIDE-IN NAVIGATION
   ============================================ */

.nav-sidebar {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    visibility: hidden;
}

.nav-sidebar.is-open {
    pointer-events: auto;
    visibility: visible;
}

.nav-sidebar-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(44, 44, 44, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.nav-sidebar.is-open .nav-sidebar-backdrop {
    opacity: 1;
}

.nav-sidebar-content {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: linear-gradient(180deg, #FDFBF7 0%, #F8F5F0 100%);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.nav-sidebar.is-open .nav-sidebar-content {
    transform: translateX(0);
}

.nav-sidebar-header {
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, transparent 100%);
}

.nav-subtitle {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.nav-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-dark);
    line-height: 1.2;
}

.nav-close {
    position: absolute;
    top: 16px;
    right: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--color-primary);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.nav-close:hover {
    background: rgba(139, 115, 85, 0.1);
    color: var(--color-dark);
}

.nav-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    overflow-y: auto;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0 12px;
}

.nav-menu li {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--color-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
}

.nav-link:hover {
    background: rgba(139, 115, 85, 0.08);
    color: var(--color-primary);
}

.nav-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.nav-link span:first-of-type {
    flex: 1;
}

.nav-count {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-primary);
    background: rgba(139, 115, 85, 0.1);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

/* Favoriten-Link speziell */
.nav-link[data-section="section-favoriten"] svg {
    color: var(--color-secondary);
}

/* Admin Link */
.nav-link--admin {
    color: #666;
}

.nav-link--admin svg {
    opacity: 0.5;
}

/* Nav Footer - Abmelden ganz unten */
.nav-footer {
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid rgba(139, 115, 85, 0.1);
}

/* Logout Link - rot und am Ende der Navigation */
.nav-link--logout {
    color: #c45c5c;
    font-size: 0.85rem;
    padding: 10px 14px;
    transition: var(--transition-normal);
}

.nav-link--logout svg {
    stroke: #c45c5c;
}

.nav-link--logout:hover {
    color: #a83939;
    background: rgba(196, 92, 92, 0.12);
}

.nav-link--logout:hover svg {
    stroke: #a83939;
}

/* Mini-Countdown Sektion in Navigation */
.nav-countdown-section {
    margin: 16px 20px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(139, 115, 85, 0.06) 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 175, 55, 0.15);
    text-align: center;
}

.nav-countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(139, 115, 85, 0.6);
    margin-bottom: 6px;
}

.nav-countdown-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-gold);
}

.nav-countdown-value svg {
    color: var(--color-gold);
    opacity: 0.7;
    flex-shrink: 0;
}

/* Countdown ist klickbar - startet Diashow */
.nav-countdown-section {
    cursor: pointer;
    transition: var(--transition-normal);
}

.nav-countdown-section:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(139, 115, 85, 0.1) 100%);
    border-color: rgba(212, 175, 55, 0.3);
    transform: scale(1.02);
}

.nav-countdown-section:active {
    transform: scale(0.98);
}

.nav-divider {
    height: 1px;
    background: rgba(139, 115, 85, 0.15);
    margin: 12px 20px;
}

.nav-menu--secondary {
    margin-top: 8px;
}

/* Problem melden Ansicht */
.nav-problem-view {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.nav-problem-view[hidden] {
    display: none;
}

.nav-main[hidden] {
    display: none;
}

.nav-problem-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
}

.nav-problem-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.nav-problem-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.1) 0%, rgba(139, 115, 85, 0.05) 100%);
    border-radius: 14px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.nav-problem-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0;
}

.nav-problem-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin: 0 0 12px;
}

.nav-problem-text strong {
    color: var(--color-primary-dark);
    font-weight: 600;
}

/* Zurück als einfacher Link */
.nav-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding: 0;
    background: none;
    border: none;
    color: var(--color-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-back-link:hover {
    color: var(--color-primary-dark);
}

.nav-back-link svg {
    transition: transform 0.2s ease;
}

.nav-back-link:hover svg {
    transform: translateX(-3px);
}

/* ============================================
   HEADER - Glasmorphism Design
   ============================================ */

.galerie-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    /* Glasmorphism Effect */
    background: rgba(253, 251, 247, 0.92);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    /* Subtle border */
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    /* Nur vertikales Padding - horizontales im Content */
    padding: 12px 0;
    width: 100%;
    /* Subtiler Schatten */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero-banner {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    margin-top: var(--header-height);
}

.hero-banner-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: blur(3px);
    transform: scale(1.05);
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(44, 44, 44, 0.45) 0%,
        rgba(139, 115, 85, 0.35) 50%,
        rgba(44, 44, 44, 0.5) 100%
    );
}

.hero-banner-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* === QUOTE === */
.hero-quote-main {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.01em;
    line-height: 1.1;
}

.hero-quote-sub {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-top: 6px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* === DIVIDER === */
.hero-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--color-secondary) 20%,
        var(--color-secondary) 80%,
        transparent
    );
    margin: 18px 0;
    position: relative;
}

.hero-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--color-secondary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--color-secondary);
}

/* === COUNTDOWN === */
.hero-countdown-values {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.hero-countdown-number {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
    font-variant-numeric: tabular-nums;
}

.hero-countdown-unit {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero-countdown-sep {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin-bottom: 12px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Exakt gleich wie .galerie-container */
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
    box-sizing: border-box;
}

/* Links: Navigation Button */
/* Header Buttons - dezent und harmonisch */
.header-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(139, 115, 85, 0.06);
    border: 1px solid rgba(139, 115, 85, 0.15);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.header-menu:hover {
    background: #fff;
    border-color: rgba(139, 115, 85, 0.25);
    color: var(--color-primary-dark);
}

.header-menu:active {
    background: rgba(139, 115, 85, 0.08);
}

/* Header Button Labels (Desktop/Tablet) */
.header-btn-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
}

.header-menu svg {
    width: 20px;
    height: 20px;
}

/* Mitte: Titel - nimmt restlichen Platz und zentriert */
.header-title {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0; /* Verhindert Overflow */
}

.header-title-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

.header-title-link:hover {
    background: rgba(139, 115, 85, 0.08);
}

.header-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    line-height: 1.2;
}

.header-subtitle {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-top: 1px;
    order: 2; /* Unter dem Namen */
}

/* Rechts: Favoriten Count Button */
/* Favoriten Button - dezent und harmonisch */
.favoriten-count {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--radius-md);
    color: var(--color-secondary);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.favoriten-count:hover {
    background: #fff;
    border-color: rgba(212, 175, 55, 0.4);
    color: #9a7d1e;
}

.favoriten-count:active {
    background: rgba(212, 175, 55, 0.08);
}

/* Stern-Icon */
.favoriten-count svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Zahl - klar und lesbar */
.favoriten-count #favoriten-anzahl {
    font-weight: 600;
    font-size: 0.85rem;
}

/* Wenn Favoriten versteckt: Placeholder fuer Balance */
.favoriten-count[hidden] + .header-placeholder,
.header-placeholder {
    width: 44px; /* Gleich wie Hamburger Button */
    flex-shrink: 0;
}

/* Musik-Toggle Button (fixed unten links) */
.music-toggle-fixed {
    position: fixed;
    bottom: var(--spacing-lg);
    left: var(--spacing-lg);
    z-index: 90;
    display: flex;
    align-items: center;
    padding: 8px 14px 8px 8px;
    background: rgba(253, 251, 247, 0.95);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.music-toggle-fixed:hover {
    border-color: rgba(139, 115, 85, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Badge-Container (Kreis mit Note + Wellen) */
.music-badge {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 115, 85, 0.1);
    border-radius: 50%;
    color: var(--color-primary);
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.music-toggle-fixed:hover .music-badge {
    background: rgba(139, 115, 85, 0.15);
}

.music-toggle-fixed.playing .music-badge {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #b8972e 100%);
    color: var(--color-white);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

/* Music Icons im Badge */
.music-badge .music-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.music-badge .music-icon--off {
    display: flex;
}

.music-badge .music-icon--on {
    display: none;
}

.music-toggle-fixed.playing .music-badge .music-icon--on {
    display: flex;
}

.music-toggle-fixed.playing .music-badge .music-icon--off {
    display: none;
}

/* Text "Musik" */
.music-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--color-primary);
    margin-left: 8px;
}

/* Soundwellen vom Badge aus */
.music-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    display: none;
}

.music-toggle-fixed.playing .music-waves {
    display: block;
}

.music-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
    animation: soundWave 2.5s ease-out infinite;
}

.music-wave:nth-child(2) {
    animation-delay: 0.6s;
}

.music-wave:nth-child(3) {
    animation-delay: 1.2s;
}

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

/* Auf kleinen Bildschirmen: kompakter */
@media (max-width: 480px) {
    .music-toggle-fixed {
        padding: 6px;
        bottom: var(--spacing-md);
        left: var(--spacing-md);
    }

    .music-badge {
        width: 32px;
        height: 32px;
    }

    .music-badge svg {
        width: 16px;
        height: 16px;
    }

    .music-waves {
        width: 32px;
        height: 32px;
    }

    .music-label {
        display: none;
    }
}

/* Musik-Tooltip */
.music-tooltip {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
    animation: tooltipSlideIn 0.4s ease;
    z-index: 100;
}

.music-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--color-primary);
}

.music-tooltip.fade-out {
    animation: tooltipFadeOut 0.5s ease forwards;
}

@keyframes tooltipSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes tooltipFadeOut {
    to {
        opacity: 0;
        transform: translateY(-50%) translateX(10px);
    }
}

/* Hint-Tooltip (Musik aus) */
.music-tooltip--hint {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    animation: tooltipSlideIn 0.4s ease, hintPulse 2s ease-in-out infinite 0.4s;
}

.music-tooltip--hint::before {
    border-right-color: var(--color-primary);
}

@keyframes hintPulse {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(5px);
    }
}

.foto-count {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 500;
}

.favoriten-label {
    margin-left: 4px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary);
    background: var(--color-accent);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.header-btn:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

.header-btn span {
    display: none;
}

@media (min-width: 640px) {
    .header-btn span {
        display: inline;
    }
}

/* Galerie Container */
.galerie-container {
    flex: 1;
    padding: 30px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Galerie Sektionen */
.galerie-section {
    margin-bottom: var(--spacing-3xl);
}

.galerie-section:last-child {
    margin-bottom: 0;
}

/* Grid in Sektionen - Clearfix fuer Flexbox */
.galerie-grid--section::after {
    content: '';
    display: table;
    clear: both;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(139, 115, 85, 0.15);
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-dark);
    margin: 0;
}

.section-title svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.galerie-section--favoriten .section-title svg {
    color: var(--color-secondary);
    fill: var(--color-secondary);
}

/* Hinweis wenn keine Favoriten vorhanden */
.favoriten-empty {
    position: relative;
    z-index: 2;
    padding: var(--spacing-sm) 0;
    color: var(--color-muted);
}

.favoriten-empty[hidden] {
    display: none;
}

.favoriten-empty-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    color: var(--color-muted);
}

.favoriten-empty-star {
    flex-shrink: 0;
    color: var(--color-secondary);
    stroke: var(--color-secondary);
    opacity: 0.7;
}

.galerie-section--beliebt .section-title svg {
    color: #e25555;
}

/* Ausgeblendete Bilder (Admin-only) */
.galerie-section--excluded {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 2px dashed rgba(139, 115, 85, 0.2);
}

.galerie-section--excluded .section-title svg {
    color: #888;
}

.galerie-section--excluded .galerie-item--excluded {
    position: relative;
    opacity: 0.7;
    filter: grayscale(30%);
    transition: var(--transition-normal);
}

.galerie-section--excluded .galerie-item--excluded:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.excluded-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
}

.section-hint {
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
}

/* ============================================
   FOTOBOX SEKTION
   ============================================ */

.galerie-section--fotobox {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(139, 115, 85, 0.15);
}

.galerie-section--fotobox .section-title svg {
    color: var(--color-primary);
}

/* Download-Button mit Dateigröße */
.section-download--fotobox .download-size {
    opacity: 0.7;
    font-size: 0.75rem;
}

/* Fotobox-Badge in der Favoriten-Sektion */
.fotobox-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(139, 115, 85, 0.85);
    color: var(--color-white);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--transition-fast);
}

.galerie-item:hover .fotobox-badge {
    background: var(--color-primary);
}

/* Fotobox-Items leicht unterschiedlich stylen */
.galerie-item--fotobox {
    /* Subtiler Unterschied */
}

/* Fotobox-Items in Favoriten-Sektion */
.galerie-section--favoriten .galerie-item--fotobox {
    position: relative;
}

.section-count {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-primary);
    background: var(--color-accent);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

.section-header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Section Download Button (Outline Style) */
.section-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px; /* Feste Hoehe fuer Konsistenz */
    padding: 0 14px;
    background: transparent;
    border: 1.5px solid var(--color-primary);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    cursor: pointer;
    transition: var(--transition-normal);
    flex-shrink: 0;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.section-download:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.02);
}

.section-download svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Spezielle Farben je Sektion */
.section-download--favoriten {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.section-download--favoriten:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

.section-download--beliebt {
    border-color: #e25555;
    color: #e25555;
}

.section-download--beliebt:hover {
    background: #e25555;
    color: var(--color-white);
}

/* Admin: IDs kopieren Button */
.section-download--copy {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.section-download--copy:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ============================================
   VIEW TOGGLE BUTTON
   ============================================ */

.view-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px; /* Feste Hoehe - identisch mit section-download */
    padding: 0 14px;
    background: transparent;
    border: 1.5px solid var(--color-primary);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}

.view-toggle:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.02);
}

.view-toggle.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.view-toggle svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Icon-Wechsel: Grid-Icon anzeigen wenn nicht aktiv, Detail-Icon wenn aktiv */
.view-toggle .view-toggle-icon--detail {
    display: none;
}

.view-toggle.active .view-toggle-icon--grid {
    display: none;
}

.view-toggle.active .view-toggle-icon--detail {
    display: block;
}

/* Text wechseln */
.view-toggle.active .view-toggle-text::after {
    content: '';
}

/* ============================================
   COMPACT VIEW MODE (Kompakte Ansicht)
   ============================================ */

/* Im Kompakt-Modus: Standard-Overlay ausblenden */
.galerie-section.view-compact .galerie-item .galerie-overlay {
    opacity: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: opacity 0.2s ease;
}

/* Hover zeigt dezentes Overlay mit zentriertem Icon */
.galerie-section.view-compact .galerie-item:hover .galerie-overlay {
    opacity: 1;
}

/* Zoom-Icon zentriert und klein */
.galerie-section.view-compact .galerie-item .galerie-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.galerie-section.view-compact .galerie-item .galerie-zoom svg {
    width: 20px;
    height: 20px;
}

/* Text im Kompakt-Modus ausblenden */
.galerie-section.view-compact .galerie-item .galerie-zoom-text {
    display: none;
}

/* Favorit-Button komplett ausblenden */
.galerie-section.view-compact .galerie-favorit {
    display: none !important;
}

/* Views-Badge ausblenden */
.galerie-section.view-compact .galerie-views {
    display: none !important;
}

/* Hover-Effekte - leichter Zoom */
.galerie-section.view-compact .galerie-item:hover .galerie-img {
    transform: scale(1.03);
}

/* Favoriten nur durch goldenen Rahmen markieren */
.galerie-section.view-compact .galerie-item.is-favorit {
    box-shadow: 0 0 0 3px var(--color-secondary);
}

/* Kein Hintergrund-Highlight noetig */
.galerie-section.view-compact .galerie-item.is-favorit::before {
    display: none;
}

/* Mobile: Kompakt-Ansicht */
@media (max-width: 768px) {
    /* Duennerer Rahmen auf Mobile */
    .galerie-section.view-compact .galerie-item.is-favorit {
        box-shadow: 0 0 0 2px var(--color-secondary);
    }

    /* Kleineres Zoom-Icon auf Mobile */
    .galerie-section.view-compact .galerie-item .galerie-zoom {
        width: 36px;
        height: 36px;
    }

    .galerie-section.view-compact .galerie-item .galerie-zoom svg {
        width: 16px;
        height: 16px;
    }
}

.galerie-grid {
    padding-top: 4px; /* Platz fuer Favoriten-Rahmen oben */
}

/* Views Badge */
.galerie-views {
    position: absolute;
    bottom: var(--spacing-sm);
    left: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.6);
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
    z-index: 5;
}

.galerie-views svg {
    opacity: 0.8;
}

/* Views Badge mit Hover-Effekt (nur in "Alle Fotos") */
.galerie-views--hover {
    opacity: 0;
    transform: translateY(5px);
    transition: var(--transition-normal);
}

.galerie-item:hover .galerie-views--hover {
    opacity: 1;
    transform: translateY(0);
}

/* Foto-Grid - Justified Layout */
.galerie-grid {
    display: flex;
    flex-wrap: wrap;
}

.galerie-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-accent);
    /* Wird per JavaScript gesetzt */
}

.galerie-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* Wrapper füllt das Item komplett */
.galerie-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-light) 100%);
    overflow: hidden;
}

.galerie-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

/* Lazy Loading */
.galerie-img.lazy {
    opacity: 0;
}

.galerie-img.lazy.loaded {
    opacity: 1;
}

.galerie-item:hover .galerie-img {
    transform: scale(1.05);
}

.galerie-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.galerie-item:hover .galerie-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.galerie-zoom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-white);
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition-normal);
}

.galerie-zoom-text {
    display: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.galerie-item:hover .galerie-zoom {
    opacity: 1;
    transform: scale(1);
}

/* Auf Mobile: Text immer anzeigen wenn Overlay sichtbar */
@media (max-width: 768px) {
    .galerie-zoom-text {
        display: block;
    }

    .galerie-zoom svg {
        width: 28px;
        height: 28px;
    }
}

/* Empty State */
.galerie-empty {
    text-align: center;
    padding: var(--spacing-3xl);
    color: var(--color-primary);
}

.empty-icon {
    margin-bottom: var(--spacing-lg);
    opacity: 0.4;
}

.galerie-empty h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.galerie-empty p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-figure {
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Lade-Zustand: Thumbnail mit Blur als Platzhalter */
.lightbox-img.loading {
    filter: blur(15px);
    opacity: 0.5;
    transform: scale(1.05);
}

/* Eleganter Hochzeits-Spinner */
.lightbox-figure {
    position: relative;
}

.lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.lightbox-img.loading ~ .lightbox-loader {
    opacity: 1;
    visibility: visible;
}

.loader-rings {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.loader-ring--outer {
    width: 80px;
    height: 80px;
    border-top-color: var(--color-secondary);
    border-right-color: var(--color-secondary);
    animation: spinOuter 1.5s linear infinite;
}

.loader-ring--inner {
    width: 56px;
    height: 56px;
    border-bottom-color: var(--color-primary-light);
    border-left-color: var(--color-primary-light);
    animation: spinInner 1.2s linear infinite;
}

.loader-heart {
    color: var(--color-secondary);
    animation: pulseHeart 1.5s ease-in-out infinite;
}

.loader-heart svg {
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.4));
}

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

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

@keyframes pulseHeart {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.lightbox-caption {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: var(--spacing-md);
}

/* Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    z-index: 100; /* Immer ueber dem Bild */
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.lightbox-prev {
    left: var(--spacing-lg);
}

.lightbox-next {
    right: var(--spacing-lg);
}

/* Toolbar */
.lightbox-toolbar {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.lightbox-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   FAVORITEN
   ============================================ */

/* Favoriten-Button im Header */
.header-btn--favoriten {
    border: none;
    cursor: pointer;
}

.header-btn--favoriten:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

/* Favorit-Stern im Grid */
.galerie-favorit {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-white);
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition-normal);
    z-index: 10;
}

.galerie-favorit svg {
    fill: none;
    transition: var(--transition-fast);
}

.galerie-item:hover .galerie-favorit {
    opacity: 1;
    transform: scale(1);
}

.galerie-favorit:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1) !important;
}

.galerie-favorit.active {
    opacity: 1;
    transform: scale(1);
    color: var(--color-secondary);
}

.galerie-favorit.active svg {
    fill: var(--color-secondary);
}

/* Favorit in Galerie-Item Markierung - nur in "Alle Fotos" Sektion */
.galerie-section--alle .galerie-item.is-favorit {
    box-shadow: 0 0 0 3px var(--color-secondary);
}

/* In der Favoriten-Sektion kein extra Rahmen noetig */
.galerie-section--favoriten .galerie-item.is-favorit {
    box-shadow: none;
}

/* ============================================
   LIGHTBOX VERBESSERT
   ============================================ */

/* Toolbar oben */
.lightbox-toolbar--top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: 10;
}

.lightbox-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.lightbox-toolbar-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* X-Icon (Close) mehr Abstand nach links fuer bessere Abgrenzung */
.lightbox-toolbar-actions .lightbox-close {
    margin-left: var(--spacing-md);
}

/* Views in Lightbox */
.lightbox-views {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.lightbox-views svg {
    opacity: 0.7;
}

/* Views: Desktop oben, Mobile unten rechts */
.lightbox-views--mobile {
    display: none;
    position: absolute;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    font-size: 0.8rem;
    padding: 4px 10px;
}

@media (max-width: 768px) {
    .lightbox-views--desktop {
        display: none;
    }

    .lightbox-views--mobile {
        display: flex;
    }
}

/* Groessere, sichtbarere Buttons */
.lightbox-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    backdrop-filter: blur(4px);
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.lightbox-btn svg {
    width: 24px;
    height: 24px;
}

/* Favorit-Button in Lightbox */
.lightbox-favorit svg {
    fill: none;
    transition: var(--transition-fast);
}

.lightbox-favorit.active {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.lightbox-favorit.active svg {
    fill: var(--color-secondary);
}

/* Groessere Navigation */
.lightbox-nav {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    z-index: 100; /* Immer ueber dem Bild */
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.lightbox-nav svg {
    width: 28px;
    height: 28px;
}

/* Counter besser lesbar */
.lightbox-counter {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Lightbox Figure - volle Hoehe ohne Thumbnails */
.lightbox-figure {
    max-height: calc(100vh - 80px);
}

.lightbox-img {
    max-height: calc(100vh - 180px);
}

/* ============================================
   TOAST BENACHRICHTIGUNG
   ============================================ */

.toast {
    position: fixed;
    bottom: var(--spacing-2xl);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--color-dark) 0%, #1a1a1a 100%);
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 2000;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-secondary);
    border-radius: 50%;
    animation: toastDot 1s ease-in-out infinite;
}

@keyframes toastDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast[hidden] {
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */

.galerie-footer {
    position: relative;
    text-align: center;
    padding: 80px var(--spacing-xl) 40px;
    color: var(--color-primary);
    background: linear-gradient(180deg,
        rgba(139, 115, 85, 0.06) 0%,
        rgba(139, 115, 85, 0.12) 100%
    );
    margin-top: 60px;
    overflow: hidden;
}

/* Dekorative Wellen-Kante oben */
.galerie-footer::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--color-cream);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

/* Dekorative Blumen/Ranken links */
.galerie-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 200' opacity='0.06'%3E%3Cpath d='M20 200 Q30 150 20 100 Q10 50 25 0' fill='none' stroke='%238B7355' stroke-width='2'/%3E%3Ccircle cx='20' cy='100' r='8' fill='%23D4AF37'/%3E%3Ccircle cx='25' cy='60' r='5' fill='%23D4AF37'/%3E%3Ccircle cx='18' cy='140' r='6' fill='%23D4AF37'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 200' opacity='0.06'%3E%3Cpath d='M80 200 Q70 150 80 100 Q90 50 75 0' fill='none' stroke='%238B7355' stroke-width='2'/%3E%3Ccircle cx='80' cy='100' r='8' fill='%23D4AF37'/%3E%3Ccircle cx='75' cy='60' r='5' fill='%23D4AF37'/%3E%3Ccircle cx='82' cy='140' r='6' fill='%23D4AF37'/%3E%3C/svg%3E");
    background-position: left bottom, right bottom;
    background-repeat: no-repeat;
    background-size: 80px auto, 80px auto;
    pointer-events: none;
}

.footer-thankyou {
    position: relative;
    z-index: 2;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-primary);
    line-height: 1.6;
    margin: 0 0 20px 0;
    opacity: 0.85;
}

.footer-hearts {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--color-secondary);
    opacity: 0.6;
}

.footer-copyright {
    position: relative;
    z-index: 2;
    font-size: 0.75rem;
    color: rgba(139, 115, 85, 0.5);
    margin: 0;
}

@media (max-width: 480px) {
    .galerie-footer {
        padding: 40px var(--spacing-md) 24px;
        margin-top: 40px;
    }

    .galerie-footer::before {
        top: -20px;
        height: 40px;
    }

    .galerie-footer::after {
        background-size: 50px auto, 50px auto;
    }

    .footer-thankyou {
        font-size: 1.05rem;
    }
}

/* Infinite Scroll Trigger (unsichtbar) */
.load-more-trigger {
    height: 1px;
    width: 100%;
}

/* Mehr laden Button */
.load-more-container {
    display: flex;
    justify-content: center;
    padding: var(--spacing-xl) 0;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn svg {
    transition: transform 0.3s ease;
}

.load-more-btn:hover svg {
    transform: translateY(2px);
}

.load-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.load-more-btn.loading svg {
    animation: bounce 0.6s infinite;
}

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

.load-more-count {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ============================================
   MODAL
   ============================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.modal[hidden] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-sm);
    border-bottom: 1px solid rgba(139, 115, 85, 0.15);
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-dark);
    margin: 0;
    text-align: center;
}

.modal-body {
    padding: var(--spacing-xl) var(--spacing-xl);
}

/* Desktop/Tablet: Mehr Platz in allen Modals */
@media (min-width: 481px) {
    .modal-body {
        padding: var(--spacing-2xl) var(--spacing-2xl);
    }
}

.modal-intro {
    font-size: 0.9rem;
    color: var(--color-dark);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    line-height: 1.6;
}

.license-terms {
    background: var(--color-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.license-terms h3 {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-xs) 0;
}

.license-terms h3:not(:first-child) {
    margin-top: var(--spacing-md);
}

.license-terms ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.license-terms li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: var(--spacing-xs);
    font-size: 0.8rem;
    color: var(--color-dark);
    line-height: 1.4;
}

.license-terms li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 5px;
    height: 5px;
    background: var(--color-secondary);
    border-radius: 50%;
}

.license-note {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(139, 115, 85, 0.15);
    font-size: 0.75rem;
    font-style: italic;
    color: var(--color-primary);
    text-align: center;
}

.modal-footer {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-xl) var(--spacing-xl);
}

/* Desktop/Tablet: Mehr Abstand im Modal-Footer */
@media (min-width: 481px) {
    .modal-footer {
        padding: var(--spacing-xl) var(--spacing-2xl) var(--spacing-2xl);
        gap: var(--spacing-lg);
    }
}

.modal-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
}

/* Desktop/Tablet: Groessere Buttons */
@media (min-width: 481px) {
    .modal-btn {
        padding: var(--spacing-lg) var(--spacing-xl);
        font-size: 1rem;
        border-radius: var(--radius-lg);
    }
}

.modal-btn--cancel {
    background: var(--color-light);
    color: var(--color-primary);
}

.modal-btn--cancel:hover {
    background: var(--color-accent);
}

.modal-btn--accept {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.modal-btn--accept:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.modal-btn--accept svg {
    flex-shrink: 0;
}

/* ============================================
   LICENSE MODAL - Kompaktes Design
   ============================================ */

.modal--license {
    padding: var(--spacing-md);
}

.modal--license .modal-backdrop {
    background: rgba(0, 0, 0, 0.85);
}

.license-modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-lg);
    animation: licenseSlideIn 0.3s ease;
}

@keyframes licenseSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.license-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-dark);
    margin: 0;
    text-align: left;
}

.license-subtitle {
    font-size: 0.85rem;
    color: var(--color-primary);
    margin: var(--spacing-xs) 0 var(--spacing-lg) 0;
    text-align: left;
}

.license-section {
    margin-bottom: var(--spacing-md);
}

.license-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    text-align: left;
}

.license-section--allowed .license-label {
    color: var(--color-success);
}

.license-section--notice .license-label {
    color: #c97a00;
}

.license-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.license-list li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: var(--color-dark);
    line-height: 1.4;
}

.license-list li:last-child {
    margin-bottom: 0;
}

.license-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

/* Zentrierte Listen */
.license-list--centered {
    display: inline-block;
    text-align: left;
}

.license-section--allowed .license-list li::before {
    background: var(--color-success);
}

.license-section--notice .license-list li::before {
    background: #c97a00;
}

.license-copyright {
    text-align: center;
    font-size: 0.7rem;
    font-style: italic;
    color: #888;
    margin-top: var(--spacing-md);
    margin-bottom: 0;
    opacity: 0.8;
}

.license-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.license-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
}

.license-btn--accept {
    background: linear-gradient(135deg, var(--color-success) 0%, #4a8a5f 100%);
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(90, 158, 111, 0.3);
}

.license-btn--accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 158, 111, 0.4);
}

/* Focus-Outline fuer alle Buttons - harmonisch zur Button-Farbe */
.license-btn--accept:focus,
.license-btn--accept:focus-visible {
    outline: 2px solid var(--color-success);
    outline-offset: 2px;
}

.license-btn--cancel:focus,
.license-btn--cancel:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Alle Buttons - Standard Focus Reset und Custom */
button:focus,
a:focus {
    outline: none;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.modal-btn--accept:focus-visible {
    outline-color: var(--color-success);
}

.license-btn--cancel {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid rgba(139, 115, 85, 0.3);
}

.license-btn--cancel:hover {
    background: rgba(139, 115, 85, 0.08);
    border-color: var(--color-primary);
}

/* Desktop: Etwas groesser */
@media (min-width: 600px) {
    .license-modal-content {
        max-width: 420px;
        padding: var(--spacing-xl);
    }

    .license-title {
        font-size: 1.5rem;
    }

    .license-subtitle {
        font-size: 0.9rem;
    }

    .license-label {
        font-size: 0.95rem;
    }

    .license-list li {
        font-size: 0.85rem;
        padding-left: 1.1rem;
        margin-bottom: 5px;
    }

    .license-list li::before {
        width: 5px;
        height: 5px;
    }

    .license-copyright {
        font-size: 0.8rem;
    }

    .license-actions {
        gap: var(--spacing-md);
    }

    .license-btn {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 0.95rem;
    }
}

/* Kleine Mobilgeraete */
@media (max-width: 400px) {
    .modal--license {
        padding: var(--spacing-sm);
    }

    .license-modal-content {
        padding: var(--spacing-md);
    }

    .license-title {
        font-size: 1.3rem;
    }

    .license-subtitle {
        font-size: 0.8rem;
    }

    .license-label {
        font-size: 0.85rem;
    }

    .license-list li {
        font-size: 0.75rem;
    }

    .license-btn {
        padding: var(--spacing-sm) var(--spacing-sm);
        font-size: 0.85rem;
    }
}

/* Danke-Modal (Celebration) */
.modal--celebration .modal-content {
    max-width: 420px;
    text-align: center;
    overflow: visible;
    position: relative;
}

.modal--celebration #thank-you-confetti {
    position: absolute;
    inset: -100px;
    width: calc(100% + 200px);
    height: calc(100% + 200px);
    pointer-events: none;
    z-index: 100;
}

.thank-you-body {
    padding: 40px 30px;
    position: relative;
    z-index: 1;
}

/* Desktop/Tablet: Etwas mehr Platz */
@media (min-width: 481px) {
    .modal--celebration .modal-content {
        max-width: 440px;
    }

    .thank-you-body {
        padding: 50px 40px;
    }

    .thank-you-title {
        font-size: 2rem;
    }

    .thank-you-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .modal--celebration .modal-btn--accept {
        padding: var(--spacing-md) var(--spacing-xl);
        font-size: 1rem;
    }
}

.thank-you-hearts {
    position: relative;
    height: 50px;
    margin-bottom: var(--spacing-md);
}

.floating-heart {
    position: absolute;
    font-size: 1.5rem;
    animation: floatHeart 3s ease-in-out infinite;
}

.floating-heart:nth-child(1) {
    left: 15%;
    animation-delay: 0s;
}

.floating-heart:nth-child(2) {
    left: 35%;
    animation-delay: 0.5s;
    font-size: 1.2rem;
}

.floating-heart:nth-child(3) {
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.2s;
    font-size: 2rem;
}

.floating-heart:nth-child(4) {
    right: 35%;
    animation-delay: 0.7s;
    font-size: 1.2rem;
}

.floating-heart:nth-child(5) {
    right: 15%;
    animation-delay: 0.3s;
}

@keyframes floatHeart {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-15px) scale(1.1);
        opacity: 1;
    }
}

.thank-you-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-sm) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.thank-you-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-dark);
    margin: 0 0 var(--spacing-md) 0;
}

.thank-you-signature {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-lg) 0;
}

.thank-you-signature strong {
    font-size: 1.2rem;
    font-style: normal;
}

.modal--celebration .modal-btn--accept {
    background: linear-gradient(135deg, #e25555 0%, #c44545 100%);
}

.modal--celebration .modal-btn--accept:hover {
    background: linear-gradient(135deg, #f06565 0%, #d45555 100%);
}

/* ============================================
   UTILITIES
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet und kleiner */
@media (max-width: 1024px) {
    .galerie-header {
        padding: 10px 0;
    }

    .header-content {
        padding: 0 16px;
    }

    .galerie-container {
        padding: 16px;
    }

    .header-name {
        font-size: 1.25rem;
    }
}

/* Mobil */
@media (max-width: 768px) {
    .galerie-header {
        padding: 12px 0;
    }

    .header-content {
        padding: 0 12px;
        gap: 8px;
    }

    .galerie-container {
        padding: 10px;
        padding-top: 0; /* Kein Abstand zum Header */
    }

    /* Navigation Button dezent ohne Rahmen auf Mobile */
    .header-menu {
        padding: 10px 12px;
        background: transparent;
        border: none;
    }

    .header-menu:hover {
        background: rgba(139, 115, 85, 0.1);
        border: none;
    }

    .header-menu svg {
        width: 22px;
        height: 22px;
    }

    /* Labels auf Mobile ausblenden */
    .header-btn-label {
        display: none;
    }

    /* Kein Tooltip auf Mobil */
    .music-tooltip {
        display: none;
    }

    .header-name {
        font-size: 1.2rem;
    }

    .header-title-link {
        padding: 2px 8px;
    }

    .header-subtitle {
        font-size: 0.55rem;
        letter-spacing: 0.08em;
    }

    /* Hero Banner - Tablet */
    .hero-banner {
        height: 260px;
    }

    .hero-unified {
        padding: 26px 40px;
    }

    .hero-quote-main {
        font-size: 2rem;
    }

    .hero-quote-sub {
        font-size: 0.75rem;
        letter-spacing: 0.3em;
    }

    .hero-divider {
        width: 60px;
        margin: 16px 0;
    }

    .hero-countdown-number {
        font-size: 1.6rem;
    }

    .hero-countdown-values {
        gap: 16px;
    }

    .hero-countdown-item {
        min-width: 46px;
    }

    .hero-countdown-since {
        font-size: 0.65rem;
    }

    /* Favoriten: kompakter, dezent ohne Rahmen auf Mobile */
    .favoriten-count {
        padding: 8px 10px;
        gap: 5px;
        background: transparent;
        border: none;
    }

    .favoriten-count:hover {
        background: rgba(212, 175, 55, 0.12);
        border: none;
    }

    .favoriten-count svg {
        width: 16px;
        height: 16px;
    }

    .favoriten-count #favoriten-anzahl {
        font-size: 0.8rem;
    }

    /* Placeholder anpassen */
    .favoriten-count[hidden] + .header-placeholder,
    .header-placeholder {
        width: 36px;
    }

    /* Sektion-Header umbrechen */
    /* Section-Header: Goldene Linie oben, KEIN Hintergrund (kommt von Section) */
    .section-header {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
        background: transparent;
        margin-left: -10px;
        margin-right: -10px;
        padding: var(--spacing-md) 10px;
        border-top: 2px solid var(--color-secondary);
        border-bottom: none;
        border-radius: 0;
        margin-bottom: 0;
        position: relative;
        z-index: 1;
    }

    .section-header-left {
        width: 100%;
        justify-content: space-between;
    }

    .section-header-right {
        width: 100%;
        margin-top: var(--spacing-xs);
    }

    .section-title {
        font-size: 1.1rem;
    }

    .section-count {
        background: var(--color-white);
        border: 1px solid rgba(139, 115, 85, 0.2);
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    /* Sektion-Buttons: ALLE gleiche Proportionen auf Mobile */
    .section-download,
    .view-toggle {
        height: 34px; /* Feste Hoehe auf Tablet */
        padding: 0 12px;
        font-size: 0.75rem;
        gap: 6px;
    }

    .section-download svg,
    .view-toggle svg {
        width: 14px;
        height: 14px;
    }

    /* Galerie-Grid kompakter */
    .galerie-grid {
        padding-top: 3px;
    }

    /* Alle Sektionen */
    .galerie-section {
        margin-bottom: var(--spacing-xl);
        position: relative;
    }

    /* Gradient auf der Section selbst - feste Pixel-Werte */
    .galerie-section::after {
        content: '';
        position: absolute;
        top: 0;
        left: -10px;
        right: -10px;
        height: 450px; /* Feste Hoehe - streckt sich nicht */
        background: linear-gradient(
            to bottom,
            var(--color-accent) 0px,
            var(--color-accent) 120px,      /* Feste Farbe fuer Header-Bereich */
            rgba(245, 230, 211, 0.7) 200px,
            rgba(245, 230, 211, 0.3) 320px,
            rgba(255, 255, 255, 0) 450px
        );
        pointer-events: none;
        z-index: 0;
    }

    /* Section-Inhalt ueber dem Gradient */
    .galerie-section .section-header,
    .galerie-section .galerie-grid {
        position: relative;
        z-index: 1;
    }

    /* Favoriten: kein margin-top da ganz oben */
    .galerie-section--favoriten {
        margin-top: 0;
    }

    /* Alle anderen Sektionen: etwas Abstand nach oben */
    .galerie-section--alle,
    .galerie-section--beliebt,
    .galerie-section--fotobox,
    .galerie-section--excluded {
        margin-top: var(--spacing-lg);
    }

    /* Favoriten-Count im Header */
    .favoriten-count {
        font-size: 0.75rem;
        padding: 6px 8px;
    }

    /* ==========================================
       DETAILANSICHT MOBILE - Kompaktere Overlays
       ========================================== */

    /* Favorit-Stern: kleiner und enger an der Ecke */
    .galerie-favorit {
        top: 4px;
        right: 4px;
        width: 28px;
        height: 28px;
    }

    .galerie-favorit svg {
        width: 14px;
        height: 14px;
    }

    /* Views-Badge: dezenter und mehr in die Ecke */
    .galerie-views {
        bottom: 3px;
        left: 3px;
        padding: 2px 5px;
        font-size: 0.6rem;
        gap: 2px;
    }

    .galerie-views svg {
        width: 10px;
        height: 10px;
    }

    /* Zoom-Icon und Text kompakter */
    .galerie-zoom {
        gap: 4px;
    }

    .galerie-zoom svg {
        width: 24px;
        height: 24px;
    }

    .galerie-zoom-text {
        font-size: 0.7rem;
    }

    /* ==========================================
       HOCHKANT-BILDER: Text ausblenden auf Mobile
       Bei schmalen Portrait-Bildern passt der Text nicht
       ========================================== */
    .galerie-item[data-orientation="portrait"] .galerie-zoom-text {
        display: none;
    }

    /* Lupe bei Hochkant-Bildern etwas groesser damit es nicht leer wirkt */
    .galerie-item[data-orientation="portrait"] .galerie-zoom svg {
        width: 28px;
        height: 28px;
    }
}

/* Kleine Mobil-Geraete */
@media (max-width: 480px) {
    .login-card {
        padding: var(--spacing-2xl) var(--spacing-lg);
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        z-index: 100; /* Immer ueber dem Bild */
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .lightbox-prev {
        left: 6px;
    }

    .lightbox-next {
        right: 6px;
    }

    /* Header etwas hoeher als vorher auf kleinen Geraeten */
    .galerie-header {
        padding: 10px 0;
    }

    .header-content {
        padding: 0 10px;
        gap: 6px;
    }

    .galerie-container {
        padding: 8px;
        padding-top: 0; /* Kein Abstand zum Header */
    }

    .header-name {
        font-size: 1.1rem;
    }

    .header-title-link {
        padding: 2px 6px;
    }

    .header-subtitle {
        font-size: 0.5rem;
        letter-spacing: 0.06em;
    }

    /* Hero Banner - Mobile */
    .hero-banner {
        height: 240px;
    }

    .hero-banner-content {
        padding: 16px;
    }

    .hero-unified {
        padding: 20px 28px;
        border-radius: 18px;
    }

    .hero-quote-main {
        font-size: 1.6rem;
    }

    .hero-quote-sub {
        font-size: 0.65rem;
        letter-spacing: 0.25em;
    }

    .hero-divider {
        width: 50px;
        margin: 14px 0;
    }

    .hero-divider::after {
        width: 5px;
        height: 5px;
    }

    .hero-countdown-number {
        font-size: 1.4rem;
    }

    .hero-countdown-unit {
        font-size: 0.55rem;
    }

    .hero-countdown-values {
        gap: 14px;
    }

    .hero-countdown-item {
        min-width: 38px;
    }

    .hero-countdown-sep {
        width: 2px;
        height: 2px;
        margin-bottom: 8px;
    }

    .hero-countdown-since {
        font-size: 0.6rem;
        margin-top: 10px;
    }

    .header-menu {
        padding: 8px 10px;
        background: transparent;
        border: none;
    }

    .header-menu svg {
        width: 20px;
        height: 20px;
    }

    /* Celebration-Loader auf kleinen Geraeten */
    .celebration-loader {
        bottom: calc(50% - 100px);
    }

    .celebration-loader .loader-rings {
        width: 80px;
        height: 80px;
    }

    .celebration-loader .loader-ring--outer {
        width: 80px;
        height: 80px;
    }

    .celebration-loader .loader-ring--inner {
        width: 56px;
        height: 56px;
    }

    .celebration-loader .loader-heart svg {
        width: 26px;
        height: 26px;
    }

    .celebration-loader-text {
        font-size: 0.875rem;
    }

    .favoriten-count {
        padding: 6px 8px;
        gap: 4px;
        background: transparent;
        border: none;
    }

    .favoriten-count #favoriten-anzahl {
        font-size: 0.75rem;
    }

    .favoriten-count svg {
        width: 14px;
        height: 14px;
    }

    .favoriten-count[hidden] + .header-placeholder,
    .header-placeholder {
        width: 32px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .section-title svg {
        width: 20px;
        height: 20px;
    }

    /* Kompaktere Buttons auf kleinen Geraeten */
    .section-download,
    .view-toggle {
        height: 32px; /* Feste Hoehe auf kleinen Mobil-Geraeten */
        padding: 0 10px;
        font-size: 0.7rem;
        gap: 5px;
    }

    .section-download svg,
    .view-toggle svg {
        width: 13px;
        height: 13px;
    }

    /* Gradient auf kleinen Geraeten etwas kleiner */
    .galerie-section::after {
        height: 380px;
        background: linear-gradient(
            to bottom,
            var(--color-accent) 0px,
            var(--color-accent) 100px,      /* Feste Farbe fuer Header-Bereich */
            rgba(245, 230, 211, 0.7) 160px,
            rgba(245, 230, 211, 0.3) 260px,
            rgba(255, 255, 255, 0) 380px
        );
    }

    /* ==========================================
       DETAILANSICHT KLEINE VIEWPORTS
       Views und Favorit ausblenden - nur Lupe
       ========================================== */

    /* Views komplett ausblenden - zu klein fuer Hochkant-Bilder */
    .galerie-views {
        display: none !important;
    }

    /* Favorit-Stern noch kleiner und dezenter */
    .galerie-favorit {
        top: 3px;
        right: 3px;
        width: 24px;
        height: 24px;
        background: rgba(0, 0, 0, 0.4);
    }

    .galerie-favorit svg {
        width: 12px;
        height: 12px;
    }

    /* Zoom-Element noch kompakter */
    .galerie-zoom svg {
        width: 20px;
        height: 20px;
    }

    .galerie-zoom-text {
        font-size: 0.65rem;
    }
}

/* ============================================
   EASTER EGG CARD & MODAL
   ============================================ */

/* Easter Egg Card im Grid */
.easter-egg-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-light) 100%);
}

.easter-egg-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Verschwommenes Hintergrundbild mit sanfter Animation */
.easter-egg-bg {
    position: absolute;
    inset: -5px;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    object-fit: cover;
    filter: blur(10px) brightness(0.7) saturate(1.1);
    transform: scale(1.05);
    animation: easterBgMove 12s ease-in-out infinite;
    /* Smooth transition fuer Hover */
    transition: filter 0.5s ease, transform 0.5s ease;
}

@keyframes easterBgMove {
    0%, 100% {
        transform: scale(1.05) translate(0, 0);
    }
    50% {
        transform: scale(1.1) translate(3px, -3px);
    }
}

.easter-egg-card:hover .easter-egg-bg {
    filter: blur(6px) brightness(0.6) saturate(1.2);
    transform: scale(1.12);
    animation-play-state: paused;
}

/* Ueberraschungs-Overlay (Fragezeichen statt Herz) */
.easter-egg-heart {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-white);
}

.easter-egg-heart-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

.easter-egg-card:hover .easter-egg-heart-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

.easter-egg-heart-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-secondary);
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.5));
    animation: easterSparkle 3s ease-in-out infinite;
}

@keyframes easterSparkle {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.5));
    }
    50% {
        opacity: 0.8;
        filter: drop-shadow(0 2px 15px rgba(212, 175, 55, 0.8));
    }
}

.easter-egg-hint {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.easter-egg-card:hover .easter-egg-hint {
    opacity: 0.9;
    transform: translateY(0);
}

/* Dezenter goldener Rand */
.easter-egg-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 2px;
    background: linear-gradient(135deg, var(--color-secondary), rgba(212, 175, 55, 0.5), var(--color-secondary));
    background-size: 200% 200%;
    animation: borderGlow 4s ease infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
}

/* Kein zusaetzlicher aeusserer Glow */
.easter-egg-card::after {
    display: none;
}

@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ==========================================
   EASTER EGG - KOMPAKT-ANSICHT
   Kleinere Darstellung wenn view-compact aktiv
   ========================================== */

.view-compact .easter-egg-card .easter-egg-hint {
    /* Text komplett ausblenden im Kompakt-Modus */
    display: none !important;
}

.view-compact .easter-egg-card .easter-egg-heart-icon {
    /* Icon-Container deutlich kleiner */
    width: 32px;
    height: 32px;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
}

.view-compact .easter-egg-card .easter-egg-heart-icon svg {
    /* SVG-Icon kleiner */
    width: 16px;
    height: 16px;
}

.view-compact .easter-egg-card::before {
    /* Goldener Rand duenner */
    padding: 1px;
}

.view-compact .easter-egg-card .easter-egg-bg {
    /* Weniger Blur fuer kleinere Darstellung */
    filter: blur(6px) brightness(0.7) saturate(1.1);
}

/* Mobile Kompakt-Ansicht: noch kleiner */
@media (max-width: 768px) {
    .view-compact .easter-egg-card .easter-egg-heart-icon {
        width: 26px;
        height: 26px;
        box-shadow: 0 0 6px rgba(212, 175, 55, 0.2);
    }

    .view-compact .easter-egg-card .easter-egg-heart-icon svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .view-compact .easter-egg-card .easter-egg-heart-icon {
        width: 22px;
        height: 22px;
        box-shadow: 0 0 4px rgba(212, 175, 55, 0.2);
    }

    .view-compact .easter-egg-card .easter-egg-heart-icon svg {
        width: 12px;
        height: 12px;
    }

    .view-compact .easter-egg-card .easter-egg-bg {
        /* Noch weniger Blur auf kleinen Geraeten */
        filter: blur(4px) brightness(0.75) saturate(1.1);
    }
}

/* Easter Egg Modal */
.modal--easter-egg .modal-content {
    max-width: 460px;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-accent) 100%);
    overflow: visible;
    border: 2px solid var(--color-secondary);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(212, 175, 55, 0.3),
        0 0 60px rgba(212, 175, 55, 0.15);
}

.modal--easter-egg #easter-egg-confetti {
    position: absolute;
    inset: -100px;
    width: calc(100% + 200px);
    height: calc(100% + 200px);
    pointer-events: none;
    z-index: 100;
}

.easter-egg-body {
    padding: var(--spacing-3xl) var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

.easter-egg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin-bottom: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
    border-radius: 50%;
    color: var(--color-secondary);
    animation: easterIconFloat 3s ease-in-out infinite;
    box-shadow:
        0 10px 40px rgba(212, 175, 55, 0.3),
        inset 0 0 20px rgba(212, 175, 55, 0.1);
}

.easter-egg-icon svg {
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.5));
}

@keyframes easterIconFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

.easter-egg-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    margin: 0 0 var(--spacing-lg) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.easter-egg-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-dark);
    margin: 0 0 var(--spacing-xl) 0;
}

.easter-egg-signature {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-2xl) 0;
}

.easter-egg-signature strong {
    font-size: 1.4rem;
    font-style: normal;
    display: block;
    margin-top: 4px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.easter-egg-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #b8972e 100%);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.easter-egg-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

.easter-egg-btn svg {
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.2);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.2);
    }
    70% {
        transform: scale(1);
    }
}

/* Sekundaerer Button fuer Easter Egg */
.easter-egg-btn-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-xl);
    font-size: 0.9rem;
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary-light);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
    margin-top: var(--spacing-sm);
}

.easter-egg-btn-close:hover {
    background: rgba(139, 115, 85, 0.08);
    border-color: var(--color-primary);
}

/* ============================================
   FLITTERWOCHEN VORSCHAU IM EASTER EGG
   ============================================ */

.flitterwochen-preview {
    margin: var(--spacing-lg) 0;
}

.flitterwochen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.flitterwochen-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition-normal);
}

.flitterwochen-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.flitterwochen-thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.flitterwochen-thumb:hover img {
    transform: scale(1.05);
}

.flitterwochen-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flitterwochen-thumb:hover::after {
    opacity: 1;
}

.flitterwochen-hint {
    font-size: 0.7rem;
    color: var(--color-primary-light);
    text-align: center;
    margin: 0;
    opacity: 0.7;
}

/* ============================================
   FLITTERWOCHEN LIGHTBOX (Overlay)
   ============================================ */

.flitterwochen-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10001; /* Ueber dem Easter Egg Modal */
    display: flex;
    align-items: center;
    justify-content: center;
}

.flitterwochen-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.flitterwochen-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flitterwochen-lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.flitterwochen-lightbox-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition-normal);
}

.flitterwochen-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.flitterwochen-lightbox-prev,
.flitterwochen-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition-normal);
}

.flitterwochen-lightbox-prev {
    left: var(--spacing-lg);
}

.flitterwochen-lightbox-next {
    right: var(--spacing-lg);
}

.flitterwochen-lightbox-prev:hover,
.flitterwochen-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.flitterwochen-lightbox-counter {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-full);
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   SLIDESHOW / DIASHOW
   ============================================ */

/* Diashow Button Farbe */
.section-download--slideshow {
    border-color: #e25555;
    color: #e25555;
}

.section-download--slideshow:hover {
    background: #e25555;
    color: var(--color-white);
}

/* Diashow Modal */
.slideshow-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.slideshow-modal[hidden] {
    display: none;
}

.slideshow-backdrop {
    position: absolute;
    inset: 0;
    background: #000;
}

/* Preloader-Overlay */
.slideshow-preloader {
    position: absolute;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.slideshow-preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.slideshow-preloader-content {
    text-align: center;
    color: var(--color-white);
}

.slideshow-preloader-heart {
    margin-bottom: 20px;
    color: var(--color-gold);
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

.slideshow-preloader-heart svg {
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
}

@keyframes preloaderPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.slideshow-preloader-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.slideshow-preloader-progress {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 0 auto 12px;
    overflow: hidden;
}

.slideshow-preloader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-gold), #f0d78c);
    border-radius: 3px;
    transition: width 0.15s ease-out;
}

.slideshow-preloader-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Bilder-Container */
.slideshow-images {
    position: absolute;
    inset: 0;
}

.slideshow-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

/* Geblurter Hintergrund - Thumbnail fuer Performance, stark vergroessert und geblurt */
.slideshow-slide::before {
    content: '';
    position: absolute;
    inset: -50px;
    background-image: var(--slide-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(40px) brightness(0.35) saturate(1.3);
    transform: scale(1.3);
    z-index: 0;
    /* Sanfter Uebergang beim Hintergrund-Wechsel */
    transition: background-image 0.3s ease-out;
}

/* Das eigentliche Bild - nie zuschneiden! */
.slideshow-slide-img {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.slideshow-slide--current {
    opacity: 1;
    z-index: 1;
}

.slideshow-slide--next {
    opacity: 0;
    z-index: 0;
}

/* Ken-Burns Effekte - ALTERNIEREND: Zoom-In und Zoom-Out wechseln sich ab
   So gibt es beim Uebergang keinen Sprung, weil das naechste Bild
   immer mit dem entgegengesetzten Zoom startet */

/* UNGERADE Effekte: Zoom OUT (starten gross, enden klein) */
.slideshow-slide.ken-burns-1 .slideshow-slide-img {
    animation: kenBurnsOut1 5s ease-in-out forwards;
}

.slideshow-slide.ken-burns-3 .slideshow-slide-img {
    animation: kenBurnsOut2 5s ease-in-out forwards;
}

/* GERADE Effekte: Zoom IN (starten klein, enden gross) */
.slideshow-slide.ken-burns-2 .slideshow-slide-img {
    animation: kenBurnsIn1 5s ease-in-out forwards;
}

.slideshow-slide.ken-burns-4 .slideshow-slide-img {
    animation: kenBurnsIn2 5s ease-in-out forwards;
}

/* Zoom OUT Variante 1: Von gross nach klein, leichter Drift nach rechts */
@keyframes kenBurnsOut1 {
    0% {
        transform: scale(1.08) translate(-0.5%, 0);
    }
    100% {
        transform: scale(1) translate(0.3%, 0);
    }
}

/* Zoom OUT Variante 2: Von gross nach klein, leichter Drift nach unten */
@keyframes kenBurnsOut2 {
    0% {
        transform: scale(1.07) translate(0, -0.4%);
    }
    100% {
        transform: scale(1) translate(0, 0.2%);
    }
}

/* Zoom IN Variante 1: Von klein nach gross, leichter Drift nach links */
@keyframes kenBurnsIn1 {
    0% {
        transform: scale(1) translate(0.3%, 0);
    }
    100% {
        transform: scale(1.08) translate(-0.5%, 0);
    }
}

/* Zoom IN Variante 2: Von klein nach gross, leichter Drift nach oben */
@keyframes kenBurnsIn2 {
    0% {
        transform: scale(1) translate(0, 0.2%);
    }
    100% {
        transform: scale(1.07) translate(0, -0.4%);
    }
}

/* Dezente Herzchen-Animation */
.slideshow-hearts {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.slideshow-heart {
    position: absolute;
    width: 28px;
    height: 28px;
    opacity: 0;
    animation: floatHeart 8s ease-out forwards;
}

.slideshow-heart svg {
    width: 100%;
    height: 100%;
    fill: white;
    animation: pulseHeart 3s ease-in-out infinite;
}

@keyframes floatHeart {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.8);
    }
    10% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) scale(1);
    }
}

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

/* Info-Bereich unten */
.slideshow-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.slideshow-counter {
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 500;
}

.slideshow-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

/* Steuerelemente */
.slideshow-control {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.slideshow-control:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Pfeile entfernt - automatische Diashow braucht keine manuelle Navigation */

.slideshow-pause {
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
}

.slideshow-pause:hover {
    transform: translateX(-50%) scale(1.1);
}

/* Play/Pause Icon Wechsel */
.slideshow-pause .slideshow-icon-play {
    display: none;
}

.slideshow-pause.paused .slideshow-icon-pause {
    display: none;
}

.slideshow-pause.paused .slideshow-icon-play {
    display: block;
}

.slideshow-close {
    top: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
}

/* Musik-Toggle in Slideshow */
.slideshow-music {
    top: 24px;
    left: 24px;
    width: 50px;
    height: 50px;
}

.slideshow-music .slideshow-music-icon--off {
    display: none;
}

.slideshow-music.music-off .slideshow-music-icon--on {
    display: none;
}

.slideshow-music.music-off .slideshow-music-icon--off {
    display: block;
    opacity: 0.5;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .slideshow-pause {
        width: 44px;
        height: 44px;
        bottom: 70px;
    }

    .slideshow-close {
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    .slideshow-close svg {
        width: 22px;
        height: 22px;
    }

    .slideshow-music {
        top: 16px;
        left: 16px;
        width: 44px;
        height: 44px;
    }

    .slideshow-music svg {
        width: 18px;
        height: 18px;
    }

    .slideshow-info {
        bottom: 16px;
    }

    .slideshow-counter {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .slideshow-title {
        font-size: 0.85rem;
    }

    .slideshow-heart {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .slideshow-pause {
        width: 40px;
        height: 40px;
        bottom: 65px;
    }

    .slideshow-music,
    .slideshow-close {
        width: 40px;
        height: 40px;
    }

    .slideshow-music {
        left: 8px;
        top: 12px;
    }

    .slideshow-close {
        right: 8px;
        top: 12px;
    }
}

/* Mobile Anpassungen fuer Flitterwochen */
@media (max-width: 480px) {
    .flitterwochen-grid {
        gap: var(--spacing-xs);
    }

    .flitterwochen-lightbox-prev,
    .flitterwochen-lightbox-next {
        width: 40px;
        height: 40px;
    }

    .flitterwochen-lightbox-prev {
        left: var(--spacing-sm);
    }

    .flitterwochen-lightbox-next {
        right: var(--spacing-sm);
    }

    .flitterwochen-lightbox-close {
        top: var(--spacing-md);
        right: var(--spacing-md);
        width: 40px;
        height: 40px;
    }
}

/* Mobile Anpassungen fuer Easter Egg */
@media (max-width: 480px) {
    .easter-egg-heart-icon {
        width: 50px;
        height: 50px;
    }

    .easter-egg-heart-icon svg {
        width: 28px;
        height: 28px;
    }

    .easter-egg-body {
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    .easter-egg-icon {
        width: 80px;
        height: 80px;
        margin-bottom: var(--spacing-lg);
    }

    .easter-egg-icon svg {
        width: 48px;
        height: 48px;
    }

    .easter-egg-title {
        font-size: 1.6rem;
    }

    .easter-egg-text {
        font-size: 0.95rem;
    }

    .easter-egg-signature {
        font-size: 1rem;
        margin-bottom: var(--spacing-xl);
    }

    .easter-egg-signature strong {
        font-size: 1.2rem;
    }

    .easter-egg-btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.9rem;
    }
}

/* ============================================
   LOVE EXPLOSION - Easter Egg
   Konfetti bei Hover über "Eva & Thomas"
   ============================================ */

/* Pulsierender Name während der Animation */
.header-name.love-pulse {
    animation: lovePulse 0.4s ease-in-out 5;
    color: var(--color-secondary) !important;
    text-shadow:
        0 0 10px rgba(212, 175, 55, 0.6),
        0 0 20px rgba(212, 175, 55, 0.4),
        0 0 40px rgba(212, 175, 55, 0.3),
        0 0 60px rgba(212, 175, 55, 0.2);
}

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

/* Hover-Hinweis (subtil) - nur Desktop */
@media (min-width: 1024px) {
    .header-title-link:hover .header-name {
        transition: color 0.3s ease, text-shadow 0.3s ease;
    }
}
