/* ============================================================
   NutriCampus Registrierung — Premium Redesign
   Fonts: DM Sans + Playfair Display (via Google Fonts)
   ============================================================ */

#ncr-register-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a2332;
    line-height: 1.6;
}

/* --- Zwei-Spalten-Layout --- */
.ncr-layout {
    display: grid;
    grid-template-columns: 38% 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* --- Sidebar --- */
.ncr-sidebar {
    position: sticky;
    top: 2rem;
}
.ncr-sidebar-inner {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.ncr-sidebar-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 1.25rem;
    line-height: 1.3;
}
.ncr-sidebar-price {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.ncr-sidebar-price-main {
    font-size: 2rem;
    font-weight: 700;
    color: #1a2332;
}
.ncr-sidebar-price-sub {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 400;
}
.ncr-sidebar-divider {
    border: none;
    border-top: 1px solid #e8ede9;
    margin: 1.25rem 0;
}

/* Benefits */
.ncr-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.ncr-benefits li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a2332;
}
.ncr-benefits svg {
    flex-shrink: 0;
}

/* Trust Badge */
.ncr-trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(55, 106, 177, 0.06);
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #376ab1;
}

/* --- Schrittanzeige --- */
.ncr-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.75rem;
}
.ncr-step {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #b0b8c4;
    white-space: nowrap;
}
.ncr-step.active { color: #3daa6d; }
.ncr-step.completed { color: #376ab1; }

.ncr-step-num {
    display: inline-flex;
    width: 30px; height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s;
}
.ncr-step.active .ncr-step-num {
    background: #3daa6d;
    color: #fff;
}
.ncr-step.completed .ncr-step-num {
    background: #376ab1;
    color: #fff;
}

.ncr-step-line {
    flex: 0 0 40px;
    height: 2px;
    background: #e2e6ea;
    margin: 0 0.5rem;
}

/* --- Card --- */
.ncr-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    overflow: hidden;
}
.ncr-card-header {
    padding: 2rem 2rem 0;
}
.ncr-card-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #1a2332;
    margin: 0;
}
.ncr-card-header p {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 400;
}
.ncr-card-body {
    padding: 1.75rem 2rem 2rem;
}

/* --- Formular --- */
.ncr-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.ncr-col { flex: 1; }
.ncr-col label,
.ncr-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: #1a2332;
}
.ncr-req { color: #dc3545; }
.ncr-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e6ea;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #1a2332;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.ncr-input:focus {
    border-color: #376ab1;
    box-shadow: 0 0 0 3px rgba(55,106,177,0.15);
    outline: none;
}
.ncr-input::placeholder { color: #aab4c0; }
.ncr-hint { font-size: 0.78rem; color: #8893a7; margin-top: 0.3rem; }

/* --- Bestelluebersicht --- */
.ncr-order-summary {
    background: #fff;
    border: 1px solid #e8ede9;
    border-top: 2px solid #3daa6d;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}
.ncr-order-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.ncr-order-price { text-align: right; }
.ncr-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a2332;
}
.ncr-text-muted { color: #8893a7; margin-top: 0.2rem; font-size: 0.85rem; }
.ncr-text-center { text-align: center; }

/* --- Zahlungsplan --- */
.ncr-plan-selector { margin: 1.5rem 0; }
.ncr-plan-hint {
    font-size: 0.72rem;
    color: #9CA7B8;
    text-align: center;
    margin: 0.6rem 0 0;
    font-style: italic;
}
.ncr-plan-heading {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a2332;
}
.ncr-plan-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}
.ncr-plan-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border: 2px solid #e2e6ea;
    border-radius: 12px;
    cursor: pointer !important;
    transition: all 0.2s;
    position: relative;
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
    background: #fff;
}
.ncr-plan-option * {
    pointer-events: none;
}
.ncr-plan-option:hover {
    border-color: #b0d4c0;
    background: #fafffe;
}
.ncr-plan-option.selected {
    border-color: #3daa6d;
    background: rgba(61, 170, 109, 0.04);
}

/* "Beste Option" Badge */
.ncr-plan-badge {
    position: absolute;
    top: -9px;
    right: 10px;
    background: #3daa6d;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    display: none;
}
.ncr-plan-option.selected .ncr-plan-badge {
    display: inline-block;
}
.ncr-plan-option:first-child .ncr-plan-badge {
    display: inline-block;
}

.ncr-plan-check {
    width: 20px; height: 20px;
    border: 2px solid #d0d5dc;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}
.ncr-plan-option.selected .ncr-plan-check {
    border-color: #3daa6d;
}
.ncr-plan-option.selected .ncr-plan-check::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #3daa6d;
}
.ncr-plan-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    min-width: 0;
}
.ncr-plan-name { font-weight: 600; font-size: 0.85rem; color: #1a2332; }
.ncr-plan-price { font-weight: 700; color: #1a2332; font-size: 0.9rem; white-space: nowrap; }
.ncr-plan-price small { font-weight: 400; color: #8893a7; font-size: 0.75rem; }

/* --- Rabattcode --- */
.ncr-coupon-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e8ede9;
}
.ncr-coupon-toggle {
    font-size: 0.8rem;
    color: #8893a7;
    text-decoration: none;
    transition: color 0.2s;
}
.ncr-coupon-toggle:hover { color: #376ab1; text-decoration: underline; }
.ncr-coupon-inner { margin-top: 0.5rem; }
.ncr-coupon-row { display: flex; gap: 0.5rem; }
.ncr-coupon-row .ncr-input { flex: 1; }
.ncr-input-sm { padding: 10px 14px; font-size: 0.85rem; }
.ncr-btn-sm {
    padding: 10px 18px;
    font-size: 0.8rem;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
}
.ncr-feedback { font-size: 0.85rem; margin-top: 0.3rem; }
.ncr-feedback-ok { color: #3daa6d; }
.ncr-feedback-err { color: #dc3545; }

/* --- Buttons --- */
.ncr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #3daa6d;
    color: #fff;
    border: none;
    padding: 15px 2rem;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    letter-spacing: 0.01em;
}
.ncr-btn:hover {
    background: #339b5e;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(61,170,109,0.3);
    color: #fff;
}
.ncr-btn:disabled {
    background: #b0d4c0;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}
.ncr-btn-full { width: 100%; text-align: center; }
.ncr-btn-outline {
    background: transparent;
    color: #376ab1;
    border: 1.5px solid #376ab1;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.ncr-btn-outline:hover { background: #376ab1; color: #fff; }
.ncr-btn-link {
    background: none;
    border: none;
    color: #376ab1;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0;
    margin-bottom: 1.25rem;
    transition: color 0.2s;
}
.ncr-btn-link:hover { color: #1a2332; text-decoration: underline; }

/* --- Stripe Card Element --- */
.ncr-card-field { padding-top: 12px; min-height: 44px; }
.ncr-field { margin-bottom: 1rem; }
.ncr-field-error { color: #dc3545; font-size: 0.8rem; margin-top: 0.3rem; }

/* --- Alerts --- */
.ncr-alert {
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.ncr-alert-error {
    background: #fdf0f0;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* --- Spinner --- */
.ncr-spinner {
    display: inline-block;
    width: 1rem; height: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ncr-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-left: 0.5rem;
}
@keyframes ncr-spin { to { transform: rotate(360deg); } }

/* --- Erfolgsseite --- */
.ncr-success { text-align: center; padding: 2.5rem 1rem; }
.ncr-success-icon { margin-bottom: 1.25rem; }
.ncr-success h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    margin: 0 0 1rem;
    color: #1a2332;
}

/* --- Raten-Info --- */
.ncr-plan-payment-info {
    background: rgba(55,106,177,0.06);
    border: 1px solid rgba(55,106,177,0.12);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    color: #376ab1;
    text-align: center;
    margin-top: 0.75rem;
    font-weight: 500;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .ncr-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .ncr-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    #ncr-register-wrap {
        padding: 1rem 0.5rem;
    }
    .ncr-row { flex-direction: column; gap: 0; }
    .ncr-card-body { padding: 1.25rem; }
    .ncr-card-header { padding: 1.5rem 1.25rem 0; }
    .ncr-plan-options { grid-template-columns: 1fr; }
    .ncr-order-row { flex-direction: column; gap: 0.5rem; }
    .ncr-order-price { text-align: left; }
    .ncr-sidebar-inner { padding: 1.25rem; }
    .ncr-sidebar-title { font-size: 1.25rem; }
    .ncr-sidebar-price-main { font-size: 1.5rem; }
    .ncr-benefits { gap: 0.5rem; }
    .ncr-benefits li { font-size: 0.82rem; }
    .ncr-steps { gap: 0; }
    .ncr-step-line { flex: 0 0 20px; }
    .ncr-step-label { font-size: 0.7rem; }
}
