/* ==========================================
   Fall-Check (Klick-Fragebogen) – gemeinsam für alle Seiten
   Corporate Design Kanzlei am Waldpark: Navy #193254, PT Serif / PT Sans, schlichte Kanten.
   Auf dunklem Grund: Container bekommt zusätzlich die Klasse .fc-dunkel
   ========================================== */
#fall-check, #fc-einstieg {
  --fc-text: #334155; --fc-muted: #64748b; --fc-stark: #193254; --fc-strich: #dbe1e8;
  --fc-feld-rand: #cfd7e0; --fc-fehler: #dc2626; --fc-upload-rand: #b6c2cf;
}
#fall-check.fc-dunkel {
  --fc-text: rgba(255,255,255,.82); --fc-muted: rgba(255,255,255,.62); --fc-stark: #fff; --fc-strich: rgba(255,255,255,.18);
  --fc-feld-rand: transparent; --fc-fehler: #fca5a5; --fc-upload-rand: rgba(255,255,255,.35);
}
.fc-text  { color: var(--fc-text); }
.fc-muted { color: var(--fc-muted); }
.fc-stark { color: var(--fc-stark); }
.fc-fehler { color: var(--fc-fehler); }
.fc-strich-aus { background: var(--fc-strich); }

/* Feine Linien-Icons: Navy-Linie mit grünem Akzent */
.fc-ico .ln { fill: none; stroke: #193254; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.fc-ico .ak { fill: none; stroke: #7ea01d; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.fc-titel {
  font-family: 'PT Sans', Arial, sans-serif; font-weight: 700; color: var(--fc-stark);
  font-size: 1.25rem; line-height: 1.32; margin-bottom: 1rem; text-wrap: balance;
}
@media (min-width: 640px) { .fc-titel { font-size: 1.45rem; } }

.fc-kachel {
  display: flex; align-items: center; gap: 1rem; text-align: left; width: 100%;
  padding: 1.05rem 1.15rem; border-radius: 6px; background: #fff;
  border: 0; border-left: 3px solid transparent;
  box-shadow: 0 8px 24px -12px rgba(9,19,33,.35), 0 1px 3px rgba(9,19,33,.08);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.fc-kachel strong { font-family: 'PT Sans', Arial, sans-serif; font-weight: 700; }
.fc-kachel:hover { border-left-color: #90b524; box-shadow: 0 12px 28px -16px rgba(9,19,33,.55); transform: translateY(-1px); }
.fc-kachel:focus-visible { outline: 2px solid #90b524; outline-offset: 2px; }
.fc-kachel.fc-gewaehlt { border-left-color: #90b524; background: #fbfdf6; }
.fc-pfeil { color: #94a3b8; transition: transform .15s, color .15s; }
.fc-kachel:hover .fc-pfeil { color: #193254; transform: translateX(2px); }

/* kleine Kacheln (Ja / Nein / Weiß ich nicht) */
.fc-kachel-klein { flex-direction: column; justify-content: center; gap: .55rem; text-align: center; padding: 1rem .5rem; min-height: 100px; border-left: 0; border-bottom: 3px solid transparent; }
.fc-kachel-klein:hover, .fc-kachel-klein.fc-gewaehlt { border-bottom-color: #90b524; }

.fc-label { display: block; font-size: .85rem; font-weight: 700; color: var(--fc-stark); margin-bottom: .35rem; }
.fc-feld {
  width: 100%; padding: .85rem 1rem; border-radius: 4px; background: #fff;
  border: 1px solid var(--fc-feld-rand); color: #193254; font-weight: 400; outline: none; transition: border-color .15s, box-shadow .15s;
}
.fc-feld:focus { border-color: #90b524; box-shadow: 0 0 0 3px rgba(144,181,36,.35); }
input[type="date"].fc-feld { min-height: 52px; }
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .7; }

.fc-upload { border: 1px dashed var(--fc-upload-rand); border-radius: 4px; transition: border-color .15s, background .15s; }
.fc-upload:hover { border-color: #90b524; }
.fc-dunkel .fc-upload .fc-ico .ln { stroke: #fff; }

.fc-link, .fc-zurueck {
  font-size: .9rem; color: var(--fc-text); text-decoration: underline;
  text-underline-offset: 4px; text-decoration-color: var(--fc-upload-rand); transition: color .15s, text-decoration-color .15s;
}
.fc-zurueck { font-size: .8rem; text-decoration: none; }
.fc-link:hover, .fc-zurueck:hover { color: var(--fc-stark); text-decoration-color: #90b524; }

@keyframes fcRein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fc-rein { animation: fcRein .22s ease-out; }

/* Fristanzeige: Dringlichkeitsstufen */
.frist-ok     { --frist: #90b524; --frist-bg: #f4f8e8; }
.frist-knapp  { --frist: #d97706; --frist-bg: #fffbeb; }
.frist-akut   { --frist: #dc2626; --frist-bg: #fef2f2; }
.frist-ablauf { --frist: #64748b; --frist-bg: #f1f5f9; }
.frist-box { background: var(--frist-bg); border-color: var(--frist); }
.frist-farbe { color: var(--frist); }
.frist-balken { background: var(--frist); }

@media (prefers-reduced-motion: reduce) {
  .fc-rein { animation: none; }
  .fc-kachel:hover { transform: none; }
}

/* Icons auf dunklem Grund (Kontaktkarte, Danke-Seite) */
.fc-ico.fc-hell .ln { stroke: rgba(255,255,255,.9); }

/* Grundsatz: keine Rahmen, Tiefe nur über weiche Schatten */
.schatten { box-shadow: 0 10px 30px -14px rgba(25,50,84,.28), 0 2px 6px -3px rgba(25,50,84,.10); }
.schatten-hover { transition: box-shadow .15s, transform .15s; }
.schatten-hover:hover { box-shadow: 0 18px 40px -16px rgba(25,50,84,.40), 0 2px 6px -3px rgba(25,50,84,.12); transform: translateY(-2px); }

/* Animationen (animation.js): weich von unten einblenden */
.js-anim .anim { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-anim .anim.anim-da { opacity: 1; transform: none; }
/* Bildleiste: langsamer Zoom beim Laden */
.banner-bild { animation: bannerZoom 1.8s cubic-bezier(.2,.7,.2,1) both; transform-origin: 50% 40%; }
@keyframes bannerZoom { from { transform: scale(1.07); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .js-anim .anim { opacity: 1; transform: none; transition: none; }
  .banner-bild { animation: none; }
}

/* Auswahl Rechtsschutz im Kontaktformular */
.fc-wahl { position: relative; display: block; }
.fc-wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fc-wahl span {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: .5rem; border-radius: 4px;
  background: #fff; border: 1px solid var(--fc-feld-rand); color: #193254; font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.fc-wahl span:hover { background: #f4f8e6; }
.fc-wahl input:checked + span { background: #eef6d6; box-shadow: inset 0 0 0 2px #90b524; }
.fc-wahl input:focus-visible + span { box-shadow: 0 0 0 3px rgba(144,181,36,.45); }

/* Pfeil nach oben */
.nach-oben {
  position: fixed; right: 16px; bottom: 88px; z-index: 45; width: 44px; height: 44px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.92); color: #193254;
  box-shadow: 0 6px 20px rgba(25,50,84,.18); opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .25s, transform .25s, background .15s;
}
.nach-oben.sichtbar { opacity: .9; transform: none; pointer-events: auto; }
.nach-oben:hover { opacity: 1; background: #fff; color: #8eb524; }
.nach-oben:focus-visible { outline: 3px solid rgba(144,181,36,.6); outline-offset: 2px; }
@media (min-width: 768px) { .nach-oben { right: 24px; bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .nach-oben { transition: none; } }
