/* case-finder.css: Entscheidungshilfe „Is there a ready-made case for your figure?“ (js/case-finder.js, Karte A189,
   03.11.2026). Eigene Datei, damit die Hilfe auf weitere Seiten mitwandern kann; Farben aus den Variablen der Seite, mit
   Rückfallwerten aus css/shop.css. Zustände nie nur über Farbe: Antwortkopf mit Zeichen und Wortlaut, die Kachel für den
   Maßweg mit gestricheltem Rand und eigenem Symbol, Fokus mit sichtbarem Rahmen. */

.case-finder { margin-top: 24px; }
.cf-ersatz { color: var(--color-muted, #5a6470); }

/* Variante A: Auswahlfeld mit Ergebnis */
.case-finder--a {
  max-width: 880px;
  background: #fff; border: 1px solid var(--color-border, #e3e7ec);
  border-radius: var(--radius, 6px); padding: 24px 26px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
.cf-frage { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cf-label { font-weight: 700; font-size: 18px; color: var(--color-text, #1a1a1a); }
.cf-select {
  flex: 1 1 320px; max-width: 470px; min-width: 0; /* sonst setzt die längste Option die Mindestbreite */
  font: inherit; font-size: 16px; line-height: 1.3; color: var(--color-text, #1a1a1a);
  padding: 12px 42px 12px 14px; cursor: pointer;
  border: 1.5px solid var(--color-primary-dark, #2e7d32); border-radius: var(--radius, 6px);
  -webkit-appearance: none; appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.cf-select:focus-visible { outline: 3px solid var(--color-primary-dark, #2e7d32); outline-offset: 2px; }
.cf-ergebnis { margin-top: 18px; }
.cf-hinweis { margin: 0; font-size: 15px; color: var(--color-muted, #5a6470); }

.cf-antwort { border-left: 4px solid var(--color-primary, #43a047); padding: 2px 0 2px 18px; }
.cf-antwort--mass { border-left-color: #12233f; }
.cf-antwort p { margin: 0 0 12px; }
.cf-antwort__kopf { font-size: 17px; }
.cf-zeichen {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: -3px;
  width: 24px; height: 24px; border-radius: 50%; margin-right: 4px;
  background: var(--color-primary-dark, #2e7d32); color: #fff; font-size: 14px; font-weight: 700;
}
.cf-antwort--mass .cf-zeichen { background: #12233f; }

.cf-cases { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-border, #e3e7ec); }
.cf-case {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--color-border, #e3e7ec);
}
.cf-case__bild {
  width: 72px; height: 72px; object-fit: contain; background: #fff;
  border: 1px solid var(--color-border, #e3e7ec); border-radius: 4px;
}
.cf-case__name { display: block; font-weight: 600; color: var(--color-primary-dark, #2e7d32); line-height: 1.35; }
.cf-case__masse { display: block; font-size: 14px; color: var(--color-muted, #5a6470); margin-top: 2px; }
.cf-case__mass { display: inline-block; font-size: 14px; font-weight: 600; margin-top: 4px; }
.cf-case__preis { font-weight: 700; white-space: nowrap; color: var(--color-text, #1a1a1a); }
.cf-antwort .cf-alle { margin: 16px 0 0; }
.cf-antwort .cf-sonst { margin: 18px 0 0; font-size: 15px; color: #2c3640; }
.cf-sonst__link { font-weight: 700; white-space: nowrap; }
.cf-knoepfe .btn { margin: 0 8px 8px 0; }
.cf-fuss { margin: 10px 0 0; font-size: 13px; color: var(--color-muted, #5a6470); }
.cf-antwort .cf-fuss { margin: 10px 0 0; }

@media (max-width: 560px) {
  .case-finder--a { padding: 18px 16px; }
  .cf-label { font-size: 17px; }
  .cf-select { flex-basis: 100%; width: 100%; max-width: none; }
  .cf-antwort { padding-left: 12px; }
  .cf-case { grid-template-columns: 56px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
  .cf-case__bild { width: 56px; height: 56px; grid-row: span 2; }
  .cf-case__preis { grid-column: 2; }
}

/* Variante B: Kachelraster der Linien */
.cf-kacheln {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
@media (max-width: 960px) { .cf-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cf-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.cf-kacheln li { display: flex; }
.cf-kachel {
  display: flex; flex-direction: column; width: 100%;
  background: #fff; border: 1px solid var(--color-border, #e3e7ec); border-radius: var(--radius, 6px);
  overflow: hidden; color: var(--color-text, #1a1a1a); text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cf-kachel:hover { border-color: var(--color-primary, #43a047); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08); transform: translateY(-2px); text-decoration: none; }
.cf-kachel:focus-visible { outline: 3px solid var(--color-primary-dark, #2e7d32); outline-offset: 2px; text-decoration: none; }
/* Bildfläche fest 4:3; das Bild liegt absolut darin, sonst dehnt seine eigene Höhe die Fläche */
.cf-kachel__bild { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--color-border, #e3e7ec); }
.cf-kachel__bild img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; padding: 8px; box-sizing: border-box; }
.cf-kachel__name { padding: 12px 14px 0; font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--color-primary-dark, #2e7d32); }
.cf-kachel__zahl { padding: 3px 14px 0; font-size: 13px; line-height: 1.4; color: var(--color-muted, #5a6470); }
.cf-kachel__preis { padding: 6px 14px 0; font-weight: 700; font-size: 15px; }
.cf-kachel__los { margin-top: auto; padding: 10px 14px 14px; font-size: 14px; font-weight: 600; color: var(--color-primary-dark, #2e7d32); }
.cf-kachel:hover .cf-kachel__los, .cf-kachel:focus-visible .cf-kachel__los { text-decoration: underline; }
.cf-kachel--mass { border: 2px dashed var(--color-primary-dark, #2e7d32); background: var(--color-primary-soft, #e8f5e9); }
.cf-kachel__symbol {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3;
  color: var(--color-primary-dark, #2e7d32); border-bottom: 2px dashed var(--color-primary-dark, #2e7d32);
}
.cf-kachel__symbol svg { width: 72px; height: 72px; }
@media (max-width: 640px) {
  .cf-kachel__name { font-size: 15px; padding: 10px 10px 0; }
  .cf-kachel__zahl, .cf-kachel__preis { padding-left: 10px; padding-right: 10px; }
  .cf-kachel__los { padding: 8px 10px 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .cf-kachel { transition: none; } .cf-kachel:hover { transform: none; } }
