/* Kartenfächer für die sieben FOS-Fachrichtungen, passend zur Gymnasiums-Auswahl. */
#fachrichtungSection { max-width: 1200px; box-sizing: border-box; animation: none; }
#fachrichtungSection > h3 { text-align: center; font-size: 1.44rem; margin-bottom: 0; }
#fachrichtungSection .fachrichtung-grid.fr-fan {
  display: block; position: relative; isolation: isolate; height: 432px;
  width: 100%; padding: 0; margin: 0 auto; touch-action: pan-y pinch-zoom;
}
#fachrichtungSection .fr-fan .fachrichtung-card {
  box-sizing: border-box; position: absolute; left: 50%; top: 44%;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  width: 256px; height: 328px; min-height: 0; margin: 0; padding: 24px; gap: 12px;
  border: 0; border-radius: 16px; overflow: hidden; text-align: left;
  background: #15334a; color: #f8fafc; box-shadow: 0 12px 24px rgba(15,23,42,.2);
  font-family: inherit; cursor: pointer; user-select: none; -webkit-user-select: none;
  transform-origin: center; transition: transform 280ms cubic-bezier(.23,1,.32,1);
  touch-action: pan-y pinch-zoom;
}
#fachrichtungSection .fr-fan .fachrichtung-card[hidden] { display: none; }
#fachrichtungSection .fr-fan .fachrichtung-card::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(9,21,33,.05) 5%, rgba(9,21,33,.94) 78%);
}
#fachrichtungSection .fr-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
#fachrichtungSection .fr-fan .fachrichtung-card > :not(.fr-photo) { position: relative; z-index: 2; }
#fachrichtungSection .fr-fan .fachrichtung-icon { font-size: 2rem; }
#fachrichtungSection .fr-fan .fachrichtung-title { color: #f8fafc; font-size: 1.44rem; line-height: 1.15; overflow-wrap: anywhere; }
#fachrichtungSection .fr-fan .fachrichtung-desc { color: #f8fafc; font-size: .833rem; line-height: 1.45; }
#fachrichtungSection .fr-fan .fachrichtung-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
#fachrichtungSection .fr-fan .fachrichtung-card.fr-instant { transition: none; }
.fr-fan-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 0 24px; }
.fr-fan-controls button { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--ink); font: 1.2rem/1 var(--font-body); cursor: pointer; }
.fr-fan-controls button:active { transform: scale(.96); }
.fr-fan-position { width: 224px; margin: 0; text-align: center; color: var(--ink-light); font-size: .833rem; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) {
  .fr-fan-controls button:hover { background: var(--accent-soft); }
}
@media (max-width: 767px) {
  #fachrichtungSection .fachrichtung-grid.fr-fan { height: 368px; }
  #fachrichtungSection .fr-fan .fachrichtung-card { width: 220px; height: 296px; padding: 20px; }
  #fachrichtungSection .fr-fan .fachrichtung-title { font-size: 1.2rem; }
}
@media (max-width: 479px) {
  #fachrichtungSection .fachrichtung-grid.fr-fan { height: 328px; }
  #fachrichtungSection .fr-fan .fachrichtung-card { width: 176px; height: 256px; padding: 16px; gap: 8px; }
  .fr-fan-controls { gap: 8px; }
  .fr-fan-position { width: 176px; }
}
@media (prefers-reduced-motion: reduce) {
  #fachrichtungSection .fr-fan .fachrichtung-card { transition: none; }
}
