/* ============================================================================
   PlateRage – Web-App Styles (CI: immer dunkel, Systemschrift, Orange-Akzent)
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #0F1115;
  color: #F5F7FA;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: #FF4D00; text-decoration: none; }
a:hover { color: #E64500; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.brand-word { color: #F5F7FA; font-weight: 700; letter-spacing: -0.025em; }
.text-pr-orange { color: #FF4D00; }
.text-praise { color: #00D97E; }
.text-rage { color: #EF4444; }
.muted { color: #9AA3AF; }
.hint { color: #6B7280; font-size: 0.75rem; }

/* ── Topbar / Navbar ──────────────────────────────────────────────────────── */
.topbar {
  display: flex; justify-content: flex-end; align-items: center; gap: 1.25rem;
  padding: 1rem 1.5rem; flex-shrink: 0;
}
.navbar {
  background-color: #1A1D24; border-bottom: 1px solid #2B2F3A; padding: 0.875rem 0; flex-shrink: 0;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.navbar-brand { font-size: 1.125rem; font-weight: 700; color: #F5F7FA; letter-spacing: -0.025em; }
.navbar-brand:hover { color: #F5F7FA; }
.navbar-links { display: flex; align-items: center; gap: 1.25rem; font-size: 0.875rem; font-weight: 500; }
.navbar-links a { color: #9AA3AF; }
.navbar-links a:hover { color: #F5F7FA; }
.navbar-links a.nav-active { color: #FF4D00; }
.nav-logout {
  background: none; border: 0; padding: 0 0 0 1rem; margin-left: 0.25rem; cursor: pointer;
  color: #6B7280; border-left: 1px solid #2B2F3A; display: inline-flex; align-items: center;
}
.nav-logout:hover { color: #EF4444; }
.nav-badge {
  display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px;
  background: #FF4D00; color: #fff; font-size: 0.6875rem; font-weight: 700; text-align: center; line-height: 18px;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
main.container { flex: 1; padding: 3.5rem 24px 2.5rem; } /* spezifischer als .container, sonst gewinnt dessen padding */
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .app-grid { grid-template-columns: minmax(0, 1fr); } }
.stack { display: flex; flex-direction: column; gap: 24px; }

/* ── Landing ──────────────────────────────────────────────────────────────── */
.landing-body { height: 100vh; overflow: hidden; }
.landing-wrapper { display: flex; flex-direction: column; height: 100vh; width: 100%; overflow: hidden; }
.landing-login-btn {
  font-size: 0.75rem; font-weight: 600; padding: 0.5rem 1rem; border-radius: 10px;
  background-color: #1A1D24; border: 1px solid #2B2F3A; color: #F5F7FA; transition: border-color 0.2s;
}
.landing-login-btn:hover { border-color: #FF4D00; color: #F5F7FA; }
.landing-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; }
.landing-hero-inner { max-width: 42rem; width: 100%; text-align: center; }
.landing-pill {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem;
  padding: 0.375rem 0.875rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  color: #FFD6C7; background: rgba(255,77,0,.08); border: 1px solid rgba(255,77,0,.35); text-transform: uppercase;
}
.landing-pill .dot-live {
  width: 8px; height: 8px; border-radius: 50%; background: #FF4D00; box-shadow: 0 0 16px rgba(255,77,0,.65);
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: .7; } }
.landing-headline { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1; margin-bottom: 0.75rem; }
.landing-subheadline { font-size: 1.125rem; font-weight: 500; color: #9AA3AF; margin-bottom: 1.5rem; }
.landing-note { font-size: 0.875rem; color: #6B7280; margin-top: 1.25rem; }
@media (min-width: 640px) { .landing-headline { font-size: 3rem; } .landing-subheadline { font-size: 1.25rem; } }
@media (min-width: 768px) { .landing-headline { font-size: 3.75rem; } .landing-subheadline { font-size: 1.5rem; } }

.waitlist-form { width: 100%; max-width: 28rem; margin: 0 auto; }
.waitlist-input-group { display: flex; gap: 0.5rem; }
@media (max-width: 480px) { .waitlist-input-group { flex-direction: column; } }
.waitlist-input {
  flex: 1; min-width: 0; padding: 0.75rem 1rem; border-radius: 10px; border: 1px solid #2B2F3A;
  background-color: #1A1D24; color: #F5F7FA; font-size: 0.875rem; outline: none; transition: border-color 0.2s;
}
.waitlist-input::placeholder { color: #6B7280; }
.waitlist-input:focus { border-color: #FF4D00; }
.waitlist-success { font-size: 1rem; font-weight: 500; color: #00D97E; }
.waitlist-error { margin-top: 0.5rem; font-size: 0.75rem; color: #EF4444; }
.waitlist-warn { margin-top: 0.5rem; font-size: 0.75rem; color: #EAB308; }
/* Kürzel-Feld vor der E-Mail (Launch-Plan: nur offene Regionen dürfen sich selbst anmelden) */

/* ── Footer ───────────────────────────────────────────────────────────────── */
.landing-footer { width: 100%; padding: 0.75rem 1.5rem; flex-shrink: 0; text-align: center; border-top: 1px solid #2B2F3A; }
.landing-footer-slogan { font-size: 0.75rem; margin-bottom: 0.5rem; font-weight: 500; letter-spacing: 0.025em; color: #9AA3AF; }
.landing-footer-slogan .dot { color: #FF4D00; }
.landing-footer-nav { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.footer-link { color: #9AA3AF; font-size: 0.75rem; transition: color 0.2s; }
.footer-link:hover { color: #FF4D00; }

/* ── Karten, Buttons, Inputs ──────────────────────────────────────────────── */
.card { background-color: #1A1D24; border: 1px solid #2B2F3A; border-radius: 10px; padding: 24px; }
.card h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.card h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 0.5rem; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.card-head h2 { margin-bottom: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  font-size: 0.875rem; font-weight: 600; transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background-color: #FF4D00; color: #fff; }
.btn-primary:hover { background-color: #E64500; color: #fff; }
.btn-secondary { background-color: #2B2F3A; border-color: #3A3F4B; color: #F5F7FA; }
.btn-secondary:hover { background-color: #3A3F4B; color: #F5F7FA; }
.btn-ghost { background: none; border-color: #2B2F3A; color: #9AA3AF; }
.btn-ghost:hover { border-color: #FF4D00; color: #F5F7FA; }
.btn-danger { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.3); color: #EF4444; }
.btn-danger:hover { background: rgba(239,68,68,.2); color: #EF4444; }
.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.75rem; border-radius: 6px; }
.btn-block { width: 100%; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }

.field { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1rem; }
.field label { font-size: 0.875rem; font-weight: 500; color: #9AA3AF; }
.input, .textarea {
  width: 100%; padding: 0.75rem 1rem; border-radius: 10px; border: 1px solid #2B2F3A;
  background-color: #0F1115; color: #F5F7FA; font-size: 0.875rem; outline: none; transition: border-color 0.2s;
}
.input::placeholder, .textarea::placeholder { color: #6B7280; }
.input:focus, .textarea:focus { border-color: #FF4D00; }
.textarea { min-height: 96px; resize: vertical; border-radius: 8px; line-height: 1.5; }
.row { display: flex; gap: 0.5rem; align-items: center; }
.row-wrap { flex-wrap: wrap; }
.space-between { justify-content: space-between; }

.alert { padding: 0.75rem 1rem; border-radius: 10px; font-size: 0.875rem; margin-bottom: 1rem; }
.alert-success { background: rgba(0,217,126,.10); border: 1px solid rgba(0,217,126,.3); color: #00D97E; }
.alert-error { background: rgba(239,68,68,.10); border: 1px solid rgba(239,68,68,.3); color: #EF4444; }
.alert-warn { background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3); color: #FBBF24; }
.alert-info { background: rgba(56,189,248,.10); border: 1px solid rgba(59,130,246,.3); color: #93C5FD; }

.badge { display: inline-block; padding: 0.125rem 0.5rem; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }
.badge-praise { background: rgba(0,217,126,.15); color: #00D97E; }
.badge-rage { background: rgba(239,68,68,.15); color: #EF4444; }
.badge-pending { background: rgba(234,179,8,.15); color: #EAB308; }
.badge-info { background: rgba(56,189,248,.12); color: #3B82F6; }
.badge-neutral { background: rgba(107,114,128,.15); color: #9AA3AF; }
.badge-premium { background: rgba(255,77,0,.18); color: #FF4D00; }

/* ── Status-Banner & Stats ────────────────────────────────────────────────── */
.status-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.status-banner h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.025em; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.stat { background: #0F1115; border: 1px solid #2B2F3A; border-radius: 10px; padding: 12px 16px; }
.stat-label { font-size: 0.75rem; color: #9AA3AF; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-size: 2rem; font-weight: 800; color: #FF4D00; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-value.praise { color: #00D97E; }
.stat-value.rage { color: #EF4444; }
.premium-pill { display: inline-flex; align-items: center; gap: 0.45rem; justify-self: end; align-self: center; padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid rgba(255,77,0,.3); background: rgba(255,77,0,.06); color: #C5CBD3; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.premium-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #FF4D00; box-shadow: 0 0 8px rgba(255,77,0,.6); }
.progress { height: 8px; border-radius: 999px; background: #2B2F3A; overflow: hidden; margin: 0.5rem 0; }
.progress > span { display: block; height: 100%; background: #FF4D00; border-radius: 999px; transition: width .3s; }

/* ── Kennzeichen (deutsches Schild) ───────────────────────────────────────── */
.kfz-plate {
  display: inline-flex; align-items: stretch; height: 58px; background: #fff; border: 3px solid #111; border-radius: 8px;
  overflow: hidden; color: #0A0A0A; font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif; font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.35); text-transform: uppercase; max-width: 100%;
}
.kfz-plate-sm { height: 40px; border-width: 2px; border-radius: 6px; }
.kfz-eu {
  width: 34px; flex-shrink: 0; background: #003399; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 4px; font-size: 0.75rem; line-height: 1; font-weight: 900; position: relative;
}
.kfz-plate-sm .kfz-eu { width: 24px; font-size: 0.5625rem; padding-bottom: 3px; }
.kfz-eu::before {
  content: ""; position: absolute; top: 6px; width: 22px; height: 22px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='%23FFCC00'><circle cx='12' cy='3' r='1.4'/><circle cx='16.5' cy='4.2' r='1.4'/><circle cx='19.8' cy='7.5' r='1.4'/><circle cx='21' cy='12' r='1.4'/><circle cx='19.8' cy='16.5' r='1.4'/><circle cx='16.5' cy='19.8' r='1.4'/><circle cx='12' cy='21' r='1.4'/><circle cx='7.5' cy='19.8' r='1.4'/><circle cx='4.2' cy='16.5' r='1.4'/><circle cx='3' cy='12' r='1.4'/><circle cx='4.2' cy='7.5' r='1.4'/><circle cx='7.5' cy='4.2' r='1.4'/></g></svg>") center/contain no-repeat;
}
.kfz-plate-sm .kfz-eu::before { top: 3px; width: 15px; height: 15px; }
.kfz-district { display: flex; align-items: center; justify-content: center; padding: 0 10px; font-size: 1.75rem; letter-spacing: 0.06em; min-width: 56px; }
.kfz-seals { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 2px; }
.kfz-seal { width: 10px; height: 10px; border-radius: 50%; }
.kfz-seal-hu { background: radial-gradient(#FFCC00 40%, #E0A800); }
.kfz-seal-reg { background: radial-gradient(#D3D3D3 40%, #8A8A8A); }
.kfz-number { display: flex; align-items: center; padding: 0 12px 0 10px; font-size: 1.75rem; letter-spacing: 0.06em; white-space: nowrap; }
.kfz-plate-sm .kfz-district, .kfz-plate-sm .kfz-number { font-size: 1.125rem; }
.kfz-plate-sm .kfz-seal { width: 7px; height: 7px; }
.kfz-plate-sm .kfz-seals { gap: 4px; }
@media (max-width: 480px) { .kfz-plate { height: 52px; } .kfz-district, .kfz-number { font-size: 1.35rem; } }

/* Kompakte Variante (Feed, Listen): dunkler Chip mit EU-Band statt weißem Schild */
.plate-chip {
  display: inline-flex; align-items: center; height: 30px; background: #0F1115; border: 1px solid #3A3F4B; border-radius: 6px; overflow: hidden;
  color: #F5F7FA; font-weight: 800; font-size: 0.9375rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  font-variant-numeric: tabular-nums; line-height: 1; vertical-align: middle; max-width: 100%;
}
.plate-chip .pc-eu { width: 7px; align-self: stretch; background: #003399; flex-shrink: 0; }
.plate-chip .pc-d { padding: 0 8px 0 10px; }
.plate-chip .pc-n { padding: 0 10px 0 8px; border-left: 1px solid #2B2F3A; }

/* Eingabe-Variante: Felder sitzen im Schild */
.kfz-input { width: 100%; max-width: 420px; }
.kfz-input .kfz-district, .kfz-input .kfz-number { padding: 0; }
.kfz-input input {
  height: 100%; border: 0; background: transparent; outline: none; color: #0A0A0A;
  font-family: inherit; font-weight: 900; font-size: 1.75rem; letter-spacing: 0.06em; text-transform: uppercase; text-align: center;
}
.kfz-input input:focus { background: #FFF8E1; }
.kfz-input input::placeholder { color: #B8B8B8; font-weight: 900; }
.kfz-input .kfz-district input { width: 88px; }
.kfz-input .kfz-number { flex: 1; min-width: 0; }
.kfz-input .kfz-number input { width: 100%; text-align: left; padding: 0 12px; }
@media (max-width: 480px) { .kfz-input input { font-size: 1.35rem; } .kfz-input .kfz-district input { width: 70px; } }
.kfz-feedback { margin-top: 0.5rem; font-size: 0.8125rem; min-height: 1.25rem; color: #9AA3AF; }
.kfz-feedback.ok { color: #00D97E; }
.kfz-feedback.err { color: #EF4444; }
.district-suggest { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.5rem; }
.district-suggest button {
  background: #1A1D24; border: 1px solid #2B2F3A; color: #9AA3AF; border-radius: 6px; padding: 0.2rem 0.5rem; font-size: 0.75rem; cursor: pointer;
}
.district-suggest button:hover { border-color: #FF4D00; color: #F5F7FA; }
.district-suggest b { color: #F5F7FA; }

/* ── Feed ─────────────────────────────────────────────────────────────────── */
.feed-section { display: flex; flex-direction: column; }
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.875rem; }
.feed-head h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.feed { display: flex; flex-direction: column; gap: 12px; }
/* Jeder Beitrag ist eine eigene Karte; Praise/Rage als schmale Kante links */
.post {
  display: flex; gap: 14px; padding: 16px 18px 16px 16px; background: #1A1D24; border: 1px solid #2B2F3A; border-radius: 10px;
  border-left-width: 3px;
}
.post.praise { border-left-color: #00D97E; }
.post.rage { border-left-color: #EF4444; }
.card .post { background: #0F1115; }
/* Art des Beitrags: Kreis mit Symbol (Daumen hoch / Flamme) und Label PRAISE / RAGE darunter */
.post-kind { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; width: 44px; }
.post-icon { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.post-icon svg { width: 18px; height: 18px; }
.post-icon.praise { background: rgba(0,217,126,.12); color: #00D97E; }
.post-icon.rage { background: rgba(239,68,68,.12); color: #EF4444; }
.post-kind-label { font-size: 0.5625rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; }
.post-kind.praise .post-kind-label { color: #00D97E; }
.post-kind.rage .post-kind-label { color: #EF4444; }
.post-main { flex: 1; min-width: 0; }
.post-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.625rem; font-size: 0.9375rem; min-height: 30px; }
.post-head .hint { font-size: 0.8125rem; }
.post-time { color: #6B7280; font-size: 0.8125rem; margin-left: auto; white-space: nowrap; }
.post-body { margin-top: 0.625rem; font-size: 0.9375rem; line-height: 1.5; color: #D1D5DB; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-body.redacted { filter: blur(5px); color: #6B7280; user-select: none; letter-spacing: 0.1em; pointer-events: none; }
.post-photo { margin-top: 0.75rem; max-width: 100%; max-height: 360px; border-radius: 8px; border: 1px solid #2B2F3A; display: block; }
.post-photo-locked {
  margin-top: 0.75rem; height: 140px; border-radius: 8px; border: 1px dashed #3A3F4B;
  background: repeating-linear-gradient(135deg, #1A1D24 0 10px, #15181F 10px 20px); display: flex; align-items: center; justify-content: center;
  color: #6B7280; font-size: 0.8125rem;
}
.post-sender { margin-top: 0.625rem; font-size: 0.8125rem; color: #9AA3AF; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.post-sender .plate-chip { height: 24px; font-size: 0.8125rem; }
.post-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.625rem; }
.tag { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.1rem 0.5rem; border-radius: 999px; background: #2B2F3A; color: #9AA3AF; }
.tag-orange { background: rgba(255,77,0,.18); color: #FF4D00; }
@media (max-width: 600px) { .post { padding: 14px 14px 14px 12px; gap: 10px; } .post-kind { width: 38px; } .post-icon { width: 30px; height: 30px; } .post-icon svg { width: 15px; height: 15px; } .post-kind-label { font-size: 0.5rem; } }
.feed-lock { text-align: center; padding: 1.25rem; border: 1px dashed #3A3F4B; border-radius: 10px; color: #9AA3AF; font-size: 0.875rem; margin-bottom: 1rem; }
.feed-lock b { color: #F5F7FA; }

/* ── Listen (Invites, Garage, Postfach) ───────────────────────────────────── */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid #1E2028; font-size: 0.875rem; }
.list-item:last-child { border-bottom: 0; }
.list-item .meta { color: #6B7280; font-size: 0.75rem; }
.list-item.unread { position: relative; }
.list-item.unread::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #FF4D00; flex-shrink: 0; }
.empty { color: #6B7280; font-size: 0.875rem; padding: 0.5rem 0; }

.kind-toggle { display: inline-flex; border: 1px solid #2B2F3A; border-radius: 10px; overflow: hidden; }
.kind-toggle button { background: #0F1115; border: 0; padding: 0.5rem 1rem; color: #9AA3AF; cursor: pointer; font-weight: 600; font-size: 0.875rem; }
.kind-toggle button.active-praise { background: rgba(0,217,126,.15); color: #00D97E; }
.kind-toggle button.active-rage { background: rgba(239,68,68,.15); color: #EF4444; }

/* ── Beitrag verfassen: erst RAGE/PRAISE wählen, dann Formular ───────────── */
.compose-launch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.compose-launch p { font-size: 0.875rem; }
.compose-kinds { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-kind { padding: 0.7rem 1.5rem; font-size: 0.875rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; min-width: 150px; }
.btn-kind .sign { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; }
.btn-kind .sign svg { width: 13px; height: 13px; }
.btn-kind-rage { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.35); color: #EF4444; } .btn-kind-rage .sign { background: rgba(239,68,68,.18); }
.btn-kind-rage:hover { background: rgba(239,68,68,.22); border-color: #EF4444; color: #EF4444; }
.btn-kind-praise { background: rgba(0,217,126,.12); border-color: rgba(0,217,126,.35); color: #00D97E; } .btn-kind-praise .sign { background: rgba(0,217,126,.18); }
.btn-kind-praise:hover { background: rgba(0,217,126,.22); border-color: #00D97E; color: #00D97E; }
@media (max-width: 480px) { .compose-kinds { width: 100%; } .btn-kind { flex: 1; min-width: 0; } }
.compose-form { animation: fade-in .18s ease-out; }
.compose-form.rage .textarea:focus { border-color: #EF4444; } .compose-form.praise .textarea:focus { border-color: #00D97E; }
@keyframes fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ── Ein-/ausklappbare Karten (Kreis-Battle, Ranglisten) & Feed-Seitenleiste ── */
.collapse-head { cursor: pointer; user-select: none; align-items: center; }
.collapse-head h2 { white-space: nowrap; }
.collapse-head .hint { text-align: right; }
.collapsible:not(.open) .collapse-head { margin-bottom: 0; }
.collapse-btn { background: none; border: 1px solid #2B2F3A; border-radius: 8px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: #9AA3AF; cursor: pointer; transition: transform .2s, color .2s, border-color .2s; flex-shrink: 0; }
.collapse-head:hover .collapse-btn { color: #F5F7FA; border-color: #FF4D00; }
.collapsible:not(.open) .collapse-btn { transform: rotate(-90deg); }
.feed-aside .card { padding: 20px; }
.feed-aside .battle .code { font-size: 2rem; }
.feed-aside .battle .per { font-size: 1.25rem; }
.feed-aside .leaderboard { grid-template-columns: 1fr; }

.toggle { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.875rem; color: #9AA3AF; }
.toggle input { accent-color: #FF4D00; width: 18px; height: 18px; }

.premium-card { border-color: rgba(255,77,0,.35); background: linear-gradient(180deg, rgba(255,77,0,.06), rgba(255,77,0,0) 60%), #1A1D24; }
.premium-card ul { margin: 0.5rem 0 1rem 1.1rem; padding: 0; color: #C5CBD3; font-size: 0.875rem; }
.premium-card li { margin-bottom: 0.25rem; }

.legal { max-width: 48rem; color: #C5CBD3; }
.legal h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 1rem; color: #F5F7FA; }
.legal h2 { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: #F5F7FA; }
.legal p, .legal li { font-size: 0.9375rem; margin-bottom: 0.75rem; }

.center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.w-100 { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.plate-center { display: flex; justify-content: center; }

/* ── Premium-Ausbau: Tabs, Karma, Antworten, Boost, Battle, Family ─────────── */
.tabs { display: inline-flex; border: 1px solid #2B2F3A; border-radius: 10px; overflow: hidden; }
.tabs button { background: #0F1115; border: 0; padding: 0.4rem 0.9rem; color: #9AA3AF; cursor: pointer; font-weight: 600; font-size: 0.8125rem; }
.tabs button.active { background: rgba(255,77,0,.15); color: #FF4D00; }
.tabs button:disabled { opacity: .5; cursor: not-allowed; }
.select { padding: 0.4rem 0.6rem; border-radius: 8px; border: 1px solid #2B2F3A; background: #0F1115; color: #F5F7FA; font-size: 0.8125rem; }
.select:disabled { opacity: .6; }

.karma { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.karma-k { font-weight: 600; opacity: .8; padding-right: 0.3rem; border-right: 1px solid currentColor; }
.karma-praise { background: rgba(0,217,126,.15); color: #00D97E; }
.karma-neutral { background: rgba(251,191,36,.15); color: #FBBF24; }
.karma-rage { background: rgba(239,68,68,.15); color: #EF4444; }
.karma-none { background: rgba(107,114,128,.15); color: #9AA3AF; }
/* Streak: Tage ohne Rage – Stufen 7 / 30 / 100 / 365 */
.streak { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.streak-k { font-weight: 600; opacity: .8; padding-right: 0.3rem; border-right: 1px solid currentColor; }
.streak-l1 { background: rgba(0,217,126,.15); color: #00D97E; }
.streak-l2 { background: rgba(59,130,246,.15); color: #3B82F6; }
.streak-l3 { background: rgba(255,77,0,.18); color: #FF4D00; }
.streak-l4 { background: rgba(251,191,36,.18); color: #FBBF24; }
.streak-line { margin-top: 0.25rem; }
.karma-big { display: flex; align-items: baseline; gap: 0.75rem; }
.karma-big .score { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.karma-big .score.praise { color: #00D97E; } .karma-big .score.neutral { color: #FBBF24; } .karma-big .score.rage { color: #EF4444; } .karma-big .score.none { color: #6B7280; }
.karma-scale { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #EF4444 0%, #FBBF24 50%, #00D97E 100%); position: relative; margin: 0.75rem 0 0.25rem; }
.karma-scale .marker { position: absolute; top: -5px; width: 16px; height: 16px; border-radius: 50%; background: #F5F7FA; border: 3px solid #0F1115; transform: translateX(-50%); box-shadow: 0 0 0 1px #2B2F3A; }

.tag-boost { background: rgba(255,77,0,.18); color: #FF4D00; }
.tag-held { background: rgba(251,191,36,.15); color: #FBBF24; }
/* Moderation: Hinweis am zurückgehaltenen Beitrag */
.post-held { margin-top: 0.625rem; padding: 0.5rem 0.75rem; border-radius: 8px; border: 1px dashed rgba(251,191,36,.45); background: rgba(251,191,36,.06); color: #9AA3AF; font-size: 0.8125rem; }
.post-held b { color: #FBBF24; }
.post-held.flagged { border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.06); }
.post-held.flagged b { color: #EF4444; }
.post.boosted { border-color: rgba(255,77,0,.45); background: linear-gradient(90deg, rgba(255,77,0,.07), #1A1D24 45%); }
.post.boosted.praise, .post.boosted.rage { border-left-color: #FF4D00; }
.post-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; align-items: center; }
.reply { margin-top: 0.625rem; padding: 0.625rem 0.75rem; border-left: 3px solid #FF4D00; background: #0F1115; border-radius: 0 8px 8px 0; font-size: 0.875rem; color: #D1D5DB; }
.reply .reply-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #FF4D00; display: block; margin-bottom: 0.2rem; }
.reply-form { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.reply-form .textarea { min-height: 64px; }
/* ── Abstimmung (Pfeil hoch/runter mit Zähler; aktive Stimme grün/rot) ──────── */
.votes { display: inline-flex; align-items: stretch; border: 1px solid #2B2F3A; border-radius: 999px; overflow: hidden; background: #0F1115; }
.vote-btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0.25rem 0.625rem 0.25rem 0.5rem; color: #9AA3AF; cursor: pointer; font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; transition: color .15s, background-color .15s; }
.vote-btn + .vote-btn { border-left: 1px solid #2B2F3A; }
.vote-icon { display: inline-flex; } .vote-icon svg { width: 16px; height: 16px; }
.vote-btn:hover:not(:disabled) { color: #F5F7FA; background: #1E2028; }
.vote-btn:disabled { cursor: not-allowed; opacity: .55; }
.vote-btn.up.active { color: #00D97E; background: rgba(0,217,126,.12); }
.vote-btn.down.active { color: #EF4444; background: rgba(239,68,68,.12); }
.vote-btn:focus-visible { outline: 2px solid #FF4D00; outline-offset: -2px; }

.battle { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; text-align: center; }
.battle .code { font-size: 2.5rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.battle .vs { font-size: 1.25rem; font-weight: 900; color: #FF4D00; }
.battle .per { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.battle .home .per { color: #00D97E; } .battle .away .per { color: #3B82F6; }
.battle .sub { font-size: 0.75rem; color: #9AA3AF; }
.battle-img { width: 100%; max-width: 720px; border-radius: 10px; border: 1px solid #2B2F3A; display: block; margin: 0 auto; }
/* Saison-Battle: Banner im Motiv der Saison (winter, spring, summer, autumn, night) */
.season-banner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 0.75rem; padding: 0.625rem 0.875rem; border-radius: 10px; margin-bottom: 0.75rem; border: 1px solid; font-size: 0.8125rem; }
.season-banner b { font-size: 0.9375rem; }
.season-banner .season-sub { color: #9AA3AF; }
.season-banner.theme-winter { background: linear-gradient(135deg, rgba(125,211,252,.18), rgba(255,209,102,.10)); border-color: rgba(125,211,252,.4); color: #BFE3FF; }
.season-banner.theme-spring { background: linear-gradient(135deg, rgba(249,168,212,.18), rgba(134,239,172,.10)); border-color: rgba(244,114,182,.4); color: #F9A8D4; }
.season-banner.theme-summer { background: linear-gradient(135deg, rgba(251,191,36,.20), rgba(56,189,248,.10)); border-color: rgba(251,146,60,.45); color: #FBBF24; }
.season-banner.theme-autumn { background: linear-gradient(135deg, rgba(245,158,11,.20), rgba(220,38,38,.10)); border-color: rgba(217,119,6,.45); color: #F59E0B; }
.season-banner.theme-night { background: linear-gradient(135deg, rgba(167,139,250,.20), rgba(253,230,138,.08)); border-color: rgba(196,181,253,.4); color: #C4B5FD; }
.ranking { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.75rem; }
.ranking-row { display: grid; grid-template-columns: 28px 60px 1fr auto; gap: 0.5rem; align-items: center; font-size: 0.8125rem; color: #9AA3AF; }
.ranking-row b { color: #F5F7FA; }
.ranking-row.me { color: #F5F7FA; }
.ranking-row .track { height: 6px; border-radius: 999px; background: #2B2F3A; overflow: hidden; }
.ranking-row .fill { height: 100%; background: #FF4D00; border-radius: 999px; }

.lookup-result { margin-top: 1rem; padding: 1rem; border: 1px solid #2B2F3A; border-radius: 10px; background: #0F1115; }
.history { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.5rem; font-size: 0.8125rem; color: #9AA3AF; }
.history-row { display: flex; gap: 0.5rem; align-items: center; }
.locked-note { font-size: 0.8125rem; color: #9AA3AF; padding: 0.75rem; border: 1px dashed #3A3F4B; border-radius: 8px; margin-top: 0.5rem; }
.locked-note a { font-weight: 600; }

.leaderboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.leaderboard h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.leaderboard h3.praise { color: #00D97E; } .leaderboard h3.rage { color: #EF4444; }

.member { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid #1E2028; font-size: 0.875rem; flex-wrap: wrap; }
.member:last-child { border-bottom: 0; }
.member .plates { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.scan-video { width: 100%; max-width: 420px; border-radius: 10px; border: 1px solid #2B2F3A; display: block; background: #000; }
.scan-box { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.pill-info { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: rgba(56,189,248,.12); color: #93C5FD; font-size: 0.75rem; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.field-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; font-size: 0.875rem; color: #9AA3AF; }
.field-inline .select, .field-inline .input { width: auto; }
.quiet-inputs { display: inline-flex; align-items: center; gap: 0.375rem; }
.quiet-inputs .input { width: 64px; padding: 0.4rem 0.5rem; text-align: center; }

/* ── Modal (ersetzt native confirm/alert-Dialoge) ─────────────────────────── */
dialog.modal {
  background: #1A1D24; color: #F5F7FA; border: 1px solid #2D323B; border-radius: 12px; padding: 0;
  width: min(92vw, 440px); box-shadow: 0 24px 64px rgba(0,0,0,.6);
}
dialog.modal::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: modal-in .16s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-body { padding: 22px 24px 8px; }
.modal-body h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.375rem; overflow-wrap: anywhere; }
.modal-body p { color: #C5CBD3; font-size: 0.9rem; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; padding: 14px 24px 20px; }
.modal-actions .btn { border-radius: 8px; min-width: 96px; }
.modal-actions .btn:focus-visible { outline: 2px solid #FF4D00; outline-offset: 2px; }
@media (max-width: 480px) { .modal-actions { flex-direction: column-reverse; } .modal-actions .btn { width: 100%; } }

/* ⋯-Menü am Beitrag: Melden, Absender blockieren (App Store Guideline 1.2) */
.post-menu { position: relative; margin-left: 0.25rem; }
.post-menu-btn { background: none; border: 1px solid transparent; border-radius: 8px; color: #6B7280; cursor: pointer; font-size: 1.125rem; line-height: 1; padding: 0.15rem 0.45rem; }
.post-menu-btn:hover, .post-menu-btn[aria-expanded="true"] { border-color: #2B2F3A; color: #F5F7FA; background: #0F1115; }
.post-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 12.5rem; background: #1A1D24; border: 1px solid #2B2F3A; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.45); padding: 0.25rem; display: flex; flex-direction: column; }
.post-menu-list button { background: none; border: 0; color: #D1D5DB; text-align: left; padding: 0.5rem 0.75rem; border-radius: 8px; cursor: pointer; font-size: 0.875rem; }
.post-menu-list button:hover { background: #0F1115; color: #F5F7FA; }
.post-menu-list button.danger { color: #EF4444; }
.post-menu-list .post-menu-hint { color: #6B7280; font-size: 0.75rem; padding: 0.25rem 0.75rem 0.5rem; }
.tag-reported { background: rgba(239,68,68,.15); color: #EF4444; }
.report-form { width: 100%; margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; }

/* Startseite in zwei Schritten: E-Mail → Pfeil → Kennzeichen */
.btn-arrow { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; padding: 0 1rem; min-width: 3.25rem; }
.btn-arrow svg { width: 20px; height: 20px; }
@media (max-width: 480px) { .btn-arrow { width: 100%; padding: 0.75rem; } }
#step-plate { margin-top: 1rem; }
#step-plate .landing-note { margin-top: 0; margin-bottom: 0.75rem; }
/* E-Mail nach dem Pfeil festgeschrieben: gedimmt, Schloss rechts, kein Fokus-Rahmen */
.waitlist-input[readonly] {
  color: #9AA3AF; background-color: #0F1115; border-color: #1F232C; cursor: default;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.875rem center; background-size: 16px 16px; padding-right: 2.5rem;
}
.waitlist-input[readonly]:focus { border-color: #1F232C; }
/* Einblenden des Kennzeichen-Schritts: Pfeil fährt raus, Hinweis, Schild und Button kommen gestaffelt von oben */
@keyframes step-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
#step-plate.is-open > * { animation: step-in .45s cubic-bezier(.2, .8, .2, 1) both; }
#step-plate.is-open > :nth-child(2) { animation-delay: .08s; }
#step-plate.is-open > :nth-child(3) { animation-delay: .16s; }
.waitlist-input { transition: border-color .2s, background-color .3s, color .3s; }
.btn-arrow { transition: opacity .25s ease, transform .25s ease, background-color .2s; }
.btn-arrow.is-leaving { opacity: 0; transform: translateX(10px) scale(.85); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { #step-plate.is-open > * { animation: none; } .btn-arrow { transition: none; } }
