:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --secondary-color: #00cc66;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --error-color: #ff4444;
    --success-color: #00cc66;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* Checkout Layout */
.checkout-section {
    padding: 2rem 0 4rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Checkout Steps */
.checkout-steps {
    display: flex;
    gap: 1rem;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.step {
    flex: 1;
    padding: 1rem;
    text-align: center;
    background: var(--bg-light);
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: var(--transition);
}

.step.active {
    background: var(--primary-color);
    color: white;
}

/* Checkout Header */
.checkout-header {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.checkout-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.checkout-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Login Section */
.login-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.login-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.login-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.login-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.login-email {
    color: var(--primary-color);
}

.login-google:hover {
    border-color: #4285f4;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
}

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

.divider span {
    padding: 0 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Address & Shipping Sections */
.address-section,
.shipping-section,
.notes-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.address-section h2,
.shipping-section h2,
.notes-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    margin-bottom: 0;
}

/* Forms */
.address-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-inline input {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* Versandoptionen */
.shipping-info-box {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #e3f2fd;
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.shipping-info-box svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.shipping-info-box p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shipping-option {
    display: block;
    cursor: pointer;
    transition: var(--transition);
}

.shipping-option input[type="radio"] {
    display: none;
}

.shipping-option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-white);
    transition: var(--transition);
}

.shipping-option:hover .shipping-option-content {
    border-color: var(--primary-color);
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.shipping-option input[type="radio"]:checked + .shipping-option-content {
    border-color: var(--primary-color);
    background: rgba(0, 102, 204, 0.05);
    box-shadow: var(--shadow);
}

.shipping-option-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.shipping-option-header svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.shipping-option-details {
    display: flex;
    flex-direction: column;
}

.shipping-option-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.shipping-option-time {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.shipping-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

/* Order Summary */
.order-summary {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.summary-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.summary-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.summary-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    background: var(--bg-light);
    flex-shrink: 0;
}

.summary-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-item-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.3;
}

.summary-item-qty {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.summary-item-price {
    font-weight: 600;
    color: var(--primary-color);
    align-self: flex-end;
}

.summary-totals {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.summary-row span:last-child {
    font-weight: 600;
}

.summary-tax {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.summary-total {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    padding-top: 0.75rem;
    border-top: 2px solid var(--border-color);
}

/* Trust Badges */
.trust-badges {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trust-badge img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.trust-badge span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Features Strip */
.features-strip {
    background: var(--bg-white);
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.feature-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.feature-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .checkout-steps {
        gap: 0.5rem;
        padding: 1rem;
    }

    .step {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .login-options {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .checkout-actions {
        flex-direction: column-reverse;
    }

    .checkout-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .shipping-option-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .shipping-price {
        align-self: flex-end;
    }
}