/* Planer: gleiche Palette wie das Mastodon-Theme / Forum (theme/custom.css) */
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap; src: url('/freespawn-fonts/inter-var.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 700; font-display: swap; src: url('/freespawn-fonts/chakra-petch-700.woff2') format('woff2'); }

:root {
  --bg: #0c0c11; --surface: #15151d; --surface-2: #1d1d28; --border: #2c2c3a; --border-strong: #6e6e88;
  --text: #f4f4f8; --muted: #b9b9c9; --accent: #ff6d00; --accent-hover: #ff8a33; --on-accent: #14100c; --error: #ff7b7b;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Chakra Petch', 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 1rem/1.6 var(--body);
  background:
    radial-gradient(1100px 420px at 50% -8%, rgba(255,109,0,.10), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,109,0,.018) 0, rgba(255,109,0,.018) 2px, transparent 2px, transparent 48px),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-hover); }
h1, h2 { font-family: var(--display); letter-spacing: .02em; line-height: 1.25; }
h1 { font-size: 1.6rem; margin: 0 0 1rem; }
h2 { font-size: 1.2rem; margin: 2.5rem 0 1rem; }

.fs-top {
  display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem;
  background: linear-gradient(120deg, #c24a00 0%, #a33d00 55%, #6b2800 100%);
  border-bottom: 2px solid var(--accent);
}
.fs-brand { display: inline-flex; align-items: center; gap: .9rem; color: #fff; text-decoration: none; font: 700 1.25rem/1 var(--display); letter-spacing: .03em; }
.fs-mark { width: 6px; height: 20px; margin-right: 9px; background: #fff; transform: skewX(-18deg); box-shadow: 9px 0 0 rgba(255,255,255,.45); }
.fs-top-title { color: rgba(255,255,255,.85); font-weight: 600; }
.fs-back { margin-left: auto; color: #fff; font-weight: 600; font-size: .9375rem; }

main { max-width: 42rem; margin: 0 auto; padding: 2rem 1rem 4rem; }
label { display: block; margin: 1.25rem 0 .35rem; font-weight: 600; font-size: .9375rem; }
input, textarea, select {
  width: 100%; padding: .6rem .75rem; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border-strong); border-radius: 8px; font: inherit;
}
textarea { resize: vertical; min-height: 9rem; }
input:focus-visible, textarea:focus-visible, select:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 34rem) { .grid { grid-template-columns: 1fr; } }
.muted { color: var(--muted); }
.hint { margin: .35rem 0 0; font-size: .875rem; }
.row-between { display: flex; justify-content: space-between; gap: 1rem; font-size: .875rem; margin-top: .3rem; }
.error { color: var(--error); }
.over { color: var(--error); font-weight: 600; }
.actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.msg { font-size: .9375rem; }
.msg.ok { color: #7bd88f; }
.msg.err { color: var(--error); }

.btn { font: inherit; font-weight: 700; padding: .65rem 1.25rem; border-radius: 8px; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); padding: .4rem .8rem; font-weight: 600; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: transparent; color: var(--error); border-color: #6b2a2a; padding: .4rem .8rem; font-weight: 600; }
.btn-danger:hover { background: #3a1519; }
.btn-link { background: none; color: var(--accent-hover); padding: 0; text-decoration: underline; font-weight: 600; }

.who { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; color: var(--muted); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; }
.card time { display: block; font-weight: 700; color: var(--accent-hover); margin-bottom: .35rem; }
.card .cw { font-weight: 600; margin: 0 0 .25rem; }
.card .body { margin: 0 0 .75rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.card .tools { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.card input[type=datetime-local] { width: auto; padding: .35rem .5rem; }
@media (max-width: 34rem) { .fs-top-title { display: none; } .fs-back { white-space: nowrap; } }
