/* isdaniel.online – Crossover aus Nachrichtensender und Bundesamt.
   Farben und Schriften als Variablen: Wer das Design ändern will, fängt hier an. */

@font-face { font-family: Oswald; src: url(fonts/oswald-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Oswald; src: url(fonts/oswald-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/inter-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url(fonts/ibm-plex-serif-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url(fonts/ibm-plex-serif-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url(fonts/ibm-plex-serif-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url(fonts/ibm-plex-serif-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #10172A;
  --navy-2: #23304F;
  --red: #D7141A;
  --news-bg: #F2F3F5;
  --card: #FFFFFF;
  --line: #E3E6EC;
  --text: #10172A;
  --muted: #4B5468;
  --blue: #1D6FE0;
  --green: #0E7A44;
  --orange: #B25F0A;

  --paper-bg: #EFE9DA;
  --paper: #FBF8F0;
  --ink: #1F2A44;
  --ink-muted: #4A5470;
  --stamp: #B3261E;

  --f-head: Oswald, "Arial Narrow", sans-serif;
  --f-body: Inter, system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --f-serif: "IBM Plex Serif", Georgia, serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--f-body); color: var(--text); background: var(--news-bg); line-height: 1.5; }
body.world-amt { background: var(--paper-bg); color: var(--ink); }
a { color: var(--blue); }
.world-amt a { color: var(--ink); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 24px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 24px; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.world-amt .muted { color: var(--ink-muted); }
.small { font-size: 13px; }
h1, h2, h3 { margin: 0; line-height: 1.15; }

/* ---------- Kopfzeile ---------- */
.topbar { background: var(--navy); color: #fff; padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.topbar .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-box { background: var(--red); padding: 2px 10px; font-family: var(--f-head); font-weight: 700; font-size: 20px; }
.brand-name { font-family: var(--f-head); font-size: 20px; letter-spacing: 1px; }
.mainnav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; font-weight: 600; }
.mainnav a { color: #fff; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.mainnav a.active, .mainnav a:hover { border-bottom-color: var(--red); }
.mainnav .nav-user { color: #C3CAD9; }
.navtoggle, .navburger { display: none; }
@media (max-width: 760px) {
  .navburger { display: block; color: #fff; border: 1px solid #fff; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-weight: 600; }
  .mainnav { display: none; width: 100%; flex-direction: column; }
  .navtoggle:checked ~ .mainnav { display: flex; }
}

.warnbar { padding: 10px 20px; font-weight: 800; font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.warn-label { background: var(--navy); padding: 2px 8px; border-radius: 3px; }
.warn-gelb { background: #F5D547; color: var(--navy); } .warn-gelb .warn-label { color: #F5D547; }
.warn-orange { background: #E07A12; color: var(--navy); } .warn-orange .warn-label { color: #FFB25B; }
.warn-rot { background: var(--red); color: #fff; } .warn-rot .warn-label { color: #FF9B9E; }

.amt-head { border-bottom: 3px double var(--ink); background: var(--paper-bg); }
.amt-head-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 14px; }
.amt-title { font-family: var(--f-serif); font-size: 26px; font-weight: 700; }
.amt-seal { width: 52px; height: 52px; color: var(--ink); flex: 0 0 auto; }

.flash { padding: 12px 16px; border-radius: 4px; font-weight: 600; }
.flash-ok { background: #E3F4EA; color: #0B5A33; border: 1px solid #9CD3B4; }
.flash-err { background: #FDE8E8; color: #8A1116; border: 1px solid #F1A9AB; }

/* ---------- Layout-Bausteine ---------- */
.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.col-main { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.col-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

.card { background: var(--card); border-radius: 6px; padding: 22px 24px; }
.card.top-blue { border-top: 5px solid var(--blue); }
.card.top-green { border-top: 5px solid var(--green); }
.card.top-orange { border-top: 5px solid #E07A12; }
.card.top-navy { border-top: 5px solid var(--navy); }
.kicker { font-family: var(--f-head); font-size: 15px; letter-spacing: 1px; text-transform: uppercase; }
.top-blue .kicker { color: var(--blue); } .top-green .kicker { color: var(--green); } .top-orange .kicker { color: var(--orange); } .top-navy .kicker { color: var(--muted); }
.card h2 { font-family: var(--f-head); font-size: 26px; font-weight: 700; margin: 6px 0 8px; }
.big { font-size: 34px; font-weight: 800; line-height: 1.1; }
.col-side .big { font-size: 30px; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 6px; }
.up { color: var(--green); font-weight: 800; } .down { color: var(--red); font-weight: 800; }

.paper { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); padding: 22px 24px; font-family: var(--f-serif); }
.paper .label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-muted); }
.paper h2, .paper h3 { font-family: var(--f-serif); font-weight: 700; margin-top: 6px; }
.paper h2 { font-size: 28px; } .paper h3 { font-size: 20px; }
.stamp { display: inline-block; border: 4px solid var(--stamp); color: var(--stamp); font-family: var(--f-serif); font-weight: 700; padding: 2px 14px; transform: rotate(-6deg); letter-spacing: 1px; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; border-radius: 6px; padding: 36px 32px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; background-image: radial-gradient(circle at 85% 15%, var(--navy-2), var(--navy) 60%); }
.hero-main { flex: 999 1 480px; display: flex; flex-direction: column; gap: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--red); padding: 3px 10px; font-size: 13px; font-weight: 800; letter-spacing: 1px; color: #fff; }
.hero h1 { font-family: var(--f-head); font-size: clamp(42px, 7vw, 76px); font-weight: 700; text-transform: uppercase; line-height: 1; }
.hero p { font-size: 18px; color: #C3CAD9; margin: 0; max-width: 640px; }
.hero-doc { flex: 0 0 auto; background: var(--paper); color: var(--ink); padding: 18px 22px; transform: rotate(3deg); font-family: var(--f-mono); font-size: 13px; line-height: 1.6; box-shadow: 0 8px 24px rgba(0,0,0,.35); max-width: 280px; }
.hero-doc .stamp { font-size: 28px; margin: 10px 0; transform: rotate(-8deg); }
.status-nein .stamp, .status-vermutlich .stamp { font-size: 22px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 4px; font: 800 15px var(--f-body); text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #B01015; }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; font-weight: 600; }
.btn-amt { background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-weight: 600; border-radius: 0; }
.btn-amt:hover { background: #2E3C60; }
.btn-amt-outline { background: transparent; color: var(--ink); border-color: var(--ink); font-family: var(--f-mono); font-weight: 400; border-radius: 0; }
.btn-stamp { background: var(--stamp); color: #fff; font-family: var(--f-mono); font-weight: 600; border-radius: 0; }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
button:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* ---------- Ticker / Listen ---------- */
.ticker { display: flex; flex-direction: column; }
.ticker-row { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.ticker-time { font-weight: 800; color: var(--red); width: 52px; flex: 0 0 auto; }
.ticker-row.is-offline { background: #EAF6EE; }
.ticker-row.is-statement { background: #FFF4E5; }
.ticker-row.is-statement .ticker-time { color: var(--orange); }
.az { font-family: var(--f-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px dashed #C9CDD6; }
.kv:first-child { border-top: 0; }
.paper .kv { border-top-color: #8C93A8; font-family: var(--f-mono); font-size: 15px; }

/* ---------- Formulare (Amt) ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, legend { font-weight: 600; }
.form input[type=text], .form input[type=number], .form input[type=password], .form select, .form textarea {
  min-height: 46px; padding: 10px 12px; border: 1px solid var(--ink); background: #fff; font: 15px var(--f-mono); color: var(--ink); border-radius: 0; width: 100%; }
.form textarea { resize: vertical; min-height: 90px; }
fieldset { border: 1px solid var(--ink); padding: 12px 16px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.radio { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.radio input, .check input { width: 18px; height: 18px; flex: 0 0 auto; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.inline, .form.inline { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline .field { flex: 1 1 120px; }
.wartenummer { font-family: var(--f-mono); border: 2px solid var(--ink); background: var(--paper); padding: 8px 14px; }

/* ---------- Bingo ---------- */
.bingo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bingo form { margin: 0; }
.bingo .cell { width: 100%; min-height: 72px; padding: 8px 6px; font: 600 13px/1.25 var(--f-body); border: 1px solid #C9CDD6; background: #EEF0F4; color: var(--text); border-radius: 4px; text-align: center; display: flex; align-items: center; justify-content: center; }
.bingo button.cell { cursor: pointer; }
.bingo button.cell:hover { border-color: var(--red); }
.bingo .cell.marked { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Statistik ---------- */
.spark { width: 100%; height: 70px; display: block; }
.spark-big { height: 200px; }
.hours { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; text-align: center; font-size: 13px; }
.hours div { border: 1px solid var(--line); border-radius: 4px; padding: 6px 0; }
.hours .peak { background: var(--navy); color: #fff; border-color: var(--navy); }
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 11px; min-width: 640px; }
.heat .c { aspect-ratio: 1; border-radius: 2px; }
.heat .lab { color: var(--muted); display: flex; align-items: center; }
.scroll-x { overflow-x: auto; }
.rank { display: flex; flex-direction: column; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.rank-row:first-child { border-top: 0; }
.rank-pos { width: 28px; font-family: var(--f-head); font-size: 20px; }
.rank-pts { margin-left: auto; font-weight: 800; }
.tag { font-size: 12px; background: #EEF0F4; border-radius: 3px; padding: 1px 6px; color: var(--muted); }

.sitefoot { font-size: 12px; color: var(--muted); text-align: center; padding-bottom: 40px; }
.world-amt .sitefoot { color: var(--ink-muted); }

/* ---------- Bescheid (druckbar) ---------- */
.bescheid { max-width: 780px; margin: 0 auto; background: #fff; padding: 48px 56px; font-family: var(--f-serif); color: #111; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.bescheid h1 { font-size: 24px; margin: 24px 0 12px; }
.bescheid .meta { font-family: var(--f-mono); font-size: 13px; text-align: right; }
.bescheid table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.bescheid td { border-bottom: 1px solid #ccc; padding: 6px 0; }
.bescheid td:last-child { text-align: right; font-family: var(--f-mono); }
@media print {
  .topbar, .warnbar, .amt-head, .sitefoot, .noprint { display: none !important; }
  body { background: #fff; }
  .bescheid { box-shadow: none; padding: 0; }
}

@media (max-width: 600px) {
  .hero { padding: 26px 20px; }
  .hero-doc { transform: none; max-width: none; width: 100%; }
  .card, .paper { padding: 18px; }
  .bescheid { padding: 28px 20px; }
}
