/* Bank of Rufus – Stil nach dem Firefly-/PSD-Entwurf */
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-700.woff2") format("woff2"); }

:root {
  --bg: #1e2730; --bg-deep: #0d1520; --panel: #1e2936; --panel-line: #465870;
  --gold: #d4ac5c; --gold-text: #e8c47a; --gold-nav: #e0b86a;
  --text: #e8e8e8; --muted: #b8bcc0; --dim: #8a929b;
  --blue-1: #26629e; --blue-2: #16406c; --blue-line: #96b9d7;
  --col: min(94vw, 640px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 500 15px/1.6 "Montserrat", Arial, sans-serif; }
body > main { flex: 1 0 auto; padding-bottom: 32px; }
body > header, body > footer { flex: none; }
img { max-width: 100%; display: block; }
a { color: var(--gold-text); }
a:hover { color: #fff; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #000; padding: 6px 10px; z-index: 10; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; }

/* ---------- Kopf mit Weltraum ---------- */
.space { position: relative; background: #0b1420; border-bottom: 3px solid #2a3846; padding: 6px 0 0; isolation: isolate; }
.space-clip { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.space-bg { position: absolute; left: 0; right: 0; top: 0; height: 135%; background: url("../img/bg-page.webp") center top / cover no-repeat; will-change: transform; }
.space::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40px; background: linear-gradient(transparent, rgba(11,20,32,.35)); pointer-events: none; z-index: -1; }

.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.brand img { width: 174px; height: 74px; mix-blend-mode: lighten; }
.brand span { font-size: 7.5px; letter-spacing: .02em; color: #c8c8c8; margin-top: 1px; }
.page-sub .space { padding-bottom: 26px; }

.nav { width: max-content; max-width: 94vw; margin: 12px auto 0; background: rgba(24,38,54,.92); border: 1px solid #a88c58; border-radius: 1px; }
.nav ul { list-style: none; margin: 0; padding: 0 10px; display: flex; flex-wrap: wrap; justify-content: center; }
.nav li { display: flex; align-items: center; }
.nav li + li::before { content: "|"; color: #a89068; font-size: 11px; }
.nav a { display: block; padding: 6px 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: #f2f2f2; text-decoration: none; text-transform: uppercase; }
.nav a.gold { color: var(--gold-nav); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.nav a:hover { color: #fff; }
.nav-toggle { display: none; }

/* Bank-Status-Kachel (nur lesen, aus /status.json – keine Namen) */
.status-tile { display: block; }
.status-tile h3 { display: flex; align-items: center; justify-content: space-between; }
.status-tile .pill { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 6px; border: .8px solid #3c4c60; border-radius: 10px;
  background: rgba(13,21,32,.6); font-size: 9px; letter-spacing: .06em; color: #d6d9dc; }
.status-tile .dot { width: 7px; height: 7px; border-radius: 50%; background: #6e7781; }
.status-tile dl { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; margin: 6px 0 0; font-size: 9.5px; line-height: 1.5; }
.status-tile dt { color: var(--dim); }
.status-tile dd { margin: 0; text-align: right; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.status-tile[data-online="1"] .pill { color: #bff0d6; border-color: #2f6b50; }
.status-tile[data-state="open"] .dot { background: #4cc38a; box-shadow: 0 0 7px #4cc38a; animation: pulse 2.4s ease-in-out infinite; }
.status-tile[data-state="busy"] .dot, .status-tile[data-state="break"] .dot { background: #e0b86a; box-shadow: 0 0 5px #e0b86a; }
.status-tile[data-state="online"] .dot { background: #6aa6e0; }
.status-tile[data-state="closed"] .dot { background: #b85c5c; }
@keyframes pulse { 50% { box-shadow: 0 0 2px #4cc38a; } }

/* ---------- Slider ---------- */
.slider { position: relative; width: var(--col); margin: 12px auto 0; }
.slides { position: relative; aspect-ratio: 579 / 185; border: 1.3px solid var(--gold); border-radius: 2px; box-shadow: 0 0 9px rgba(212,172,92,.35); overflow: hidden; background: #0b1420; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slide.active { opacity: 1; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.slide.wide img { width: 64%; left: auto; right: 0; }
.slide.wide::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 46%; background: linear-gradient(90deg, #0d1828 60%, transparent); z-index: 1; }
.slide-text { position: absolute; z-index: 2; left: 3%; top: 50%; transform: translateY(-50%); width: 46%; }
.slide-text h1, .slide-text h2 { margin: 0; font: 700 clamp(13px, 3.3vw, 21px)/1.12 "Montserrat", sans-serif; text-transform: uppercase; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.slide-text em { font-style: normal; color: var(--gold-nav); }
.slide-text p { margin: .45em 0 0; font-size: clamp(10px, 2.2vw, 13.5px); font-weight: 600; color: #e8e8e8; line-height: 1.3; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 22px; height: 36px; background: none; border: 0; cursor: pointer; padding: 0; }
.slider-arrow svg { width: 14px; height: 28px; stroke: var(--gold-text); stroke-width: 1.4; fill: none; }
.slider-arrow.prev { left: -34px; } .slider-arrow.next { right: -34px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dots button { width: 22px; height: 3px; padding: 0; border: 0; border-radius: 2px; background: #50565e; cursor: pointer; }
.dots button[aria-current="true"] { background: #c8a260; }
.dots button:first-child[aria-current="true"] { background: #4682be; }

.claim { text-align: center; margin: 16px auto 0; padding: 0 3vw; font: 700 clamp(12px, 2.4vw, 15px)/1.3 "Montserrat", sans-serif; text-transform: uppercase; color: #f0f0f0; letter-spacing: .01em; }

/* ---------- Buttons ---------- */
.btn-gold { display: inline-block; position: relative; padding: 6px 22px; min-width: 166px; text-align: center; border: 1.6px solid var(--gold); border-radius: 3px;
  background: linear-gradient(#1d5487, #10345c); box-shadow: 0 0 10px rgba(212,172,92,.45); color: var(--gold-text);
  font: 700 14px/1.35 "Montserrat", sans-serif; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.btn-gold:hover { color: #fff; box-shadow: 0 0 16px rgba(212,172,92,.7); }
.cta { display: flex; justify-content: center; margin-top: 8px; transform: translateY(50%); position: relative; z-index: 2; }
.btn-blue { display: inline-block; min-width: 78px; padding: 2px 8px; text-align: center; border: .8px solid var(--blue-line); border-radius: 2px;
  background: linear-gradient(var(--blue-1), var(--blue-2)); color: #f0f4fa; font: 600 8.6px/1.6 "Montserrat", sans-serif; text-decoration: none; white-space: nowrap; }
.btn-blue:hover { filter: brightness(1.2); color: #fff; }

/* ---------- Inhalt ---------- */
main { position: relative; }
.wrap { width: var(--col); margin: 0 auto; }
.home-grid { display: grid; grid-template-columns: 296fr 247fr; gap: 0 32px; padding-top: 44px; align-items: start; }
h2.section { margin: 0 0 6px; font: 700 14px/1.3 "Montserrat", sans-serif; text-transform: uppercase; color: var(--muted); }
.fortune-tag { margin: 8px 0 4px; font: 700 11px/1.3 "Montserrat", sans-serif; text-transform: uppercase; color: #c8c8c8; }
.board { border: 1px solid #3a4a5e; border-radius: 3px; }
.tile { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 8px; margin-bottom: 10px; padding: 7px 6px 6px 8px;
  background: var(--panel); border: .8px solid var(--panel-line); border-radius: 3px; min-height: 70px; }
.tile.small { min-height: 52px; }
.tile h3 { grid-column: 1 / -1; margin: 0; font: 700 12px/1.2 "Montserrat", sans-serif; text-transform: uppercase; color: #fff; }
.tile ul { position: absolute; right: 8px; top: 6px; margin: 0; padding: 0; list-style: none; font-size: 7.5px; line-height: 1.45; color: #d0d4d8; }
.tile ul li::before { content: "• "; }

/* Unterseiten */
.page { padding: 34px 0 40px; }
.page h1 { margin: 0 0 10px; font: 700 22px/1.25 "Montserrat", sans-serif; text-transform: uppercase; color: #fff; }
.page h1 em { font-style: normal; color: var(--gold-nav); }
.page h2 { margin: 26px 0 6px; font: 700 14px/1.3 "Montserrat", sans-serif; text-transform: uppercase; color: var(--gold-text); }
.page p, .page li { color: #d6d9dc; font-size: 14px; }
.card { background: var(--panel); border: .8px solid var(--panel-line); border-radius: 3px; padding: 14px 16px; margin: 14px 0; }
.soon { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--gold-text); border: 1px solid var(--gold); border-radius: 2px; padding: 1px 6px; vertical-align: middle; }
.draft { background: #3a2c12; border-color: #a8843c; }

/* Datenseiten (Inventory, Transactions) */
.lead-note { color: var(--muted); margin-top: 0; }
.data-panel { background: var(--panel); border: .8px solid var(--panel-line); border-radius: 3px; padding: 12px 14px; margin-top: 14px; overflow-x: auto; }
.data-sum { margin: 0 0 8px; font-weight: 700; color: var(--gold-text); font-size: 13px; }
table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.data th { text-align: left; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); font-weight: 700; padding: 4px 8px 6px; border-bottom: 1px solid #3c4c60; }
table.data td { padding: 6px 8px; border-bottom: 1px solid #2a3846; vertical-align: top; color: #e2e5e8; }
table.data tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .cat { color: var(--muted); white-space: nowrap; }
table.data .when { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
table.data .empty { text-align: center; color: var(--dim); padding: 18px; }
.tag { display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 1px 7px; border-radius: 2px; border: 1px solid; }
.tag.deposit { color: #8fe0b5; border-color: #2f6b50; } .tag.withdrawal { color: #f0a0a0; border-color: #7a3a3a; } .tag.transfer { color: #a8cdf0; border-color: #36597c; }
.data-upd { margin: 8px 0 0; font-size: 10.5px; color: var(--dim); }

/* Konto: Formulare */
.account-link { position: absolute; top: 12px; right: 16px; z-index: 3; padding: 4px 11px; border: 1px solid #3c4c60; border-radius: 14px;
  background: rgba(13,21,32,.78); font-size: 10.5px; font-weight: 700; color: var(--gold-text); text-decoration: none; }
.form { display: grid; gap: 12px; max-width: 460px; }
.form label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.form label small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--dim); }
.form input[type=email], .form input[type=url], .form input[type=text], .form input[type=password] {
  font: 500 14px "Montserrat", sans-serif; color: #fff; background: #111b27; border: 1px solid #465870; border-radius: 3px; padding: 8px 10px; }
.form input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 2px rgba(212,172,92,.25); }
.form .check { display: flex; gap: 8px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12.5px; color: #d6d9dc; }
.form .hp { position: absolute; left: -9999px; }
.form .hint { margin: -6px 0 0; font-size: 12px; color: var(--gold-text); min-height: 1em; }
.form .alt { margin: 0; font-size: 12.5px; color: var(--muted); }
.form button { justify-self: start; cursor: pointer; }
.msg { margin: 0; min-height: 1em; font-size: 13px; font-weight: 600; color: #f0a0a0; }
.msg.good { color: #8fe0b5; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--dim); } dl.kv dd { margin: 0; color: #fff; font-weight: 600; }
.verify code { font: 700 15px monospace; color: var(--gold-text); background: #111b27; padding: 2px 8px; border-radius: 3px; user-select: all; }
@media (max-width: 760px) { .account-link { position: static; display: block; width: max-content; margin: 8px auto 0; } }

/* Konto: Schritte */
.wide-page { width: min(94vw, 900px); }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; counter-reset: s; flex-wrap: wrap; }
.steps li { counter-increment: s; flex: 1 1 160px; padding: 7px 10px; border: 1px solid #3c4c60; border-radius: 3px; background: rgba(13,21,32,.75);
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); }
.steps li::before { content: counter(s) "  "; color: var(--dim); }
.steps li.now { border-color: var(--gold); color: var(--gold-text); }
.steps li.done { border-color: #2f6b50; color: #8fe0b5; }
.steps li.done::before { content: "✓  "; color: #8fe0b5; }
.note-ok { margin: 10px 0 0; color: #8fe0b5; font-weight: 600; font-size: 13px; }

/* Inventar-Raster – angelehnt an das Fracht-Terminal im Spiel */
.term { margin: 16px 0; border: 1px solid rgba(110,190,215,.35); border-radius: 4px; background: rgba(8,16,24,.88);
  box-shadow: 0 0 18px rgba(60,150,190,.12) inset; }
.term-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 10px 14px; border-bottom: 1px solid rgba(110,190,215,.25); }
.term-head h2 { margin: 0; font: 700 13px/1.2 "Montserrat", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #cfe9f2; }
.term-head h2 span { color: #6fa9bf; font-weight: 600; }
.term-cap { margin: 0; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8fc6d8; }
.term-head input { margin-left: auto; width: 180px; font: 500 12px "Montserrat", sans-serif; color: #e6f4fa; background: rgba(20,36,48,.9);
  border: 1px solid rgba(110,190,215,.35); border-radius: 2px; padding: 5px 8px; }
.term-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; padding: 12px; }
.tile-inv { position: relative; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 6px;
  background: linear-gradient(160deg, rgba(40,66,82,.55), rgba(14,26,36,.9)); border: 1px solid rgba(110,190,215,.28); border-radius: 2px; overflow: hidden; }
.tile-inv:hover { border-color: rgba(160,220,240,.8); box-shadow: 0 0 10px rgba(110,190,215,.35); }
.tile-inv .ico { position: absolute; inset: 14% 22% 32%; display: grid; place-items: center; }
.tile-inv svg { width: 100%; height: 100%; fill: none; stroke: #9fd3e4; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; opacity: .85; }
.tile-inv .badge { position: absolute; top: 4px; right: 5px; font-size: 9.5px; font-weight: 700; color: #e6f4fa; background: rgba(0,0,0,.45); padding: 0 4px; border-radius: 2px; }
.tile-inv .qual { position: absolute; top: 4px; left: 5px; font-size: 9px; font-weight: 700; color: #f0c98a; }
.tile-inv .name { position: relative; font-size: 10px; font-weight: 600; line-height: 1.2; color: #e6f4fa; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.term-empty { grid-column: 1 / -1; text-align: center; color: #6fa9bf; padding: 20px; margin: 0; }
.term-foot { margin: 0; padding: 0 14px 10px; font-size: 10.5px; color: #6fa9bf; }

/* Financing */
.fin-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid #3c4c60; }
.fin-total span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.fin-total strong { font-size: 22px; font-weight: 700; color: var(--gold-text); font-variant-numeric: tabular-nums; }

/* ---------- Fuß ---------- */
footer { background: var(--bg-deep); margin-top: 0; padding: 6px 3vw 8px; text-align: center; font-size: 7.5px; color: #b0b6bc; }
footer nav a { color: #b0b6bc; text-decoration: none; margin: 0 2px; }
footer nav a:hover { color: #fff; }
footer nav span { margin: 0 4px; }
footer .fan { margin: 3px 0 0; color: #6e7781; }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: block; margin: 10px auto 0; background: rgba(24,38,54,.92); border: 1px solid #a88c58; color: var(--gold-text); font: 700 11px "Montserrat", sans-serif; padding: 6px 14px; letter-spacing: .08em; }
  .nav { display: none; width: 94vw; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 4px 0; }
  .nav li + li::before { content: none; }
  .nav a { font-size: 12px; padding: 8px 14px; text-align: center; }
  .slider-arrow { display: none; }
  .home-grid { grid-template-columns: 1fr; gap: 26px; }
  footer { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } html { scroll-behavior: auto; } }

