/* ============================================================
   FickKeppi69.at — minimalistisch, hell/dunkel umschaltbar
   ============================================================ */

:root {
  --bg:         #fbfbfd;
  --surface:    #ffffff;
  --surface-2:  #f2f2f5;
  --border:     #e5e5ea;
  --border-str: #d5d5db;
  --text:       #1d1d1f;
  --muted:      #6b6b70;
  --faint:      #9a9aa0;
  --accent:     #0071e3;
  --accent-tint:#eaf3fe;
  --shadow:     0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05);
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);

  --radius:     16px;
  --radius-sm:  10px;
  --maxw:       1000px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root[data-theme="dark"] {
  --bg:         #0f0f11;
  --surface:    #1a1a1d;
  --surface-2:  #232327;
  --border:     #2c2c31;
  --border-str: #3a3a40;
  --text:       #f5f5f7;
  --muted:      #a1a1a8;
  --faint:      #6e6e76;
  --accent:     #2997ff;
  --accent-tint:#12283f;
  --shadow:     0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.4);
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand .mark { width: 26px; height: 26px; color: var(--accent); flex: none; }
.brand .at { color: var(--muted); font-weight: 500; }

.nav-right { display: flex; align-items: center; gap: 4px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--text); font-weight: 600; }

.theme-toggle, .nav-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px; height: 38px;
  border-radius: 9px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.15s, border-color 0.15s;
}
.theme-toggle:hover, .nav-toggle:hover { background: var(--surface-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 980px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s, transform 0.08s;
  font-family: inherit;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-ghost { background: var(--surface); border-color: var(--border-str); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-danger { background: #e5484d; color: #fff; }
.btn-danger:hover { opacity: 0.9; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 52px 0 40px; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 42px;
}
.hero p.lead {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--muted);
  max-width: 40ch;
  margin: 0 auto 34px;
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Section ---------- */
.section { padding: 26px 0 30px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-head h2 { font-size: 1.5rem; font-weight: 650; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.section-head a.more { color: var(--accent); font-size: 0.95rem; font-weight: 500; }
.section-head a.more:hover { text-decoration: underline; }

/* ---------- Quotes ---------- */
.quote-list { display: flex; gap: 16px; align-items: flex-start; }
.masonry-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.quote-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}
.quote-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-str); }
.quote-card blockquote {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 450;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.quote-card .quote-img {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: zoom-in;
}
.quote-card blockquote + .quote-img { margin-top: 14px; }
.quote-card .attr { margin-top: 16px; color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.quote-card .attr .who { color: var(--text); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag {
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 980px;
  padding: 3px 11px;
}

/* ---------- Clips ---------- */
.clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
/* Startseite: immer 2 (größere) Clips nebeneinander */
#featured-clips { grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 560px) { #featured-clips { grid-template-columns: 1fr; } }
.clip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
}
.clip-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.clip-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  display: grid; place-items: center;
  overflow: hidden;
}
.clip-thumb img,
.clip-thumb .clip-thumb-vid { width: 100%; height: 100%; object-fit: cover; }
.clip-thumb .clip-thumb-vid { pointer-events: none; background: #000; }
.clip-thumb .clip-thumb-twitch {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: #9146ff; color: #fff; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
}
.clip-thumb .play {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}
.clip-card:hover .play { transform: scale(1.08); }
.clip-thumb .play::after {
  content: "";
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #1d1d1f;
  margin-left: 3px;
}
.clip-body { padding: 15px 18px 17px; display: flex; flex-direction: column; flex: 1; }
.clip-body h3 { margin: 0 0 5px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.clip-body .desc { color: var(--muted); font-size: 0.9rem; margin: 0 0 12px; flex: 1; }
.clip-body .meta { color: var(--faint); font-size: 0.85rem; display: flex; gap: 7px; }
.clip-body .meta .who { color: var(--muted); font-weight: 500; }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.search { flex: 1; min-width: 220px; position: relative; }
.search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 11px 18px 11px 42px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.search input::placeholder { color: var(--faint); }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.count { color: var(--muted); font-size: 0.92rem; white-space: nowrap; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 7px 15px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--border-str); color: var(--text); }
.chip.active { background: var(--text); border-color: var(--text); color: var(--bg); }

.filter-select {
  font-size: 0.9rem;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 8px 34px 8px 16px;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 13px center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.filter-select:hover { border-color: var(--border-str); }
.filter-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }

/* ---------- Page header ---------- */
.page-head { padding: 56px 0 14px; text-align: center; }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 10px; }
.page-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---------- Empty ---------- */
.empty {
  grid-column: 1 / -1;
  column-span: all;
  flex: 1;
  text-align: center;
  padding: 64px 20px;
  color: var(--muted);
  border: 1px dashed var(--border-str);
  border-radius: var(--radius);
}
.empty .big { font-size: 2.4rem; margin-bottom: 10px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.modal.open { display: flex; }
.modal-box { background: var(--surface); border-radius: var(--radius); max-width: min(1150px, 95vw); width: 100%; overflow: hidden; position: relative; box-shadow: var(--shadow); }
.modal-media { aspect-ratio: 16 / 9; background: #000; }
.modal-media video, .modal-media iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-info { padding: 16px 22px 20px; }
.modal-info h3 { margin: 0 0 5px; font-size: 1.2rem; font-weight: 600; }
.modal-info p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.modal-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; margin: 0 0 8px; }
.modal-meta .who { color: var(--text); font-weight: 600; }
.modal-info .rating { margin-top: 12px; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,0.5); color: #fff;
  border: 0; font-size: 1.1rem; cursor: pointer;
  display: grid; place-items: center;
}
.modal-close:hover { background: rgba(0,0,0,0.7); }

/* ---------- Bild-Lightbox ---------- */
.img-lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none; align-items: center; justify-content: center;
  padding: 24px; background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px); cursor: zoom-out;
}
.img-lightbox.open { display: flex; }
.img-lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 10px; box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 70px; padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--faint); font-size: 0.9rem; }
.footer-inner a:hover { color: var(--text); }

/* ============================================================
   Admin
   ============================================================ */
.admin-main { padding-top: 34px; padding-bottom: 40px; }
.login-wrap { max-width: 400px; margin: 56px auto; }
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.panel h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 4px; }
.panel .sub { color: var(--muted); font-size: 0.95rem; margin: 0 0 20px; }

.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }

.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.admin-topbar h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.admin-topbar .who { color: var(--muted); font-size: 0.92rem; }

label.field { display: block; margin-bottom: 14px; }
label.field .lbl { display: block; font-size: 0.88rem; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.input, textarea.input, select.input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-str);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.98rem;
  font-family: inherit;
  padding: 10px 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, textarea.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
textarea.input { resize: vertical; min-height: 90px; line-height: 1.5; }
textarea.paste { min-height: 120px; font-size: 0.95rem; }

.hint { color: var(--faint); font-size: 0.85rem; margin: -4px 0 14px; line-height: 1.5; }
.hint code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; font-size: 0.9em; }

.file-drop {
  border: 1.5px dashed var(--border-str);
  border-radius: var(--radius-sm);
  padding: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.file-drop:hover, .file-drop.drag { border-color: var(--accent); color: var(--text); background: var(--accent-tint); }
.file-drop.has-file { border-style: solid; border-color: var(--accent); color: var(--accent); }

.divider-or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 0.85rem; margin: 14px 0; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.progress { height: 6px; background: var(--surface-2); border-radius: 980px; margin-top: 12px; overflow: hidden; display: none; }
.progress.show { display: block; }
.progress .bar { height: 100%; width: 0; background: var(--accent); transition: width 0.15s; }

.msg { font-size: 0.9rem; padding: 10px 13px; border-radius: var(--radius-sm); margin-top: 14px; display: none; }
.msg.show { display: block; }
.msg.ok { background: var(--accent-tint); color: var(--accent); }
.msg.err { background: #fdecea; color: #c0392b; }
:root[data-theme="dark"] .msg.err { background: #3a1c1a; color: #ff8a80; }

/* Vorschau-Karten */
.preview-wrap { margin-top: 18px; }
.preview-head { font-size: 0.9rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.pcard {
  border: 1px solid var(--border-str);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
  background: var(--bg);
}
.pcard .prow { display: flex; gap: 10px; }
.pcard .prow .field { flex: 1; margin-bottom: 10px; }
.pcard .premove { background: none; border: 0; color: var(--faint); font-size: 0.85rem; cursor: pointer; padding: 4px; float: right; }
.pcard .premove:hover { color: #c0392b; }
.p-image-row { display: flex; align-items: center; gap: 10px; margin-top: 2px; flex-wrap: wrap; }
.p-image-name { font-size: 0.82rem; color: var(--muted); word-break: break-all; }
.p-image-thumb { margin-top: 10px; }
.p-image-thumb img { max-width: 180px; border-radius: 8px; border: 1px solid var(--border); display: block; margin-bottom: 6px; }
.p-image-remove { background: none; border: 0; color: var(--faint); font-size: 0.82rem; cursor: pointer; padding: 0; }
.p-image-remove:hover { color: #c0392b; }

.admin-list { margin-top: 24px; }
.admin-list h3 { font-size: 0.92rem; font-weight: 600; color: var(--muted); margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.row .body { flex: 1; min-width: 0; }
.row .body .t { font-size: 0.98rem; line-height: 1.35; white-space: pre-line; }
.row .body .m { color: var(--faint); font-size: 0.82rem; margin-top: 3px; }
.del { background: none; border: 1px solid var(--border-str); color: var(--muted); border-radius: 8px; padding: 6px 12px; font-size: 0.85rem; cursor: pointer; white-space: nowrap; font-family: inherit; transition: all 0.15s; }
.del:hover { border-color: #c0392b; color: #c0392b; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) { .admin-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 10px 16px 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: grid; }
  .hero { padding: 60px 0 44px; }
  .quote-list { grid-template-columns: 1fr; }
}

/* ---------- Audios ---------- */
.audio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
#featured-audios { grid-template-columns: repeat(2, 1fr); }
.audio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.audio-card .audio-info h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.audio-card .audio-info .meta { color: var(--faint); font-size: 0.85rem; display: flex; gap: 7px; }
.audio-card .audio-info .meta .who { color: var(--muted); font-weight: 500; }
.audio-card .desc { color: var(--muted); font-size: 0.92rem; margin: 0; }
.audio-card audio { width: 100%; height: 42px; }
.audio-card .tags { margin-top: 2px; }

/* ---------- Zufalls-Quote Overlay ---------- */
.rand-overlay {
  position: fixed; inset: 0; z-index: 250;
  display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
}
.rand-overlay.open { display: flex; }
.rand-box {
  background: var(--surface); border-radius: var(--radius);
  max-width: 580px; width: 100%; padding: 28px 28px 24px;
  position: relative; box-shadow: var(--shadow);
}
.rand-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-2); border: 0; color: var(--text);
  font-size: 1rem; cursor: pointer;
}
.rand-close:hover { background: var(--border); }
.rand-kicker { font-size: 0.82rem; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.rand-content .quote-card { box-shadow: none; border: 0; padding: 0; margin: 0; }
.rand-content .quote-card:hover { transform: none; }
.rand-content .quote-card blockquote { font-size: 1.35rem; }
.rand-actions { margin-top: 18px; }

/* ---------- Admin: Zeilen-Aktionen, Bearbeiten, Merge ---------- */
.row-actions { display: flex; gap: 8px; flex-shrink: 0; }
.edit {
  background: none; border: 1px solid var(--border-str); color: var(--muted);
  border-radius: 8px; padding: 6px 12px; font-size: 0.85rem; cursor: pointer;
  white-space: nowrap; font-family: inherit; transition: all 0.15s;
}
.edit:hover { border-color: var(--accent); color: var(--accent); }

.merge-list {
  max-height: 280px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px;
}
.merge-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 9px; border-radius: 7px; cursor: pointer; font-size: 0.92rem;
}
.merge-item:hover { background: var(--surface-2); }
.merge-item .mname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.merge-item .mcount { color: var(--faint); font-size: 0.8rem; }

@media (max-width: 560px) { #featured-audios { grid-template-columns: 1fr; } }

/* ---------- Admin: Tab-Layout ---------- */
.admin-layout { display: grid; grid-template-columns: 190px 1fr; gap: 26px; align-items: start; }
.admin-tabs { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 76px; }
.admin-tab {
  display: flex; align-items: center; gap: 11px;
  text-align: left; background: none; border: 0; border-radius: 10px;
  padding: 11px 15px; font-size: 0.98rem; font-weight: 500; color: var(--muted);
  cursor: pointer; font-family: inherit; transition: background 0.15s, color 0.15s;
}
.admin-tab svg { width: 18px; height: 18px; flex: none; }
.admin-tab:hover { background: var(--surface-2); color: var(--text); }
.admin-tab.active { background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.admin-content { min-width: 0; }
#alias-groups .row .m { color: var(--muted); }

@media (max-width: 720px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-tabs { flex-direction: row; flex-wrap: wrap; position: static; }
  .admin-tab { flex: 1; min-width: 44%; justify-content: center; border: 1px solid var(--border); }
}

/* ---------- Sterne-Bewertung ---------- */
.rating { display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; flex-wrap: wrap; }
/* Sterne mit Teilfüllung: --fill (0..100%) je Stern, --fill-color = gold (eigene) oder blau (Durchschnitt) */
:root {
  --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.2l2.6 5.6 6.1.6-4.6 4.1 1.3 6-5.4-3.1-5.4 3.1 1.3-6L3.3 8.4l6.1-.6z'/%3E%3C/svg%3E");
  --star-mine: #f5b301;   /* eigene Bewertung */
  --star-avg:  #5b9dff;   /* Durchschnitt */
}
.stars { display: inline-flex; gap: 3px; --fill-color: var(--star-avg); }
.stars.rated, .stars.previewing { --fill-color: var(--star-mine); }
.star {
  --fill: 0%;
  width: 20px; height: 20px; padding: 0; border: 0; margin: 0; cursor: pointer; flex: 0 0 auto;
  background: linear-gradient(90deg, var(--fill-color) var(--fill), var(--border-str) var(--fill));
  -webkit-mask: var(--star-mask) center / contain no-repeat;
  mask: var(--star-mask) center / contain no-repeat;
  transition: transform 0.08s;
}
.star:active { transform: scale(0.86); }
.star:disabled { cursor: default; }
.rating-avg { font-size: 0.82rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.rating-avg .rating-n { color: var(--faint); font-weight: 500; }
.rating-avg .rating-none { color: var(--faint); font-weight: 500; font-style: italic; }

/* Benutzer-Leiste im Header — gleicher Stil wie Nav-Text & Theme-Umschalter */
.user-bar { display: inline-flex; align-items: center; gap: 8px; margin: 0 4px 0 0; padding-left: 16px; border-left: 1px solid var(--border); }
.user-name { display: inline-flex; align-items: center; gap: 6px; font-size: 0.95rem; font-weight: 600; color: var(--text); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-logout {
  background: none; border: 1px solid var(--border); color: var(--text);
  width: 38px; height: 38px; border-radius: 9px; cursor: pointer;
  display: grid; place-items: center; transition: background 0.15s, border-color 0.15s;
}
.user-logout:hover { background: var(--surface-2); }
.user-logout svg { width: 18px; height: 18px; }

/* ---------- Zugriffs-Gate ---------- */
.access-gate {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: var(--bg);
}
.access-box { text-align: center; max-width: 340px; width: 100%; }
.access-box h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; margin: 14px 0 8px; }
.access-box p { color: var(--muted); margin: 0 0 22px; font-size: 0.98rem; }
.access-box input {
  width: 100%; background: var(--surface); border: 1px solid var(--border-str);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 1rem; font-family: inherit;
  color: var(--text); outline: none; margin-bottom: 12px; text-align: center;
}
.access-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }

/* Inhalt verbergen, bis die Anmeldung geprüft ist (kein Aufblitzen privater Inhalte) */
html.gate-wait body > *:not(.access-gate):not(script) { visibility: hidden !important; }
html.gate-wait .access-gate { visibility: visible !important; }

/* Admin-Kennzeichen in der Benutzer-Leiste */
.user-adminbadge {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-tint); padding: 1px 6px; border-radius: 6px; margin-left: 5px;
}

/* ---------- Schöne Dialoge (fkConfirm / fkAlert) ---------- */
.fk-modal-back {
  position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center;
  padding: 22px; background: rgba(10, 10, 14, 0.5); opacity: 0; transition: opacity 0.14s;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.fk-modal-back.open { opacity: 1; }
.fk-modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); width: 100%; max-width: 380px; padding: 24px 24px 20px;
  transform: translateY(8px) scale(0.98); transition: transform 0.14s;
}
.fk-modal-back.open .fk-modal { transform: none; }
.fk-modal-title { font-size: 1.12rem; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.fk-modal-msg { color: var(--muted); margin: 0 0 20px; font-size: 0.96rem; line-height: 1.5; }
.fk-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.fk-modal-actions .btn { padding: 9px 18px; }

/* Admin: Checkbox-Zeile (z.B. Admin-Rechte) */
.admin-check { display: flex; align-items: center; gap: 9px; margin: 4px 0 18px; font-size: 0.92rem; color: var(--text); cursor: pointer; user-select: none; }
.admin-check input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
