/* assets/style.css */

/* ==========================================================================
   1. FAHRZEUGART KARTEN (SCHRITT 1)
   ========================================================================== */
.type-radio:checked + label {
    border-color: #2563eb;
    background-color: #eff6ff;
    color: #1d4ed8;
}

/* ==========================================================================
   2. KENNZEICHEN-SIMULATOR (SCHRITT 2)
   ========================================================================== */
.plate-scene {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.8rem 0 0.5rem 0;
    position: relative;
}

/* Äußerer Rand mit Doppelkontur und Tiefenschatten */
.plate-border-outer {
    position: relative;
    background: #ffffff;
    border: 3.5px solid #111111;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.22), 0 4px 8px -2px rgba(0, 0, 0, 0.1);
    display: inline-flex;
}

/* Der blaue Positions-Zeiger oben */
.plate-pointer {
    position: absolute;
    top: -12px;
    left: 80px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 11px solid #2563eb;
    transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 30;
    filter: drop-shadow(0 2px 3px rgba(37, 99, 235, 0.45));
    pointer-events: none;
}

/* Weiche blaue Pulsier-/Blink-Animation für die aktive Eingabebox */
@keyframes bluePulseGlow {
    0%, 100% {
        background-color: #eff6ff;
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
    }
    50% {
        background-color: #ffffff;
        border-color: #93c5fd;
        box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
    }
}

/* Das innere Schild */
.plate-plate-inner {
    background: #fdfdfd;
    border: 1.5px solid #222222;
    border-radius: 8px;
    height: 72px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Blaues Euro-Band links mit Sternenkranz */
.plate-eu-box {
    background-color: #003399;
    width: 48px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    user-select: none;
    padding: 2px 0;
}

.plate-eu-stars-circle {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plate-eu-flag-svg {
    width: 24px;
    height: 24px;
}

.plate-eu-letter-d {
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-size: 19px;
    line-height: 1;
}

/* Die 3 Eingabe-Boxen (Ort, Buchstaben, Zahlen) */
.plate-cell {
    background: #f1f3f5;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    transition: all 0.2s ease-in-out;
    cursor: text;
}

/* Aktives Feld: Blau hinterlegt mit Blink-Effekt */
.plate-cell.active-cell {
    animation: bluePulseGlow 1.6s infinite ease-in-out;
}

/* Hover-Zustand */
.plate-cell:hover:not(.active-cell) {
    background: #f8fafc;
    border-color: #93c5fd;
}

.plate-cell input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    text-align: center;
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-weight: 900;
    font-size: 38px;
    line-height: 1;
    color: #1f2937;
    text-transform: uppercase;
    padding: 0;
}

.plate-cell input::placeholder {
    color: #cbd5e1;
    font-weight: 800;
}

/* Box-Größen */
.cell-city {
    width: 78px;
    margin-left: 8px;
}

.cell-letters {
    width: 65px;
}

.cell-numbers {
    width: 110px;
    margin-right: 8px;
}

/* Plaketten zwischen Ort und Buchstaben */
.plate-middle-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 6px;
    user-select: none;
}

.middle-seal-top,
.middle-seal-bottom {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 1.5px solid #cbd5e1;
}

/* ==========================================================================
   3. INFO-MODAL / MUSTERBILD-POPUP
   ========================================================================== */
.info-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.info-modal.active {
    display: flex;
    opacity: 1;
}

.info-modal-content {
    background: #ffffff;
    border-radius: 1rem;
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.2s ease-in-out;
}

.info-modal.active .info-modal-content {
    transform: scale(1);
}

.help-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.help-btn:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

/* ==========================================================================
   SONDERKENNZEICHEN: E-AUTO & SAISON-BADGES AM SCHILDRAND
   ========================================================================== */

/* Checkbox-Auswahl Buttons */
.plate-feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    background: #ffffff;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}

.plate-feature-checkbox:checked + .plate-feature-badge {
    border-color: #2563eb;
    background-color: #eff6ff;
    color: #1d4ed8;
}

/* Rechtes Schild-Element für E bzw. Saison */
.plate-suffix-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    margin-right: 6px;
    user-select: none;
}

/* E-Kennzeichen Buchstabe */
.plate-e-letter {
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-weight: 900;
    font-size: 38px;
    line-height: 1;
    color: #111827;
    padding: 0 4px;
}

/* Saisonkennzeichen (Zwei Zahlen übereinander) */
.plate-season-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-weight: 900;
    font-size: 20px;
    color: #111827;
    padding: 0 4px;
    border-left: 1.5px solid #111827;
    margin-left: 2px;
}

.plate-season-line {
    width: 100%;
    height: 1.5px;
    background-color: #111827;
    margin: 2px 0;
}

/* FIN Status-Feedback */
.vin-input-valid {
    border-color: #16a34a !important;
    background-color: #f0fdf4 !important;
}

.vin-input-invalid {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

.faq-section {
  padding: 4rem 1.5rem;
  background-color: #f8fafc;
}
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.faq-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  background-color: #e2e8f0;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}
.faq-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.faq-subtitle {
  color: #64748b;
  font-size: 1rem;
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] {
  border-color: #cbd5e1;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-icon {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: #475569;
  line-height: 1.6;
}
/* Mehrere Musterbilder im Info-Modal: Inhalt scrollbar statt abgeschnitten */
.info-modal-content {
    max-height: 90vh;
    overflow-y: auto;
}
