/* Recap Live – Liquid Glass (iOS 27), mobil zuerst, hell + dunkel */
:root {
  --bg: #f2f2f7; --bg2: #ffffff; --text: #1d1d1f; --text2: #6e6e73; --text3: #aeaeb2;
  --sep: rgba(60, 60, 67, .14); --glass: rgba(255, 255, 255, .62); --glass-border: rgba(255, 255, 255, .7);
  --accent: #0071e3; --red: #ff3b30; --green: #34c759; --orange: #ff9500; --blue: #0a84ff;
  --shadow: 0 8px 30px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .05);
  --radius: 22px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --bg2: #1c1c1e; --text: #f5f5f7; --text2: #98989d; --text3: #636366;
    --sep: rgba(84, 84, 88, .45); --glass: rgba(44, 44, 46, .58); --glass-border: rgba(255, 255, 255, .09);
    --accent: #0a84ff; --shadow: 0 8px 30px rgba(0, 0, 0, .5);
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 17px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(10, 132, 255, .18), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(255, 59, 48, .12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
button, input, textarea { font: inherit; color: inherit; }
.wrap { max-width: 760px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 18px) 16px calc(env(safe-area-inset-bottom) + 110px); }

.glass {
  background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
}

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 4px 18px; }
.top h1 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.date { color: var(--text2); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; border: none; display: grid; place-items: center; cursor: pointer; }
.iconbtn svg { width: 22px; height: 22px; }

.segment { display: flex; padding: 4px; border-radius: 999px; margin: 0 0 18px; }
.segment button { white-space: nowrap; flex: 1; border: none; background: none; padding: 9px 10px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--text2); cursor: pointer; }
.segment button.on { background: var(--bg2); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.12); }

.list { display: grid; gap: 12px; }
.card { border-radius: var(--radius); padding: 16px 16px 14px; cursor: pointer; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; transition: transform .15s; }
.card:active { transform: scale(.98); }
.card .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(120,120,128,.14); }
.card .ico svg { width: 22px; height: 22px; }
.card .t { font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card .s { color: var(--text2); font-size: 14px; margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.live .dot { animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.c-blue { color: var(--blue); background: rgba(10,132,255,.14); }
.c-red { color: var(--red); background: rgba(255,59,48,.14); }
.c-green { color: var(--green); background: rgba(52,199,89,.16); }
.c-orange { color: var(--orange); background: rgba(255,149,0,.16); }
.c-gray { color: var(--text2); background: rgba(120,120,128,.14); }
.empty { text-align: center; color: var(--text2); padding: 48px 20px; }
.empty b { display: block; color: var(--text); font-size: 20px; margin-bottom: 6px; }
.section-title { font-size: 13px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .03em; margin: 22px 8px 8px; }

.dock { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 18px); border-radius: 999px; padding: 8px; display: flex; gap: 8px; z-index: 5; }
.btn { white-space: nowrap; border: none; border-radius: 999px; padding: 13px 20px; font-weight: 600; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; justify-content: center; text-decoration: none; color: inherit; }
.btn svg { width: 20px; height: 20px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.red { background: var(--red); color: #fff; }
.btn.plain { background: rgba(120,120,128,.16); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn.wide { width: 100%; }

.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.32); z-index: 10; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 760px; max-height: 92vh; overflow: auto; border-radius: 28px 28px 0 0; padding: 10px 18px calc(env(safe-area-inset-bottom) + 24px); background: var(--bg); animation: up .28s cubic-bezier(.2,.9,.3,1); }
@media (min-width: 800px) { .backdrop { align-items: center; } .sheet { border-radius: 28px; max-height: 86vh; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.grabber { width: 38px; height: 5px; border-radius: 3px; background: var(--text3); margin: 0 auto 12px; }
.sheet h2 { font-size: 26px; margin: 4px 0 4px; letter-spacing: -.01em; }
.sheet .sub { color: var(--text2); margin: 0 0 16px; font-size: 15px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.group { background: var(--bg2); border-radius: 16px; overflow: hidden; margin: 10px 0 14px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--sep); min-height: 48px; }
.row:last-child { border-bottom: none; }
.row label { color: var(--text2); font-size: 15px; flex: 0 0 auto; }
.row .v { text-align: right; overflow-wrap: anywhere; }
.row input { border: none; background: none; text-align: right; outline: none; width: 100%; min-width: 0; }
textarea.paste { width: 100%; min-height: 130px; border-radius: 16px; border: 1px solid var(--sep); background: var(--bg2); padding: 14px; outline: none; resize: vertical; }
textarea.paste:focus, input.field:focus { border-color: var(--accent); }
input.field { width: 100%; border-radius: 14px; border: 1px solid var(--sep); background: var(--bg2); padding: 14px 16px; outline: none; }
.note { font-size: 13px; color: var(--text2); margin: 6px 8px; }
.warn { color: var(--orange); font-size: 14px; margin: 6px 4px; }
.err { color: var(--red); font-size: 15px; margin: 10px 4px; }
.actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.actions .btn { flex: 1 1 140px; }

.live { position: relative; border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 16/9; margin: 6px 0 14px; display: grid; place-items: center; color: rgba(255,255,255,.6); }
.live img { width: 100%; height: 100%; object-fit: contain; display: block; }
.live .badge { position: absolute; left: 12px; top: 12px; }
.progress { height: 6px; border-radius: 3px; background: rgba(120,120,128,.2); overflow: hidden; margin: 10px 0; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width .4s; }
.tabs { display: flex; gap: 6px; margin: 16px 0 8px; }
.md { background: var(--bg2); border-radius: 18px; padding: 6px 18px 18px; line-height: 1.55; font-size: 16px; }
.md h1 { font-size: 22px; } .md h2 { font-size: 19px; margin-top: 22px; } .md h3 { font-size: 16px; margin-top: 16px; }
.md ul { padding-left: 20px; } .md li { margin: 4px 0; }
.md .ts { color: var(--accent); font-variant-numeric: tabular-nums; }
.md pre { white-space: pre-wrap; font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login .box { width: 100%; max-width: 380px; border-radius: 32px; padding: 32px 24px 26px; text-align: center; }
.login img { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.login h1 { margin: 16px 0 4px; font-size: 28px; }
.login p { color: var(--text2); margin: 0 0 22px; }
.login .btn { margin-top: 12px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top) + 14px); padding: 12px 18px; border-radius: 999px; z-index: 20; font-weight: 600; font-size: 15px; animation: up .25s; }
