/* Admin-Bereich */
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #2b2140; background: #f5f2fb; }
a { color: #5419b8; }
h1 { font-size: 1.7rem; margin: 0 0 16px; }
h2 { font-size: 1.1rem; margin: 18px 0 8px; }
h2:first-child { margin-top: 0; }
.adm-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 20px; background: linear-gradient(90deg, #1f1460, #3a1a9a); color: #fff; }
.adm-brand { color: #fff; font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.adm-brand small { color: #ffd23f; }
.adm-top nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.adm-top nav a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; }
.adm-top nav a:hover, .adm-top nav a.on { background: rgba(255,255,255,.15); }
.adm-top nav a.edit-link { background: #ffd23f; color: #1f1460; }
.badge { background: #ff2d95; color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .8rem; }
.adm-main { max-width: 1200px; margin: 0 auto; padding: 24px 16px 60px; }
.abtn { display: inline-block; background: #7b2ff7; color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font: 700 15px system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.abtn:hover { background: #5419b8; }
.abtn.small { padding: 6px 12px; font-size: 13px; }
.abtn.ghost { background: #fff; color: #5419b8; box-shadow: inset 0 0 0 2px #7b2ff7; }
.abtn.danger { background: #fff; color: #c0002d; box-shadow: inset 0 0 0 2px #c0002d; }
.ok { background: #dff7d8; color: #1a5e10; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.err { background: #ffe1e8; color: #9a0026; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.hint { color: #625a75; font-size: .92rem; }
.empty { background: #fff; padding: 30px; border-radius: 14px; text-align: center; color: #625a75; }
label { display: block; font-weight: 600; margin-bottom: 12px; }
label small { font-weight: 400; color: #625a75; }
input:not([type=checkbox]):not([type=radio]), select, textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 12px; border: 2px solid #d9cdee; border-radius: 10px; font: inherit; background: #fff; }
label.chk input, label input[type=radio] { margin-right: 6px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Login / Install */
.adm-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg, #3b1a9e, #6b23d6 55%, #c0218f); }
.login-box { background: #fff; padding: 28px; border-radius: 20px; width: 100%; max-width: 380px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.login-box.wide { max-width: 640px; }
.login-box .abtn { width: 100%; margin-top: 6px; }
.login-box p .abtn { width: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* Anfragen */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border-radius: 14px; padding: 12px 16px; border-left: 6px solid; font-weight: 600; color: #625a75; }
.stat b { display: block; font-size: 1.8rem; color: #2b2140; }
.s-neu { border-color: #ff2d95; } .s-bear { border-color: #ff9d00; } .s-ok { border-color: #3ca81e; } .s-no { border-color: #999; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: 6px 14px; border-radius: 999px; background: #fff; text-decoration: none; font-weight: 600; }
.tabs a.on { background: #7b2ff7; color: #fff; }
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; }
.list th, .list td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee6f8; vertical-align: top; }
.list th { background: #efe7fb; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.list small { color: #625a75; }
.list tr.past td { opacity: .55; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: #eee; white-space: nowrap; }
.st-neu { background: #ffd6ea; color: #a1005a; } .st-in-Bearbeitung { background: #ffe8c2; color: #8a5200; }
.st-bestätigt { background: #d7f5c9; color: #1f6b0f; } .st-abgesagt { background: #e5e5e5; color: #555; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.box { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 4px 16px rgba(60,20,110,.07); }
dl { display: grid; grid-template-columns: 140px 1fr; gap: 4px 12px; margin: 0; }
dt { color: #625a75; } dd { margin: 0; font-weight: 600; }
.msg { background: #faf7ff; padding: 12px; border-radius: 10px; }
.status-form { margin-top: 18px; border-top: 1px solid #eee6f8; padding-top: 16px; }
.help li { margin-bottom: 6px; }

/* Galerie */
.drop { border: 3px dashed #b79cf0; border-radius: 18px; background: #fff; padding: 26px; text-align: center; margin-bottom: 10px; transition: .15s; }
.drop.hover { background: #f1e8ff; border-color: #7b2ff7; }
.drop select { display: inline-block; width: auto; margin: 0 0 0 6px; }
.progress { position: relative; height: 26px; background: #eee6f8; border-radius: 999px; overflow: hidden; margin-top: 12px; }
.progress div { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ff2d95, #7b2ff7); width: 0; transition: width .3s; }
.progress span { position: relative; font-weight: 700; font-size: .85rem; line-height: 26px; color: #2b2140; }
.gal-admin { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.gal-admin li { background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 4px 12px rgba(60,20,110,.08); cursor: grab; }
.gal-admin li.dragging { opacity: .4; outline: 3px dashed #7b2ff7; }
.gal-admin img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; pointer-events: none; }
.gal-admin input, .gal-admin select { margin-top: 6px; padding: 6px 8px; font-size: .88rem; }
.g-row { display: flex; gap: 6px; align-items: center; }
.g-del { background: #fff; border: 2px solid #ffd0dc; border-radius: 8px; cursor: pointer; padding: 5px 8px; margin-top: 6px; }
.g-del:hover { background: #ffe1e8; }
.cof-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 400; background: #1a7f2b; color: #fff; padding: 10px 18px; border-radius: 12px; font-weight: 700; box-shadow: 0 8px 20px rgba(0,0,0,.3); transition: opacity .4s; }
.cof-toast.bad { background: #c0002d; }
.cof-toast.out { opacity: 0; }

@media (max-width: 760px) {
  .detail, .grid2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .list thead { display: none; }
  .list tr { display: block; border-bottom: 3px solid #efe7fb; }
  .list td { display: block; border: 0; padding: 4px 12px; }
  .list td[data-l]::before { content: attr(data-l) ": "; font-weight: 700; color: #625a75; font-size: .8rem; }
  dl { grid-template-columns: 110px 1fr; }
}

.variants { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 8px; }
.variant { border: 2px solid #d9cdee; border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.variant:has(input:checked) { border-color: #7b2ff7; background: #f4ecff; }
.variant small { display: block; margin: 2px 0 6px; }
.variant a { font-size: .85rem; }
.seo-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seo-item h3 { margin: 0 0 10px; font-size: 1.05rem; }
.seo-item h3 a { font-size: .8rem; font-weight: 600; margin-left: 6px; }
.cnt { float: right; font-weight: 600; font-size: .8rem; color: #3ca81e; }
.cnt.over { color: #c0002d; }
.serp { border: 1px solid #eee6f8; border-radius: 10px; padding: 10px 12px; font-family: Arial, sans-serif; }
.s-url { color: #202124; font-size: 12px; word-break: break-all; }
.s-t { color: #1a0dab; font-size: 18px; line-height: 1.3; margin: 2px 0; }
.s-d { color: #4d5156; font-size: 13px; line-height: 1.5; }
code { background: #f1ebfb; padding: 2px 6px; border-radius: 6px; word-break: break-all; }
@media (max-width: 900px) { .seo-list { grid-template-columns: 1fr; } }
.rev-admin { list-style: none; padding: 0; display: grid; gap: 12px; }
.rev-admin li.off { opacity: .55; }
.ra-stars { color: #ffb800; letter-spacing: 1px; }
.rev-admin p { margin: 8px 0; }
.rev-admin .row form { margin: 0; }
.vtype { margin: 4px 0 10px; }
.poster-prev { aspect-ratio: 16 / 9; background: #efe7fb; border-radius: 12px; overflow: hidden; display: grid; place-items: center; color: #8a7fa5; }
.poster-prev img { width: 100%; height: 100%; object-fit: cover; }
.vid-admin { list-style: none; padding: 0; display: grid; gap: 12px; }
.vid-admin li { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; }
.vid-admin li.off { opacity: .55; }
.va-img { position: relative; aspect-ratio: 16 / 9; background: #1f1460; border-radius: 10px; overflow: hidden; }
.va-img img { width: 100%; height: 100%; object-fit: cover; }
.va-img span { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; padding: 2px 8px; border-radius: 6px; }
.va-text p { margin: 4px 0 8px; color: #625a75; }
.va-text .row form { margin: 0; }
button:disabled { opacity: .5; cursor: wait; }
@media (max-width: 760px) { .vid-admin li { grid-template-columns: 1fr; } }
