/*
 * KAMPAGNENABSPANN — OVI-SEKTOR: SIGNALSTILLE (Auftrag 040 P8).
 *
 * Derselbe Stahl-Cyan-Ton wie der Rest der Kellerzentrale, nur dunkler und ruhiger. Kein
 * Konfetti, kein Goldrand, keine Fanfare: die Kampagne endet mit einer Bilanz und einer
 * Ehrentafel, nicht mit einer Siegesfeier. Amber trägt die Schlusszeilen, sonst nichts.
 *
 * ⚠️ DIE SCHLUSSSEQUENZ BLENDET EIN, SIE FLIEGT NICHT.
 * Vier Zeilen, jede nach 1,4 s, per Deckkraft. Bewegung würde das Gegenteil des Gewünschten
 * tun — an dieser Stelle soll nichts mehr passieren, sondern etwas zur Ruhe kommen.
 */

.abspann {
  position: fixed;
  inset: 0;
  z-index: 72;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vh, 34px);
  padding: clamp(20px, 4vh, 56px) clamp(16px, 6vw, 90px);
  overflow-y: auto;
  background: radial-gradient(120% 85% at 50% 0%, #131e26 0%, #090f14 58%, #030507 100%);
  color: #cfe0e6;
}
.abspann[hidden] { display: none; }

/* ---------------------------------------------------------------- Schlusssequenz */
.abspann-sequenz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.8vh, 20px);
  padding: clamp(24px, 7vh, 80px) 0 clamp(14px, 3vh, 32px);
  text-align: center;
  cursor: default;
}
.abspann-zeile {
  margin: 0;
  transition: opacity 1100ms ease;
  opacity: 1;
}
.abspann-zeile--wartend { opacity: 0; }

.abspann-zeile--titel {
  font-size: clamp(26px, 4.4vw, 54px);
  font-weight: 600;
  letter-spacing: .16em;
  color: #d9a441;
}
.abspann-zeile--ergebnis {
  font-size: clamp(17px, 2.2vw, 26px);
  letter-spacing: .06em;
  color: #e8f1f4;
}
/* Die Einschränkung steht bewusst gedämpfter — sie relativiert, sie widerspricht nicht. */
.abspann-zeile--einschraenkung {
  font-size: clamp(13px, 1.5vw, 17px);
  line-height: 1.6;
  max-width: 54ch;
  color: #8ba3ad;
}
.abspann-zeile--schluss {
  margin-top: clamp(10px, 2.4vh, 26px);
  font-size: clamp(11px, 1.15vw, 14px);
  letter-spacing: .42em;
  color: #5f7885;
}

.abspann-rest {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vh, 34px);
  transition: opacity 900ms ease;
  opacity: 1;
}
.abspann-rest--wartend { opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------- Funkraum */
.abspann-funk {
  max-width: 74ch;
  margin: 0 auto;
  padding: clamp(12px, 2vh, 20px) clamp(14px, 2.4vw, 24px);
  border-left: 2px solid #2d4653;
  background: rgba(18, 30, 38, .55);
}
.abspann-funk-kopf {
  font-size: clamp(9px, .95vw, 11px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #5f7885;
  margin-bottom: 8px;
}
.abspann-funk-zeile {
  margin: 0 0 6px;
  font-size: clamp(12px, 1.3vw, 15px);
  line-height: 1.65;
  color: #a8bcc4;
}
.abspann-funk-zeile:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- Bilanz */
/*
 * ⚠️ FESTE SPALTENZAHL STATT `auto-fit` — GEMESSEN AM SCREENSHOT, NICHT ÜBERLEGT.
 * Mit `repeat(auto-fit, minmax(122px, 1fr))` passten bei 1600 px genau 10 der 11 Werte in
 * die erste Zeile, und „7 Räume gebaut" stand allein und verloren in der zweiten. Vier
 * grüne Messungen haben das nicht gesehen — sie zählten 11 Werte und waren zufrieden.
 * Sechs Spalten brechen 11 Werte sauber in 6 + 5.
 */
.abspann-bilanz {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(10px, 1.6vw, 20px) clamp(8px, 1.4vw, 18px);
  padding: clamp(14px, 2.4vh, 24px) 0;
  border-top: 1px solid #22333f;
  border-bottom: 1px solid #22333f;
}
@media (max-width: 1100px) { .abspann-bilanz { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px)  { .abspann-bilanz { grid-template-columns: repeat(3, 1fr); } }
.abspann-wert { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.abspann-zahl {
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 600;
  color: #e8f1f4;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.abspann-bez {
  font-size: clamp(9px, .95vw, 11px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6d8794;
}
.abspann-wert.gut .abspann-zahl { color: #6fb6c9; }
.abspann-wert.schwer .abspann-zahl { color: #b4553f; }

/* ---------------------------------------------------------------- Blöcke */
.abspann-block { max-width: 1100px; margin: 0 auto; width: 100%; }
.abspann-ueber {
  margin: 0 0 clamp(8px, 1.4vh, 14px);
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7d97a3;
}
.abspann-text {
  margin: 0;
  max-width: 74ch;
  font-size: clamp(12px, 1.3vw, 15px);
  line-height: 1.7;
  color: #9fb4bd;
}

/* ---------------------------------------------------------------- Ehrentafel */
.abspann-tafel { padding-top: clamp(6px, 1.2vh, 12px); }
.abspann-tafel-vor,
.abspann-tafel-leer {
  margin: 0 0 clamp(10px, 1.8vh, 18px);
  font-size: clamp(12px, 1.3vw, 15px);
  line-height: 1.65;
  color: #9fb4bd;
}
.abspann-gefallene {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(8px, 1.4vw, 16px);
}

/* ---------------------------------------------------------------- Trupp */
.abspann-trupp {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: clamp(6px, 1vw, 12px);
}
.abspann-mann {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 7px 11px;
  border: 1px solid #1e2e38;
  background: rgba(18, 30, 38, .4);
}
.abspann-mann-name {
  font-size: clamp(12px, 1.25vw, 14px);
  color: #cfe0e6;
}
.abspann-mann-bilanz {
  font-size: clamp(10px, 1vw, 12px);
  color: #6d8794;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.abspann-bester {
  margin: clamp(8px, 1.4vh, 14px) 0 0;
  font-size: clamp(11px, 1.15vw, 13px);
  color: #7d97a3;
}

/* ---------------------------------------------------------------- Fuss */
.abspann-fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 16px);
  padding: clamp(14px, 3vh, 32px) 0 clamp(20px, 4vh, 44px);
}
.abspann-knopf {
  min-height: 46px;
  padding: 0 clamp(16px, 2.4vw, 30px);
  border: 1px solid #2d4653;
  background: rgba(24, 38, 47, .8);
  color: #cfe0e6;
  font-size: clamp(12px, 1.25vw, 14px);
  letter-spacing: .08em;
  cursor: pointer;
}
.abspann-knopf:hover { border-color: #3f6272; background: rgba(32, 50, 62, .9); }
.abspann-knopf--haupt { border-color: #6fb6c9; color: #d7edf3; }

/* Wer Bewegung abbestellt hat, bekommt den Abspann sofort vollständig. */
@media (prefers-reduced-motion: reduce) {
  .abspann-zeile,
  .abspann-rest { transition: none; }
}
