/* ===== VARIABLEN ===== */
:root {
    --primary-color: #d4af37;
    --secondary-color: #8b4513;
    --accent-color: #f4f1e8;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #bfbfbf;
    --gradient-primary: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    --gradient-secondary: linear-gradient(135deg, #8b4513 0%, #654321 100%);
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --text-color: #333;
    --button-color: #d4af37;
    --button-text-color: #fff;
    --voucher-section-text-color: #d4af37;
    --voucher-section-text-hover-color: #ffffff;
    --voucher-section-button-border-color: #d4af37;
    --voucher-section-button-hover-color: #d4af37;
    --voucher-value-color: #666666;
    --voucher-value-color-selected: #d4af37;

    /* Neue, bereichsspezifische Design-Variablen (Defaults) */
    --header-bg: #ffffff;
    --header-text: #2c2c2c;
    --hero-bg: #d4af37; /* fallback: primary */
    --hero-text: #ffffff;
    --main-bg: #f8f9fa;
    --main-text: #2c2c2c;
    --contact-bg: #ffffff;
    --contact-text: #2c2c2c;
    --footer-bg: #2c2c2c;
    --footer-text: #ffffff;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--main-text);
    background-color: var(--main-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* ===== HEADER ===== */
.header-section {
    background: var(--header-bg);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.logo-img {
    height: 55px;
    margin-right: 10px;
    max-width: 250px;
    object-fit: contain;
    transition: var(--transition);
}

/* Logo im Header etwas größer auf größeren Bildschirmen */
@media (min-width: 768px) {
    .logo-img {
        height: 60px;
        max-width: 280px;
    }
}

.brand-text {
    color: var(--header-text);
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    color: var(--header-text) !important;
    font-weight: 500;
    margin: 0 15px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--hero-text);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary {
    background: var(--button-color) !important;
    border: 2px solid var(--button-color) !important;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
    color: var(--button-text-color) !important;
}

.btn-primary:hover {
    background: var(--button-text-color) !important;
    color: var(--button-color) !important;
    border-color: var(--button-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.btn-primary:active,
.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary.active,
.btn-primary.show {
    background: var(--button-text-color) !important;
    color: var(--button-color) !important;
    border-color: var(--button-color) !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15) !important;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.beauty-placeholder {
    background: rgba(128, 128, 128, 0.15);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.beautyvoucher-logo {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ===== VOUCHER SECTION ===== */
.voucher-section {
    padding: 80px 0;
    background: var(--main-bg);
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.step-container {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    margin-bottom: 2rem;
    /* Scroll-Margin für Desktop: Header ist fixiert (ca. 70-80px) + etwas Abstand = 120px */
    scroll-margin-top: 120px;
}

.step-title {
    color: var(--voucher-section-text-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* ===== DESIGN SLIDER ===== */
.design-slider-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.design-slider {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    will-change: transform;
    transition: transform 0.35s ease;
}

.design-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--voucher-section-button-border-color);
    background: var(--white);
    color: var(--voucher-section-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.design-nav-btn:hover {
    background: var(--voucher-section-button-hover-color);
    color: var(--voucher-section-text-hover-color);
    border-color: var(--voucher-section-button-hover-color);
}

.design-prev { left: -12px; }
.design-next { right: -12px; }

.design-option {
    flex: 0 0 280px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid transparent;
}

.design-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.design-option.active {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* Nicht-ausgewählte Vorlagen abdunkeln für besseren Kontrast */
.design-slider .design-option:not(.selected) {
    opacity: 0.5;
    filter: grayscale(30%);
}

.design-slider .design-option:not(.selected):hover {
    opacity: 0.8;
    filter: grayscale(10%);
}

.design-option.selected {
    border: 4px solid var(--voucher-section-button-border-color) !important;
    border-radius: var(--border-radius);
    background: var(--accent-color);
    box-shadow: var(--shadow-medium) !important;
    transform: translateY(-6px);
    position: relative;
    opacity: 1 !important;
    filter: none !important;
    z-index: 5;
}

/* Großes "Ausgewählt"-Banner oben auf der Vorlage */
.design-option.selected::before {
    content: '✓ AUSGEWÄHLT';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--voucher-section-button-border-color) 0%, #b8941f 100%);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
    padding: 8px;
    text-align: center;
    z-index: 15;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.design-option.selected:hover {
    border: 4px solid var(--voucher-section-button-border-color) !important;
    box-shadow: var(--shadow-medium) !important;
    transform: translateY(-8px);
}

.design-preview {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
    width: 100%;
    padding: 0.25rem;
    box-sizing: border-box;
    gap: 0;
}

.design-preview.has-template h4,
.design-preview.has-template p {
    display: none;
}

.template-preview {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.template-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 14px;
}

.elegant-design {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.modern-design {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.romantic-design {
    background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%);
}

.design-preview h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.design-preview p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== AMOUNT SELECTION ===== */
.amount-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.amount-option {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.amount-option:hover {
    border-color: var(--voucher-value-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.amount-option.selected {
    border-color: var(--voucher-value-color-selected);
    background: var(--accent-color);
}

.amount-option.selected .amount {
    color: var(--voucher-value-color-selected);
}

.amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--voucher-value-color);
}

.custom-amount .form-control {
    border-radius: var(--border-radius);
    border: 2px solid var(--light-gray);
    transition: var(--transition);
}

.custom-amount .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* ===== PERSONALIZATION ===== */
.personalization-form .form-control,
.order-form .form-control {
    border-radius: var(--border-radius);
    border: 2px solid var(--dark-gray);
    transition: var(--transition);
}

.personalization-form .form-control:focus,
.order-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.nowrap {
    white-space: nowrap;
}

/* Kleine Schriftgröße für Text in Klammern */
.small-text {
    font-size: 0.85em;
}

/* ===== PAYMENT METHODS ===== */
.payment-methods {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    align-items: stretch;
}

.payment-option {
    flex: 1;
    max-width: 300px; /* Maximale Breite für einzelne Zahlungsart */
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Vertikale Zentrierung des Inhalts */
    gap: 0;
    min-height: 6rem; /* Mindesthöhe für konsistente Darstellung */
}

.payment-option:hover {
    border-color: var(--voucher-value-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.payment-option.selected {
    border-color: var(--voucher-value-color-selected);
    background: var(--white);
}

.payment-icon {
    font-size: 2rem;
    color: var(--voucher-value-color);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;  /* Feste Höhe entspricht Bildhöhe für perfekte Zentrierung */
    width: 100%;     /* Volle Breite für horizontale Zentrierung */
}

.payment-icon img {
    height: 3rem;  /* Feste Höhe für beide Logos */
    width: auto;   /* Breite passt sich an, Seitenverhältnis bleibt erhalten */
    object-fit: contain;
    display: block; /* Entfernt mögliche inline-Elemente Eigenschaften */
    margin: 0 auto; /* Horizontale Zentrierung */
}

/* Textfarbe der Zahlungsart standard/selektiert */
.payment-option span {
    color: var(--voucher-value-color);
}

.payment-option.selected .payment-icon,
.payment-option.selected span {
    color: var(--voucher-value-color-selected);
}

/* Klarna Branding Button (neutral) */
.klarna-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    border-radius: 999px; /* pill */
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.05s ease;
    cursor: pointer;
}

.klarna-button:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.klarna-button:active {
    transform: translateY(1px);
}

.klarna-button img {
    height: 20px;
    width: auto;
    display: inline-block;
}

/* ===== ORDER SUMMARY ===== */
.order-summary {
    background: var(--accent-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
}

.order-summary h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    color: var(--text-dark);
}

.summary-item > span:first-child {
    margin-right: 0.5rem;
}

.summary-item > span:last-child {
    text-align: right;
    word-wrap: break-word;
    max-width: 85%;
    min-width: 0;
    overflow-wrap: break-word;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-color);
}

/* ===== STEP NAVIGATION ===== */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Schritt 1: Nur Weiter-Button rechts ausrichten */
#step1 .step-navigation {
    justify-content: flex-end;
}

/* PayPal Button Container in step-navigation */
.step-navigation #paypal-button-container {
    display: inline-block;
    margin-left: auto;
    flex: 0 0 auto;
    min-width: 245px;
    height: 47px;
}

.step-navigation #paypal-button-container:empty {
    display: none;
}

/* PayPal Buttons Styling - Größe wie Klarna-Button (245px x 47px) */
.step-navigation #paypal-button-container iframe {
    width: 245px !important;
    height: 47px !important;
    min-width: 245px !important;
    min-height: 47px !important;
}

.step-navigation #paypal-button-container > div {
    display: inline-block;
    width: 245px;
    height: 47px;
}

.btn-outline-secondary {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    border-radius: var(--border-radius);
    padding: 10px 25px;
    transition: var(--transition);
}

.btn-outline-secondary:hover {
    background: var(--text-light);
    color: var(--white);
}

.btn-outline-primary {
    border: 2px solid var(--voucher-section-button-border-color);
    color: var(--voucher-section-text-color);
    border-radius: var(--border-radius);
    padding: 10px 25px;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--voucher-section-button-hover-color) !important;
    color: var(--voucher-section-text-hover-color) !important;
    border: 2px solid var(--voucher-section-button-hover-color) !important;
}

.btn-outline-primary:active,
.btn-outline-primary:focus,
.btn-outline-primary:focus-visible,
.btn-outline-primary.active,
.btn-outline-primary.show {
    background: var(--voucher-section-button-hover-color) !important;
    color: var(--voucher-section-text-hover-color) !important;
    border: 2px solid var(--voucher-section-button-hover-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25) !important;
}

/* Disabled-Zustand: Weiter-Button in grau anzeigen */
.btn-outline-primary:disabled {
    border: 2px solid #6c757d;
    color: #6c757d;
    background-color: transparent;
    cursor: not-allowed;
    opacity: 0.65;
}

.btn-outline-primary:disabled:hover {
    border: 2px solid #6c757d;
    color: #6c757d;
    background-color: transparent;
    transform: none;
}

.btn-success {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 80px 0;
    background: var(--contact-bg);
}

.contact-info h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: var(--contact-text);
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
}

/* Logo im Kontakt-Bereich */
.contact-logo {
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer-section {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 2rem 0;
}

.footer-link {
    color: var(--footer-text);
    text-decoration: none;
    margin-left: 1rem;
    transition: var(--transition);
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Mobile: Nur 1 Vorlage gleichzeitig anzeigen, zentriert */
    .design-slider-wrapper {
        overflow: hidden;
        position: relative;
        width: 100%;
    }
    
    .design-slider {
        flex-direction: row; /* Horizontal bleiben */
        gap: 0; /* Gap entfernen auf Mobile */
        margin-bottom: 2rem;
        padding-bottom: 0; /* Padding entfernen */
    }
    
    .design-option {
        flex: 0 0 100%; /* Volle Breite pro Element */
        min-width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Navigations-Buttons für Mobile besser positionieren */
    .design-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .design-prev {
        left: 5px;
    }
    
    .design-next {
        right: 5px;
    }
    
    .amount-selection {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    /* Step-Navigation: Buttons bleiben nebeneinander auf Mobile */
    .step-navigation {
        flex-direction: row;
        gap: 1rem;
    }
    
    .step-navigation .btn {
        flex: 1;
    }
    
    /* Scroll-Margin für bessere Positionierung beim automatischen Scrollen auf Mobile */
    .step-container {
        scroll-margin-top: 80px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .step-container {
        padding: 1.5rem;
        /* Scroll-Margin für bessere Positionierung beim automatischen Scrollen */
        scroll-margin-top: 100px;
    }
    
    .amount-selection {
        grid-template-columns: 1fr;
    }
}

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

.step-container {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* ===== SUCCESS STATES ===== */
.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

/* ===== SUCCESS PAGE ===== */
.success-container {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-medium);
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
}

.success-icon {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease-out;
}

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

.success-title {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.success-container .success-message {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.success-details {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.success-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.success-detail-item:last-child {
    border-bottom: none;
}

.success-detail-label {
    font-weight: 600;
    color: var(--text-dark);
}

.success-detail-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.success-info-box {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.success-info-box p {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.success-info-box p:last-child {
    margin-bottom: 0;
}

.success-info-box i {
    color: #007bff;
    margin-right: 0.5rem;
}

.success-downloads {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.success-downloads h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.download-buttons .btn {
    min-width: 200px;
}

.success-actions {
    text-align: center;
}

.success-actions .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .success-container {
        padding: 2rem 1.5rem;
    }
    
    .success-icon {
        font-size: 4rem;
    }
    
    .success-title {
        font-size: 1.5rem;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .download-buttons .btn {
        width: 100%;
        min-width: auto;
    }
    
    .success-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .success-detail-value {
        font-size: 1rem;
    }
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

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

.loading-content {
    text-align: center;
}

.loading-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary-color, #d4af37);
    font-weight: 700;
    letter-spacing: 2px;
}

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

/* Bild-Logo im Ladeoverlay */
.loading-logo {
    display: inline-block;
    width: 500px;
    max-width: 80vw;
    height: auto;
}
@media (max-width: 768px) {
    .loading-logo {
        width: 350px;
    }
}
@media (max-width: 576px) {
    .loading-logo {
        width: 280px;
    }
}

/* SVG-Größe im Ladeoverlay */
.loading-content svg {
    width: 500px;
    max-width: 80vw;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .loading-content svg {
        width: 350px;
    }
}

@media (max-width: 576px) {
    .loading-content svg {
        width: 280px;
    }
}

/* Animation für die gift-Gruppe im Logo */
.loading-content #gift {
    transform-origin: 50.05% 43.93%;
    animation: rotateGift 2s ease-in-out 2;
    animation-fill-mode: forwards;
    animation-delay: 0.2s;
}

/* Rechteck-Hintergrund transparent machen, damit darunterliegende Elemente sichtbar bleiben */
.loading-content #gift rect.st3 {
    fill: transparent;
    pointer-events: none;
}

@keyframes rotateGift {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(720deg);
    }
}

