/* Die FOS nutzt dieselben Fotokarten und dieselbe Fächersteuerung wie das Gymnasium. */
#facherBereich .student-fan-wrap { width: 100%; min-width: 0; }
#facherBereich .subject-fan {
  box-sizing: border-box; display: block; position: relative; height: 440px;
  width: calc(100% - 48px); max-width: 1120px; margin: 0 auto; padding: 0;
  isolation: isolate; touch-action: pan-y pinch-zoom;
}
#facherBereich #weitereGrid.subject-fan { height: 408px; }
#facherBereich .subject-fan .subject-card {
  box-sizing: border-box; display: flex; position: absolute; left: 50%; top: 44%;
  width: 256px; height: 344px; min-height: 0; padding: 0; margin: 0;
  border: 0; border-radius: 16px; overflow: hidden; background: #15334a;
  color: #f8fafc; box-shadow: 0 16px 32px rgba(15,23,42,.2);
  text-align: left; cursor: pointer; transition: none; transform-origin: center;
  animation: none; opacity: 1; user-select: none; -webkit-user-select: none;
  touch-action: pan-y pinch-zoom;
}
#facherBereich .subject-fan .subject-card[hidden] { display: none !important; }
#facherBereich .subject-fan .subject-card::before {
  content: ''; display: block; position: absolute; inset: 0; z-index: 1; opacity: 1;
  background: linear-gradient(180deg, rgba(9,21,33,.08) 15%, rgba(9,21,33,.94) 100%);
}
#facherBereich .subject-fan .subject-card::after { display: none; }
#facherBereich .fan-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
#facherBereich .fan-copy { box-sizing: border-box; position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; width: 100%; height: 100%; padding: 24px; gap: 12px; }
#facherBereich .subject-fan .subject-title { color: #f8fafc; font-size: 1.44rem; font-weight: 750; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; }
#facherBereich .subject-fan .subject-icon { display: none; }
#facherBereich .subject-fan .subject-countdown { color: #f8fafc; }
#facherBereich .subject-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
#facherBereich .student-fan-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 0 24px; padding: 0 16px; }
#facherBereich .student-fan-controls[hidden] { display: none; }
#facherBereich .student-fan-controls button { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: 1.2rem/1 var(--font-body); cursor: pointer; }
#facherBereich .student-fan-controls button:active { transform: scale(.96); }
#facherBereich .fan-position { width: 240px; text-align: center; font-size: .833rem; color: var(--ink-light); margin: 0; text-wrap: balance; }
@media (hover: hover) and (pointer: fine) {
  #facherBereich .student-fan-controls button:hover { background: var(--accent-soft); color: var(--ink); }
}
@media (max-width: 767px) {
  #facherBereich .subject-fan, #facherBereich #weitereGrid.subject-fan { height: 368px; }
  #facherBereich .subject-fan .subject-card { width: 220px; height: 296px; }
  #facherBereich .fan-copy { padding: 20px; }
  #facherBereich .subject-fan .subject-title { font-size: 1.2rem; }
}
@media (max-width: 479px) {
  #facherBereich .subject-fan, #facherBereich #weitereGrid.subject-fan { height: 328px; width: calc(100% - 40px); }
  #facherBereich .subject-fan .subject-card { width: 168px; height: 240px; }
  #facherBereich .fan-copy { padding: 16px; gap: 8px; }
  #facherBereich .fan-position { width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  #facherBereich .subject-fan { transition: none; }
}
