/* Dream City – Mod-Portal. Farben und Schrift wie die Startseite (Straßenschild-Gelb auf Nachtblau). */
:root {
  --night: #0f1420; --night-2: #151c2b; --night-3: #1c2537; --line: #2a3448;
  --text: #f1ede4; --muted: #a9b0be; --sign: #f4c300; --sign-dark: #c99f00;
  --good: #6fcf86; --bad: #ff7a6b; --warn: #ffb347;
  --radius: 14px;
  --display: Bahnschrift, "DIN Condensed", "Arial Narrow", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body { margin: 0; background: var(--night); color: var(--text); font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-top: 68px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code { font: 14px/1.4 Consolas, "Cascadia Mono", monospace; background: var(--night-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--sign); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 32px); margin: 48px auto 64px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--sign); color: #111; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-stretch: condensed; font-weight: 700; line-height: 1.05; letter-spacing: .005em; }
h1 { font-size: clamp(36px, 5.5vw, 60px); margin: 0 0 14px; text-transform: uppercase; }
h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 44px 0 14px; text-transform: uppercase; }
h3 { font-size: 22px; margin: 0 0 6px; }
.kicker { font-family: var(--display); text-transform: uppercase; letter-spacing: .16em; font-size: 14px; color: var(--sign); margin: 0 0 10px; }
.lede { color: var(--muted); font-size: 18px; max-width: 680px; margin: 0 0 18px; }
.meta, .small, .hint { color: var(--muted); font-size: 14px; }
.opt { color: var(--muted); font-weight: 400; }

/* Kopfleiste */
.bar { position: fixed; inset: 0 0 auto; z-index: 30; background: rgba(15, 20, 32, .94); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.bar .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: inline-flex; text-decoration: none; background: var(--sign); color: #111; border-radius: 5px; padding: 3px; flex: none; }
.logo span { border: 2px solid #111; border-radius: 3px; padding: 2px 10px 1px; font: 700 19px/1.1 var(--display); font-stretch: condensed; }
.section { font: 700 20px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--sign); }
.bar nav { display: flex; gap: 22px; margin-left: auto; }
.bar nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--text); }

/* Knöpfe und Links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; cursor: pointer; font: 700 17px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; background: var(--sign); color: #111; border: 0; border-radius: 10px; padding: 15px 24px; box-shadow: 0 5px 0 var(--sign-dark); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--sign-dark); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--sign-dark); }
.btn.small { padding: 10px 16px; font-size: 15px; box-shadow: 0 4px 0 var(--sign-dark); }
.btn.danger { background: var(--bad); box-shadow: 0 4px 0 #b9493d; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--line); padding-bottom: 1px; }
.link:hover { border-color: var(--sign); }
.link-button { background: none; border: 0; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; border-bottom: 2px solid var(--line); padding: 0 0 1px; }
.link-button:hover { border-color: var(--sign); }

/* Meldungen */
.flash { margin: 20px 0 0; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--night-3); }
.flash.ok { border-color: rgba(111, 207, 134, .5); }
.err { color: var(--bad); font-size: 14px; margin: 6px 0 0; }
.ok { color: var(--good); }
.bad { color: var(--bad); }
.warn { color: var(--warn); font-size: 14px; }

/* Einstieg und Suche */
.intro { padding: 56px 0 30px; background: radial-gradient(1200px 400px at 80% -10%, rgba(244, 195, 0, .12), transparent 60%), linear-gradient(180deg, var(--night-2), var(--night)); border-bottom: 1px solid var(--line); }
.search { display: flex; gap: 10px; max-width: 640px; margin-top: 22px; }
.search input { flex: 1; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--night); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
input:focus, select:focus, textarea:focus { border-color: var(--sign); outline: none; }
input[type=file] { padding: 10px; }
textarea { resize: vertical; }

/* Liste */
.list { padding: 26px 0 64px; }
.filters { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a, .sorting a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.chips a[aria-current], .sorting a[aria-current] { color: #111; background: var(--sign); border-color: var(--sign); font-weight: 600; }
.chips a:hover, .sorting a:hover { color: var(--text); border-color: var(--muted); }
.sorting { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.sorting .fit { border-style: dashed; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, border-color .15s; }
.card a:hover { transform: translateY(-3px); border-color: var(--sign); }
.thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--night-3), #253049); display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb span { font: 700 56px/1 var(--display); color: var(--sign); opacity: .8; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .meta { margin: 0; }
.card .summary { margin: 4px 0 8px; color: #d8d6cf; font-size: 15px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tags span, .code { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--night-3); color: var(--muted); }
.tags .code, .code { background: rgba(255, 179, 71, .18); color: var(--warn); font-weight: 600; }
.tags .bad { background: rgba(255, 122, 107, .15); color: var(--bad); }
.empty { text-align: center; padding: 48px 16px; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty h2 { margin-top: 0; }

/* Panels und Formulare */
.panel { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.form label { display: block; font-weight: 600; margin: 16px 0 6px; }
.form label:first-of-type { margin-top: 0; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: auto; margin-top: 5px; }
.actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 22px; }
.trap { position: absolute; left: -9999px; }
.narrow-form { max-width: 520px; }
.inline { display: inline; }

/* Detailseite */
.detail { padding: 28px 0 64px; }
.crumbs { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.crumbs a { color: var(--muted); }
.detail-head { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.get .btn { width: 100%; margin: 8px 0 10px; }
.get .version { font-weight: 600; margin: 0 0 8px; }
.badge { display: inline-block; font-size: 13px; padding: 4px 10px; border-radius: 8px; margin: 0 0 10px; }
.badge.ok { background: rgba(111, 207, 134, .14); }
.badge.bad { background: rgba(255, 122, 107, .14); }
.how { font-size: 14px; margin: 0; }
.hero-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); margin: 26px 0 8px; max-height: 620px; object-fit: cover; }
.prose { max-width: 760px; }
.prose p { margin: 0 0 14px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.hash { font-size: 12px; }
.owner { margin-top: 34px; }
.owner h2 { margin-top: 0; }
details.danger, details.report { margin-top: 18px; }
details summary { cursor: pointer; color: var(--muted); font-weight: 600; }
details form { margin-top: 12px; display: grid; gap: 10px; max-width: 520px; }

/* Konto */
.account { padding: 36px 0 64px; }
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.report-item { margin-bottom: 12px; }

/* SDK und Anleitung */
.sdk { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.steps { list-style: none; counter-reset: step; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 38px 1fr; gap: 2px 12px; }
.steps li::before { content: counter(step); grid-row: span 2; width: 34px; height: 34px; border-radius: 8px; background: var(--sign); color: #111; display: grid; place-items: center; font: 700 18px/1 var(--display); }
.steps span { color: var(--muted); font-size: 15px; }
.features { padding: 36px 0 64px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid3 p { color: var(--muted); margin: 0; }
.compat { margin-top: 18px; }
.compat h2 { margin-top: 0; }
.docs-page { padding: 34px 0 64px; }
.docs-head { margin-bottom: 26px; }
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.toc { position: sticky; top: 88px; font-size: 14px; }
.toc ol { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }
.docs h2 { margin-top: 36px; }
.docs h2:first-child { margin-top: 0; }
.docs li { margin-bottom: 6px; }
pre.code { background: #0a0e17; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
pre.code code { background: none; border: 0; padding: 0; font-size: 14px; }
.rules { margin-top: 36px; max-width: 900px; }
.rules h2 { margin-top: 0; }

footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .detail-head, .sdk, .docs-layout { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 720px) {
  .bar .wrap { gap: 10px; }
  .section { display: none; }
  .bar nav { gap: 12px; }
  .bar nav a:nth-child(3) { display: none; }
  .bar .btn.small { padding: 9px 10px; font-size: 13px; }
  .search { flex-direction: column; }
  .account-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) { .bar nav a:nth-child(2) { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
