/* Show-Designer – Website (Startseite, Anmeldung, Konto). Designsprache wie die App: dunkel, Pult-Bernstein. */
:root {
  --bg: #08090c; --panel: #111318; --panel-2: #171a21; --line: #242833;
  --text: #e7e9ee; --muted: #9aa1b0; --accent: #ffb020; --ok: #3ddc84; --bad: #ff5a5f;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Kopf */
.site-head { border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: .01em; }
.brand-mark { width: 26px; height: 26px; flex: none; background: url("../app/marke/droplit-symbol.svg") center / contain no-repeat; }
.brand-word { display: block; height: 19px; width: auto; }
.brand small { color: var(--muted); font-weight: 600; }
.spacer { flex: 1; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  text-decoration: none; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { border-color: #3a4152; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #1a1205; }
.btn-primary:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Startseite */
.hero { padding: 64px 0 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.shot { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #000; aspect-ratio: 16 / 10; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }

section.block { padding: 48px 0; border-top: 1px solid var(--line); }
section.block h2 { font-size: 26px; margin: 0 0 22px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.news-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
section.block .news-head h2 { margin: 0; }
a.news-card { display: grid; gap: 8px; align-content: start; color: var(--text); text-decoration: none; }
a.news-card:hover { border-color: #3a4152; }
a.news-card h3 { margin: 0; }
a.news-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.news-go { color: var(--accent); font-weight: 600; font-size: 14px; margin-top: 4px; }
.news-pic { position: relative; display: block; margin: -20px -20px 6px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.news-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 176, 32, .92); color: #1a1205; font-size: 20px; padding-left: 3px; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
.steps { counter-reset: s; display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; color: var(--accent); }
.steps strong { display: block; }
.steps span { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.facts ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }

/* Formulare */
.form-page { min-height: calc(100vh - 61px); display: grid; place-items: start center; padding: 48px 20px; }
.form-card { width: min(460px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 16px; }
.form-card h1 { font-size: 24px; margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 10px 14px; min-height: 44px; font: inherit; font-weight: 600; cursor: pointer; margin-bottom: -1px; }
.tab.on { color: var(--text); border-bottom-color: var(--accent); }
label.f { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input[type="email"], input[type="password"], input[type="text"] {
  min-height: 48px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2);
  color: var(--text); font: inherit;
}
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
label.check input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.msg { border-radius: 9px; padding: 10px 12px; font-size: 14px; border: 1px solid; }
.msg.ok { background: #10241a; border-color: #1f5a3a; color: #9fe9bf; }
.msg.bad { background: #2a1214; border-color: #5a2224; color: #ffb0b2; }
.msg.info { background: #121a24; border-color: #233448; color: #bcd3ee; }
.link-btn { background: none; border: 0; color: var(--accent); padding: 0; font: inherit; cursor: pointer; text-align: left; }
.danger { border-color: #5a2224; color: #ffb0b2; }

/* Text-Seiten */
.prose { max-width: 760px; padding: 40px 20px 64px; margin: 0 auto; }
.prose h1 { font-size: 30px; }
.prose h2 { font-size: 20px; margin-top: 32px; }
.prose p, .prose li { color: #c9cdd6; }

.site-foot { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
.lang-switch { display: inline-flex; gap: 4px; margin-left: auto; }
.lang-switch button { min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.lang-switch button:hover { color: var(--text); border-color: var(--line); }
.lang-switch button[aria-current="true"] { color: var(--text); border-color: var(--line); background: var(--panel-2); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .grid3, .facts { grid-template-columns: 1fr; }
}
[hidden] { display: none !important; }
.msg { white-space: pre-line; }

/* Admin */
.admin { max-width: 1180px; margin: 0 auto; padding: 28px 20px 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.admin .pane { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.admin h1 { margin: 0; font-size: 26px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-size: 26px; }
.stat span { color: var(--muted); font-size: 13px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar input[type="search"] { min-height: 44px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; min-width: 240px; flex: 1; }
.chipbar { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); border-radius: 999px; padding: 0 14px; min-height: 36px; font: inherit; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #1a1205; font-weight: 600; }
.chip:disabled { opacity: .4; cursor: not-allowed; }
.rows { display: grid; gap: 8px; }
.row { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) auto; gap: 6px 16px; align-items: center; }
.row .t { font-weight: 600; overflow-wrap: anywhere; }
.row .s { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.row .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.row .acts .btn { min-height: 36px; padding: 0 12px; font-size: 14px; }
.badge { display: inline-block; font-size: 12px; border-radius: 6px; padding: 1px 7px; border: 1px solid var(--line); color: var(--muted); margin-right: 4px; }
.badge.ok { color: #9fe9bf; border-color: #1f5a3a; }
.badge.warn { color: #ffd27a; border-color: #5a4415; }
.badge.bad { color: #ffb0b2; border-color: #5a2224; }
dialog.ed { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 0; width: min(760px, calc(100vw - 24px)); }
dialog.ed::backdrop { background: #000a; }
dialog.ed form { display: grid; gap: 12px; padding: 20px; max-height: calc(100vh - 60px); overflow: auto; }
dialog.ed textarea { min-height: 260px; font: 13px/1.45 ui-monospace, Menlo, monospace; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 10px; resize: vertical; }
dialog.ed select { min-height: 48px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); padding: 0 10px; font: inherit; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; } .row .acts { justify-content: flex-start; } .two { grid-template-columns: 1fr; } }

/* Sprache: Seite erst zeigen, wenn die Übersetzung steht (i18n.js entfernt die Klasse; Notbremse nach 2,5 s) */
html.i18n-wait body { visibility: hidden; animation: i18n-show 0s 2.5s forwards; }
@keyframes i18n-show { to { visibility: visible; } }

/* Konto: Meine Meldungen (Feedback-Fenster) */
.fb-list { display: grid; gap: 8px; }
.fb-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 6px; background: var(--panel-2); }
.fb-item b { font-weight: 600; overflow-wrap: anywhere; }
.fb-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fb-date { color: var(--muted); font-size: 13px; margin-left: auto; }
.fb-answer { white-space: pre-line; border-left: 3px solid var(--accent); background: #121a24; border-radius: 0 8px 8px 0; padding: 8px 12px; font-size: 14px; color: #dfe6f0; }
.fb-answer small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }

/* Admin: Rückmeldungen */
.fbrow { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: start; }
.fbrow .fb-main { display: grid; gap: 6px; min-width: 0; }
.fbrow .t { font-weight: 650; font-size: 16px; overflow-wrap: anywhere; }
.fbrow .s { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.fb-text { white-space: pre-line; color: #c9cdd6; font-size: 15px; max-height: 14em; overflow: auto; overflow-wrap: anywhere; }
.fb-shot { grid-row: span 2; display: block; width: 220px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.fb-shot img { width: 100%; height: auto; display: block; }
.fbrow .acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.fbrow .acts .btn { min-height: 36px; padding: 0 12px; font-size: 14px; }
.fbrow .acts select { min-height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); padding: 0 8px; font: inherit; font-size: 14px; }
.fb-pre { margin: 6px 0 0; padding: 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font: 12px/1.45 ui-monospace, Menlo, monospace; white-space: pre-wrap; max-height: 260px; overflow: auto; color: #c9cdd6; }
.fb-votes summary { cursor: pointer; color: var(--muted); font-weight: 600; min-height: 36px; display: flex; align-items: center; }
@media (max-width: 760px) { .fbrow { grid-template-columns: 1fr; } .fb-shot { width: 100%; grid-row: auto; } }

/* Admin: Reiter-Leiste (bleibt beim Scrollen oben, auf dem Handy waagerecht wischbar).
   Linie als Schatten statt Rand + Minus-Abstand: der ragte 1 px über, und die Reiter ließen sich senkrecht schieben. */
.admin .tabs { position: sticky; top: 61px; z-index: 5; background: var(--bg); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; flex-wrap: nowrap; border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); }
.admin .tabs::-webkit-scrollbar { display: none; }
.admin .tab { white-space: nowrap; flex: none; margin-bottom: 0; }
.admin .tab .badge { margin: 0 0 0 4px; }
.intro { margin: 0; color: var(--muted); }

/* Admin: Antwort-Fenster mit KI-Entwurf */
dialog.ed .dlg-head { display: flex; align-items: center; gap: 10px; }
dialog.ed .dlg-head h2 { margin: 0; font-size: 20px; flex: 1; }
dialog.ed .x { width: 44px; height: 44px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
dialog.ed textarea.text { min-height: 180px; font: 16px/1.5 var(--font); }
dialog.ed input[type="text"] { width: 100%; }
dialog.ed .dlg-foot { justify-content: flex-end; }
.fb-orig summary { cursor: pointer; color: var(--muted); font-size: 14px; min-height: 36px; display: flex; align-items: center; }
.fb-orig .fb-text { margin-top: 6px; padding: 10px 12px; background: var(--panel-2); border-radius: 8px; }
.ki-box { display: grid; gap: 10px; padding: 12px; border: 1px solid #5a4415; border-radius: 10px; background: #1a1508; }
.ki-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.ki-row label.f { flex: 1 1 260px; }
.ki-out { display: grid; gap: 8px; font-size: 14px; }
.ki-out .s { color: var(--muted); font-size: 13px; }
.ki-arts { display: flex; flex-wrap: wrap; gap: 6px; }
.ki-arts a { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; text-decoration: none; background: var(--panel-2); }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--accent) transparent var(--accent) transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.busy::after { animation-duration: 2.4s; } }
.wish-pick { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; font-size: 14px; color: var(--muted); }
.wish-pick input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--accent); }
.wish-pick input[type="text"] { grid-column: 2; }
/* Admin → Ränge: Rang eines Kontos wählen (Chips umbrechen auch auf dem Handy) */
div.f { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.chipbar.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.rank-tag { display: inline-flex; gap: 4px; align-items: center; }

/* Admin: Wunschliste */
.quickadd { display: flex; gap: 8px; }
.quickadd input { flex: 1; min-width: 0; }
.wish { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 14px; align-items: start; }
.wish.done { opacity: .62; }
.wish.done .t { text-decoration: line-through; text-decoration-color: var(--muted); }
.wish.hl { border-color: var(--accent); box-shadow: 0 0 0 2px #ffb02055; }
.wish-check { width: 44px; height: 44px; margin: -6px 0 0 -6px; border-radius: 50%; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.wish-check::before { content: ""; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #4a5163; box-sizing: border-box; }
.wish.done .wish-check::before { background: var(--ok); border-color: var(--ok); }
.wish.done .wish-check::after { content: "✓"; position: absolute; color: #08130c; font-weight: 800; font-size: 15px; }
.wish-check { position: relative; }
.wish-main { display: grid; gap: 4px; min-width: 0; }
.wish .t { font-weight: 650; overflow-wrap: anywhere; }
.wish .s { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.wish-text { white-space: pre-line; color: #c9cdd6; font-size: 15px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.wish-text.open { display: block; -webkit-line-clamp: unset; }
.wish .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.wish .acts .btn { min-height: 36px; padding: 0 12px; font-size: 14px; }
.link-btn.s { font-size: 13px; }
.wish-export { justify-content: flex-start; }

/* Admin auf Handy und kleinem Tablet */
@media (max-width: 760px) {
  .admin-head .wrap { flex-wrap: nowrap; gap: 8px; min-height: 56px; }
  .admin-head .brand { font-size: 15px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .admin-head .btn { min-height: 40px; padding: 0 12px; font-size: 14px; flex: none; }
  .admin-head .hide-sm { display: none; }
  .admin .tabs { top: 57px; margin: 0 -16px; padding: 0 16px; }
  .admin { padding: 14px 16px 48px; gap: 14px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 10px 12px; }
  .stat b { font-size: 20px; }
  .toolbar input[type="search"] { min-width: 0; flex: 1 1 100%; }
  .chipbar { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; flex: 1 1 100%; min-width: 0; }
  .admin .pane > p:first-child { font-size: 14px; line-height: 1.45; }
  .chipbar::-webkit-scrollbar { display: none; }
  .chip { flex: none; min-height: 40px; }
  .chipbar.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .row .acts .btn, .fbrow .acts .btn, .wish .acts .btn { min-height: 44px; }
  .fbrow .acts select { min-height: 44px; font-size: 16px; }
  .fbrow { padding: 12px; }
  .fb-shot { max-height: 200px; }
  .fb-shot img { height: 200px; object-fit: cover; object-position: top; }
  .wish { grid-template-columns: auto minmax(0, 1fr); padding: 10px 12px; }
  .wish .acts { grid-column: 1 / -1; justify-content: flex-start; }
  /* Fenster füllen den Bildschirm, Knöpfe bleiben unten erreichbar */
  dialog.ed { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; }
  dialog.ed form { max-height: 100dvh; height: 100%; padding: 14px 16px 0; align-content: start; }
  dialog.ed .dlg-foot { position: sticky; bottom: 0; background: var(--panel); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin-top: 4px; }
  dialog.ed .dlg-foot .btn { flex: 1; }
  dialog.ed textarea, dialog.ed select, dialog.ed input { font-size: 16px; }
  .two { gap: 10px; }
}
.link-badge { background: none; font: inherit; font-size: 12px; cursor: pointer; color: #ffd27a; border-color: #5a4415; }
.link-badge.ok { color: #9fe9bf; border-color: #1f5a3a; }
.fb-orig summary::before, .fb-votes summary::before { content: "▸"; display: inline-block; width: 1.1em; transition: transform .15s; }
.fb-orig[open] summary::before, .fb-votes[open] summary::before { transform: rotate(90deg); }
.fb-orig summary::-webkit-details-marker, .fb-votes summary::-webkit-details-marker { display: none; }
/* Admin: Statusmeldung als Hinweis unten (auch nach dem Scrollen sichtbar) */
.admin > #msg { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; width: min(560px, calc(100vw - 32px)); box-shadow: 0 8px 30px #000a; }
