/* css/style.css - Event Fotobox Styling - UPDATED */

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e20074;
    --primary-dark: #b30059;
    --secondary-color: #666666;
    --background: #f5f5f5;
    --card-bg: #ffffff;
    --success-color: #4caf50;
    --error-color: #f44336;
    --text-primary: #333333;
    --text-white: #ffffff;
    --text-secondary: #666666;
    --border-color: #dddddd;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Loading Screen ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== Screen Management ===== */
.screen {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.3s ease;
}

.screen.active {
    display: block;
}

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

/* ===== Container ===== */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== Logo Area ===== */
.logo-area {
    text-align: center;
    padding: 40px 20px;
    animation: slideDown 0.5s ease;
}

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

.camera-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: pulse 2s ease infinite;
}

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

.logo-area h1 {
    flex: 1;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 10px;
    letter-spacing: 3.5px;
    text-shadow: 0 0 10px #fff,
                 0 0 20px #fff,
                 0 0 30px #4dabf7,
                 0 0 40px #4dabf7;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: default;
}

.logo-area .subtitle {
    color: #fff;
    font-size: 16px;
}

/* ===== NEW: Improved Top Bar for Main Screen ===== */
.top-bar-main {
    background: rgba(255, 255, 255, 0.6); /* Weißer Hintergrund mit 10% Deckkraft */
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    min-height: 56px;    /* oder feste Höhe, z.B. height: 56px; */
}

.camera-icon-small {
    font-size: 40px;
    line-height: 1;
    transition: all 0.3s ease;
    cursor: default;
}

.camera-icon-small:hover {
    transform: scale(1.15);
    filter: brightness(1.3);
}


.app-title {
    flex: 1 1 auto;      /* nimmt maximal möglichen Platz zwischen den Icons ein */
    text-align: center;
    font-weight: 1230;
    color: #fff;
    margin: 0;           /* keine zusätzliche Margin, um maximal viel Platz zu nutzen */
    letter-spacing: 4px;
    text-shadow: 0 0 10px #fff,
                 0 0 20px #fff,
                 0 0 30px #4dabf7,
                 0 0 40px #4dabf7;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: default;
    height: 100%;        /* volle Höhe der parent row */
    display: flex;       /* damit das <h1> vertikal mittig ist */
    align-items: center;
    justify-content: center;
}

.app-title:hover {
    transform: scale(1.2) translateY(-5px);
}


.menu-icon {
    font-size: 40px;
    color: rgba(255, 255, 255);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-icon:hover {
    transform: scale(1.2) translateY(-5px);
}

.event-info-row {
    padding: 12px 16px 16px;
    background: rgba(255, 255, 255, 0.1); /* Weißer Hintergrund mit 10% Deckkraft */
}

.event-details {
    text-align: center;
}

.event-name {
    font-size: 18px;
    font-weight: 600;
    color: gba(255, 255, 255);
    margin-bottom: 4px;
}

.event-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ===== Forms ===== */
.form-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.form-card h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ===== NEW: My Data Screen Styles ===== */
.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.data-row:last-child {
    border-bottom: none;
}

.data-row label {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.data-row span {
    color: var(--text-secondary);
    text-align: right;
    max-width: 60%;
    word-wrap: break-word;
}

.user-code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: var(--background);
    padding: 4px 8px;
    border-radius: 4px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    min-height: 48px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-secondary:hover {
    background: #555555;
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

.icon-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    color: var(--text-primary);
}

/* ===== Top Bar (for other screens) ===== */
.top-bar {
    background: var(--card-bg);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.event-info {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 16px;
}

.top-bar h2 {
    font-size: 18px;
    flex: 1;
    text-align: center;
}

/* ===== Event Header ===== */
.event-header {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

.event-header h2 {
    color: #fff;
    margin-bottom: 10px;
}

.event-header p {
    color: #fff;
}

/* ===== Upload Area ===== */
.upload-area {
    background: rgba(255, 255, 255, 0.1); /* Weißer Hintergrund mit 10% Deckkraft */
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    margin-top: 20px;
}

.upload-area h2 {
    text-align: center;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    margin: 1px 1px 24px 1px; /* oben 0, rechts 1px, unten 24px, links 1px */
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: default;
}

.upload-area h2:hover {
    transform: scale(1.2) translateY(-5px);
}



.upload-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.3);
    min-height: 100px;
}

.upload-btn:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.upload-btn .icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.upload-btn .text {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.camera-btn {
    animation: pulseButton 2s ease infinite;
}

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

/* ===== Upload Progress ===== */
.upload-progress {
    margin-top: 20px;
}

.upload-progress.hidden {
    display: none;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
    animation: progressPulse 1s ease infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

#progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== Photos Grid ===== */
.recent-photos {
    margin-top: 10px;
}

.recent-photos h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    animation: photoFadeIn 0.4s ease;
}

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

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-item .delete-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(244, 67, 54, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .delete-icon {
    opacity: 1;
}

.no-photos {
    text-align: center;
    color: #fff;
    padding: 40px 20px;
    grid-column: 1 / -1;
}

.photos-grid .loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

/* ===== Modals ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
}

.modal-body {
    padding: 20px;
}

.modal-body h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.event-description {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.event-admin {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ===== NEW: QR Code Display ===== */
.qr-code-container {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.qr-code-container h4 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.qr-code-image {
    max-width: 250px;
    width: 100%;
    height: auto;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    background: white;
    margin-bottom: 12px;
}

.qr-code-hint {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

.qr-code-container.hidden {
    display: none;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-footer .btn {
    flex: 1;
    min-width: auto;
}

/* ===== Menu Modal ===== */
.menu-modal {
    max-width: 350px;
}

.menu-items {
    padding: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border-radius: 8px;
    font-size: 16px;
    transition: background 0.2s ease;
}

.menu-item:hover {
    background: var(--background);
}

.menu-item .icon {
    font-size: 24px;
}

/* ===== Photo Modal ===== */
.photo-modal {
    max-width: 95%;
    max-height: 95vh;
}

.photo-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    z-index: 10;
}

.photo-container {
    padding: 20px;
    text-align: center;
}

.photo-container img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
}

.photo-actions {
    padding: 20px;
    display: flex;
    gap: 12px;
}

.photo-actions .btn {
    flex: 1;
}

/* ===== Confirm Modal ===== */
.confirm-modal {
    max-width: 400px;
}

/* ===== Messages ===== */
.error-message {
    background: #ffebee;
    color: var(--error-color);
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
    border-left: 4px solid var(--error-color);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-message.hidden {
    display: none;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success-color);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    animation: toastSlideUp 0.3s ease;
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.toast.hidden {
    display: none;
}

.toast-icon {
    font-size: 24px;
    font-weight: bold;
}

/* ===== Responsive Design ===== */
@media (min-width: 640px) {
    .upload-buttons {
        grid-template-columns: 1fr 1fr;
    }

    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 320px) {
    .container {
        padding: 12px;
    }

    .form-card {
        padding: 20px;
    }

    .upload-area {
        padding: 20px;
    }
    
    .photo-area {
    padding: 20px;
    }

    .app-title {
        font-size: 20px;
    }
}
/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-secondary);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
}

/* Info Text */
.info-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 12px;
    background: var(--background);
    border-radius: 8px;
}

/* Help Text */
.help-text {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Info Box */
.info-box {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(226, 0, 116, 0.05), rgba(226, 0, 116, 0.1));
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

.info-box h4 {
    margin: 0 0 12px 0;
    color: var(--primary-color);
    font-size: 16px;
}

.info-box p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--text-primary);
}

.info-box ol {
    margin: 0;
    padding-left: 20px;
}

.info-box ol li {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-primary);
}

/* User Code Input */
#usercode-input {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== Slideshow Link Styles ===== */
.slideshow-link-container {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.slideshow-link-container h4 {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 16px;
}

.slideshow-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.btn-slideshow {
    display: inline-block;
    background: linear-gradient(135deg, #e20074, #c50060);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(226, 0, 116, 0.3);
}

.btn-slideshow:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 0, 116, 0.4);
}

.btn-slideshow::before {
    content: '▶';
    margin-right: 8px;
}

        /* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top right, #667eea, #5fad61, #6e8cb5, #f5576c, #4facfe, #00f2fe);
    background-size: 500% 500%;
    animation: gradientShift 26s ease-in-out infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0%   { background-position: 0% 43%; }
    12%  { background-position: 32% 100%; }
    23%  { background-position: 74% 66%; }
    34%  { background-position: 90% 28%; }
    46%  { background-position: 83% 0%; }
    58%  { background-position: 25% 32%; }
    69%  { background-position: 60% 80%; }
    80%  { background-position: 100% 50%; }
    100% { background-position: 0% 43%; }
}



.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0;
    animation-fill-mode: both;
    object-fit: contain;
}

.shape:nth-child(1) {
    width: 35px;
    height: 35px;
    left: 8%;
    animation: float1 48s infinite linear;
    animation-delay: 6s;
}

.shape:nth-child(2) {
    width: 45px;
    height: 45px;
    left: 25%;
    animation: float2 38s infinite linear;
    animation-delay: 24s;
}

.shape:nth-child(3) {
    width: 30px;
    height: 30px;
    left: 75%;
    animation: float3 50s infinite linear;
    animation-delay: 160s;
}

.shape:nth-child(4) {
    width: 40px;
    height: 40px;
    left: 80%;
    animation: float4 60s infinite linear;
    animation-delay: 16s;
}

.shape:nth-child(5) {
    width: 38px;
    height: 38px;
    left: 90%;
    animation: float5 35s infinite linear;
    animation-delay: 36s;
}

.shape:nth-child(6) {
    width: 42px;
    height: 42px;
    left: 15%;
    animation: float6 48s infinite linear;
    animation-delay: 32s;
}

@keyframes float1 {
    0% {
        transform: translate(0, 100vh) scale(0.95) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    20% {
        transform: translate(25px, 75vh) scale(1.02) rotate(-15deg);
        opacity: 0.25;
    }
    40% {
        transform: translate(-15px, 50vh) scale(0.98) rotate(8deg);
        opacity: 0.1;
    }
    60% {
        transform: translate(35px, 25vh) scale(1.05) rotate(-22deg);
        opacity: 0.15;
    }
    80% {
        transform: translate(-10px, 5vh) scale(0.97) rotate(12deg);
        opacity: 0.15;
    }
    100% {
        transform: translate(20px, -120px) scale(1) rotate(-5deg);
        opacity: 0;
    }
}

@keyframes float2 {
    0% {
        transform: translate(0, 100vh) scale(1) rotate(0deg);
        opacity: 0;
    }
    12% {
        opacity: 0.2;
    }
    25% {
        transform: translate(-30px, 70vh) scale(0.96) rotate(18deg);
        opacity: 0.3;
    }
    45% {
        transform: translate(20px, 45vh) scale(1.03) rotate(-12deg);
        opacity: 0.35;
    }
    65% {
        transform: translate(-25px, 20vh) scale(0.99) rotate(25deg);
        opacity: 0.28;
    }
    85% {
        transform: translate(15px, -5vh) scale(1.01) rotate(-8deg);
        opacity: 0.12;
    }
    100% {
        transform: translate(-20px, -100px) scale(0.98) rotate(15deg);
        opacity: 0;
    }
}

@keyframes float3 {
    0% {
        transform: translate(0, 100vh) scale(1.02) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.18;
    }
    30% {
        transform: translate(40px, 65vh) scale(0.97) rotate(-20deg);
        opacity: 0.28;
    }
    50% {
        transform: translate(-35px, 40vh) scale(1.04) rotate(15deg);
        opacity: 0.32;
    }
    70% {
        transform: translate(30px, 15vh) scale(0.96) rotate(-18deg);
        opacity: 0.22;
    }
    88% {
        transform: translate(-15px, -10vh) scale(1.01) rotate(10deg);
        opacity: 0;
    }
    100% {
        transform: translate(25px, -110px) scale(0.99) rotate(-7deg);
        opacity: 0;
    }
}

@keyframes float4 {
    0% {
        transform: translate(0, 100vh) scale(0.98) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.22;
    }
    28% {
        transform: translate(-20px, 68vh) scale(1.03) rotate(12deg);
        opacity: 0.015;
    }
    48% {
        transform: translate(35px, 42vh) scale(0.96) rotate(-16deg);
        opacity: 0.0;
    }
    68% {
        transform: translate(-28px, 18vh) scale(1.02) rotate(20deg);
        opacity: 0.1;
    }
    85% {
        transform: translate(18px, -8vh) scale(0.98) rotate(-14deg);
        opacity: 0.15;
    }
    100% {
        transform: translate(-30px, -105px) scale(1) rotate(8deg);
        opacity: 0;
    }
}

@keyframes float5 {
    0% {
        transform: translate(0, 100vh) scale(1.01) rotate(0deg);
        opacity: 0;
    }
    12% {
        opacity: 0.2;
    }
    26% {
        transform: translate(28px, 72vh) scale(0.95) rotate(-25deg);
        opacity: 0.3;
    }
    46% {
        transform: translate(-32px, 48vh) scale(1.05) rotate(10deg);
        opacity: 0.33;
    }
    66% {
        transform: translate(22px, 22vh) scale(0.97) rotate(-15deg);
        opacity: 0.24;
    }
    82% {
        transform: translate(-18px, -2vh) scale(1.02) rotate(18deg);
        opacity: 0.14;
    }
    100% {
        transform: translate(25px, -115px) scale(0.99) rotate(-10deg);
        opacity: 0;
    }
}

@keyframes float6 {
    0% {
        transform: translate(0, 100vh) scale(0.99) rotate(0deg);
        opacity: 0;
    }
    14% {
        opacity: 0.16;
    }
    32% {
        transform: translate(-38px, 63vh) scale(1.04) rotate(22deg);
        opacity: 0.27;
    }
    52% {
        transform: translate(32px, 38vh) scale(0.96) rotate(-18deg);
        opacity: 0.18;
    }
    72% {
        transform: translate(-26px, 14vh) scale(1.02) rotate(14deg);
        opacity: 0.23;
    }
    87% {
        transform: translate(20px, -12vh) scale(0.98) rotate(-20deg);
        opacity: 0.11;
    }
    100% {
        transform: translate(-22px, -108px) scale(1.01) rotate(6deg);
        opacity: 0;
    }
}
/* ===== Photo Area ===== */
.photo-area {
    background: rgba(255, 255, 255, 0.1); /* Weißer Hintergrund mit 10% Deckkraft */
    padding: 30px;
    padding-top: 30.05px; /* 0.05px extra verhindert Collapse */
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    margin-top: 20px;
}

.photo-area h2 {
    text-align: center;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    padding: 0 1px 24px 1px;
    margin: 0;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: default;
}

.photo-area .recent-photos h2 {
    margin: 0 1px 24px 1px !important;
}

.photo-area h2:hover {
    transform: scale(1.2) translateY(-5px);
}

#back-to-event-code {
    margin-top: 8px; /* z.B. 8px Abstand nach oben */
}
#back-to-event {
    margin-top: 8px; /* z.B. 8px Abstand nach oben */
}