/* ============================================
   IOS Tischkarten — Frontend Styles
   Brand: Playfair Display + Outfit
   Colors: #19282C (dark), #C4973B (gold), #FAF8F4 (warm)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── Container ────────────────────────────── */
.ios-tk-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Outfit', sans-serif;
    color: #19282C;
    -webkit-font-smoothing: antialiased;
}

.ios-tk-wrap *,
.ios-tk-wrap *::before,
.ios-tk-wrap *::after {
    box-sizing: border-box;
}

/* ── Card ─────────────────────────────────── */
.ios-tk-card {
    background: #FFFFFF;
    border: 1px solid #E8E5DF;
    border-radius: 20px;
    padding: 48px 40px;
    position: relative;
}

/* ── Header ───────────────────────────────── */
.ios-tk-header {
    margin-bottom: 24px;
}

.ios-tk-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #5A6A6E;
    margin-bottom: 10px;
}

.ios-tk-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: #19282C;
    margin: 0 0 10px;
    line-height: 1.2;
}

.ios-tk-event-date {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #C4973B;
    margin: 0;
}

.ios-tk-event-date i {
    margin-right: 6px;
    font-size: 13px;
}

/* ── Info callout ─────────────────────────── */
.ios-tk-callout {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #FAF8F4;
    border-left: 3px solid #C4973B;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin-bottom: 32px;
}

.ios-tk-callout i {
    color: #C4973B;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.ios-tk-callout p {
    font-size: 14px;
    color: #5A6A6E;
    line-height: 1.6;
    margin: 0;
}

/* ── Product row ──────────────────────────── */
.ios-tk-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #FAF8F4;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.ios-tk-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ios-tk-product-info strong {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #19282C;
}

.ios-tk-product-detail {
    font-size: 13px;
    color: #5A6A6E;
    font-weight: 400;
}

.ios-tk-product-price {
    font-size: 14px;
    color: #C4973B;
    font-weight: 600;
}

/* ── Stepper ──────────────────────────────── */
.ios-tk-anzahl-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ios-tk-stepper {
    display: flex;
    align-items: center;
    border: 1px solid #E8E5DF;
    border-radius: 12px;
    overflow: hidden;
    background: #FFFFFF;
}

.ios-tk-stepper-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 500;
    color: #19282C;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.ios-tk-stepper-btn:hover {
    background: #FAF8F4;
}

.ios-tk-stepper-input {
    width: 44px;
    height: 40px;
    border: none;
    border-left: 1px solid #E8E5DF;
    border-right: 1px solid #E8E5DF;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #19282C;
    background: #FFFFFF;
    -moz-appearance: textfield;
}

.ios-tk-stepper-input::-webkit-outer-spin-button,
.ios-tk-stepper-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── Total ────────────────────────────────── */
.ios-tk-total {
    text-align: right;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    color: #19282C;
    padding: 12px 0 28px;
    border-bottom: 1px solid #E8E5DF;
    margin-bottom: 28px;
}

.ios-tk-total strong {
    font-weight: 700;
    color: #C4973B;
    font-size: 22px;
}

/* ── Section label ────────────────────────── */
.ios-tk-section-label {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #5A6A6E;
    margin-bottom: 20px;
}

/* ── Form fields ──────────────────────────── */
.ios-tk-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.ios-tk-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ios-tk-field.ios-tk-full {
    flex: 0 0 100%;
}

.ios-tk-form-label {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #19282C;
    margin-bottom: 8px;
}

.ios-tk-required {
    color: #C4973B;
    margin-left: 2px;
}

.ios-tk-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #5A6A6E;
    font-size: 11px;
}

.ios-tk-note {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #5A6A6E;
    font-size: 11px;
}

.ios-tk-input {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #19282C;
    background: #FFFFFF;
    border: 1px solid #E8E5DF;
    border-radius: 12px;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.ios-tk-input:focus {
    border-color: rgba(196, 151, 59, 0.5);
    box-shadow: 0 0 0 3px rgba(196, 151, 59, 0.08);
}

.ios-tk-input::placeholder {
    color: #A0A8AB;
}

.ios-tk-input.ios-tk-field-error {
    border-color: #D94F4F;
    box-shadow: 0 0 0 3px rgba(217, 79, 79, 0.08);
}

/* ── Info note ────────────────────────────── */
.ios-tk-info-note {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #5A6A6E;
    font-style: italic;
    line-height: 1.5;
    margin: 24px 0 20px;
}

/* ── Error display ────────────────────────── */
.ios-tk-errors {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #991B1B;
    line-height: 1.5;
}

.ios-tk-errors ul {
    margin: 0;
    padding: 0 0 0 18px;
}

.ios-tk-errors li {
    margin-bottom: 4px;
}

.ios-tk-field-error-msg {
    font-size: 12px;
    color: #D94F4F;
    margin-top: 4px;
    font-weight: 500;
}

/* ── Step Indicator ───────────────────────── */
.ios-tk-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 0 10px;
}

.ios-tk-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: default;
    flex-shrink: 0;
}

.ios-tk-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    background: #E8E5DF;
    color: #5A6A6E;
    transition: all 0.3s ease;
}

.ios-tk-step-dot.active .ios-tk-step-num,
.ios-tk-step-dot.completed .ios-tk-step-num {
    background: #C4973B;
    color: #FFFFFF;
}

.ios-tk-step-label {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #A0A8AB;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.ios-tk-step-dot.active .ios-tk-step-label,
.ios-tk-step-dot.completed .ios-tk-step-label {
    color: #19282C;
}

.ios-tk-step-line {
    flex: 1;
    height: 2px;
    background: #E8E5DF;
    margin: 0 12px;
    margin-bottom: 22px;
    transition: background 0.3s ease;
}

.ios-tk-step-line.completed {
    background: #C4973B;
}

/* ── Step Content Visibility ─────────────── */
.ios-tk-step-content {
    display: none;
    animation: ios-tk-fadeIn 0.3s ease;
}

.ios-tk-step-content.active {
    display: block;
}

@keyframes ios-tk-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Navigation Buttons ──────────────────── */
.ios-tk-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    gap: 16px;
}

.ios-tk-btn-next,
.ios-tk-btn-back {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 100px;
    padding: 14px 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.ios-tk-btn-next {
    background: #19282C;
    color: #FFFFFF;
    margin-left: auto;
}

.ios-tk-btn-next:hover {
    background: #A67745;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(166, 119, 69, 0.25);
}

.ios-tk-btn-back {
    background: transparent;
    color: #5A6A6E;
    padding-left: 16px;
}

.ios-tk-btn-back:hover {
    color: #19282C;
}

.ios-tk-btn-back i,
.ios-tk-btn-next i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.ios-tk-btn-next:hover i {
    transform: translateX(3px);
}

.ios-tk-btn-back:hover i {
    transform: translateX(-3px);
}

/* ── Review Blocks (Step 3) ──────────────── */
.ios-tk-review-block {
    background: #FAF8F4;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.ios-tk-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E8E5DF;
}

.ios-tk-review-label {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #5A6A6E;
}

.ios-tk-review-edit {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #C4973B;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.ios-tk-review-edit:hover {
    color: #A67745;
    text-decoration: underline;
}

.ios-tk-review-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #19282C;
    padding: 6px 0;
}

.ios-tk-review-total {
    border-top: 1px solid #E8E5DF;
    margin-top: 8px;
    padding-top: 12px;
}

.ios-tk-review-total strong {
    color: #C4973B;
    font-size: 18px;
}

.ios-tk-review-billing {
    font-size: 14px;
    color: #19282C;
    line-height: 1.7;
}

.ios-tk-review-billing .ios-tk-rev-line {
    display: flex;
    gap: 8px;
}

.ios-tk-review-billing .ios-tk-rev-label {
    color: #5A6A6E;
    font-size: 13px;
    min-width: 80px;
}

/* ── Submit button ────────────────────────── */
.ios-tk-submit {
    flex: 1;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    background: #19282C;
    border: none;
    border-radius: 100px;
    padding: 18px 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.ios-tk-submit:hover {
    background: #A67745;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(166, 119, 69, 0.3);
}

.ios-tk-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ios-tk-submit-arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.ios-tk-submit:hover .ios-tk-submit-arrow {
    transform: translateX(4px);
}

/* ── Spinner ──────────────────────────────── */
.ios-tk-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: ios-tk-spin 0.6s linear infinite;
}

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

/* ── Success message ──────────────────────── */
.ios-tk-success .ios-tk-card {
    text-align: center;
    padding: 60px 40px;
}

.ios-tk-success-icon {
    margin-bottom: 20px;
}

.ios-tk-success-icon i {
    font-size: 48px;
    color: #22C55E;
}

.ios-tk-success-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: #19282C;
    margin: 0 0 12px;
}

.ios-tk-success-text {
    font-size: 15px;
    color: #5A6A6E;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 20px;
}

.ios-tk-success-summary {
    font-size: 14px;
    color: #19282C;
    font-weight: 500;
    background: #FAF8F4;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
}

/* ── Sold out ─────────────────────────────── */
.ios-tk-sold-out {
    text-align: center;
    padding: 60px 40px;
}

.ios-tk-sold-out-icon {
    margin-bottom: 16px;
}

.ios-tk-sold-out-icon i {
    font-size: 40px;
    color: #C4973B;
}

.ios-tk-sold-out-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: #19282C;
    margin: 0 0 12px;
}

.ios-tk-sold-out-text {
    font-size: 15px;
    color: #5A6A6E;
    line-height: 1.6;
}

.ios-tk-sold-out-text a {
    color: #C4973B;
    text-decoration: none;
    font-weight: 500;
}

.ios-tk-sold-out-text a:hover {
    text-decoration: underline;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 600px) {
    .ios-tk-card {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .ios-tk-title {
        font-size: 26px;
    }

    .ios-tk-row {
        flex-direction: column;
        gap: 12px;
    }

    .ios-tk-field[style] {
        flex: 1 !important;
    }

    .ios-tk-product {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .ios-tk-anzahl-group {
        align-self: stretch;
        flex-direction: row;
        justify-content: space-between;
    }

    .ios-tk-total strong {
        font-size: 20px;
    }

    .ios-tk-step-label {
        font-size: 9px;
    }

    .ios-tk-step-num {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .ios-tk-step-line {
        margin: 0 6px;
    }

    .ios-tk-nav {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .ios-tk-btn-next {
        width: 100%;
        justify-content: center;
    }

    .ios-tk-btn-back {
        align-self: flex-start;
    }

    .ios-tk-review-block {
        padding: 16px 18px;
    }
}
