/* Dark Prince Verwaltung – dunkel wie der Club, aber ruhig und gut lesbar */
@font-face { font-family: "Garamond SC"; src: url("/assets/schrift/EBGaramondSC12-Regular.woff2") format("woff2"); font-display: swap; }

:root {
  --nacht: #0c0809; --gruft: #151011; --stein: #1f1617; --linie: #3a2426;
  --blut: #b3121c; --blut-hell: #e0262f; --text: #eee3de; --leise: #a8928c;
  --gruen: #3fae6a; color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--nacht); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: #ff6b5e; }
:focus-visible { outline: 2px solid #ff6b5e; outline-offset: 2px; }

body.mit-nav { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.seitenleiste { background: linear-gradient(180deg, #170b0d, var(--nacht)); border-right: 1px solid var(--linie); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.seitenleiste a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 6px; }
.seitenleiste a:hover { background: var(--stein); }
.seitenleiste a[aria-current="page"] { background: linear-gradient(90deg, rgba(224, 38, 47, .3), transparent); border-left: 3px solid var(--blut-hell); }
.seitenleiste .marke { font-family: "Garamond SC", serif; font-size: 1.3rem; letter-spacing: .06em; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.seitenleiste .marke img { border-radius: 50%; }
.zur-seite { margin-top: auto; color: var(--leise) !important; }
main { padding: 26px clamp(16px, 3vw, 40px) 60px; max-width: 1200px; }
.ohne-nav main { margin: 0 auto; }
h1 { font: 400 2rem/1.2 "Garamond SC", Georgia, serif; letter-spacing: .05em; margin: 0 0 18px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
h3 { font-size: 1.05rem; margin: 6px 0; }

.karte { background: linear-gradient(180deg, var(--stein), var(--gruft)); border: 1px solid var(--linie); border-radius: 10px; padding: 18px; margin-bottom: 16px; }
.karte.schmal { max-width: 440px; margin: 40px auto; }
.anmelde-wappen { display: block; margin: 0 auto 10px; border-radius: 50%; filter: drop-shadow(0 0 30px rgba(224, 38, 47, .4)); }
.leise { color: var(--leise); }
.gross { font-size: 1.4rem; margin: 0 0 6px; }

label { display: block; font-weight: 600; font-size: .92rem; margin: 10px 0 4px; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: #0f0a0b; border: 1px solid #4a3033; border-radius: 6px; padding: 9px 11px; }
input[type="checkbox"] { width: auto; accent-color: var(--blut-hell); }
input[type="file"] { padding: 7px; }
textarea { resize: vertical; }
.haken { display: flex; align-items: center; gap: 8px; font-weight: 400; }
fieldset.rechte { border: 1px solid var(--linie); border-radius: 8px; padding: 8px 14px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 14px; }
fieldset.rechte legend { font-weight: 600; font-size: .92rem; padding: 0 6px; }

button, .knopf { font: inherit; font-weight: 600; cursor: pointer; padding: 9px 16px; border-radius: 6px; border: 1px solid #5a3a3d; background: #241718; color: var(--text); text-decoration: none; display: inline-block; margin-top: 12px; }
button:hover, .knopf:hover { border-color: var(--blut-hell); }
.haupt { background: linear-gradient(180deg, var(--blut-hell), #8a0b12); border-color: #ff4a3a; color: #fff; }
.gefahr { background: #3a0d10; border-color: #a3242c; color: #ffb3ad; }
button.link { background: none; border: 0; padding: 0; margin: 0; color: #ff6b5e; font-weight: 400; text-decoration: underline; }
button.link.gefahr { color: #ff8a80; }
.marke-gefahr { display: inline-block; padding: 1px 8px; border-radius: 3px; background: #3a0d10; border: 1px solid #a3242c; color: #ffb3ad; font-size: .8rem; }
button.leise { background: none; border: 0; color: var(--leise); font-weight: 400; text-align: left; padding: 8px 12px; margin: 0; }
form.inline { display: inline; }
.aktionen { margin-top: 8px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }
.felder .breit { grid-column: 1 / -1; }
.formular.zeile { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; }
.formular.zeile input { width: 100px; }
.formular.zeile p { flex-basis: 100%; margin: 4px 0 0; }

.hinweis { padding: 12px 16px; border-radius: 8px; margin: 0 0 16px; font-weight: 600; }
.hinweis.ok { background: #12301e; color: #9fe6b8; }
.hinweis.fehler { background: #3a0d10; color: #ffb3ad; }
.hinweis.info { background: #2a1d10; color: #f5d39b; }

.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { padding: 6px 0; border-top: 1px solid var(--linie); }
.liste li:first-child { border-top: 0; }
.live-punkt { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--blut-hell); box-shadow: 0 0 12px var(--blut-hell); animation: puls 1.4s infinite; }
@keyframes puls { 50% { opacity: .35; } }

.radio-schalter { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: 12px; margin-bottom: 18px; background: #1d1012; border: 1px solid var(--linie); }
.radio-schalter.an { border-color: var(--gruen); background: linear-gradient(90deg, rgba(63, 174, 106, .18), #1d1012); }
.radio-schalter button { margin: 0 0 0 auto; font-size: 1.05rem; padding: 12px 20px; }
.lampe { width: 18px; height: 18px; border-radius: 50%; background: #5b4a47; flex: none; }
.radio-schalter.an .lampe { background: var(--gruen); box-shadow: 0 0 14px var(--gruen); }

.woche { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.woche .tag.heute { border-color: var(--blut-hell); }
.slot { padding: 8px 0; border-top: 1px solid var(--linie); }
.slot.aus { opacity: .5; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.event img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
/* runde Bilder mit Rang-Verzierung wie auf der Startseite (Owner, Manager, DJ, Host) */
.rang-owner { --ring: conic-gradient(from 0deg, #8a6420, #f7d58b, #fff2c4, #b8862e, #8a6420, #f7d58b, #8a6420); --glanz: rgba(247, 213, 139, .55); --rand: #f7d58b; --zeichen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f7d58b' d='M3 8l4.5 4L12 4l4.5 8L21 8l-2 10H5z'/%3E%3Crect x='5' y='19' width='14' height='2' fill='%23f7d58b'/%3E%3C/svg%3E"); --rolle: #f7d58b; }
.rang-manager { --ring: conic-gradient(from 0deg, #5d6270, #eef0f6, #9aa0b2, #ffffff, #5d6270, #c9ced8, #5d6270); --glanz: rgba(220, 225, 240, .45); --rand: #dfe3ec; --zeichen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23eef0f6' d='M12 2l2.6 7.4L22 12l-7.4 2.6L12 22l-2.6-7.4L2 12l7.4-2.6z'/%3E%3C/svg%3E"); --rolle: #dfe3ec; }
.rang-dj { --ring: repeating-conic-gradient(from 0deg, #e0262f 0 9deg, #2a0306 9deg 18deg); --glanz: rgba(255, 40, 40, .55); --rand: #ff4a3a; --zeichen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 15v-3a8 8 0 0 1 16 0v3' fill='none' stroke='%23ff4a3a' stroke-width='2.2'/%3E%3Crect x='2.5' y='13' width='5' height='8' rx='1.5' fill='%23ff4a3a'/%3E%3Crect x='16.5' y='13' width='5' height='8' rx='1.5' fill='%23ff4a3a'/%3E%3C/svg%3E"); --rolle: #ff6b5e; --tempo: 5s; }
.rang-host { --ring: conic-gradient(from 0deg, #3a0f5c, #c77dff, #2d0a4a, #b04aff, #3a0f5c, #e0b0ff, #3a0f5c); --glanz: rgba(176, 74, 255, .5); --rand: #c77dff; --zeichen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h12c0 5-2.5 8-6 8s-6-3-6-8z' fill='%23d9a8ff'/%3E%3Cpath d='M12 11v7M7.5 21h9' stroke='%23d9a8ff' stroke-width='2.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"); --rolle: #d9a8ff; }
.person .portrait { position: relative; width: 170px; height: 170px; margin: 26px auto 12px; }
.person .portrait::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: var(--ring, conic-gradient(from 0deg, #b3121c, #d9a35b, #b3121c, #3a0408, #b3121c)); box-shadow: 0 0 20px var(--glanz, rgba(224, 38, 47, .35)); animation: drehen var(--tempo, 14s) linear infinite; }
.person .portrait::after { content: ""; position: absolute; z-index: 1; left: 50%; top: -24px; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; background: #0b0507 var(--zeichen) center / 22px no-repeat; border: 2px solid var(--rand); box-shadow: 0 0 14px var(--glanz); animation: schweben 3.2s ease-in-out infinite; }
.person.rang-crew .portrait::after { display: none; }
.person.rang-dj .portrait::before { animation: drehen var(--tempo) linear infinite, takt .9s ease-in-out infinite; }
.person .portrait img, .person .platzhalter { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid #0b0507; }
.person .rolle { color: var(--rolle, #ff6b5e); }
@keyframes drehen { to { transform: rotate(360deg); } }
@keyframes takt { 50% { box-shadow: 0 0 36px rgba(255, 40, 40, .9); } }
@keyframes schweben { 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .person .portrait::before, .person .portrait::after { animation: none; } }
.platzhalter { display: grid; place-items: center; background: #2a1517; font: 3rem "Garamond SC", serif; color: var(--blut-hell); }
.rolle { color: #ff6b5e; font-weight: 600; }
.vorbei { opacity: .55; }
.marke-aus { font-size: .8rem; background: #3a2426; padding: 2px 6px; border-radius: 4px; }
.vorschau { display: block; max-width: 220px; max-height: 220px; margin-top: 8px; border-radius: 8px; }
.vorschau.rund { border-radius: 50%; width: 140px; height: 140px; object-fit: cover; }
.vorschau[hidden] { display: none; }
.galerie-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.bild input[name="titel"] { margin-top: 8px; }
details.ordner { border-top: 1px solid var(--linie); padding: 8px 0; }
details.ordner summary { cursor: pointer; font-weight: 600; }
.ordner-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 14px; max-height: 360px; overflow-y: auto; margin-top: 6px; }
.radio-schalter.gesperrt { border-color: #a3242c; background: linear-gradient(90deg, rgba(163, 36, 44, .22), #1d1012); }
.radio-schalter.gesperrt .lampe { background: #a3242c; }
.radio-schalter .knopf { margin-left: auto; }
/* Musikauswahl fürs Radio */
.rw-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 12px; border-radius: 8px; background: #120b0c; border: 1px solid var(--linie); }
.rw-kopf strong { font-size: 1.3rem; color: #fff; }
.rw-kopf em { color: #ffb3ad; font-style: normal; }
.rw-reiter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.rw-reiter button { background: transparent; border: 1px solid var(--linie); color: var(--leise); margin: 0; }
.rw-reiter button.aktiv { color: #fff; border-color: var(--blut-hell); background: rgba(224, 38, 47, .18); }
.rw-baum, .rw-baum ul, .rw-liste { list-style: none; margin: 0; padding: 0; }
.rw-baum ul { padding-left: 22px; border-left: 1px dashed var(--linie); margin-left: 12px; }
#rw-baum { max-height: 520px; overflow-y: auto; }
.rw-zeile { display: flex; align-items: center; gap: 8px; padding: 3px 4px; border-radius: 6px; }
.rw-zeile:hover { background: rgba(255, 255, 255, .04); }
.rw-zeile .rw-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-auf { width: 28px; padding: 2px 0; margin: 0; background: none; border: 0; color: var(--leise); }
.rw-knoepfe { display: flex; gap: 4px; flex: none; }
.rw-knoepfe button { margin: 0; padding: 2px 9px; font-size: .82rem; background: transparent; border: 1px solid var(--linie); color: var(--leise); }
.rw-zeile[data-zustand="rein"] .rw-rein { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.rw-zeile[data-zustand="raus"] .rw-raus { background: #a3242c; border-color: #a3242c; color: #fff; }
.rw-zeile[data-zustand="rein"] .rw-name, .rw-zeile[data-zustand="erbt-rein"] .rw-name { color: #8fe0ad; }
.rw-zeile[data-zustand="raus"] .rw-name, .rw-zeile[data-zustand="erbt-raus"] .rw-name { color: #ff8a80; text-decoration: line-through; }
.rw-titel { display: flex; align-items: center; gap: 10px; padding: 2px 6px; font-size: .92rem; color: var(--leise); }
.rw-titel span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-titel button { margin: 0; flex: none; }
.rw-titel.gesperrt span { text-decoration: line-through; color: #ff8a80; }
.rw-genres { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rw-genre { margin: 0; padding: 4px 10px; font-size: .88rem; background: transparent; border: 1px solid var(--linie); color: var(--text); font-weight: 400; }
.rw-genre small { color: var(--leise); margin-left: 4px; }
.rw-genre[data-zustand="rein"] { background: var(--gruen); border-color: var(--gruen); }
.rw-genre[data-zustand="raus"] { background: #a3242c; border-color: #a3242c; text-decoration: line-through; }
#rw-genre-filter, #rw-suche { width: 100%; max-width: 420px; margin-bottom: 8px; }
#rw-beispiele { margin-top: 6px; }
.rw-name-feld { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.rw-name-feld input { width: 220px; }
.rw-plan { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 12px; margin-bottom: 10px; }
.rw-plan label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.rw-plan label.heute { color: #ff6b5e; }
.rw-neu input { flex: 1; min-width: 240px; max-width: 420px; }
.rw-heute .zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rw-heute select { width: auto; min-width: 220px; max-width: 320px; }
.rw-listen .slot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.show audio { width: 100%; margin: 6px 0; }
.zugang dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.zugang dt { color: var(--leise); }
.zugang .passwort { font: 700 1.3rem ui-monospace, monospace; letter-spacing: .05em; background: #2a1517; padding: 4px 10px; border-radius: 6px; }

@media (max-width: 760px) {
  body.mit-nav { display: block; }
  .seitenleiste { position: static; height: auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--linie); }
  .seitenleiste .marke { width: 100%; margin-bottom: 4px; }
  .zur-seite { margin-top: 0; }
  .radio-schalter button { margin-left: 0; width: 100%; }
}
