/* Header: one line, monochrome SPACCER styling, no informational links. */
.spq, .spq-overlay { font-family: inherit; line-height: 1.45; text-align: start; }
.spq *, .spq-overlay * { box-sizing: border-box; }
.spq [hidden], .spq-overlay[hidden], .spq-overlay [hidden] { display: none !important; }
.spq { margin: 0; padding: 7px 0; color: #fff; }
.spq .spq-form { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; width: 100%; margin: 0; }
/* Extbase wraps its hidden form fields in a DIV; it must not add a flex gap. */
.spq .spq-form > div { display: contents; }
.spq .spq-title { flex: 0 0 auto; font-size: 14px; font-weight: 600; margin-inline-end: 4px; white-space: nowrap; }
.spq fieldset { border: 0; margin: 0; padding: 0; min-width: 0; flex: 1 1 0; }
.spq .spq-vehicle { display: flex; flex-wrap: nowrap; gap: 8px; }
.spq select, .spq input, .spq .spq-submit {
    height: 36px; min-height: 36px; margin: 0; border: 1px solid #b4b4b4; border-radius: 4px;
    background: #fff; color: #222; font: inherit; font-size: 14px; line-height: 1.35;
}
.spq select, .spq input { min-width: 0; padding: 6px 10px; }
.spq input::placeholder { color: #696969; opacity: 1; }
.spq .spq-mode { flex: 0 0 92px; width: 92px; padding-inline-end: 20px; }
.spq #quickcheck_hersteller { flex: 0 1 38%; width: 38%; }
.spq #quickcheck_modell { flex: 1 1 0; width: 0; }
.spq #quickcheck_vin { width: 100%; text-transform: uppercase; letter-spacing: .045em; }
.spq .spq-submit { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; padding: 6px 13px; white-space: nowrap; cursor: pointer; font-weight: 600; }
.spq-submit svg { width: 17px; height: 17px; flex: 0 0 17px; }
.spq .spq-submit:hover { background: #ededed; }
.spq .spq-submit:disabled { cursor: wait; opacity: .6; }
.spq input:focus, .spq select:focus, .spq button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px #222; }
.spq [aria-invalid="true"] { border: 2px solid #a72b2b; }
.spq-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0); white-space: nowrap !important; border: 0 !important; }
html.spq-modal-open { overflow: hidden; }
.spq-overlay { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 18px; background: #000a; color: #222; }
.spq-popup { width: 100%; max-width: 620px; max-height: calc(100dvh - 36px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid #bbb; border-radius: 8px; box-shadow: 0 16px 60px #0006; }
.spq-popup-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 12px 22px; background: #f4f4f4; border-bottom: 1px solid #ddd; }
.spq-popup .spq-popup-header h2 { margin: 0; color: #333; font: inherit; font-size: 15px; font-weight: 600; text-transform: none; }
.spq-popup .spq-close { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #bbb; border-radius: 4px; background: #fff; color: #222; font: inherit; font-size: 25px; cursor: pointer; }
.spq-popup-content { padding: 24px; }
.spq-popup h3 { margin: 0 0 14px; color: #111; font: inherit; font-size: 21px; font-weight: 650; line-height: 1.3; text-transform: none; }
.spq-message p { margin: 0 0 12px; color: #4c4c4c; font-size: 14px; }
.spq-popup a { color: #222; text-decoration: underline; text-underline-offset: 3px; }
.spq-popup :is(a,button,input,select,summary):focus-visible { outline: 2px solid #222; outline-offset: 3px; }
.spq-popup .spq-notice, .spq-popup .spq-errors { margin: 16px 0; padding: 12px 14px; border-inline-start: 3px solid #aaa; background: #f5f5f5; color: #555; font-size: 13px; }
.spq-popup .spq-errors { padding-inline-start: 30px; border-color: #a72b2b; }
.spq-popup .spq-results-title { margin: 24px 0 10px; color: #333; font: inherit; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.spq-popup .spq-decoded { margin: 0 0 12px; font-size: 12px; color: #666; }
.spq-matches { list-style: none; padding: 0; margin: 0; }
.spq-matches > li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #ddd; }
.spq-popup .spq-vehicle-name { font-weight: 650; font-size: 15px; overflow-wrap: anywhere; }
.spq-result-actions { display: flex; gap: 7px; flex: 0 0 auto; }
.spq-popup .spq-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; border: 1px solid #aaa; border-radius: 4px; padding: 8px 12px; color: #222; background: #fff; font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.spq-popup .spq-button:hover { background: #eee; }
.spq-popup .spq-button-dark { background: #171717; color: #fff; border-color: #171717; }
.spq-popup .spq-button-dark:hover { background: #393939; }
.spq-local-search { margin-top: 22px; border-top: 1px solid #ddd; padding-top: 15px; }
.spq-local-search summary { color: #555; font-size: 13px; cursor: pointer; }
.spq-fallback-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 14px; }
.spq-fallback-fields > div { min-width: 0; }
.spq-fallback-fields label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.spq-fallback-fields input, .spq-fallback-fields select { width: 100%; min-width: 0; height: 40px; border: 1px solid #aaa; border-radius: 4px; padding: 6px 10px; background: #fff; color: #222; font: inherit; font-size: 16px; }
.spq-fallback-fields > button { grid-column: 1 / -1; }
.spq-state { padding: 8px 0; color: #555; font-size: 14px; }
.spq-state ul { padding-inline-start: 20px; }
.spq-spinner { display: block; width: 28px; height: 28px; margin: 4px auto 18px; border: 2px solid #ddd; border-top-color: #222; border-radius: 50%; animation: spq-spin .7s linear infinite; }
.spq-state[role="status"] { text-align: center; }
@keyframes spq-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
    .spq .spq-title, .spq .spq-submit-label { display: none; }
    .spq .spq-form, .spq .spq-vehicle { gap: 6px; }
    .spq select, .spq input, .spq .spq-submit { height: 40px; min-height: 40px; font-size: 16px; }
    .spq .spq-mode { flex-basis: 78px; width: 78px; font-size: 14px; padding-inline-start: 7px; }
    .spq .spq-submit { width: 40px; padding: 7px; }
    .spq #quickcheck_hersteller { flex-basis: 42%; width: 42%; padding-inline-start: 6px; }
    .spq #quickcheck_modell { padding-inline-start: 7px; }
    .spq-overlay { padding: 12px; }
    .spq-popup { max-height: calc(100dvh - 24px); }
    .spq-popup-content { padding: 20px; }
    .spq-matches > li { align-items: stretch; flex-direction: column; gap: 10px; }
    .spq-result-actions > a { flex: 1; min-height: 42px; }
    .spq-fallback-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .spq-spinner { animation: none; } }
