/* iTore Anfrage-Formular — Styles */

.itore-form-wrap {
    max-width: 820px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    line-height: 1.5;
}

.itore-form-wrap *,
.itore-form-wrap *::before,
.itore-form-wrap *::after {
    box-sizing: border-box;
}

/* ── Header ──────────────────────────────────────── */

.itore-form-header {
    text-align: center;
    margin-bottom: 32px;
}

.itore-form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e40af;
    margin: 0 0 6px;
}

.itore-form-header p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* ── Fieldsets ────────────────────────────────────── */

.itore-fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 0 0 24px;
    background: #fff;
}

.itore-fieldset legend {
    font-size: 17px;
    font-weight: 600;
    color: #1e40af;
    padding: 0 10px;
}

.itore-hint {
    font-weight: 400;
    font-size: 13px;
    color: #94a3b8;
}

.itore-required {
    color: #ef4444;
}

/* ── Maße Grid (Skizze + Felder) ─────────────────── */

.itore-masse-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 680px) {
    .itore-masse-grid {
        grid-template-columns: 1fr;
    }
}

/* Skizze SVG */
.itore-skizze {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px 12px;
    border: 1px solid #e2e8f0;
}

.itore-skizze-svg {
    width: 100%;
    max-width: 320px;
    height: auto;
}

.itore-svg-label {
    font-size: 10px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Maß-Felder */
.itore-masse-felder {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Input-Felder ─────────────────────────────────── */

.itore-feld label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

.itore-feld input[type="text"],
.itore-feld input[type="email"],
.itore-feld input[type="tel"],
.itore-feld input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.itore-feld input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.itore-feld input.itore-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.itore-input-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.itore-input-unit input {
    padding-right: 44px;
}

.itore-input-unit span {
    position: absolute;
    right: 14px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    pointer-events: none;
}

/* Radio Anschlag */
.itore-radio-group {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.itore-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
}

.itore-radio input[type="radio"] {
    accent-color: #3b82f6;
    width: 16px;
    height: 16px;
}

/* ── Tor-Typ Karten ──────────────────────────────── */

.itore-tortyp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 600px) {
    .itore-tortyp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.itore-tortyp-card {
    cursor: pointer;
    position: relative;
}

.itore-tortyp-card > input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.itore-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.itore-tortyp-card > input:checked + .itore-card-inner {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.itore-tortyp-card:hover .itore-card-inner {
    border-color: #93c5fd;
    background: #f8fafc;
}

.itore-tortyp-card > input:checked + .itore-card-inner:hover {
    background: #eff6ff;
}

.itore-card-icon {
    width: 44px;
    height: 44px;
    color: #64748b;
    transition: color 0.2s;
}

.itore-tortyp-card > input:checked + .itore-card-inner .itore-card-icon {
    color: #3b82f6;
}

.itore-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.itore-sub-option {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    margin-top: 2px;
}

.itore-sub-option input[type="checkbox"] {
    accent-color: #3b82f6;
    width: 14px;
    height: 14px;
}

/* ── Kontakt Grid ─────────────────────────────────── */

.itore-kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.itore-feld--full {
    grid-column: 1 / -1;
}

@media (max-width: 500px) {
    .itore-kontakt-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Textarea ─────────────────────────────────────── */

.itore-fieldset textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.itore-fieldset textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ── Submit Bereich ───────────────────────────────── */

.itore-submit-area {
    text-align: center;
    margin-top: 8px;
}

.itore-datenschutz {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    margin-bottom: 20px;
    text-align: left;
    max-width: 520px;
    cursor: pointer;
}

.itore-datenschutz input[type="checkbox"] {
    accent-color: #3b82f6;
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.itore-datenschutz a {
    color: #3b82f6;
    text-decoration: underline;
}

.itore-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.itore-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.itore-submit-btn:active {
    transform: translateY(0);
}

.itore-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.itore-btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── Nachrichten ──────────────────────────────────── */

.itore-message {
    margin-top: 20px;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.itore-message--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.itore-message--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ── Animationen ──────────────────────────────────── */

@keyframes itore-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.itore-shake {
    animation: itore-shake 0.4s ease;
}

@keyframes itore-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.itore-message {
    animation: itore-fade-in 0.3s ease;
}
