:root {
  --bg: #0e0a0c;
  --surface: #181114;
  --surface-2: #22181d;
  --line: #34252c;
  --text: #f3ecef;
  --muted: #a8969e;
  --accent: #e0245e;
  --accent-2: #ff5c8a;
  --gold: #d9b26a;
  --ok: #3ccf91;
  --warn: #f0b429;
  --danger: #ff4d4f;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Inter, system-ui, sans-serif; }
body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent-2); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; margin: 0 0 .5em; }
h1 { font-size: 30px; } h2 { font-size: 22px; } h3 { font-size: 17px; font-family: Inter, sans-serif; font-weight: 600; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.center { justify-content: center; } .row.between { justify-content: space-between; }
.grow { flex: 1; }
.stack > * + * { margin-top: 12px; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px 20px;
  background: rgba(14,10,12,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: .5px; }
.logo span { color: var(--accent); }
.logo.big { font-size: 40px; text-align: center; margin-bottom: 8px; }
#nav { display: flex; gap: 6px; align-items: center; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
#nav a { color: var(--muted); padding: 7px 12px; border-radius: 999px; font-weight: 500; }
#nav a.active, #nav a:hover { color: var(--text); background: var(--surface-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.chip.gold { color: var(--gold); border-color: #4a3a20; }
.badge { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; text-align: center; }

main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 24px 20px 40px; }
.footer { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; padding: 18px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
.footer a { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font: 600 14px Inter, sans-serif; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #55404a; }
.btn.primary { background: linear-gradient(135deg, var(--accent), #a3164a); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.gold { background: linear-gradient(135deg, #e2bd73, #b08840); color: #20160a; border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.icon { width: 42px; height: 42px; padding: 0; font-size: 18px; }
.btn:disabled { opacity: .5; cursor: default; }

input, textarea, select { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 15px Inter, sans-serif; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text); }
.check input { width: auto; margin-top: 4px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.auth { max-width: 440px; margin: 30px auto; }
.error { color: var(--danger); font-size: 14px; min-height: 1em; }

.hero { padding: 26px 0 18px; }
.hero h1 { font-size: 36px; }
.search { max-width: 380px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.ccard { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: transform .15s; }
.ccard:hover { transform: translateY(-3px); border-color: #55404a; }
.ccard img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.ccard .info { position: absolute; inset: auto 0 0 0; padding: 40px 12px 12px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.ccard .name { font-weight: 600; font-size: 17px; display: flex; align-items: center; gap: 7px; }
.ccard .tags { font-size: 12px; color: #d8c8cf; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #666; display: inline-block; flex-shrink: 0; }
.dot.online { background: var(--ok); box-shadow: 0 0 8px var(--ok); } .dot.busy { background: var(--warn); }

.profile-cover { height: 260px; border-radius: var(--radius); background: var(--surface-2) center/cover; position: relative; }
.profile-head { display: flex; gap: 20px; align-items: flex-end; margin-top: -70px; padding: 0 20px; position: relative; flex-wrap: wrap; }
.profile-head .avatar { width: 140px; height: 140px; border-radius: 50%; border: 4px solid var(--bg); object-fit: cover; }
.profile-body { display: grid; grid-template-columns: 1fr 300px; gap: 20px; margin-top: 20px; }
.prices div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.gitem { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--surface-2); cursor: pointer; }
.gitem img { width: 100%; height: 100%; object-fit: cover; }
.gitem .lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(10,6,8,.35); text-align: center; padding: 8px; }
.gitem .lock b { font-size: 13px; }

/* Chat */
.chat { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 175px); min-height: 480px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.chat.with-side { grid-template-columns: 300px 1fr 280px; }
.clist { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.clist .filters { padding: 10px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.clist .filters button { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.clist .filters button.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.clist .items { overflow-y: auto; flex: 1; }
.citem { display: flex; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: center; }
.citem:hover, .citem.on { background: var(--surface-2); }
.citem .av { position: relative; flex-shrink: 0; }
.citem .av img, .av-ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.av-ph { display: flex; align-items: center; justify-content: center; background: #3a2a32; font-weight: 600; }
.citem .av .dot { position: absolute; right: 0; bottom: 0; border: 2px solid var(--surface); width: 12px; height: 12px; }
.citem .meta { min-width: 0; flex: 1; }
.citem .meta .t { display: flex; justify-content: space-between; gap: 6px; font-weight: 600; }
.citem .meta .p { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.state { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.state.new { color: var(--gold); } .state.unanswered { color: var(--accent-2); }

.conv { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.conv-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.conv-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 72%; padding: 9px 13px; border-radius: 16px; background: var(--surface-2); align-self: flex-start; word-wrap: break-word; }
.msg.mine { align-self: flex-end; background: linear-gradient(135deg, #8e1540, #6a1032); }
.msg .time { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 3px; text-align: right; }
.msg img.att { border-radius: 10px; max-height: 280px; cursor: zoom-in; }
.msg audio { max-width: 250px; height: 40px; }
.msg.system, .msg.call, .msg.tip { align-self: center; background: transparent; border: 1px dashed var(--line); font-size: 13px; color: var(--muted); max-width: 90%; text-align: center; }
.msg.tip { color: var(--gold); border-color: #4a3a20; }
.msg .auto { font-size: 11px; color: var(--gold); display: block; margin-bottom: 2px; }
.msg .paid { font-size: 11px; color: rgba(255,255,255,.55); }
.locked { position: relative; border-radius: 10px; overflow: hidden; width: 240px; }
.locked .lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(10,6,8,.35); }
.typing { font-size: 12px; color: var(--muted); padding: 0 16px 6px; height: 18px; }
.composer { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); align-items: flex-end; flex-wrap: wrap; }
.composer textarea { flex: 1; min-width: 160px; resize: none; height: 44px; max-height: 120px; }
.tpls { display: flex; gap: 6px; padding: 8px 10px 0; flex-wrap: wrap; }
.tpls button { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid #4a3a20; background: transparent; color: var(--gold); cursor: pointer; }
.rec { color: var(--danger); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.rec::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.side { border-left: 1px solid var(--line); padding: 16px; overflow-y: auto; font-size: 14px; }
.side dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; } .side dt { color: var(--muted); } .side dd { margin: 0; text-align: right; }
.empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); padding: 20px; text-align: center; }
.back-btn { display: none; }

/* Tabellen, Tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.tabs a.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pos { color: var(--ok); } .neg { color: var(--danger); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat .v { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: 13px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 110px; padding-top: 10px; }
.bars div { flex: 1; background: linear-gradient(var(--accent-2), var(--accent)); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.pill { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.pill.ok { color: var(--ok); } .pill.warn { color: var(--warn); } .pill.bad { color: var(--danger); }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.mgrid .m { background: var(--surface-2); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.mgrid .m .thumb { aspect-ratio: 1; background: #000 center/cover; }
.mgrid .m .b { padding: 8px; font-size: 13px; }

/* Overlays */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto; }
.modal .box.wide { max-width: 900px; padding: 8px; background: transparent; border: 0; }
.modal .box.wide img { margin: auto; max-height: 85vh; border-radius: 10px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 70; background: var(--surface-2); border: 1px solid var(--line); padding: 11px 18px; border-radius: 999px; box-shadow: 0 6px 30px rgba(0,0,0,.5); max-width: calc(100% - 32px); }
.toast.err { border-color: var(--danger); color: #ffb3b5; }
.agegate { position: fixed; inset: 0; z-index: 100; background: radial-gradient(circle at 50% 30%, #2a0f1b, #07040a 70%); display: flex; align-items: center; justify-content: center; padding: 16px; }
.agebox { max-width: 520px; text-align: center; }
.agebox p { color: #d6c5cc; }

.call { position: fixed; inset: 0; z-index: 60; background: #050304; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.call video.remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.call video.local { position: absolute; right: 16px; top: 16px; width: 26vw; max-width: 220px; border-radius: 12px; border: 2px solid var(--line); background: #111; z-index: 2; transform: scaleX(-1); }
.call .who { position: relative; z-index: 2; text-align: center; }
.call .who img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--accent); }
.call .bar { position: absolute; bottom: 30px; left: 0; right: 0; z-index: 3; display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 0 16px; }
.call .info { position: absolute; top: 16px; left: 16px; z-index: 3; background: rgba(0,0,0,.6); padding: 8px 14px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.call .btn.round { width: 60px; height: 60px; border-radius: 50%; font-size: 24px; padding: 0; }
.call .btn.hang { background: var(--danger); border-color: transparent; color: #fff; }
.call .btn.take { background: var(--ok); border-color: transparent; color: #fff; }
.call.video-on .who { display: none; }
.call.video-on .who.keep { display: block; }

@media (max-width: 900px) {
  .profile-body, .two, .form-grid { grid-template-columns: 1fr; }
  .chat, .chat.with-side { grid-template-columns: 1fr; height: calc(100vh - 150px); }
  .chat .side { display: none; }
  .chat.open .clist { display: none; } .chat:not(.open) .conv { display: none; }
  .back-btn { display: inline-flex; }
  .msg { max-width: 86%; }
}
@media (max-width: 600px) {
  main { padding: 16px 16px 30px; }
  .topbar { padding: 10px 16px; gap: 8px; flex-wrap: wrap; }
  #nav { margin-left: 0; width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  #nav a { padding: 5px 9px; font-size: 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero h1 { font-size: 26px; }
  .profile-cover { height: 170px; }
  .profile-head .avatar { width: 100px; height: 100px; }
  .profile-head { margin-top: -50px; padding: 0 8px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Freigabestufen */
.fsk { display: inline-block; font: 700 10px/1 Inter, sans-serif; padding: 3px 5px; border-radius: 4px; color: #fff; vertical-align: middle; letter-spacing: .3px; }
.fsk12 { background: #2e9e57; } .fsk16 { background: #2f6fd6; } .fsk18 { background: #d32f2f; }
.fskcorner { position: absolute; top: 6px; left: 6px; }
.levelbar { margin-bottom: 16px; padding: 12px 16px; border-color: #3a2f45; }
.gitem .lock .fsk { font-size: 13px; padding: 4px 7px; }
