/* ================================
   CINEMATIC AI - VISIONARY DESIGN
   Warme Beige-Töne für Video-KI
   ================================ */

:root {
    /* Hauptfarben - Warme Beige-Palette */
    --primary-beige: #F5E6D3;
    --warm-beige: #E8D5B7;
    --rich-beige: #D4B896;
    --golden-beige: #C49B7A;
    --dark-beige: #A67C5A;
    --accent-gold: #B8860B;

    /* Neutral-Töne */
    --cream-white: #FDF8F0;
    --soft-white: #FEFCF7;
    --warm-gray: #8B7355;
    --deep-brown: #3E2723;
    --shadow-brown: rgba(62, 39, 35, 0.1);

    /* Gradient-Definitionen */
    --primary-gradient: linear-gradient(135deg, var(--cream-white) 0%, var(--primary-beige) 50%, var(--warm-beige) 100%);
    --card-gradient: linear-gradient(145deg, var(--soft-white) 0%, var(--primary-beige) 100%);
    --button-gradient: linear-gradient(135deg, var(--golden-beige) 0%, var(--dark-beige) 100%);
    --cinematic-gradient: linear-gradient(45deg, var(--accent-gold), var(--golden-beige), var(--rich-beige));

    /* Schatten */
    --soft-shadow: 0 8px 32px rgba(212, 184, 150, 0.3);
    --hover-shadow: 0 16px 64px rgba(196, 155, 122, 0.4);
    --inner-shadow: inset 0 2px 8px rgba(139, 115, 85, 0.2);

    /* Animationen */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-cinematic: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ================================
   GRUNDLAGEN & RESET
   ================================ */

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

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    line-height: 1.7;
    color: var(--deep-brown);
    background: var(--primary-gradient);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

/* Cinematic Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 20% 30%, rgba(248, 231, 204, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(196, 155, 122, 0.2) 0%, transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(184, 134, 11, 0.1) 0%, transparent 70%);
    animation: backgroundPulse 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* ================================
   HEADER - KOMPAKTER MOBILE STYLE
   ================================ */

.main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    min-height: 70px !important;
    display: flex !important;
    align-items: center !important;
    transition: none !important; /* Keine Transition beim ersten Laden */
}

.main-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--cinematic-gradient);
    opacity: 0.6;
}

.main-header .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0.8rem 2rem !important;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    background: var(--cinematic-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.02em;
    position: relative;
    transition: var(--transition-smooth);
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cinematic-gradient);
    transition: var(--transition-bounce);
}

.logo:hover::after {
    width: 100%;
}

/* Desktop Navigation - bleibt gleich */
.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.desktop-nav li {
    position: relative;
}

.desktop-nav a {
    color: var(--deep-brown);
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border-radius: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: block;
    white-space: nowrap;
}

.desktop-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-gradient);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: 2rem;
}

.desktop-nav a:hover::before {
    transform: translateX(0);
}

.desktop-nav a:hover {
    color: var(--dark-beige);
    box-shadow: var(--soft-shadow);
    transform: translateY(-1px);
}

/* User Info - Desktop */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background: rgba(232, 213, 183, 0.3);
    border-radius: 2rem;
    border: 1px solid rgba(196, 155, 122, 0.2);
}

.user-info span {
    color: var(--deep-brown);
    font-weight: 500;
    padding: 0 0.5rem;
}

.logout-button {
    background: var(--button-gradient) !important;
    color: white !important;
    border: none;
    padding: 0.6rem 1.2rem !important;
    border-radius: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--soft-shadow);
    transition: var(--transition-bounce);
    text-decoration: none;
    display: inline-block;
}

.logout-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--hover-shadow);
}

.logout-button::before {
    display: none;
}

/* ================================
   MOBILE MENU TOGGLE - KOMPAKT
   ================================ */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px; /* Reduzierte Größe */
    height: 44px; /* Reduzierte Größe */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
    border-radius: 8px;
    transition: var(--transition-smooth);
    margin-top: 3px;
}

.mobile-menu-toggle:hover {
    background: rgba(196, 155, 122, 0.1);
}

.hamburger-line {
    width: 22px; /* Reduzierte Breite */
    height: 2px;
    background: var(--deep-brown);
    margin: 2.5px 0; /* Reduzierter Abstand */
    transition: var(--transition-cinematic);
    border-radius: 2px;
    transform-origin: center;
    position: relative;
}

/* Hamburger Animation zum X */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================
   MOBILE RESPONSIVE ANPASSUNGEN
   ================================ */

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

    .mobile-menu-toggle {
        display: flex;
    }

    .main-header .container {
        padding: 0.8rem 1.5rem; /* Kompakteres Padding */
        min-height: 64px; /* Noch kompakter */
    }

    .logo {
        font-size: 1.6rem; /* Kleinere Logo-Größe für Mobile */
    }
}

@media (max-width: 480px) {
    .main-header .container {
        padding: 0.6rem 1rem; /* Sehr kompakt für kleine Screens */
        min-height: 60px; /* Minimale Höhe */
    }

    .logo {
        font-size: 1.4rem; /* Noch kleinere Logo-Größe */
        margin-left: -50px!important;
    }

    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }

    .hamburger-line {
        width: 20px;
        margin: 2px 0;
    }
}

/* ================================
   MAIN CONTENT ANPASSUNG
   ================================ */

main {
    margin-top: 70px; /* Angepasst an neue Header-Höhe */
    min-height: calc(100vh - 70px);
    position: relative;
}

@media (max-width: 768px) {
    main {
        margin-top: 64px; /* Mobile Header-Höhe */
        min-height: calc(100vh - 64px);
    }
}

@media (max-width: 480px) {
    main {
        margin-top: 60px; /* Sehr kompakte Mobile Header-Höhe */
        min-height: calc(100vh - 60px);
    }
}

/* ================================
   NAVIGATION - FIXED HOVER EFFECTS
   ================================ */

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem; /* Reduzierter Gap für bessere Kontrolle */
    align-items: center;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    color: var(--deep-brown);
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border-radius: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: block;
    white-space: nowrap;
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-gradient);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: 2rem;
}

.main-nav a:hover::before {
    transform: translateX(0);
}

.main-nav a:hover {
    color: var(--dark-beige);
    box-shadow: var(--soft-shadow);
    transform: translateY(-1px);
}

/* User Info Spezial-Styling */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background: rgba(232, 213, 183, 0.3);
    border-radius: 2rem;
    border: 1px solid rgba(196, 155, 122, 0.2);
}

.user-info span {
    color: var(--deep-brown);
    font-weight: 500;
    padding: 0 0.5rem;
}

.logout-button {
    background: var(--button-gradient) !important;
    color: white !important;
    border: none;
    padding: 0.6rem 1.2rem !important;
    border-radius: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--soft-shadow);
    transition: var(--transition-bounce);
    text-decoration: none;
    display: inline-block;
}

.logout-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--hover-shadow);
}

.logout-button::before {
    display: none; /* Deaktiviere den Standard-Hover-Effekt für den Logout-Button */
}

/* ================================
   MAIN CONTENT BEREICH
   ================================ */

main {
    margin-top: 6rem;
    min-height: calc(100vh - 6rem);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

/* ================================
   TYPOGRAPHY - FILMISCH & WARM
   ================================ */

h1, h2, h3, h4, h5, h6 {
    color: var(--deep-brown);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 3.5rem;
    background: var(--cinematic-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

h2 {
    font-size: 2.5rem;
    color: var(--dark-beige);
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--cinematic-gradient);
    border-radius: 2px;
}

/* ================================
   FORMS - LUXURIÖS & INTERAKTIV
   ================================ */

.form-group {
    margin-bottom: 2rem;
    position: relative;
    animation: slideInUp 0.6s ease-out;
}

.form-group:nth-child(even) {
    animation-delay: 0.1s;
}

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

label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--deep-brown);
    font-size: 1.1rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid var(--warm-beige);
    border-radius: 1rem;
    background: var(--soft-white);
    color: var(--deep-brown);
    font-size: 1rem;
    transition: var(--transition-smooth);
    box-shadow: var(--inner-shadow);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--golden-beige);
    box-shadow: 0 0 0 4px rgba(196, 155, 122, 0.2), var(--soft-shadow);
    transform: translateY(-2px);
}

textarea {
    resize: vertical;
    min-height: 120px;
    position: relative;
}

/* Enhance Prompt Button */
#enhance-prompt-btn {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    background: var(--button-gradient);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: var(--soft-shadow);
    z-index: 10;
}

#enhance-prompt-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--hover-shadow);
}

/* ================================
   SEGMENTED CONTROL - FILMSTRIP DESIGN
   ================================ */

.segmented-control {
    display: flex;
    background: var(--warm-beige);
    border-radius: 1.5rem;
    padding: 0.3rem;
    box-shadow: var(--inner-shadow);
    position: relative;
    overflow: hidden;
}

.segmented-control input[type="radio"] {
    display: none;
}

.segmented-control label {
    flex: 1;
    padding: 1rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
    font-weight: 600;
    color: var(--warm-gray);
    margin: 0;
    border-radius: 1.2rem;
}

.segmented-control input[type="radio"]:checked + label {
    color: var(--deep-brown);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Der animierte Slider */
.segmented-slider {
    position: absolute;
    top: 0.3rem;
    left: 0.3rem;
    width: calc(25% - 0.15rem);
    height: calc(100% - 0.6rem);
    background: var(--card-gradient);
    border-radius: 1.2rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--soft-shadow);
    z-index: 1;
}

/* Hover-Effekte */
.segmented-control label:hover {
    color: var(--dark-beige);
}

.segmented-control input[type="radio"]:checked + label:hover {
    color: var(--deep-brown);
}

/* ================================
   BUTTONS - CINEMATIC & MAGNETISCH
   ================================ */

.button,
.button-primary,
.button-secondary,
button[type="submit"] {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    text-align: center;
    letter-spacing: 0.02em;
}

.button-primary,
button[type="submit"] {
    background: var(--button-gradient);
    color: white;
    box-shadow: var(--soft-shadow);
}

.button-primary:hover,
button[type="submit"]:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--hover-shadow);
}

.button-primary::before,
button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    transition: var(--transition-smooth);
}

.button-primary:hover::before,
button[type="submit"]:hover::before {
    left: 100%;
}

.button-secondary {
    background: var(--card-gradient);
    color: var(--deep-brown);
    border: 2px solid var(--warm-beige);
    box-shadow: var(--soft-shadow);
}

.button-secondary:hover {
    background: var(--warm-beige);
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.button.disabled,
.button-secondary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ================================
   VIDEO GRID - FILMSTRIP GALLERY
   ================================ */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.video-item {
    background: var(--card-gradient);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    transition: var(--transition-cinematic);
    position: relative;
    border: 1px solid rgba(196, 155, 122, 0.2);
}

.video-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--hover-shadow);
}

.video-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--cinematic-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
}

.video-item:hover::before {
    opacity: 1;
}

.thumbnail-container {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--warm-beige);
}

.thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-cinematic);
}

.video-item:hover .thumbnail-container img {
    transform: scale(1.05);
}

.status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(62, 39, 35, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    backdrop-filter: blur(10px);
}

.status-overlay .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.video-info {
    padding: 1.5rem;
}

.video-info h5 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--deep-brown);
}

.model-info {
    color: var(--warm-gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.actions {
    display: flex;
    gap: 1rem;
}

.actions .button,
.actions .button-secondary {
    flex: 1;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
}

.delete-action {
    padding: 0 1.5rem 1.5rem;
}

.delete-button {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.delete-button:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-2px);
}

/* ================================
   IMAGE UPLOAD - DRAG & DROP MAGIC
   ================================ */

.image-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.image-upload-box {
    border: 2px dashed var(--warm-beige);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    background: var(--soft-white);
    position: relative;
    overflow: hidden;
}

.image-upload-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(196, 155, 122, 0.1) 0%, transparent 100%);
    transition: var(--transition-smooth);
}

.image-upload-box:hover {
    border-color: var(--golden-beige);
    background: var(--primary-beige);
    transform: translateY(-4px);
}

.image-upload-box:hover::before {
    left: 100%;
}

.image-upload-box label {
    display: block;
    cursor: pointer;
    font-weight: 600;
    color: var(--deep-brown);
    margin-bottom: 1rem;
}

.image-upload-box input[type="file"] {
    width: 100%;
    padding: 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
}

/* ================================
   ALERTS & NOTIFICATIONS
   ================================ */

.alert {
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    font-weight: 500;
    border-left: 4px solid;
    animation: slideInDown 0.5s ease-out;
}

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

.alert.error {
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
    color: #c53030;
    border-left-color: #e53e3e;
}

.alert.success {
    background: linear-gradient(135deg, #f0fff4, #c6f6d5);
    color: #2f855a;
    border-left-color: #38a169;
}

/* ================================
   GLOBAL LOADER - KINEMATISCH
   ================================ */

#global-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(253, 248, 240, 0.98), rgba(232, 213, 183, 0.98));
    backdrop-filter: blur(20px) saturate(1.2);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#global-loader-overlay.visible {
    opacity: 1;
}

.loader-content {
    text-align: center;
    max-width: 400px;
    padding: 3rem;
    background: var(--card-gradient);
    border-radius: 2rem;
    box-shadow: var(--hover-shadow);
    border: 1px solid rgba(196, 155, 122, 0.3);
}

.loader-content .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--warm-beige);
    border-top: 4px solid var(--golden-beige);
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 0 auto 2rem;
}

.loader-content p {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--deep-brown);
    margin-bottom: 0.5rem;
}

.loader-content span {
    color: var(--warm-gray);
    font-size: 1rem;
}

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

@media (max-width: 768px) {
    .main-header .container {
        padding: 1rem;
    }

    .main-nav ul {
        gap: 1rem;
    }

    .main-nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

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

    .segmented-control {
        flex-wrap: wrap;
    }

    .segmented-control label {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    h1 {
        font-size: 2rem;
    }

    .actions {
        flex-direction: column;
    }

    .image-upload-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   ZUSÄTZLICHE KINEMATISCHE EFFEKTE
   ================================ */

/* Smooth page transitions */
body {
    animation: pageLoad 0.8s ease-out;
}

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

/* Hover-Effekte für interaktive Elemente */
input[type="file"]:hover,
select:hover {
    cursor: pointer;
    border-color: var(--golden-beige);
    box-shadow: 0 4px 16px rgba(196, 155, 122, 0.2);
}

/* Focus-Ring für Accessibility */
*:focus-visible {
    outline: 2px solid var(--golden-beige);
    outline-offset: 2px;
}

/* ================================
   MODEL SELECTION - CINEMATIC CARDS
   ================================ */

.model-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.model-card {
    background: var(--card-gradient);
    border: 2px solid var(--warm-beige);
    border-radius: 1.5rem;
    padding: 1.8rem;
    cursor: pointer;
    transition: var(--transition-cinematic);
    position: relative;
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    transform: translateY(0) scale(1);
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--cinematic-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
}

.model-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(196, 155, 122, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transition: var(--transition-cinematic);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.model-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--hover-shadow);
    border-color: var(--golden-beige);
}

.model-card:hover::before {
    opacity: 1;
}

.model-card:hover::after {
    width: 300px;
    height: 300px;
}

.model-card.selected {
    border-color: var(--accent-gold);
    background: linear-gradient(145deg, var(--primary-beige) 0%, var(--warm-beige) 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow:
            var(--hover-shadow),
            0 0 0 4px rgba(184, 134, 11, 0.2);
}

.model-card.selected::before {
    opacity: 1;
    height: 6px;
    background: var(--accent-gold);
}

.model-card.selected .model-badge {
    background: var(--accent-gold);
    color: white;
    transform: scale(1.1);
}

.model-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.model-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--deep-brown);
    margin: 0;
    line-height: 1.2;
}

.model-badge {
    background: var(--golden-beige);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-bounce);
    margin-right: 25px;
}

.model-description {
    color: var(--warm-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.model-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background: rgba(196, 155, 122, 0.2);
    color: var(--dark-beige);
    padding: 0.3rem 0.7rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.model-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(196, 155, 122, 0.2);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.spec-label {
    font-size: 0.75rem;
    color: var(--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.spec-value {
    font-size: 0.9rem;
    color: var(--deep-brown);
    font-weight: 600;
}

/* Selection Animation */
.model-card .selection-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    border: 2px solid var(--warm-beige);
    border-radius: 50%;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-card.selected .selection-indicator {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: scale(1.2);
}

.model-card.selected .selection-indicator::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* Premium Models Glow Effect */
.model-card.premium {
    background: linear-gradient(145deg, #fff9f0 0%, var(--primary-beige) 100%);
    border-color: var(--accent-gold);
}

.model-card.premium::before {
    background: linear-gradient(90deg, var(--accent-gold), #DAA520, var(--accent-gold));
    animation: premiumGlow 3s ease-in-out infinite;
}

@keyframes premiumGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Responsive */
@media (max-width: 768px) {
    .model-selection-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .model-card {
        padding: 1.5rem;
    }

    .model-specs {
        grid-template-columns: 1fr;
    }
}

/* ================================
   ASPECT RATIO TOGGLE - CINEMATIC
   ================================ */

.aspect-ratio-toggle {
    display: flex;
    position: relative;
    background: var(--warm-beige);
    border-radius: 1.5rem;
    padding: 0.4rem;
    box-shadow: var(--inner-shadow);
    overflow: hidden;
}

.aspect-ratio-toggle input[type="radio"] {
    display: none;
}

.aspect-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
    border-radius: 1.2rem;
    margin: 0;
}

.aspect-icon {
    width: 32px;
    height: 24px;
    background: var(--warm-gray);
    border-radius: 4px;
    transition: var(--transition-smooth);
    position: relative;
}

.landscape-icon {
    width: 32px;
    height: 18px;
}

.portrait-icon {
    width: 18px;
    height: 32px;
}

.aspect-option span {
    font-weight: 600;
    color: var(--warm-gray);
    transition: var(--transition-smooth);
}

.aspect-option small {
    font-size: 0.75rem;
    color: var(--warm-gray);
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.aspect-ratio-toggle input[type="radio"]:checked + .aspect-option .aspect-icon {
    background: var(--accent-gold);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.aspect-ratio-toggle input[type="radio"]:checked + .aspect-option span {
    color: var(--deep-brown);
}

.aspect-ratio-toggle input[type="radio"]:checked + .aspect-option small {
    color: var(--dark-beige);
    opacity: 1;
}

.aspect-ratio-toggle .toggle-slider {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    width: calc(50% - 0.2rem);
    height: calc(100% - 0.8rem);
    background: var(--card-gradient);
    border-radius: 1.2rem;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: var(--soft-shadow);
    z-index: 1;
}

.aspect-ratio-toggle input[type="radio"]:nth-child(3):checked ~ .toggle-slider {
    transform: translateX(100%);
}

/* ================================
   DURATION CHIPS - INTERACTIVE
   ================================ */

.duration-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.duration-chip {
    background: var(--card-gradient);
    border: 2px solid var(--warm-beige);
    border-radius: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    min-width: 80px;
    text-align: center;
    box-shadow: var(--soft-shadow);
}

.duration-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--cinematic-gradient);
    transition: var(--transition-smooth);
    z-index: -1;
}

.duration-chip:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--hover-shadow);
    border-color: var(--golden-beige);
}

.duration-chip:hover::before {
    left: 0;
}

.duration-chip.selected {
    background: var(--button-gradient);
    color: white;
    border-color: var(--accent-gold);
    transform: translateY(-2px) scale(1.1);
    box-shadow: var(--hover-shadow);
    height: ;
}

.duration-chip.selected::before {
    left: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
}

.duration-value {
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
}

.duration-label {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 0.2rem;
}

/* Mobile Duration Chips */
@media (max-width: 768px) {
    .duration-chips {
        justify-content: center;
    }

    .duration-chip {
        flex: 1;
        min-width: 70px;
        padding: 0.8rem 1rem;
    }
}

/* ================================
   MOBILE MODEL CARDS - COLLAPSED VIEW
   ================================ */

@media (max-width: 768px) {
    .model-selection-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .model-badge {
        margin-right: 40px;
        width: 90px;
        text-align: center;
    }

    .model-card {
        padding: 1.2rem;
        border-radius: 1rem;
    }

    .model-card:not(.selected) {
        background: var(--warm-beige);
        border-color: rgba(196, 155, 122, 0.3);
        transform: scale(0.98);
    }

    .model-card:not(.selected) .model-description,
    .model-card:not(.selected) .model-features,
    .model-card:not(.selected) .model-specs {
        display: none;
    }

    .model-card:not(.selected) .model-header {
        margin-bottom: 0.5rem;
    }

    .model-card:not(.selected) .model-name {
        font-size: 1.1rem;
    }

    .model-card.selected {
        transform: scale(1);
        margin-bottom: 1rem;
    }

    /* Mobile Selection Animation */
    .model-card {
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .model-card.expanding {
        animation: mobileExpand 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    @keyframes mobileExpand {
        0% {
            transform: scale(0.98);
            max-height: 80px;
        }
        50% {
            transform: scale(1.02);
        }
        100% {
            transform: scale(1);
            max-height: 400px;
        }
    }
}

/* ================================
   MOBILE MODEL ACCORDION
   ================================ */

@media (max-width: 480px) {
    .model-selection-grid {
        display: block;
    }

    .model-card {
        margin-bottom: 0.5rem;
        border-radius: 0.8rem;
    }

    .model-card:not(.selected) {
        max-height: 60px;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .model-card.selected {
        max-height: 375px;
        transition: max-height 0.5s ease-in;
        margin-top: 25px;
    }

    .model-card:not(.selected):hover {
        transform: scale(1);
        max-height: 80px;
    }
}

/* ================================
   MOBILE NAVIGATION - CINEMATIC
   ================================ */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--deep-brown);
    margin: 3px 0;
    transition: var(--transition-cinematic);
    border-radius: 2px;
    transform-origin: center;
}

/* Hamburger Animation zum X */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg,
    rgba(253, 248, 240, 0.98) 0%,
    rgba(232, 213, 183, 0.98) 50%,
    rgba(212, 184, 150, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(1.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateY(-100%);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem; /* Reduziertes Padding */
    position: relative;
    overflow-y: auto;
}

/* Mobile Navigation Header */
/* ================================
   MOBILE NAVIGATION - HEADER FIX
   ================================ */

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem; /* Reduziert */
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(196, 155, 122, 0.3);
    padding-top: 1rem; /* Weniger Top-Padding */
}

.mobile-logo {
    font-size: 1.6rem; /* Konsistent mit Mobile Header */
    font-weight: 900;
    background: var(--cinematic-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.mobile-close-btn {
    width: 36px; /* Kleinerer Close Button */
    height: 36px;
    background: rgba(196, 155, 122, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-bounce);
}

.mobile-close-btn:hover {
    background: var(--golden-beige);
    transform: scale(1.1) rotate(90deg);
}

.close-line {
    position: absolute;
    width: 16px; /* Kleinere Close-Linien */
    height: 2px;
    background: var(--deep-brown);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.close-line:nth-child(1) {
    transform: rotate(45deg);
}

.close-line:nth-child(2) {
    transform: rotate(-45deg);
}

/* Mobile Navigation List */
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.mobile-nav-item {
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Staggered Animation */
.mobile-nav-overlay.active .mobile-nav-item:nth-child(1) {
    animation: slideInLeft 0.6s 0.1s both;
}

.mobile-nav-overlay.active .mobile-nav-item:nth-child(2) {
    animation: slideInLeft 0.6s 0.2s both;
}

.mobile-nav-overlay.active .mobile-nav-item:nth-child(3) {
    animation: slideInLeft 0.6s 0.3s both;
}

.mobile-nav-overlay.active .mobile-nav-item:nth-child(4) {
    animation: slideInLeft 0.6s 0.4s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--card-gradient);
    border-radius: 1.2rem;
    text-decoration: none;
    color: var(--deep-brown);
    margin-bottom: 0.8rem;
    transition: var(--transition-cinematic);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--cinematic-gradient);
    transition: var(--transition-smooth);
    z-index: -1;
}

.mobile-nav-link:hover::before,
.mobile-nav-link:active::before {
    left: 0;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: white;
    border-color: var(--accent-gold);
    transform: translateX(10px) scale(1.02);
    box-shadow: var(--hover-shadow);
}

.nav-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
}

.nav-arrow {
    font-size: 1.2rem;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.mobile-nav-link:hover .nav-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Mobile User Section */
.mobile-user-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(196, 155, 122, 0.3);
    opacity: 0;
    transform: translateY(30px);
}

.mobile-nav-overlay.active .mobile-user-section {
    animation: slideInUp 0.6s 0.5s both;
}

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

.mobile-user-info {
    display: flex;
    align-items: center;
    background: var(--warm-beige);
    padding: 1.5rem;
    border-radius: 1.2rem;
    margin-bottom: 1rem;
    border: 2px solid rgba(196, 155, 122, 0.3);
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: var(--button-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 1rem;
    box-shadow: var(--soft-shadow);
}

.user-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-email {
    font-weight: 600;
    color: var(--deep-brown);
    margin-bottom: 0.2rem;
}

.user-status {
    font-size: 0.8rem;
    color: var(--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 1.2rem;
    border-radius: 1.2rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-bounce);
    box-shadow: var(--soft-shadow);
}

.mobile-logout-btn:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--hover-shadow);
}

.logout-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Mobile Navigation Footer */
.mobile-nav-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 2px solid rgba(196, 155, 122, 0.3);
    opacity: 0;
    transform: translateY(20px);
}

.mobile-nav-overlay.active .mobile-nav-footer {
    animation: slideInUp 0.6s 0.6s both;
}

.mobile-credits-display {
    background: var(--card-gradient);
    padding: 1.5rem;
    border-radius: 1.2rem;
    text-align: center;
    border: 2px solid rgba(196, 155, 122, 0.3);
}

.credits-label {
    display: block;
    color: var(--warm-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.credits-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--cinematic-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .mobile-nav-content {
        padding: 1rem; /* Noch kompakter für sehr kleine Screens */
    }

    .mobile-nav-header {
        margin-bottom: 2rem;
        padding-top: 0.5rem;
    }

    .mobile-logo {
        font-size: 1.4rem;
    }

    .mobile-close-btn {
        width: 32px;
        height: 32px;
    }

    .close-line {
        width: 14px;
    }
}

/* Scroll Lock für Body wenn Menu offen */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ================================
   ADDITIONAL MOBILE ANIMATIONS
   ================================ */

/* Backdrop Animation */
.mobile-nav-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 20% 30%, rgba(248, 231, 204, 0.4) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(196, 155, 122, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(184, 134, 11, 0.2) 0%, transparent 70%);
    animation: backdropPulse 15s ease-in-out infinite;
    z-index: -1;
}

@keyframes backdropPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* Menu Item Hover Ripple Effect */
.mobile-nav-link {
    position: relative;
    overflow: hidden;
}

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

.mobile-nav-link:active::after {
    width: 300px;
    height: 300px;
}

/* Loading State für Credits */
.credits-value.loading {
    background: linear-gradient(45deg,
    var(--warm-beige) 25%,
    var(--golden-beige) 25%,
    var(--golden-beige) 75%,
    var(--warm-beige) 75%);
    background-size: 20px 20px;
    animation: loadingStripes 1s linear infinite;
}

@keyframes loadingStripes {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

/* ================================
   KOMPAKTE CONTAINER FÜR MOBILE
   ================================ */

@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem; /* Weniger Padding für Mobile */
    }

    h1 {
        font-size: 2.2rem; /* Kleinere Headlines */
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0.8rem; /* Sehr kompakt */
    }

    h1 {
        font-size: 1.9rem;
        margin-bottom: 0.8rem;
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }
}

/* ================================
   MOBILE FORM OPTIMIERUNGEN
   ================================ */

@media (max-width: 768px) {
    .form-group {
        margin-bottom: 1.5rem; /* Kompaktere Form-Groups */
    }

    label {
        margin-bottom: 0.6rem;
        font-size: 1rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="file"],
    textarea,
    select {
        padding: 1rem 1.2rem; /* Weniger Padding */
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }

    textarea {
        min-height: 100px; /* Kompaktere Textarea */
    }
}

/* Mobile Video Grid - kompakter */
@media (max-width: 768px) {
    .video-grid {
        gap: 1.2rem; /* Weniger Gap */
        margin-top: 2rem; /* Weniger Top-Margin */
    }

    .video-item {
        border-radius: 1.2rem; /* Kleinere Border-Radius */
    }

    .video-info {
        padding: 1.2rem; /* Weniger Padding */
    }
}

/* ================================
   LIBRARY BUTTONS - HARMONISCHE FARBEN
   ================================ */

.actions .button,
.actions .button-primary {
    background: var(--button-gradient);
    color: white;
    border: none;
    box-shadow: var(--soft-shadow);
    position: relative;
    overflow: hidden;
}

.actions .button::before,
.actions .button-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    transition: var(--transition-smooth);
}

.actions .button:hover,
.actions .button-primary:hover {
    background: linear-gradient(135deg, var(--dark-beige) 0%, var(--accent-gold) 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--hover-shadow);
}

.actions .button:hover::before,
.actions .button-primary:hover::before {
    left: 100%;
}

/* Spezielle Play-Button Gestaltung */
.play-button {
    background: var(--button-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.play-button::after {
    content: '▶';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    opacity: 0.8;
}

.play-button span {
    margin-left: 1.5rem;
}

.play-button:hover {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #DAA520 100%);
    box-shadow: 0 8px 32px rgba(184, 134, 11, 0.4);
}

.play-button:hover::after {
    opacity: 1;
    animation: playPulse 1s ease-in-out infinite;
}

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

/* ================================
   LIBRARY HEADER & VIEW CONTROLS
   ================================ */

.library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(196, 155, 122, 0.2);
}

.view-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    position: relative;
    background: var(--warm-beige);
    border-radius: 1rem;
    padding: 0.3rem;
    box-shadow: var(--inner-shadow);
    overflow: hidden;
}

.view-toggle input[type="radio"] {
    display: none;
}

.view-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
    border-radius: 0.7rem;
    color: var(--warm-gray);
    margin: 0;
}

.view-option svg {
    width: 20px;
    height: 20px;
    transition: var(--transition-smooth);
}

.view-toggle input[type="radio"]:checked + .view-option {
    color: var(--deep-brown);
}

.view-toggle input[type="radio"]:checked + .view-option svg {
    transform: scale(1.1);
}

.view-toggle .toggle-slider {
    position: absolute;
    top: 0.3rem;
    left: 0.3rem;
    width: 44px;
    height: 44px;
    background: var(--card-gradient);
    border-radius: 0.7rem;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: var(--soft-shadow);
    z-index: 1;
}

.logo-img {
    height: 50px;
    vertical-align: middle;
    margin-right: 0.8rem;
}

.view-toggle input[type="radio"]:nth-child(3):checked ~ .toggle-slider {
    transform: translateX(44px);
}

/* ================================
   EMPTY STATE
   ================================ */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-gradient);
    border-radius: 2rem;
    border: 2px solid rgba(196, 155, 122, 0.2);
    margin: 2rem 0;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.empty-state h3 {
    color: var(--deep-brown);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--warm-gray);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   LIST VIEW STYLES
   ================================ */

.video-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-list-item {
    background: var(--card-gradient);
    border-radius: 1.2rem;
    padding: 1.5rem;
    border: 2px solid rgba(196, 155, 122, 0.2);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--soft-shadow);
}

.video-list-item:hover {
    border-color: var(--golden-beige);
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.list-thumbnail {
    position: relative;
    width: 120px;
    height: 68px;
    border-radius: 0.8rem;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--warm-beige);
}

.list-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.video-list-item:hover .list-thumbnail img {
    transform: scale(1.05);
}

.list-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(62, 39, 35, 0.6);
    opacity: 0;
    transition: var(--transition-smooth);
}

.video-list-item:hover .list-play-overlay {
    opacity: 1;
}

.play-icon {
    color: white;
    font-size: 1.5rem;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.list-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.list-main-info {
    flex: 1;
}

.list-title {
    color: var(--deep-brown);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.list-model {
    color: var(--warm-gray);
}

.list-status {
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-success {
    background: rgba(56, 161, 105, 0.2);
    color: #2f855a;
}

.status-generating {
    background: rgba(237, 137, 54, 0.2);
    color: #c05621;
}

.status-failed {
    background: rgba(229, 62, 62, 0.2);
    color: #c53030;
}

.list-date {
    color: var(--warm-gray);
    font-size: 0.85rem;
}

.list-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.list-button {
    padding: 0.6rem 1rem;
    border-radius: 1.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-bounce);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.list-button.play-button {
    background: var(--button-gradient);
    color: white;
    box-shadow: var(--soft-shadow);
}

.list-button.play-button:hover {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #DAA520 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--hover-shadow);
}

.list-button.download-button {
    background: var(--card-gradient);
    color: var(--deep-brown);
    border: 1px solid var(--warm-beige);
}

.list-button.download-button:hover {
    background: var(--warm-beige);
    transform: translateY(-2px);
}

.list-button.delete-button {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-button.delete-button:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-2px) scale(1.1);
}

.list-button.disabled {
    background: var(--warm-beige);
    color: var(--warm-gray);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ================================
   RESPONSIVE LIST VIEW
   ================================ */

@media (max-width: 768px) {
    .library-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        text-align: center;
    }

    .video-list-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .list-thumbnail {
        width: 100%;
        height: 120px;
        max-width: 200px;
        margin: 0 auto;
    }

    .list-content {
        flex-direction: column;
        gap: 1rem;
    }

    .list-meta {
        justify-content: center;
    }

    .list-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Loader-Overlay verhindert FOUC */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #FDF8F0 0%, #E8D5B7 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.page-loader .loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(166, 124, 90, 0.3);
    border-top: 3px solid #A67C5A;
    border-radius: 50%;
    animation: loaderSpin 1s linear infinite;
}

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

/* ================================
   CREDITS BUY PAGE - CONVERSION OPTIMIERT
   ================================ */

.credits-hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
    background: var(--card-gradient);
    border-radius: 2rem;
    border: 2px solid rgba(196, 155, 122, 0.2);
    position: relative;
    overflow: hidden;
}

.credits-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 30% 20%, rgba(184, 134, 11, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 70% 80%, rgba(196, 155, 122, 0.1) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.credits-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--cinematic-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}

.credits-subtitle {
    font-size: 1.3rem;
    color: var(--warm-gray);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.current-credits-display {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(184, 134, 11, 0.1);
    border: 2px solid var(--accent-gold);
    border-radius: 2rem;
    padding: 1.5rem 2rem;
    position: relative;
    z-index: 2;
}

.credits-icon {
    font-size: 2rem;
    animation: creditsPulse 2s ease-in-out infinite;
}

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

.credits-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.credits-label {
    font-size: 0.9rem;
    color: var(--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credits-value {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--cinematic-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition-bounce);
}

/* ================================
   PACKAGES GRID - VERKAUFSOPTIMIERT
   ================================ */

.packages-section {
    margin-bottom: 4rem;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.package-item {
    background: var(--card-gradient);
    border: 2px solid var(--warm-beige);
    border-radius: 2rem;
    padding: 2rem;
    position: relative;
    transition: var(--transition-cinematic);
    overflow: hidden;
    box-shadow: var(--soft-shadow);
}

.package-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--warm-beige);
    transition: var(--transition-smooth);
}

.package-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--golden-beige);
    box-shadow: var(--hover-shadow);
}

.package-item:hover::before {
    background: var(--cinematic-gradient);
}

/* Popular Package */
.package-item.popular {
    border-color: var(--accent-gold);
    background: linear-gradient(145deg, var(--soft-white) 0%, var(--primary-beige) 100%);
    transform: scale(1.05);
    z-index: 2;
}

.package-item.popular::before {
    background: var(--accent-gold);
    height: 6px;
}

.package-item.popular:hover {
    transform: translateY(-8px) scale(1.08);
}

/* Premium Package */
.package-item.premium {
    background: linear-gradient(145deg, #fff9f0 0%, var(--primary-beige) 100%);
    border-color: var(--accent-gold);
    position: relative;
}

.package-item.premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: premiumShimmer 3s ease-in-out infinite;
}

@keyframes premiumShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Badges */
.popular-badge, .premium-badge {
    position: absolute;
    top: -1px;
    right: 2rem;
    background: var(--accent-gold);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 0 1rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
    z-index: 3;
}

.premium-badge {
    background: linear-gradient(135deg, #DAA520, var(--accent-gold));
}

.badge-icon {
    font-size: 0.9rem;
}

/* Package Content */
.package-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(196, 155, 122, 0.2);
}

.package-name {
    font-size: 1.5rem;
    color: var(--deep-brown);
    margin-bottom: 1rem;
}

.package-credits {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.credits-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--cinematic-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.credits-text {
    font-size: 1rem;
    color: var(--warm-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.package-description {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--warm-gray);
    line-height: 1.6;
}

.package-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.feature-icon {
    width: 20px;
    height: 20px;
    background: var(--accent-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.feature-text {
    color: var(--deep-brown);
    font-weight: 500;
}

/* Pricing */
.package-pricing {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.price-main {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--deep-brown);
}

.price-per-credit {
    font-size: 0.9rem;
    color: var(--warm-gray);
    opacity: 0.8;
}

.savings-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    animation: savingsPulse 2s ease-in-out infinite;
}

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

/* Purchase Button */
.purchase-button {
    width: 100%;
    background: var(--button-gradient);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--soft-shadow);
}

.purchase-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    transition: var(--transition-smooth);
}

.purchase-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--hover-shadow);
}

.purchase-button:hover::before {
    left: 100%;
}

.purchase-button:active {
    transform: translateY(-2px) scale(0.98);
}

.popular-button {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #DAA520 100%);
    box-shadow: 0 8px 32px rgba(184, 134, 11, 0.4);
}

.premium-button {
    background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
    box-shadow: 0 12px 48px rgba(218, 165, 32, 0.5);
}

.button-icon {
    font-size: 1.2rem;
}

.button-arrow {
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.purchase-button:hover .button-arrow {
    transform: translateX(4px);
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    opacity: 0.8;
}

.trust-icon {
    font-size: 1.2rem;
}

.trust-text {
    font-size: 0.8rem;
    color: var(--warm-gray);
    text-align: center;
}

/* ================================
   BENEFITS SECTION
   ================================ */

.credits-benefits {
    background: var(--card-gradient);
    border-radius: 2rem;
    padding: 3rem 2rem;
    text-align: center;
    border: 2px solid rgba(196, 155, 122, 0.2);
}

.credits-benefits h3 {
    font-size: 2rem;
    color: var(--deep-brown);
    margin-bottom: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-item {
    padding: 1.5rem;
    background: rgba(253, 248, 240, 0.5);
    border-radius: 1.5rem;
    border: 1px solid rgba(196, 155, 122, 0.2);
    transition: var(--transition-smooth);
}

.benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--soft-shadow);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    color: var(--deep-brown);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.benefit-item p {
    color: var(--warm-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

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

@media (min-width: 769px) {
    .package-features {
        min-height: 150px;
    }
    .package-pricing {
        min-height: 135px;
    }
}

@media (max-width: 768px) {
    .credits-title {
        font-size: 2.2rem;
    }

    .credits-subtitle {
        font-size: 1.1rem;
    }

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

    .package-item.popular {
        transform: scale(1);
    }

    .package-item.popular:hover {
        transform: translateY(-4px) scale(1.02);
    }

    .current-credits-display {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1.2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .credits-hero {
        padding: 2rem 1rem;
    }

    .package-item {
        padding: 1.5rem;
    }

    .purchase-button {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* ================================
   CINEMATIC VIDEO MODAL
   ================================ */

.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px) saturate(1.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 2rem;
}

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

.video-modal-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 30% 20%, rgba(184, 134, 11, 0.1) 0%, transparent 60%),
            radial-gradient(circle at 70% 80%, rgba(196, 155, 122, 0.08) 0%, transparent 60%);
    animation: modalGlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes modalGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

video-modal-container {
    background: var(--card-gradient);
    border-radius: 2rem;
    border: 2px solid rgba(196, 155, 122, 0.3);
    box-shadow:
            0 25px 50px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(196, 155, 122, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    transform: scale(0.8) translateY(50px);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Dynamische Sizing wird per JS gesetzt */
}

/* Portrait Video Container (für 9:16 Videos) */
.video-modal-container.portrait-mode {
    max-width: 60vw;
    width: auto;
}

/* Landscape Video Container (für 16:9 Videos) */
.video-modal-container.landscape-mode {
    max-width: 90vw;
    width: 100%;
}

/* Square Video Container (für 1:1 Videos) */
.video-modal-container.square-mode {
    max-width: 70vw;
    width: auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    /* Aspect Ratio wird dynamisch gesetzt */
    background: linear-gradient(45deg, #111, #222);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px; /* Minimum height für Loading */
}

/* Adaptive Video Wrapper */
.video-wrapper.portrait {
    aspect-ratio: 9/16;
    max-height: 80vh;
}

.video-wrapper.landscape {
    aspect-ratio: 16/9;
    max-height: 60vh;
}

.video-wrapper.square {
    aspect-ratio: 1/1;
    max-height: 70vh;
}

/* Modal Header */
.video-modal-header {
    background: linear-gradient(135deg, var(--primary-beige) 0%, var(--warm-beige) 100%);
    padding: 1.5rem 2rem;
    border-bottom: 2px solid rgba(196, 155, 122, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.video-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--cinematic-gradient);
    animation: headerShimmer 3s ease-in-out infinite;
}

@keyframes headerShimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.modal-title-icon {
    font-size: 1.8rem;
    animation: iconPulse 2s ease-in-out infinite;
}

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

.modal-title-text {
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--cinematic-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--warm-gray);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Close Button */
.modal-close-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(196, 155, 122, 0.2);
    color: var(--deep-brown);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.modal-close-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cinematic-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
    border-radius: 50%;
}

.modal-close-button:hover {
    transform: scale(1.1) rotate(90deg);
    color: white;
}

.modal-close-button:hover::before {
    opacity: 1;
}

.close-icon {
    font-size: 1.2rem;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

/* Video Container */
.video-modal-content {
    position: relative;
    background: #000;
    border-radius: 0 0 2rem 2rem;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(45deg, #111, #222);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0 0 2rem 2rem;
}

/* Loading State */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
    z-index: 10;
}

.video-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.video-loading-text {
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}

/* Video Controls Overlay */
.video-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

.video-wrapper:hover .video-controls-overlay {
    transform: translateY(0);
}

.video-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.video-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    flex: 1;
}

.video-actions {
    display: flex;
    gap: 0.8rem;
}

.video-action-button {
    background: rgba(196, 155, 122, 0.2);
    border: 1px solid rgba(196, 155, 122, 0.4);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-action-button:hover {
    background: var(--golden-beige);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

/* Quality Badge */
.quality-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(184, 134, 11, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 10;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .video-modal-overlay {
        padding: 0.5rem;
    }

    /* Portrait Videos auf Mobile - Nutze ganzen Screen */
    .video-modal-container.portrait-mode {
        max-width: 95vw;
        max-height: 95vh;
    }

    .video-wrapper.portrait {
        aspect-ratio: 9/16;
        max-height: 85vh;
    }

    /* Landscape Videos auf Mobile - Optimiert für Querformat */
    .video-modal-container.landscape-mode {
        max-width: 95vw;
        max-height: 70vh;
    }

    .video-wrapper.landscape {
        aspect-ratio: 16/9;
        max-height: 50vh;
    }

    /* Square Videos */
    .video-modal-container.square-mode {
        max-width: 95vw;
        max-height: 85vh;
    }

    .video-wrapper.square {
        aspect-ratio: 1/1;
        max-height: 70vh;
    }

    .video-modal-container {
        max-width: 95vw;
        max-height: 95vh;
    }

    .video-modal-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .modal-title {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-title-text {
        font-size: 1.5rem;
    }

    .modal-close-button {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .video-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .video-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .video-modal-overlay {
        padding: 0.2rem;
    }

    .video-modal-container.portrait-mode {
        max-width: 98vw;
        max-height: 98vh;
        border-radius: 1rem;
    }

    .video-wrapper.portrait {
        max-height: 90vh;
        border-radius: 0 0 1rem 1rem;
    }

    .video-modal-container.landscape-mode {
        max-width: 98vw;
        max-height: 60vh;
    }

    .video-wrapper.landscape {
        max-height: 45vh;
    }

    .video-modal-header {
        padding: 0.8rem 1rem;
    }

    .modal-title-text {
        font-size: 1.3rem;
    }

    .modal-close-button {
        width: 36px;
        height: 36px;
        top: 0.8rem;
        right: 1rem;
    }

    .video-controls-overlay {
        padding: 1rem;
    }

    .video-action-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (orientation: portrait) {
    .video-modal-container.portrait-mode {
        max-width: 95vw;
        max-height: 90vh;
    }

    .video-wrapper.portrait {
        max-height: 80vh;
    }
}

@media (orientation: landscape) {
    .video-modal-container.landscape-mode {
        max-width: 90vw;
        max-height: 85vh;
    }

    .video-wrapper.landscape {
        max-height: 70vh;
    }
}

/* Keyboard Navigation */
.modal-close-button:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Animation für Modal Erscheinen */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(100px) rotateX(15deg);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0deg);
    }
}

.video-modal-overlay.active .video-modal-container {
    animation: modalSlideIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ================================
   VIDEO END SCREEN
   ================================ */

.video-end-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    animation: fadeIn 0.5s ease-out;
}

.end-screen-content {
    text-align: center;
    color: white;
    padding: 2rem;
    background: rgba(196, 155, 122, 0.1);
    border-radius: 1.5rem;
    border: 2px solid rgba(196, 155, 122, 0.3);
    backdrop-filter: blur(20px);
}

.end-screen-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.end-screen-content p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

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

/* Aspect Ratio Badge */
.aspect-ratio-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(184, 134, 11, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.aspect-ratio-icon {
    font-size: 0.9rem;
}

/* Adaptive Controls based on orientation */
.video-controls-overlay.portrait-controls {
    padding: 1rem;
}

.video-controls.portrait-layout {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.video-controls.portrait-layout .video-actions {
    justify-content: center;
}

/* Loading Animation für verschiedene Formate */
.video-loading.portrait-loading {
    gap: 1.5rem;
}

.video-loading.landscape-loading {
    gap: 1rem;
}

/* Spezielle Mobile Header für Portrait */
@media (max-width: 768px) {
    .video-modal-container.portrait-mode .video-modal-header {
        padding: 1rem;
        text-align: center;
    }

    .video-modal-container.portrait-mode .modal-title {
        flex-direction: column;
        gap: 0.3rem;
    }

    .video-modal-container.portrait-mode .modal-title-text {
        font-size: 1.3rem;
    }

    .video-modal-container.portrait-mode .modal-subtitle {
        font-size: 0.8rem;
    }
}

/* ================================
   PAYMENT SUCCESS PAGE - CELEBRATION
   ================================ */

.payment-status-wrapper {
    min-height: 100vh;
    background: var(--hero-gradient);
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.success-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    font-size: 2rem;
    animation: confettiFall 4s linear infinite;
    opacity: 0.8;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.payment-status-card {
    background: var(--card-gradient);
    border-radius: 2.5rem;
    padding: 4rem 3rem;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
    box-shadow: var(--hero-shadow);
    border: 2px solid rgba(196, 155, 122, 0.3);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.payment-status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--premium-gradient);
    animation: successGlow 2s ease-in-out infinite;
}

@keyframes successGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Success Icon Animation */
.status-icon-container {
    margin-bottom: 2rem;
}

.success-icon {
    display: inline-block;
    position: relative;
}

.checkmark-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    position: relative;
    margin: 0 auto;
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
}

.checkmark-circle.animate {
    transform: scale(1);
}

.checkmark {
    position: absolute;
    top: 30%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 35px;
    width: 15px;
    height: 25px;
    border: solid white;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.checkmark.animate::after {
    opacity: 1;
    animation: checkmarkDraw 0.6s ease-in-out;
}

@keyframes checkmarkDraw {
    0% {
        height: 0;
        width: 0;
    }
    50% {
        height: 0;
        width: 15px;
    }
    100% {
        height: 25px;
        width: 15px;
    }
}

/* Status Content */
.status-content > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.status-title {
    font-size: 3rem;
    font-weight: 900;
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: titlePulse 2s ease-in-out infinite;
}

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

.status-subtitle {
    font-size: 1.5rem;
    color: var(--deep-brown);
    margin-bottom: 2rem;
    font-weight: 600;
}

.status-message {
    background: rgba(184, 134, 11, 0.1);
    border: 2px solid var(--accent-gold);
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.status-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.message-content {
    font-size: 1.1rem;
    color: var(--deep-brown);
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* Credits Celebration */
.credits-celebration {
    background: var(--card-gradient);
    border: 2px solid var(--golden-beige);
    border-radius: 2rem;
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.credits-celebration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 30% 30%, rgba(184, 134, 11, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 70% 70%, rgba(196, 155, 122, 0.1) 0%, transparent 50%);
    animation: creditsGlow 4s ease-in-out infinite;
}

@keyframes creditsGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.credits-icon {
    font-size: 3rem;
    animation: creditsBounce 2s ease-in-out infinite;
}

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

.credits-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.credits-label {
    font-size: 1.1rem;
    color: var(--deep-brown);
    font-weight: 600;
}

.credits-value {
    font-size: 2rem;
    font-weight: 900;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s var(--bounce-ease);
}

/* What's Next Section */
.whats-next {
    margin: 3rem 0;
}

.whats-next h3 {
    font-size: 1.8rem;
    color: var(--deep-brown);
    margin-bottom: 2rem;
}

.next-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.action-card {
    background: var(--cream-white);
    border: 2px solid rgba(196, 155, 122, 0.2);
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--deep-brown);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s var(--bounce-ease);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--warm-beige);
    transition: all 0.3s ease;
}

.primary-action::before {
    background: var(--premium-gradient);
}

.action-card:hover {
    border-color: var(--golden-beige);
    box-shadow: var(--hover-shadow);
}

.action-card:hover::before {
    height: 5px;
}

.action-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.action-content {
    flex: 1;
    text-align: left;
}

.action-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--deep-brown);
}

.action-content p {
    color: var(--warm-gray);
    font-size: 0.95rem;
}

.action-arrow {
    font-size: 1.5rem;
    color: var(--golden-beige);
    transition: transform 0.3s ease;
}

/* Success Tips */
.success-tips {
    margin: 3rem 0;
    background: rgba(253, 248, 240, 0.8);
    border-radius: 2rem;
    padding: 2rem;
    border: 2px solid rgba(196, 155, 122, 0.2);
}

.success-tips h3 {
    font-size: 1.5rem;
    color: var(--deep-brown);
    margin-bottom: 1.5rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--cream-white);
    border-radius: 1rem;
    border: 1px solid rgba(196, 155, 122, 0.2);
}

.tip-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.tip-text {
    font-size: 0.9rem;
    color: var(--deep-brown);
}

/* Social Celebration */
.social-celebration {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--card-gradient);
    border-radius: 2rem;
    border: 2px solid rgba(196, 155, 122, 0.2);
}

.social-celebration h3 {
    font-size: 1.5rem;
    color: var(--deep-brown);
    margin-bottom: 1rem;
}

.social-celebration p {
    color: var(--warm-gray);
    margin-bottom: 1.5rem;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s var(--bounce-ease);
    color: white;
}

.social-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-btn.facebook {
    background: linear-gradient(135deg, #4267b2, #365899);
}

.social-btn.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Support Section */
.support-section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(184, 134, 11, 0.1);
    border-radius: 2rem;
    border: 2px solid var(--accent-gold);
}

.support-section h3 {
    font-size: 1.5rem;
    color: var(--deep-brown);
    margin-bottom: 1rem;
}

.support-section p {
    color: var(--warm-gray);
    margin-bottom: 1.5rem;
}

.support-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.support-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--cta-gradient);
    color: var(--accent-gold);
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 600;
    transition: all 0.3s var(--bounce-ease);
    box-shadow: var(--soft-shadow);
}

.support-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--hover-shadow);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .payment-status-card {
        padding: 2.5rem 2rem;
        margin: 1rem;
        border-radius: 2rem;
    }

    .status-title {
        font-size: 2.2rem;
    }

    .status-subtitle {
        font-size: 1.2rem;
    }

    .checkmark-circle {
        width: 90px;
        height: 90px;
    }

    .credits-celebration {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .action-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .social-buttons,
    .support-buttons {
        flex-direction: column;
        align-items: center;
    }

    .social-btn,
    .support-btn {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .payment-status-card {
        padding: 2rem 1.5rem;
    }

    .status-title {
        font-size: 1.8rem;
    }

    .confetti-piece {
        font-size: 1.5rem;
    }
}

.footer-links a, .auth-switch a {
    color: var(--deep-brown);
    text-decoration: none;
}

.footer-links a:hover, .auth-switch a:hover {
    color: var(--accent-gold);
}

.legal-page h2 {
    margin-top: 25px;
}

.legal-page ul {
    margin-top: 10px;
    margin-left: 50px;
    margin-bottom: 25px;
}