/* GTG – Battlefield-4-Sequenzen (js/bf4.js). Gilt fuer die aktuelle Seite und die Zeitreise 2012. */

/* Kampfjet */
.bf4-jet { position: fixed; left: -220px; z-index: 60; width: 200px; pointer-events: none; animation: bf4-flug 2.9s cubic-bezier(.35,.1,.65,.9) forwards; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.bf4-jet.links { left: auto; right: -220px; transform: scaleX(-1); animation-name: bf4-flug-links; }
.bf4-jet svg { display: block; width: 200px; }
.bf4-jet .nachbrenner { animation: bf4-flacker .08s infinite alternate; }
.bf4-jet .kondens { position: absolute; right: 196px; top: 44%; width: 420px; height: 2px; background: linear-gradient(270deg, rgba(255,255,255,.75), transparent); border-radius: 2px; }
@keyframes bf4-flug { to { transform: translateX(calc(100vw + 460px)) translateY(-40px); } }
@keyframes bf4-flug-links { to { transform: scaleX(-1) translateX(calc(100vw + 460px)) translateY(-40px); } }
@keyframes bf4-flacker { from { opacity: .6; transform: scaleX(.8); } to { opacity: 1; transform: scaleX(1.25); } }

/* Hubschrauber */
.bf4-heli { position: fixed; left: -180px; z-index: 55; width: 170px; pointer-events: none; opacity: .92; animation: bf4-heliflug 15s linear forwards; filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); }
.bf4-heli svg { display: block; width: 170px; animation: bf4-schwanken 2.4s ease-in-out infinite; }
.bf4-heli .rotor { transform-origin: 70px 4.5px; animation: bf4-rotor .09s linear infinite; }
@keyframes bf4-heliflug { to { transform: translateX(calc(100vw + 360px)); } }
@keyframes bf4-schwanken { 50% { transform: translateY(8px) rotate(-3deg); } }
@keyframes bf4-rotor { 50% { transform: scaleX(.15); } }

/* Einschlag im Header (2012) */
.bf4-explosion { position: absolute; width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%; pointer-events: none; z-index: 3;
  background: radial-gradient(circle, #fff 0 8%, #ffd27a 18%, #ff7a1a 38%, rgba(255,60,0,.4) 55%, transparent 70%); animation: bf4-knall 1s ease-out forwards; mix-blend-mode: screen; }
@keyframes bf4-knall { 0% { transform: scale(.1); opacity: 1; } 60% { opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
.kopfbuehne.wackeln { animation: bf4-wackeln .45s; }
@keyframes bf4-wackeln { 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-2px, 1px); } 80% { transform: translate(2px, 0); } }

/* ===== HUD oben rechts: Gefecht (Tickets, Flaggen, Ergebnis) + Killfeed + Punkte als ein Element (BF4-Stil) ===== */
.bf4-hud { --trupp: #8ce36d; --team: #7accf8; --feind: #f0662a; --blau: #3db2ff; --rot: #ff4a2a; --hud: "Bahnschrift SemiCondensed", "Bahnschrift", "Arial Narrow", "Segoe UI", sans-serif;
  position: fixed; top: 46px; right: 14px; z-index: 75; width: 470px; max-width: calc(100vw - 28px); display: grid; font-family: var(--hud);
  background: linear-gradient(180deg, rgba(14,17,22,.9), rgba(8,10,14,.84)); border: 1px solid rgba(255,255,255,.14); border-top: 2px solid var(--blau);
  box-shadow: 0 12px 34px rgba(0,0,0,.6); backdrop-filter: blur(3px); }
/* Ecken-Markierungen wie im Spiel-HUD */
.bf4-hud::before, .bf4-hud::after { content: ""; position: absolute; width: 10px; height: 10px; border: 0 solid rgba(255,255,255,.55); pointer-events: none; }
.bf4-hud::before { left: -1px; bottom: -1px; border-left-width: 2px; border-bottom-width: 2px; }
.bf4-hud::after { right: -1px; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; }
.hud-box { position: relative; overflow: hidden; }
.hud-box + .hud-box { border-top: 1px solid rgba(255,255,255,.1); }
/* Feste Hoehen, damit beim Aktualisieren nichts springt */
.hud-gefecht { height: 150px; box-sizing: border-box; }
.hud-feed { height: 152px; container-type: inline-size; }
.hud-wertung { height: 150px; box-sizing: border-box; display: flex; flex-direction: column; }
.hud-wertung .hw-stat { margin-top: auto; }
.hw-zeilen { max-height: 62px; overflow: hidden; }
/* Im Seitenfluss: eigene Zeile unter dem Header, Gefecht | Feed | Punkte nebeneinander */
tr.hud-zeile > td { padding: 0; background: #050506; border-bottom: 1px solid #300; }
.bf4-hud.im-fluss { position: relative; top: auto; right: auto; width: auto; max-width: none; margin: 8px; display: flex; align-items: stretch; }
.bf4-hud.im-fluss .hud-gefecht { width: 300px; flex: none; }
.bf4-hud.im-fluss .hud-feed { flex: 1; min-width: 0; }
.bf4-hud.im-fluss .hud-wertung { width: 340px; flex: none; }
.bf4-hud.im-fluss .hud-box + .hud-box { border-top: 0; border-left: 1px solid rgba(255,255,255,.1); }
@media (max-width: 1000px) { .bf4-hud.im-fluss { flex-wrap: wrap; } .bf4-hud.im-fluss .hud-box { width: 100%; flex: 1 1 100%; border-left: 0 !important; } .bf4-hud.im-fluss .hud-box + .hud-box { border-top: 1px solid rgba(255,255,255,.1); } }
/* Das DZCP-Stylesheet setzt a/div/p/td auf 10px Verdana – hier zuruecksetzen */
.bf4-hud a, .bf4-hud div, .bf4-hud p, .bf4-hud span, .bf4-hud b, .bf4-hud em, .bf4-hud i, .bf4-hud li { font-family: var(--hud); font-size: inherit; line-height: inherit; }
.bf4-hud ol, .bf4-hud ul { line-height: 1.25; font-size: 16px; }

/* Gefecht: Gegner, Tickets, Flaggen */
.hud-gefecht { padding: 9px 14px 8px; display: flex; flex-direction: column; gap: 6px; color: #e9edf2; }
.bf4-hud .hg-kopf { display: block; font-size: 16px; line-height: 1.15; color: #e9edf2; text-decoration: none !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .02em; }
.bf4-hud .hg-kopf b { color: var(--team); font-weight: 700; } .bf4-hud .hg-kopf b.feind { color: var(--feind); }
.bf4-hud .hg-kopf span { color: #9aa4b2; font-size: 14px; }
.bf4-hud .hg-kopf:hover { filter: brightness(1.2); }
.bf4-hud .hg-info { font-size: 11px; line-height: 1.1; letter-spacing: .12em; text-transform: uppercase; color: #9aa4b2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 12px; }
.hg-tickets { display: flex; align-items: center; gap: 10px; }
.bf4-hud .hg-tickets b { font-size: 26px; line-height: 1; font-weight: 600; min-width: 46px; font-variant-numeric: tabular-nums; }
.bf4-hud .hg-tickets b.wir { color: #9fdcff; text-align: right; } .bf4-hud .hg-tickets b.die { color: #ffb19e; }
.hg-tickets .balken { flex: 1; display: flex; gap: 4px; height: 8px; background: rgba(255,255,255,.07); }
.hg-tickets .balken i { display: block; height: 100%; transition: width .9s ease-out; }
.hg-tickets .balken i.wir { background: var(--blau); margin-right: auto; order: 0; } .hg-tickets .balken i.die { background: var(--rot); margin-left: auto; }
.hg-flaggen { display: flex; justify-content: center; gap: 14px; margin-top: 2px; }
.hg-flaggen .flagge { position: relative; width: 38px; height: 38px; display: grid; place-items: center; font-size: 17px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000; }
.hg-flaggen .flagge svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.hg-flaggen .ring { fill: rgba(0,0,0,.55); stroke-width: 4; stroke: #6b7280; stroke-dasharray: 94.25; stroke-dashoffset: 0; transition: stroke .3s; }
.hg-flaggen .blau .ring { stroke: var(--blau); } .hg-flaggen .rot .ring { stroke: var(--rot); }
.hg-flaggen .blau b { color: #9fdcff; } .hg-flaggen .rot b { color: #ffb19e; }
.hg-flaggen .erobern .ring { animation: bf4-erobern 2.5s linear; }
.hg-flaggen .erobern { animation: bf4-puls .5s 5; }
.hg-flaggen .erobern::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid currentColor; opacity: 0; animation: bf4-welle 1.25s ease-out 2; }
.hg-flaggen .blau.erobern::after { color: var(--blau); } .hg-flaggen .rot.erobern::after { color: var(--rot); }
@keyframes bf4-erobern { from { stroke-dashoffset: 94.25; } to { stroke-dashoffset: 0; } }
@keyframes bf4-puls { 50% { transform: scale(1.15); } }
@keyframes bf4-welle { from { opacity: .9; transform: scale(.8); } to { opacity: 0; transform: scale(1.5); } }

/* Rundenende: Ergebnis legt sich ueber die Gefechtsanzeige */
.hg-ende { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .4s; background: radial-gradient(120% 90% at 50% 0%, #10161f, #07090d 70%); }
.remis .hg-ende { background: radial-gradient(120% 90% at 50% 0%, #1b170a, #07090d 70%); } .nl .hg-ende { background: radial-gradient(120% 90% at 50% 0%, #1f0f0b, #07090d 70%); }
.ende .hg-ende { opacity: 1; pointer-events: auto; }
.bf4-hud .hg-ende a { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 5px; color: #fff; text-decoration: none !important; border-top: 2px solid var(--blau); }
.nl .hg-ende a { border-top-color: var(--rot); } .remis .hg-ende a { border-top-color: #ffcc33; }
.bf4-hud .he-kopf { font-size: 11px; letter-spacing: .28em; color: #9aa4b2; }
.bf4-hud .he-titel { font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: .14em; color: #6fd0ff; text-shadow: 0 0 20px rgba(61,178,255,.6); }
.ende .he-titel { animation: r-titel .6s ease-out; }
.nl .he-titel { color: #ff7a5a; text-shadow: 0 0 20px rgba(255,74,42,.6); } .remis .he-titel { color: #ffcc33; text-shadow: none; }
@keyframes r-titel { from { letter-spacing: .5em; opacity: 0; } }
.bf4-hud .he-team { display: flex; align-items: center; gap: 14px; font-size: 20px; }
.bf4-hud .he-team em { font-style: normal; font-size: 24px; font-weight: 700; }
.bf4-hud .he-info { font-size: 12px; color: #c7ced8; letter-spacing: .04em; }
.hud-gefecht.ende { border-top-color: transparent; }
/* Killfeed */
.hud-feed ol { list-style: none; margin: 0; padding: 8px 12px; min-height: 30px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
.hud-box { overflow: hidden; }
.hud-feed li { min-width: 0; }
.hud-feed li a { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hud-feed li { display: flex; justify-content: flex-end; font-size: 17px; line-height: 1.25; letter-spacing: .01em; white-space: nowrap; overflow: hidden; animation: hud-rein .28s ease-out; transition: opacity 1.4s; }
.hud-feed li.alt { opacity: .45; }
.hud-feed a { color: #e9edf2; text-decoration: none !important; text-shadow: 0 1px 2px #000; }
.hud-feed a:hover { filter: brightness(1.25); }
.hud-feed .w { color: #f2f2f2; font-weight: 600; }
.bf4-hud .trupp { color: var(--trupp); font-weight: 600; } .bf4-hud .team { color: var(--team); font-weight: 600; } .bf4-hud .feind { color: var(--feind); font-weight: 600; }
.bf4-hud svg.hs { width: 15px; height: 15px; vertical-align: -2px; margin-left: 3px; color: #ffd24a; }
@keyframes hud-rein { from { opacity: 0; transform: translateX(24px); } }
/* Punkte-Box */
.hud-wertung { padding: 10px 14px 8px; transition: box-shadow .35s; }
.hud-wertung .hw-oben, .hud-wertung .hw-serie { opacity: .5; transition: opacity .35s; }
.hud-wertung.aktiv .hw-oben, .hud-wertung.aktiv .hw-serie { opacity: 1; }
.hud-wertung.aktiv { opacity: 1; box-shadow: inset 0 2px 0 #ffd24a; }
.hw-oben { display: flex; align-items: flex-end; gap: 14px; min-height: 26px; }
.hw-zeilen { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; gap: 2px; }
.hw-zeilen li { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; color: #f4f4f4; animation: hud-rein .25s ease-out; }
.hw-zeilen li em { font-style: normal; font-weight: 600; color: #fff; min-width: 34px; text-align: right; }
.bf4-hud .hw-summe { font: 600 40px/1 var(--hud); color: #fff; min-width: 82px; text-align: right; text-shadow: 0 0 14px rgba(255,255,255,.25); }
.hw-summe.tick { animation: hw-tick .35s ease-out; }
@keyframes hw-tick { from { transform: scale(1.25); color: #ffd24a; } }
.hw-serie { display: flex; align-items: center; gap: 8px; min-height: 0; margin-top: 6px; }
.hw-serie:empty { display: none; }
.bf4-hud .hw-serie .label { background: #d8dde3; color: #1a1d22; font: 700 14px/1 var(--hud); padding: 4px 8px; letter-spacing: .05em; }
.hw-serie .schaedel { display: inline-flex; gap: 2px; }
.hw-serie .schaedel i { width: 18px; height: 18px; background: #e9edf2; -webkit-mask: var(--schaedel) center / contain no-repeat; mask: var(--schaedel) center / contain no-repeat; animation: hud-rein .2s ease-out; }
.bf4-hud .hw-serie .x { font-size: 13px; line-height: 1; margin-left: auto; border: 1px solid #c9ced6; color: #e9edf2; font: 600 13px/1 var(--hud); padding: 3px 6px; }
.bf4-hud { --schaedel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1C5.6 1 2.5 4.2 2.5 8.4c0 2.4 1 4 2.4 5v2.3c0 .7.6 1.3 1.3 1.3h.9v1.5h1.6V17h2.6v1.5h1.6V17h.9c.7 0 1.3-.6 1.3-1.3v-2.3c1.4-1 2.4-2.6 2.4-5C17.5 4.2 14.4 1 10 1Zm-3 11a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm6 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm-3 2.4-1.2-2h2.4l-1.2 2Z'/%3E%3C/svg%3E"); }
.bf4-hud .hw-stat { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.1); font: 600 15px/1.1 var(--hud); color: #fff; }
.bf4-hud .hw-stat span { display: grid; gap: 3px; text-align: center; flex: 1; }
.bf4-hud .hw-stat i { font-style: normal; font-weight: 400; font-size: 11px; letter-spacing: .12em; color: #9aa4b2; }
.bf4-hud .hud-feed li { font-size: 17px; }
.hw-stat svg.hs { width: 11px; height: 11px; margin: 0 2px 0 0; vertical-align: -1px; }

/* Schalter */
.bf4-schalter { position: fixed; left: 12px; bottom: 12px; z-index: 90; font: bold 11px Verdana, sans-serif; color: #ccc; background: rgba(0,0,0,.75); border: 1px solid #555; padding: 5px 9px; cursor: pointer; }
.bf4-schalter[aria-pressed="true"] { color: #6fd0ff; border-color: #3db2ff; }

/* schmale Feed-Box (Rand-Variante): kleinere Schrift, damit die Zeilen nicht abgeschnitten werden */
@container (max-width: 470px) { .bf4-hud .hud-feed li { font-size: 14.5px; } }
@media (max-width: 700px) { .bf4-hud { width: 300px; } .hud-feed li { font-size: 13px; } .hw-summe { font-size: 28px; } .he-titel { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .bf4-jet, .bf4-heli, .bf4-hud { display: none !important; } }
