/* Urlaub im Weingarten - 2-Step Shop für Bauernmarkt */

:root {
    --wine: #7B1F3A;
    --wine-dark: #5A1528;
    --green: #4A7C4C;
    --cream: #FAF7F2;
    --gold: #C9A87C;
    --text: #2D2D2D;
    --gray: #666;
}

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

body {
    font-family: 'Lato', -apple-system, sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.simple-header {
    background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%);
    padding: 24px 20px;
    text-align: center;
    color: white;
}

.logo h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.logo p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Container */
.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

/* Info Banner */
.info-banner {
    background: var(--green);
    color: white;
    padding: 14px 16px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Form Sections */
.form-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: none;
}

.form-section.active {
    display: block;
}

.form-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--wine);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-field {
    margin-bottom: 16px;
}

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

.form-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1.05rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-field input:focus {
    border-color: var(--wine);
    box-shadow: 0 0 0 3px rgba(123, 31, 58, 0.1);
    outline: none;
}

.form-field input:invalid:not(:placeholder-shown) {
    border-color: #d32f2f;
}

.form-field input::placeholder {
    color: #aaa;
}

/* Product Rows */
.product-step-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f8f8f8;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.product-step-row:hover {
    border-color: var(--gold);
    background: #fff;
}

.product-step-row.featured {
    background: linear-gradient(135deg, #fff9f5 0%, #fff 100%);
    border-color: var(--gold);
}

.product-step-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.product-icon-large {
    font-size: 2.5rem;
}

.product-step-price {
    color: var(--wine);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 2px;
}

/* Stepper Buttons */
.qty-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--wine);
    color: white;
    font-size: 1.4rem;
    font-weight: 300;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.qty-btn:hover {
    background: var(--wine-dark);
    transform: scale(1.05);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.qty-display {
    min-width: 40px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

/* Delivery Section */
.delivery-section {
    margin: 24px 0;
    padding-top: 20px;
    border-top: 2px dashed #eee;
}

.delivery-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--wine);
    margin-bottom: 12px;
}

.delivery-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #f8f8f8;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.delivery-option:hover,
.delivery-option:has(input:checked) {
    background: #fff;
    border-color: var(--gold);
}

.delivery-option input[type="radio"] {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: var(--wine);
}

.delivery-option span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.delivery-option strong {
    font-size: 1rem;
}

.delivery-option small {
    color: var(--gray);
    font-size: 0.85rem;
}

/* Order Total Box */
.order-total-box {
    background: linear-gradient(135deg, #fff9f5 0%, #fff 100%);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.total-row:last-child {
    border-bottom: none;
}

.total-row.grand {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid var(--gold);
    font-size: 1.3rem;
}

.total-row.grand span:last-child {
    color: var(--wine);
    font-weight: 700;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(123, 31, 58, 0.35);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 12px 20px;
    background: transparent;
    color: var(--gray);
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #f5f5f5;
    border-color: var(--gray);
}

.button-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}

.button-row .btn-primary {
    flex: 1;
    margin-top: 0;
}

/* Success View */
.success-content {
    text-align: center;
    padding: 40px 20px;
}

.success-icon-big {
    font-size: 5rem;
    margin-bottom: 20px;
}

.success-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--green);
    margin-bottom: 20px;
}

.success-content p {
    margin-bottom: 12px;
    color: var(--text);
}

.next-steps {
    list-style: none;
    text-align: left;
    max-width: 280px;
    margin: 20px auto;
    color: var(--gray);
}

.next-steps li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.next-steps li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: bold;
}

/* Footer */
.simple-footer {
    text-align: center;
    padding: 24px 20px;
    color: var(--gray);
    font-size: 0.9rem;
}

.simple-footer a {
    color: var(--wine);
    text-decoration: none;
}

/* Disclaimer */
.disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 16px;
    line-height: 1.5;
}

/* Badge */
.badge {
    display: inline-block;
    background: var(--gold);
    color: var(--wine-dark);
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 6px;
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .form-section {
        padding: 20px;
        border-radius: 12px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        font-size: 1.6rem;
    }
    
    .product-step-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .qty-stepper {
        align-self: stretch;
        justify-content: center;
    }
}

/* Focus states */
.btn-primary:focus,
.btn-secondary:focus,
input:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* Error state */
input.error {
    border-color: #d32f2f !important;
    background: #fff5f5;
}

/* Loading spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

/* ZIP Notice Styles */
.zip-notice {
    font-size: 0.85rem;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #f5f5f5;
    color: #666;
}

.zip-notice.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.zip-notice.info {
    background: #e3f2fd;
    color: #1565c0;
}

#delivery-row {
    color: inherit;
}

#delivery-row[style*="e65100"] {
    font-weight: bold;
}
