/* © 2026 Daniel Gelbke, DG Lighting – Alle Rechte vorbehalten. Siehe LICENSE. */
/* DJ-App (immer dunkel – gut lesbar am dunklen Pult) */
.djwrap { max-width: 1320px; margin: 0 auto; padding: 8px 16px 80px; }
.djwrap.narrow { max-width: 640px; }
.authbox { max-width: 420px; margin: 8vh auto; padding: 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin: 18px 0 10px; }
.seg button { padding: 10px; border-radius: 9px; font-weight: 700; color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--grad); color: var(--on-accent); }
.spread { display: flex; justify-content: space-between; align-items: center; }
.btnrow { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1320px; margin: 0 auto; padding: 12px 16px; }
.topbar .brand { color: var(--text); text-decoration: none; }
.usernav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

.homehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 10px 0 20px; }
.newevent { min-width: min(100%, 460px); }
.evgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.evcard { display: block; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: border-color .2s, transform .15s; }
.evcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.evcard .t { font-weight: 800; font-size: 1.1rem; margin-bottom: 4px; }
.evcard .open { font-size: 2rem; font-weight: 800; }

.evhead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 6px 0 14px; }
.evtitle { min-width: 0; flex: 1 1 180px; }
.evtitle .t { font-weight: 800; font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: 10px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-weight: 700; }
.tab[aria-selected="true"] { background: var(--grad); border-color: transparent; color: var(--on-accent); }
.tab .cnt { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: #0005; font-size: .8rem; }
.openbtn { padding: 10px 14px; border-radius: 999px; font-weight: 800; border: 1px solid var(--line); }
.openbtn.on { background: #14532d; color: #bbf7d0; border-color: #166534; }
.openbtn.off { background: #450a0a; color: #fecaca; border-color: #7f1d1d; }

.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 1000px) { .grid.split { grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); } }
.side { display: grid; gap: 14px; align-content: start; }

.djitem { display: grid; grid-template-columns: 34px 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; }
.djitem.top { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--card)), var(--card) 55%); }
.djitem .rank { font-size: 1.3rem; font-weight: 800; color: var(--muted); text-align: center; }
.djitem.top .rank { color: var(--accent); }
.djitem .t { font-size: 1.15rem; }
.djitem .votes { font-size: 1.6rem; font-weight: 800; text-align: center; min-width: 54px; }
.djitem .votes small { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; }
.djitem .msg { margin-top: 6px; font-size: .9rem; background: var(--bg2); border-left: 3px solid var(--accent); padding: 6px 10px; border-radius: 6px; overflow-wrap: anywhere; white-space: normal; }
.actions { display: flex; gap: 6px; align-items: center; }
.iconbtn { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; background: var(--card2); border: 1px solid var(--line); }
.iconbtn.ok { background: var(--ok); border: 0; color: #04200f; font-weight: 800; }
.iconbtn.del:hover { border-color: var(--danger); }
.new { animation: glow 2s ease-out 3; }
@keyframes glow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent2) 60%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
@media (max-width: 560px) {
  .djitem { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .djitem .cover { display: none; }
  .djitem .votes { font-size: 1.25rem; min-width: 40px; }
  .iconbtn { width: 42px; height: 42px; }
  .tab { padding: 8px 10px; font-size: .9rem; }
}

.hist { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hist:last-child { border-bottom: 0; }
.stats { display: flex; gap: 22px; flex-wrap: wrap; }
.stats b { font-size: 1.5rem; display: block; }

.qrbox { background: #fff; border-radius: 16px; padding: 14px; width: min(100%, 340px); margin: 0 auto; }
.qrbox svg { width: 100%; display: block; }
.tips { padding-left: 18px; line-height: 1.6; }
pre.code { background: var(--bg2); padding: 10px; border-radius: 10px; white-space: pre-wrap; margin: 6px 0; }

.settings { columns: 3 340px; column-gap: 18px; }
.settings > * { break-inside: avoid; margin-bottom: 18px; }

.designgrid { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .designgrid { grid-template-columns: minmax(0, 1fr) 380px; } }
.themepick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.themeopt { display: grid; gap: 6px; justify-items: center; margin: 0; color: var(--text); cursor: pointer; padding: 10px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg2); }
.themeopt:has(input:checked) { border-color: var(--accent); }
.themeopt input { position: absolute; opacity: 0; }
.sw { width: 100%; height: 54px; border-radius: 8px; display: grid; place-items: center; font-size: 1.2rem; }
.sw.dark { background: linear-gradient(135deg, #1b0f28, #0a0a12); color: #fff; }
.sw.light { background: linear-gradient(135deg, #fff, #efe9df); color: #222; border: 1px solid #ddd; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 3px solid transparent; box-shadow: 0 0 0 1px var(--line); }
.swatch[aria-pressed="true"] { border-color: var(--text); }
.swatches input[type=color] { width: 42px; height: 42px; border: 0; padding: 0; background: none; cursor: pointer; }
.logorow { display: flex; gap: 12px; align-items: center; }
.logoprev { width: 120px; height: 72px; border-radius: 10px; border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: .8rem; background: repeating-conic-gradient(#ffffff10 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.logoprev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.phonewrap { position: sticky; top: 12px; }
.phone { width: 360px; max-width: 100%; height: 720px; margin: 0 auto; border-radius: 40px; border: 10px solid #000; box-shadow: 0 0 0 2px #333, 0 30px 60px #0008; overflow: hidden; background: #000; }
.phone iframe { width: 100%; height: 100%; border: 0; display: block; }

.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { color: var(--muted); font-weight: 600; }

.codefield { font-size: 1.5rem; text-align: center; letter-spacing: .25em; }
.twofa-qr { background: #fff; border-radius: 12px; padding: 10px; width: 200px; margin: 8px 0; }
.twofa-qr svg { width: 100%; display: block; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; background: var(--bg2); border-radius: 10px; padding: 12px; margin: 10px 0; }
.codes span { font-family: ui-monospace, monospace; font-size: 1rem; }
.status-on { color: #86efac; font-weight: 700; }
.softcard { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); margin: 8px 0; }
.softcard .ic { font-size: 1.6rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot.wait { background: var(--warn); }
.softgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.softgrid div { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: .85rem; }
.softgrid b { display: block; margin-bottom: 2px; }

.lockbox { border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 7%, var(--bg2)); border-radius: 12px; padding: 12px; margin: 10px 0; }
.lockbox .btnrow { justify-content: flex-start; }
.price-big { font-size: 2rem; font-weight: 800; margin: 4px 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--text); margin: 14px 0; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.chip { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); font-weight: 700; }
.chip[aria-pressed="true"] { background: var(--grad); color: var(--on-accent); border-color: transparent; }
.plans { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 10px 0; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--bg2); }
.plan b { font-size: 1.4rem; display: block; }
.badge.pro { background: #facc1533; color: #fde047; }

.kalitem { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.kalitem .meta { flex: 1 1 260px; }
.kalimg { width: 110px; height: 72px; object-fit: cover; border-radius: 10px; }
