:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #e4e7ec;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --shadow: 0 16px 42px rgba(30, 41, 59, 0.12);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0 0, rgba(37, 99, 235, .12), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(22, 163, 74, .10), transparent 30%),
    var(--bg);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--primary); }
.hidden { display: none !important; }
.page { width: min(1220px, calc(100% - 28px)); margin: 0 auto; padding: 28px 0 54px; }
.topbar { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:22px; }
.brand { display:flex; align-items:center; gap:12px; }
.brand-mark { width:48px; height:48px; display:grid; place-items:center; border-radius:15px; color:white; background:linear-gradient(135deg,#1d4ed8,#60a5fa); font-size:1.45rem; box-shadow:0 9px 24px rgba(37,99,235,.28); }
.brand h1 { margin:0; font-size:clamp(1.55rem,3vw,2.35rem); letter-spacing:-.035em; }
.brand p { margin:3px 0 0; color:var(--muted); font-size:.91rem; }
.top-actions { display:flex; align-items:center; flex-wrap:wrap; gap:9px; }
.pill { display:inline-flex; align-items:center; gap:7px; padding:8px 11px; border:1px solid var(--line); border-radius:999px; background:rgba(255,255,255,.82); font-size:.86rem; }
.btn { border:0; border-radius:11px; padding:10px 14px; font-weight:800; background:var(--primary); color:white; }
.btn:hover { background:var(--primary-dark); }
.btn.secondary { color:var(--text); background:white; border:1px solid var(--line); }
.btn.secondary:hover { background:#f8fafc; }
.btn.danger { background:var(--danger); }
.btn.small { padding:7px 10px; font-size:.82rem; }
.hero-card, .panel, .ranking-card, .auth-card { background:rgba(255,255,255,.95); border:1px solid rgba(255,255,255,.9); border-radius:22px; box-shadow:var(--shadow); }
.highlights { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:20px; }
.highlight { padding:14px 15px; background:white; border:1px solid var(--line); border-radius:15px; min-width:0; }
.highlight-label { color:var(--muted); font-size:.76rem; font-weight:800; text-transform:uppercase; letter-spacing:.07em; }
.highlight-name { margin-top:5px; font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.highlight-score { margin-top:3px; color:var(--primary); font-weight:850; font-size:.86rem; }
.admin-panel { margin-bottom:20px; padding:18px; }
.panel-title { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:13px; }
.panel-title h2 { margin:0; font-size:1.12rem; }
.inline-form { display:grid; grid-template-columns:1fr 180px auto; gap:10px; }
.field { display:grid; gap:6px; }
.field label { font-size:.82rem; font-weight:800; color:#344054; }
.field input, .field select, .field textarea { width:100%; border:1px solid var(--line); border-radius:11px; padding:10px 12px; outline:none; background:white; }
.field textarea { min-height:84px; resize:vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(37,99,235,.11); }
.ranking-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.ranking-card { overflow:hidden; }
.ranking-head { padding:18px; color:white; background:linear-gradient(135deg,#1d4ed8,#3b82f6); }
.ranking-card[data-type="azubi"] .ranking-head { background:linear-gradient(135deg,#047857,#22c55e); }
.ranking-card[data-type="disponent"] .ranking-head { background:linear-gradient(135deg,#7c3aed,#a855f7); }
.ranking-head h2 { margin:0; font-size:1.25rem; }
.ranking-head p { margin:4px 0 0; opacity:.82; font-size:.84rem; }
.ranking-list { display:grid; gap:10px; padding:13px; min-height:220px; }
.empty { display:grid; place-items:center; min-height:170px; padding:20px; text-align:center; color:var(--muted); border:2px dashed var(--line); border-radius:15px; }
.person-card { display:grid; grid-template-columns:43px minmax(0,1fr) auto; gap:10px; align-items:center; border:1px solid var(--line); border-radius:15px; padding:11px; background:white; transition:.15s ease; }
.person-card:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(30,41,59,.08); border-color:#cbd5e1; }
.rank { width:42px; height:42px; display:grid; place-items:center; background:#f1f5f9; border-radius:13px; font-weight:950; font-size:1.12rem; }
.rank.one { background:linear-gradient(145deg,#fff1a8,#f5b301); }
.rank.two { background:linear-gradient(145deg,#f8fafc,#cbd5e1); }
.rank.three { background:linear-gradient(145deg,#fed7aa,#c47b3b); }
.person-main { min-width:0; cursor:pointer; }
.person-name-row { display:flex; align-items:center; gap:7px; min-width:0; }
.person-name { font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.account-dot { width:9px; height:9px; flex:0 0 9px; border-radius:50%; background:#98a2b3; box-shadow:0 0 0 3px rgba(152,162,179,.13); }
.account-dot.active { background:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,.15); }
.person-score { margin-top:3px; color:var(--muted); font-size:.82rem; }
.person-score strong { color:var(--text); font-size:1rem; }
.badges { display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
.badge { max-width:100%; padding:3px 7px; border-radius:999px; background:#eef4ff; color:#254c9b; font-size:.69rem; font-weight:800; white-space:nowrap; }
.person-actions { display:grid; gap:5px; }
.icon-btn { min-width:37px; height:34px; border:1px solid var(--line); border-radius:10px; background:white; }
.icon-btn:hover { background:#f8fafc; }
.modal-backdrop { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:18px; background:rgba(15,23,42,.58); backdrop-filter:blur(5px); }
.modal { width:min(720px,100%); max-height:calc(100vh - 36px); overflow:auto; border-radius:20px; background:white; box-shadow:0 24px 80px rgba(0,0,0,.25); }
.modal.small { width:min(520px,100%); }
.modal-head { position:sticky; top:0; z-index:2; display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:18px; border-bottom:1px solid var(--line); background:rgba(255,255,255,.96); }
.modal-head h2 { margin:0; font-size:1.3rem; }
.modal-head p { margin:4px 0 0; color:var(--muted); font-size:.84rem; }
.close { width:38px; height:38px; border:1px solid var(--line); border-radius:11px; background:white; }
.modal-body { padding:18px; }
.stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin-bottom:16px; }
.stat { padding:12px; border:1px solid var(--line); border-radius:13px; background:#fbfcfe; }
.stat span { display:block; color:var(--muted); font-size:.74rem; font-weight:800; }
.stat strong { display:block; margin-top:4px; font-size:1.15rem; }
.section-title { margin:18px 0 9px; font-size:.96rem; }
.breakdown { display:grid; gap:7px; }
.breakdown-row, .history-row { display:flex; justify-content:space-between; gap:12px; padding:10px 11px; border:1px solid var(--line); border-radius:11px; background:#fff; }
.history { display:grid; gap:8px; }
.history-main { min-width:0; }
.history-label { font-weight:800; }
.history-meta { margin-top:3px; color:var(--muted); font-size:.76rem; }
.history-note { margin-top:5px; color:#475467; font-size:.84rem; }
.points { flex:0 0 auto; font-weight:950; }
.points.positive { color:var(--success); }
.points.negative { color:var(--danger); }
.token-box { margin-top:12px; padding:14px; border:1px solid #bbf7d0; border-radius:13px; background:#f0fdf4; }
.token-value { display:block; margin:8px 0; padding:10px; overflow-wrap:anywhere; border-radius:9px; background:#052e16; color:#dcfce7; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
.notice { padding:12px 13px; border-radius:12px; background:#fff7ed; border:1px solid #fed7aa; color:#9a3412; font-size:.85rem; }
.auth-shell { width:min(760px,calc(100% - 28px)); margin:0 auto; padding:44px 0; }
.auth-card { overflow:hidden; }
.auth-head { padding:25px; color:white; background:linear-gradient(135deg,#1d4ed8,#60a5fa); }
.auth-head h1 { margin:0; font-size:1.8rem; }
.auth-head p { margin:7px 0 0; opacity:.88; }
.auth-body { padding:22px; }
.form-grid { display:grid; gap:14px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.error { display:none; padding:11px 12px; color:#991b1b; background:#fef2f2; border:1px solid #fecaca; border-radius:10px; }
.error.show { display:block; }
.success { display:none; padding:11px 12px; color:#166534; background:#f0fdf4; border:1px solid #bbf7d0; border-radius:10px; }
.success.show { display:block; }
.privacy-scroll { height:320px; overflow:auto; padding:15px; border:1px solid var(--line); border-radius:13px; background:#fbfcfe; line-height:1.52; font-size:.88rem; }
.privacy-scroll h2 { font-size:1.05rem; margin:18px 0 5px; }
.privacy-scroll h2:first-child { margin-top:0; }
.privacy-scroll p, .privacy-scroll ul { margin:6px 0; }
.privacy-scroll ul { padding-left:20px; }
.check { display:flex; align-items:flex-start; gap:9px; padding:12px; border:1px solid var(--line); border-radius:11px; background:white; }
.check input { margin-top:3px; }
.muted { color:var(--muted); font-size:.84rem; }
.footer-note { margin-top:16px; text-align:center; color:var(--muted); font-size:.82rem; }
@media (max-width:1000px) { .ranking-grid { grid-template-columns:1fr; } .highlights { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) { .topbar { align-items:flex-start; flex-direction:column; } .inline-form, .form-row { grid-template-columns:1fr; } .stats { grid-template-columns:repeat(2,minmax(0,1fr)); } .highlights { grid-template-columns:1fr; } }

/* Registration page */
.registration-page {
  background:
    radial-gradient(circle at 12% 12%, rgba(59, 130, 246, .22), transparent 28%),
    radial-gradient(circle at 92% 88%, rgba(124, 58, 237, .16), transparent 28%),
    linear-gradient(145deg, #eef4ff 0%, #f8fafc 48%, #f4f0ff 100%);
}
.registration-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 36px 0;
}
.registration-card {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.55fr);
  overflow: hidden;
  min-height: calc(100vh - 72px);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 30px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 90px rgba(30, 41, 59, .16);
}
.registration-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(28px, 4vw, 48px);
  color: white;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(12, 38, 97, .96), rgba(37, 99, 235, .95) 54%, rgba(91, 33, 182, .92));
}
.registration-intro::before,
.registration-intro::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
}
.registration-intro::before { width: 310px; height: 310px; right: -155px; top: -110px; }
.registration-intro::after { width: 240px; height: 240px; left: -130px; bottom: -110px; }
.registration-brand,
.registration-intro-copy,
.registration-steps,
.registration-security-note { position: relative; z-index: 1; }
.registration-brand { display: flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: -.01em; }
.registration-brand-mark { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 15px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.registration-intro-copy { margin-top: clamp(45px, 9vh, 92px); }
.registration-kicker { display: inline-block; margin-bottom: 11px; font-size: .74rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; color: #bfdbfe; }
.registration-kicker.dark { color: var(--primary); }
.registration-intro-copy h1 { max-width: 480px; margin: 0; font-size: clamp(2.05rem, 4vw, 3.4rem); line-height: 1.02; letter-spacing: -.055em; }
.registration-intro-copy p { max-width: 470px; margin: 18px 0 0; color: rgba(255,255,255,.78); line-height: 1.65; }
.registration-steps { display: grid; gap: 14px; margin: 40px 0 0; padding: 0; list-style: none; }
.registration-steps li { display: flex; align-items: center; gap: 13px; }
.registration-steps li > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border-radius: 11px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.16); font-weight: 900; }
.registration-steps strong, .registration-steps small { display: block; }
.registration-steps small { margin-top: 2px; color: rgba(255,255,255,.66); }
.registration-security-note { display: flex; gap: 11px; align-items: flex-start; margin-top: auto; padding: 15px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: rgba(255,255,255,.09); backdrop-filter: blur(8px); }
.registration-security-note p { margin: 0; color: rgba(255,255,255,.77); font-size: .82rem; line-height: 1.5; }
.registration-content { min-width: 0; padding: clamp(26px, 4vw, 48px); }
.registration-content-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.registration-content-head h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.2rem); letter-spacing: -.035em; }
.registration-content-head p { margin: 7px 0 0; color: var(--muted); }
.registration-login-link { flex: 0 0 auto; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; text-decoration: none; font-size: .82rem; font-weight: 800; background: white; }
.registration-login-link:hover { background: #f8fafc; }
.registration-form { gap: 18px; }
.field-emphasized { padding: 15px; border: 1px solid #bfdbfe; border-radius: 16px; background: #f8fbff; }
.input-with-icon { position: relative; flex: 1; min-width: 0; }
.input-with-icon > span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); z-index: 1; color: #667085; font-size: .88rem; }
.input-with-icon input { padding-left: 39px; }
.password-control { display: flex; align-items: stretch; gap: 8px; }
.password-toggle { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 11px; padding: 0 11px; color: #344054; background: white; font-size: .78rem; font-weight: 800; }
.password-toggle:hover { background: #f8fafc; }
.password-strength { height: 5px; overflow: hidden; border-radius: 999px; background: #e9edf3; }
.password-strength span { display: block; width: 0; height: 100%; border-radius: inherit; background: #dc2626; transition: width .22s ease, background .22s ease; }
.password-strength span[data-score="2"] { background: #d97706; }
.password-strength span[data-score="3"] { background: #eab308; }
.password-strength span[data-score="4"],
.password-strength span[data-score="5"] { background: #16a34a; }
.privacy-panel { overflow: hidden; border: 1px solid #dfe5ee; border-radius: 20px; background: #f8fafc; }
.privacy-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px; border-bottom: 1px solid #e6eaf0; background: white; }
.privacy-panel-head > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.privacy-panel-head h3 { margin: 0; font-size: 1.05rem; }
.privacy-panel-head p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; }
.privacy-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border-radius: 13px; background: #eef4ff; }
.privacy-toggle-all { flex: 0 0 auto; border: 1px solid #cfd7e3; border-radius: 10px; padding: 8px 11px; background: white; color: var(--primary); font-size: .78rem; font-weight: 850; }
.privacy-toggle-all:hover { background: #eff6ff; border-color: #bfdbfe; }
.privacy-reading-status { padding: 13px 18px; border-bottom: 1px solid #e6eaf0; background: #fbfcfe; }
.privacy-progress-copy { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 8px; font-size: .76rem; }
.privacy-progress-copy span { color: var(--muted); font-weight: 800; }
.privacy-progress-copy strong { color: #344054; }
.privacy-progress { height: 6px; overflow: hidden; border-radius: 999px; background: #e5eaf1; }
.privacy-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #7c3aed); transition: width .25s ease; }
.privacy-accordion-list { display: grid; gap: 9px; padding: 12px; }
.privacy-accordion { overflow: hidden; border: 1px solid #e2e7ef; border-radius: 14px; background: white; transition: border-color .16s ease, box-shadow .16s ease; }
.privacy-accordion[open] { border-color: #bfd2ff; box-shadow: 0 7px 18px rgba(37,99,235,.07); }
.privacy-accordion.was-opened summary::after { content: "Gelesen"; margin-left: auto; padding: 3px 7px; border-radius: 999px; background: #ecfdf3; color: #15803d; font-size: .64rem; font-weight: 900; }
.privacy-accordion summary { display: flex; align-items: center; gap: 11px; padding: 14px; cursor: pointer; list-style: none; user-select: none; }
.privacy-accordion summary::-webkit-details-marker { display: none; }
.privacy-summary-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border-radius: 10px; background: #f2f4f7; }
.privacy-accordion summary > span:nth-child(2) { min-width: 0; }
.privacy-accordion summary strong, .privacy-accordion summary small { display: block; }
.privacy-accordion summary strong { color: #1d2939; font-size: .87rem; }
.privacy-accordion summary small { margin-top: 3px; color: var(--muted); font-size: .74rem; line-height: 1.35; }
.privacy-chevron { margin-left: 2px; flex: 0 0 auto; color: #667085; transition: transform .18s ease; }
.privacy-accordion[open] .privacy-chevron { transform: rotate(180deg); }
.privacy-accordion-content { padding: 2px 16px 16px 61px; color: #475467; font-size: .84rem; line-height: 1.58; }
.privacy-accordion-content h4 { margin: 14px 0 5px; color: #1d2939; font-size: .88rem; }
.privacy-accordion-content h4:first-child { margin-top: 4px; }
.privacy-accordion-content p, .privacy-accordion-content ul { margin: 6px 0; }
.privacy-accordion-content ul { padding-left: 19px; }
.privacy-callout { margin-top: 12px; padding: 10px 11px; border-left: 3px solid #f59e0b; border-radius: 8px; color: #92400e; background: #fffbeb; }
.registration-confirmations { display: grid; gap: 10px; }
.registration-confirmations .check { align-items: center; padding: 14px; }
.registration-confirmations .check input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--primary); }
.registration-confirmations .check span { display: grid; gap: 3px; }
.registration-confirmations .check strong { font-size: .86rem; }
.registration-confirmations .check small { color: var(--muted); line-height: 1.35; }
.check-featured { opacity: .66; background: #f8fafc; transition: .18s ease; }
.check-featured.is-ready { opacity: 1; border-color: #bbf7d0; background: #f0fdf4; }
.registration-submit { display: flex; justify-content: center; align-items: center; gap: 11px; min-height: 49px; border-radius: 14px; font-size: .96rem; box-shadow: 0 12px 24px rgba(37,99,235,.2); }
.registration-submit:disabled { cursor: wait; opacity: .7; }

@media (max-width: 920px) {
  .registration-card { grid-template-columns: 1fr; }
  .registration-intro { min-height: auto; }
  .registration-intro-copy { margin-top: 38px; }
  .registration-security-note { margin-top: 34px; }
}
@media (max-width: 640px) {
  .registration-shell { width: min(100% - 16px, 1180px); padding: 8px 0; }
  .registration-card { border-radius: 22px; }
  .registration-intro, .registration-content { padding: 22px; }
  .registration-intro-copy h1 { font-size: 2.1rem; }
  .registration-content-head { flex-direction: column; }
  .registration-login-link { align-self: flex-start; }
  .privacy-panel-head { align-items: flex-start; flex-direction: column; }
  .privacy-toggle-all { align-self: stretch; }
  .privacy-progress-copy { align-items: flex-start; flex-direction: column; gap: 3px; }
  .privacy-accordion summary { align-items: flex-start; }
  .privacy-accordion.was-opened summary::after { display: none; }
  .privacy-accordion-content { padding: 0 14px 15px; }
  .password-control { align-items: stretch; flex-direction: column; }
  .password-toggle { min-height: 40px; }
}
