/* WEMOVE Gutschein-Shop CSS - 3-Stufen-Wizard */

/* ========== TRUST BADGES ========== */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex: 1;
    max-width: 200px;
}

.badge-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.badge-icon {
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.badge-content {
    text-align: left;
}

.badge-title {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 2px;
    line-height: 1.2;
}

.badge-subtitle {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.3;
}

/* Responsive Trust Badges */
@media (max-width: 768px) {
    .trust-badges {
        flex-direction: column;
        gap: 12px;
        padding: 20px 15px;
    }
    
    .badge-item {
        max-width: none;
        padding: 12px 15px;
    }
    
    .badge-icon {
        font-size: 24px;
    }
    
    .badge-title {
        font-size: 13px;
    }
    
    .badge-subtitle {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .trust-badges {
        margin-bottom: 20px;
        padding: 15px 10px;
    }
    
    .badge-item {
        gap: 8px;
        padding: 10px 12px;
    }
}

/* ========== MAIN CONTAINER ========== */
.wemove-gutschein-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-radius: 20px;
    box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
    overflow: hidden;
}

/* ========== LANDING SCREEN ========== */
.gutschein-landing {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #67b9ea 0%, #e74540 100%);
    border-radius: 20px;
    margin: 0;
    transition: all 0.5s ease;
}

.landing-header {
    margin-bottom: 50px;
    margin-top: 50px;
}

.landing-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white !important;
    margin: 0 0 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}

.landing-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
}

.landing-content {
    max-width: 600px;
    margin: 0 auto;
}

.gutschein-preview-container {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 20px;
    overflow: hidden;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
}

.gutschein-preview-container:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.gutschein-preview-card {
    position: relative;
    background: white;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gutschein-background {
    width: 100%;
    height: auto;
    display: block;
}

.cta-section {
    background: white;
    padding: 30px;
    border-radius: 0 0 20px 20px;
}

.cta-badge {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    animation: ctaPulse 2s ease-in-out infinite;
}

.cta-text {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 15px 0 25px;
    font-weight: 500;
}

.cta-benefits {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.benefit {
    background: #f8f9ff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    font-weight: 600;
}

@keyframes ctaPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 35px rgba(255, 107, 107, 0.6);
    }
}

/* ========== MOBILE OPTIMIERUNG ========== */
@media (max-width: 768px) {
    .gutschein-landing {
        padding: 30px 20px;
        margin: 0;
        border-radius: 20px;
    }
    
    /* Minimierte Landing - komplett ausblenden statt verkleinern */
    .gutschein-landing.minimized {
        display: none;
    }
    
    
    .landing-header {
        margin-bottom: 30px;
        margin-top: 20px;
    }
    
    .landing-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .landing-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .landing-subtitle h3 {
        margin-top: 15px;
        font-size: 1.3rem;
    }
    
    .gutschein-preview-container {
        margin: 0 -10px;
    }
    
    .gutschein-preview-container:hover {
        transform: none; /* Kein Hover auf Mobile */
    }
    
    .gutschein-preview-card {
        border-radius: 10px 10px 0 0;
    }
    
    .cta-section {
        padding: 20px;
        border-radius: 0 0 10px 10px;
    }
    
    .cta-badge {
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    .cta-text {
        font-size: 0.95rem;
        margin: 10px 0 20px;
    }
    
    .cta-benefits {
        flex-direction: column;
        gap: 10px;
    }
    
    .benefit {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    
    /* Wizard auf Mobile */
    .gutschein-wizard {
        margin-top: 0;
        border-radius: 20px;
        padding: 0;
        background: white;
    }
    
    .wizard-steps {
        padding: 15px 10px;
        display: flex !important;
        flex-direction: row !important; /* FORCE horizontal */
        gap: 5px;
        justify-content: center;
        align-items: center;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 20px 20px 0 0;
        flex-wrap: nowrap !important;
    }
    
    .step {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        gap: 5px;
        flex: 0 0 auto;
        width: 30%;
        max-width: 100px;
    }
    
    .step-connector {
        display: flex !important;
        width: 20px;
        flex: 0 0 auto;
        align-self: center;
        margin-top: -15px;
    }
    
    .connector-line {
        height: 2px;
        width: 100%;
        background: rgba(255, 255, 255, 0.3);
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .step-number {
        font-size: 16px;
    }
    
    .step-icon {
        font-size: 18px;
    }
    
    .step-text {
        text-align: center;
    }
    
    .step-title {
        font-size: 12px;
        font-weight: 600;
    }
    
    .step-subtitle {
        font-size: 10px;
        opacity: 0.7;
    }
    
    .step-content {
        padding: 20px;
    }
    
    /* Form Elemente Mobile */
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .form-group input,
    .form-group select {
        font-size: 16px; /* Verhindert Zoom auf iOS */
        padding: 12px;
    }
    
    .betrag-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .betrag-card {
        padding: 15px 10px;
    }
    
    .betrag-value {
        font-size: 16px;
    }
    
    .betrag-label {
        font-size: 11px;
    }
    
    /* Navigation Buttons */
    .step-navigation {
        padding: 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-next,
    .btn-prev {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
    
    /* PLZ Dropdown Mobile */
    .plz-dropdown {
        max-height: 200px;
        width: calc(100% - 40px) !important;
        left: 20px !important;
    }
    
    .plz-item {
        padding: 15px;
    }
    
    .preview-container {
        max-width: 100%;
    }
    
    /* Order Summary */
    .order-summary {
        padding: 20px;
    }
    
    .summary-row {
        font-size: 14px;
    }
    
    /* PayPal Button */
    #paypal-button-container {
        padding: 20px;
    }
}

/* Noch kleinere Screens */
@media (max-width: 480px) {
    .landing-title {
        font-size: 1.5rem !important;
    }
    
    .wizard-steps {
        padding: 10px 5px;
        gap: 3px;
    }
    
    .step {
        width: 28% !important;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
    }
    
    .step-number {
        font-size: 14px;
    }
    
    .step-icon {
        font-size: 16px;
    }
    
    .step-title {
        font-size: 11px;
    }
    
    .step-subtitle {
        display: none; /* Subtitle ausblenden auf sehr kleinen Screens */
    }
    
    .step-connector {
        width: 15px;
    }
    
    .betrag-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Noch kleinere Schriftgrößen für sehr kleine Screens */
    .preview-code {
        font-size: 10px; /* Noch kleiner für Mobile */
    }
    
    .preview-for {
        font-size: 8px; /* Noch kleiner für Mobile */
    }
    
    .preview-amount {
        font-size: 16px; /* Noch kleiner für Mobile */
    }
}

/* Gutschein-Details initial verstecken */
#gutschein-details-section {
    display: none !important;
}

.step-content .form-section {
    display: block !important;
}

/* Override für Details-Section wenn sie gezeigt werden soll */
#gutschein-details-section.show,
#gutschein-details-section:not([style*="display: none"]) {
    display: block !important;
}

/* ========== WIZARD CONTAINER (if not landing) ========== */
.gutschein-wizard {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Button-Stil */
.wemove-form-button {
    font-family: Oswald, sans-serif;
    letter-spacing: 1px;
    background-color: #000;
    color: #fff;
    padding: 12px 20px;
    padding-left: 64px;
    padding-right: 64px;
    border: 1px solid white;
    border-radius: 2px;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
}


.wemove-form-button:hover:not(:disabled) {
    background-color: #fff;
    color: #000;
    border: 1px solid black;
}

.wemove-form-button:disabled {
    background-color: #bdc3c7;
    color: #7f8c8d;
    border: 1px solid #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
}

.wemove-form-button:disabled .monkey-in-button {
    display: none;
}


.monkey-in-button {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 28px;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transition: transform 1s ease, opacity 1s ease;
}


.wemove-form-button:hover .monkey-in-button {
    animation: monkey-jump 1.2s forwards;
}


@keyframes monkey-jump {
    0% {
        left: 0;
        opacity: 1;
    }
    50% {
        transform: translateY(-50%) scale(1.2);
        opacity: 1;
    }
    100% {
        left: calc(100% - 50px);
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}


/* ========== STEP INDICATOR ========== */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(105deg, #000 0%, #e74540 100%);
    color: white;
    position: relative;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.5;
    transition: all 0.3s ease;
    z-index: 2;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 1;
}

.step-circle {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.step.active .step-circle,
.step.completed .step-circle {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
}

.step-number {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    display: block;
}

.step.active .step-number,
.step.completed .step-number {
    display: none;
}

.step-icon {
    font-size: 20px;
    display: none;
}

.step.active .step-icon,
.step.completed .step-icon {
    display: block;
}

.step-text {
    text-align: center;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-subtitle {
    font-size: 12px;
    opacity: 0.8;
}

.step-connector {
    flex: 1;
    max-width: 120px;
    z-index: 1;
}

.connector-line {
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease;
}

.step.completed + .step-connector .connector-line {
    background: rgba(255, 255, 255, 0.8);
}

/* ========== WIZARD STEPS ========== */
.wizard-step {
    display: none;
    padding: 40px;
    min-height: 500px;
}

.wizard-step.active {
    display: block;
    animation: slideInRight 0.5s ease-out;
}

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

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h2 {
    font-size: 28px;
    color: #2c3e50;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.step-header p {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
}

.step-content {
    margin-bottom: 40px;
}

/* ========== FORM SECTIONS ========== */
.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    font-size: 20px;
    color: #34495e;
    margin: 0 0 24px 0;
    font-weight: 600;
    border-bottom: 2px solid #000000;
    padding-bottom: 8px;
}

/* ========== BETRAG GRID ========== */
.betrag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.betrag-card {
    background: #f8f9ff;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 12px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.betrag-card:hover {
    background: #e6f3ff;
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.betrag-card.selected {
    background: #e8f5e8 !important;
    border-color: #4CAF50 !important;
    border-width: 3px !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3) !important;
}

.betrag-card.selected .betrag-value {
    color: #2e7d32 !important;
    font-weight: 800 !important;
}

.betrag-card.selected .betrag-label {
    color: #4CAF50 !important;
    font-weight: 600 !important;
}

.betrag-card.active {
    border-color: #000000;
    background: #000000;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.betrag-card.custom {
    border-style: dashed;
}

.betrag-value {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
}

.betrag-label {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 500;
}

/* ========== FORM GROUPS ========== */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    position: absolute;
    top: 7px;
    left: 16px;
    color: #7f8c8d;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    padding: 0 4px;
    font-weight: 600;
    background: #fafbfc;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    padding-right: 40px; /* Platz für Häkchen */
    font-size: 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: #fafbfc;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:invalid {
    border-color: #e74c3c;
}

/* ========== FLOATING LABELS ========== */
/* Label nach oben schweben wenn Input gefüllt oder fokussiert */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group input.filled + label,
.form-group select:focus + label,
.form-group select:not([value=""]) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -8px;
    left: 12px;
    font-size: 12px;
    color: #000000;
    font-weight: 500;
}

/* Spezielle Behandlung für valide Felder */
.form-group input.valid + label,
.form-group select.valid + label,
.form-group textarea.valid + label {
    top: -8px;
    left: 12px;
    font-size: 12px;
    color: #4CAF50;
    font-weight: 500;
}

.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
    border-color: #4CAF50 !important;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%234CAF50" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.293 9.707a1 1 0 011.414 0L10 12l6.293-6.293a1 1 0 011.414 1.414l-7 7a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    animation: fieldValidated 0.6s ease-out;
}

@keyframes fieldValidated {
    0% {
        background-size: 0;
        border-color: #e1e5e9;
        transform: scale(1);
    }
    30% {
        background-size: 25px;
        border-color: #4CAF50;
        transform: scale(1.02);
    }
    60% {
        background-size: 22px;
        border-color: #4CAF50;
        transform: scale(1.01);
    }
    100% {
        background-size: 20px;
        border-color: #4CAF50;
        transform: scale(1);
    }
}

/* ========== PLZ DROPDOWN ========== */
.plz-dropdown {
    background: white;
    border: 2px solid #e1e5e9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    animation: dropdownFadeIn 0.2s ease-out;
}

.plz-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plz-item:hover {
    background-color: #f8f9ff;
    border-left: 3px solid #4CAF50;
}

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

.plz-code {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.plz-city {
    color: #7f8c8d;
    font-size: 14px;
    text-align: right;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
}

/* ========== CODE GENERATOR ========== */
.code-generator {
    display: flex;
    align-items: center;
    border: 2px solid #e1e5e9;
    overflow: hidden;
    transition: border-color 0.3s ease;
    position: relative;
}

.code-generator:focus-within {
    border-color: #000000;
}

.code-prefix {
    background: #e74540;
    color: white;
    padding: 16px 12px;
    font-weight: 600;
    font-size: 16px;
    z-index: 2;
    position: relative;
}

.code-suffix {
    flex: 1;
    padding: 16px 12px;
    border: none !important;
    font-size: 16px;
    background: white;
    z-index: 1;
    position: relative;
}

.code-suffix:focus {
    outline: none;
}

/* Spezielles Label für Code-Generator */
.form-group:has(.code-generator) label,
.form-group.code-group label {
    position: static;
    display: block;
    margin-bottom: 8px;
    margin-top: 0;
    font-size: 14px;
    color: #34495e;
    font-weight: 500;
    background: transparent;
    padding: 0;
}

.code-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
}

/* ========== TYP-AUSWAHL CARDS ========== */
.typ-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

@media (max-width: 992px) {
    .typ-grid {
        grid-template-columns: 1fr;
    }
}

.typ-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.typ-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #67b9ea;
}

.typ-card:hover .typ-header,
.typ-card.selected .typ-header {
    filter: saturate(120%);
}

.typ-card.selected {
    background: linear-gradient(135deg, #67b9ea 0%, #e74540 100%);
    color: white;
    border-color: transparent;
    transform: scale(1.05);
}

.typ-header {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 13px 13px 0 0;
    filter: saturate(50%);
    transition: filter 0.3s ease;
}

.typ-header-shop {
    background-image: url('../img/WEMOVE-Gutschein-Shop.webp');
}

.typ-header-kurse {
    background-image: url('../img/WEMOVE-Gutschein-Kurse.webp');
}

.typ-header-ferien {
    background-image: url('../img/WEMOVE-Gutschein-Ferien.webp');
}

.typ-content {
    padding: 20px;
}

.typ-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
    color: #2c3e50;
}

.typ-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.typ-card.selected .typ-content {
    background: linear-gradient(135deg, #67b9ea 0%, #e74540 100%);
    color: white;
    border-radius: 0 0 13px 13px;
}

.typ-card.selected .typ-title {
    color: white;
}

.typ-card.selected .typ-description {
    color: rgba(255, 255, 255, 0.9);
}

.typ-link {
    margin-top: 10px;
}

.typ-link a {
    color: #67b9ea;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.typ-card.selected .typ-link a {
    color: white;
    text-decoration: underline;
}

/* ========== EVERSPORTS WIDGET ========== */
#eversports-widget-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.eversports-header {
    text-align: center;
    margin-bottom: 30px;
}

.eversports-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 10px;
}

.eversports-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.btn-back-to-wizard {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back-to-wizard:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* ========== GUTSCHEIN PREVIEW ========== */
.gutschein-preview {
    margin-top: 22px;
    text-align: center;
    clear: both; /* Für gefloatete Elemente davor */
}

.preview-header {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

.preview-container {
    margin: 0 auto;
}

.preview-card.christmas-design {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.preview-card.christmas-design:hover {
    transform: scale(1.02);
}

.gutschein-bg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.gutschein-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    pointer-events: none;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #000;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    font-family: 'Oswald', sans-serif;
    transform: translate(-50%, -50%);
    z-index: 10;
}


/* ========== TEMPLATE-SPEZIFISCHE OVERLAY POSITIONIERUNG ========== */

/* Classic Template - andere Höhe */
.gutschein-overlay.overlay-classic {
    /* Spezifische Positionierung für Classic Templates */
    top: 50%;
    left: 38%;
}

/* Standard Templates (Ferien + Geburtstag) - gleiche Höhe */
.gutschein-overlay.overlay-standard {
    /* Spezifische Positionierung für Ferien & Geburtstag Templates */
    top: 75%;
    left: 38%;
}

/* Fallback für Overlay ohne spezifische Klasse */
.gutschein-overlay:not(.overlay-classic):not(.overlay-standard) {
    top: 50%;
    left: 50%;
}


/* Absolute positionierte Elemente für manuelle Anpassung */
.preview-code {
    position: absolute;
    top: 50%;
    left: 33%;
    transform: translate(-50%, -50%);
}

.preview-for {
    position: absolute;
    text-align: left !important;
    top: 78%;
    left: 21%;
    transform: translate(-50%, -50%);
}

.preview-amount {
    position: absolute;
    top: 48%;
    left: 73%;
    transform: translate(-50%, -50%);
    color: #e74540;
    font-size: 42px;
}

/* ========== ORDER SUMMARY ========== */
.order-summary {
    background: #f8f9ff;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.order-summary h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #2c3e50;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

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

.summary-item.total {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 2px solid #000000;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

/* ========== NAVIGATION BUTTONS ========== */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

/* Spezielle Variante: Button nach Gutschein-Details (zwischen Code und Preview) */
#gutschein-details-section + .step-navigation {
    justify-content: flex-end; /* Rechts ausrichten statt space-between */
    margin: 30px 0 20px 0;
    clear: both;
    overflow: hidden; /* Clearfix für Float */
}

#gutschein-details-section + .step-navigation .wemove-form-button {
    float: right;
    display: block;
    margin: 0;
}

.btn-back,
.btn-test {
    padding: 12px 24px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-back {
    background: #95a5a6;
    color: white;
}

.btn-back:hover {
    background: #7f8c8d;
    transform: translateX(-2px);
}

.btn-next:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.btn-test {
    background: #17a2b8;
    color: white;
}

.btn-test:hover {
    background: #138496;
}

.btn-arrow {
    font-size: 14px;
    font-weight: 400;
}

/* ========== SECURITY NOTICE ========== */
.security-notice {
    background: #e8f5e8;
    border-left: 4px solid #27ae60;
    padding: 16px;
    border-radius: 6px;
    margin-top: 24px;
    font-size: 14px;
    color: #2c3e50;
}

/* ========== LOADING & MESSAGE STATES ========== */
#gutschein-loading,
#gutschein-erfolg,
#gutschein-fehler {
    display: none;
    text-align: center;
    padding: 60px 40px;
}

/* Loading spezielle Zentrierung */
#gutschein-loading {
    /* Default-Styles - werden von JavaScript überschrieben für Viewport-Zentrierung */
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.loading-content,
.success-content,
.error-content {
    max-width: 400px;
    margin: 0 auto;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

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

.success-icon,
.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.success-details {
    background: #e8f5e8;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
}

.btn-restart,
.btn-retry {
    background: #000000;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.btn-restart:hover,
.btn-retry:hover {
    background: #5a6fd8;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .wemove-gutschein-container {
        border-radius: 8px;
    }
    
    .wizard-steps {
        padding: 20px 16px;
        flex-direction: column;
        gap: 16px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .step-connector {
        display: none;
    }
    
    .wizard-step {
        padding: 24px;
        min-height: auto;
    }
    
    .step-header h2 {
        font-size: 24px;
    }
    
    .betrag-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 12px;
    }
    
    .step-navigation .btn-back,
    .step-navigation .btn-next,
    .step-navigation .btn-test {
        width: 100%;
        justify-content: center;
    }
    
    /* Mobile Schriftgrößen für Preview-Overlay */
    .preview-code {
        font-size: 12px; /* Kleiner als Desktop */
    }
    
    .preview-for {
        font-size: 18px; /* Kleiner als Desktop */
    }
    
    .preview-amount {
        font-size: 26px; /* Kleiner als Desktop (42px) */
    }
}

/* ========== TEMPLATE SELECTION ========== */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.template-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.template-card.selected {
    border: 3px solid #e74540;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.template-preview {
    width: 100%;
    height: 120px;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.template-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.template-preview .no-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 48px;
}

.template-info {
    padding: 15px;
    text-align: center;
}

.template-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
}

.template-card.selected .template-name {
    color: #e74540;
}

.template-type {
    font-size: 14px;
    color: #666;
    text-transform: capitalize;
}

.template-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.template-badge.xmas {
    background: #d42c29;
    color: white;
}

.template-badge.bday {
    background: #ffd700;
    color: #333;
}

.template-badge.classic {
    background: #67b9ea;
    color: white;
}

.template-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.template-loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #e74540;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

