@font-face{font-family:'Anton'; font-style:normal; font-weight:400; font-display:swap; src:url(/assets/fonts/anton-400.woff2) format('woff2');}
@font-face{font-family:'Inter'; font-style:normal; font-weight:400 800; font-display:swap; src:url(/assets/fonts/inter.woff2) format('woff2');}

  :root{
    --bg:#0a0a0a; --bg-alt:#111; --card:#161616; --card-2:#1c1c1c;
    --red:#e6392b; --red-deep:#b8261b; --red-dim:rgba(230,57,43,0.12);
    --white:#fff; --grey:#9a9a9a; --grey-dim:#5c5c5c; --line:#262626;
    --green:#22c55e; --radius:14px;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html,body{background:var(--bg); color:var(--white); font-family:'Inter',sans-serif; -webkit-font-smoothing:antialiased;}
  body{min-height:100vh;}
  a{color:inherit; text-decoration:none;}
  button{font-family:inherit;}
  h1,h2,.display{font-family:'Anton',sans-serif; font-weight:400; text-transform:uppercase; letter-spacing:.5px; line-height:1.05;}
  svg.ic{width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex:0 0 auto;}
  .logo{font-family:'Anton',sans-serif; font-size:20px; letter-spacing:.5px;}
  .logo .raw{color:var(--red);}
  .logo small{font-family:'Inter',sans-serif; font-size:11px; font-weight:700; letter-spacing:2px; color:var(--grey); margin-left:8px; text-transform:uppercase;}


  /* Buttons & Formen */
  .btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; border:none; border-radius:999px; cursor:pointer; font-weight:700; font-size:14.5px; padding:12px 20px; transition:transform .12s ease, background .12s ease;}
  .btn:active{transform:scale(.97);}
  .btn-primary{background:var(--red); color:var(--white); box-shadow:0 6px 18px rgba(230,57,43,.3);}
  .btn-ghost{background:transparent; color:var(--white); border:1.5px solid var(--line);}
  .btn-sm{padding:8px 14px; font-size:13px;}
  .btn-block{width:100%;}
  .btn:disabled{opacity:.4; cursor:not-allowed; box-shadow:none;}
  input,textarea,select{width:100%; background:var(--bg-alt); border:1.5px solid var(--line); border-radius:10px; padding:12px 14px; color:var(--white); font-size:15px; font-family:inherit; outline:none;}
  input:focus,textarea:focus,select:focus{border-color:var(--red);}
  label.f{display:block; font-size:12px; font-weight:700; color:var(--grey); text-transform:uppercase; letter-spacing:.8px; margin:14px 0 7px;}

  /* Login */
  .login{min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px 18px; position:relative; overflow:hidden;}
  .login::before{content:""; position:absolute; top:-160px; left:50%; transform:translateX(-50%); width:520px; height:520px; border-radius:50%; background:radial-gradient(circle, rgba(230,57,43,.2), transparent 70%); pointer-events:none;}
  .login-card{width:100%; max-width:400px; background:var(--card); border:1px solid var(--line); border-radius:20px; padding:28px 22px; position:relative;}
  .login-card h1{font-size:34px; margin:18px 0 6px;}
  .login-card p.sub{color:var(--grey); font-size:14px; line-height:1.5;}
  .or{display:flex; align-items:center; gap:10px; color:var(--grey-dim); font-size:12px; margin:20px 0 12px;}
  .or::before,.or::after{content:""; flex:1; height:1px; background:var(--line);}

  /* App-Rahmen */
  .app{display:flex; min-height:100vh;}
  .side{display:none;}
  .main{flex:1; min-width:0; padding:18px 18px 96px;}
  .topbar{display:flex; align-items:center; justify-content:space-between; margin-bottom:18px;}
  .me{display:flex; align-items:center; gap:10px; background:none; border:none; color:inherit; cursor:pointer; padding:4px; border-radius:99px;}
  .me:hover .av{box-shadow:0 0 0 2px var(--red);}
  .me-wrap{position:relative;}
  .av img{width:100%; height:100%; object-fit:cover; border-radius:50%; display:block;}
  .menu{position:absolute; right:0; top:calc(100% + 8px); z-index:70; width:260px; background:var(--card); border:1px solid var(--line); border-radius:14px; box-shadow:0 12px 40px rgba(0,0,0,.6); padding:8px; animation:fadeIn .15s ease;}
  .menu-head{display:flex; align-items:center; gap:12px; padding:10px 10px 14px; border-bottom:1px solid var(--line); margin-bottom:6px;}
  .menu-head .av{width:48px; height:48px; font-size:17px;}
  .menu-head b{display:block; font-size:14.5px;}
  .menu-head span{font-size:12px; color:var(--grey);}
  .menu-item{display:flex; align-items:center; gap:10px; width:100%; padding:11px 10px; border-radius:10px; background:none; border:none; color:var(--white); font-size:14px; font-weight:600; cursor:pointer; text-align:left;}
  .menu-item:hover{background:var(--card-2);}
  .menu-item.danger{color:var(--red);}
  @keyframes fadeIn{from{opacity:0; transform:translateY(-4px);} to{opacity:1; transform:none;}}
  .av{width:36px; height:36px; border-radius:50%; background:#2a2a2a; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:13px; color:var(--grey); flex:0 0 auto;}
  .tabbar{position:fixed; left:0; right:0; bottom:0; z-index:40; display:flex; background:rgba(10,10,10,.96); backdrop-filter:blur(8px); border-top:1px solid var(--line); padding:6px 4px calc(6px + env(safe-area-inset-bottom));}
  .tabbar a{flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; font-size:10.5px; font-weight:600; color:var(--grey-dim); padding:6px 0;}
  .tabbar a.on{color:var(--red);}
  .nav-link{display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:10px; color:var(--grey); font-weight:600; font-size:14px;}
  .nav-link:hover{background:var(--card);}
  .nav-link.on{background:var(--red-dim); color:var(--white);}
  .nav-link.on svg{color:var(--red);}
  @media (min-width:900px){
    .side{display:flex; flex-direction:column; gap:4px; width:240px; flex:0 0 240px; border-right:1px solid var(--line); padding:22px 14px; position:sticky; top:0; height:100vh;}
    .side .logo{padding:0 12px 20px;}
    .side .spacer{flex:1;}
    .tabbar{display:none;}
    .main{padding:28px 36px 48px; max-width:1100px;}
  }

  /* Karten & Bausteine */
  .card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:18px;}
  .grid{display:grid; gap:14px;}
  @media (min-width:900px){ .grid-2{grid-template-columns:1.4fr 1fr;} .grid-3{grid-template-columns:repeat(3,1fr);} }
  .eyebrow{font-size:11.5px; font-weight:800; letter-spacing:2px; color:var(--red); text-transform:uppercase;}
  .h-page{font-size:30px; margin:6px 0 4px;}
  .muted{color:var(--grey); font-size:14px; line-height:1.5;}
  .bar{height:8px; background:var(--line); border-radius:99px; overflow:hidden;}
  .bar > i{display:block; height:100%; background:var(--red); border-radius:99px; transition:width .4s ease;}
  .pill{display:inline-flex; align-items:center; gap:5px; font-size:10.5px; font-weight:800; letter-spacing:1px; text-transform:uppercase; border-radius:99px; padding:3px 9px;}
  .pill-red{background:var(--red); color:var(--white);}
  .pill-grey{background:var(--line); color:var(--grey);}
  .pill-green{background:rgba(34,197,94,.15); color:var(--green);}
  .section-t{font-family:'Inter',sans-serif; font-size:15px; font-weight:800; margin:26px 0 12px; display:flex; align-items:center; justify-content:space-between;}

  .resume{background:linear-gradient(120deg, rgba(230,57,43,.18), var(--card) 60%); border:1px solid rgba(230,57,43,.35);}
  .resume h3{font-size:19px; font-weight:800; margin:8px 0 6px; line-height:1.25;}
  .thumb{aspect-ratio:16/9; border-radius:12px; background:linear-gradient(135deg,#222,#111); display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden;}
  .play{width:56px; height:56px; border-radius:50%; background:var(--red); display:flex; align-items:center; justify-content:center; box-shadow:0 6px 24px rgba(230,57,43,.45);}
  .play svg{width:22px; height:22px; fill:var(--white); stroke:none; margin-left:3px;}

  .quick{display:flex; align-items:center; gap:14px; cursor:pointer;}
  .quick:hover{border-color:#3a3a3a;}
  .qi{width:44px; height:44px; border-radius:12px; background:var(--red-dim); border:1.5px solid var(--red); color:var(--red); display:flex; align-items:center; justify-content:center; flex:0 0 auto;}
  .quick b{display:block; font-size:15px;}
  .quick span{font-size:13px; color:var(--grey);}

  /* Lernpfad */
  .level{border:1px solid var(--line); border-radius:16px; background:var(--card); margin-bottom:14px; overflow:hidden;}
  .level-head{display:flex; align-items:center; gap:14px; padding:16px;}
  .lnum{width:44px; height:44px; border-radius:50%; border:2px solid var(--red); display:flex; align-items:center; justify-content:center; font-family:'Anton',sans-serif; font-size:19px; flex:0 0 auto;}
  .level.done .lnum{background:var(--red);}
  .level.locked{opacity:.55;}
  .level.locked .lnum{border-color:var(--grey-dim); color:var(--grey-dim);}
  .level-head h3{font-size:16px; font-weight:800;}
  .level-head p{font-size:12.5px; color:var(--grey); margin-top:2px;}
  .level-head .grow{flex:1; min-width:0;}
  .lessons{border-top:1px solid var(--line);}
  .lesson{display:flex; align-items:center; gap:12px; padding:13px 16px; border-bottom:1px solid var(--line); cursor:pointer;}
  .lesson:last-child{border-bottom:none;}
  .lesson:hover{background:var(--card-2);}
  .chk{width:24px; height:24px; border-radius:50%; border:2px solid var(--grey-dim); display:flex; align-items:center; justify-content:center; flex:0 0 auto;}
  .chk svg{width:14px; height:14px; stroke-width:3;}
  .lesson.done .chk{background:var(--green); border-color:var(--green); color:#0a0a0a;}
  .lesson.current .chk{border-color:var(--red);}
  .lesson .t{flex:1; font-size:14px; font-weight:600;}
  .lesson .d{font-size:12px; color:var(--grey-dim);}
  .lock-note{display:flex; gap:10px; align-items:center; font-size:12.5px; color:var(--grey); padding:12px 16px; border-top:1px solid var(--line); background:var(--bg-alt);}

  /* Lektion */
  .player{aspect-ratio:16/9; border-radius:14px; background:#000; border:1px solid var(--line); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; text-align:center; padding:16px;}
  .player p{font-size:12.5px; color:var(--grey-dim); max-width:320px; line-height:1.45;}
  .task{display:flex; gap:12px; align-items:flex-start; padding:10px 0; border-bottom:1px solid var(--line); cursor:pointer; font-size:14px; line-height:1.45;}
  .task:last-child{border-bottom:none;}
  .task .box{width:20px; height:20px; border-radius:6px; border:2px solid var(--grey-dim); flex:0 0 auto; margin-top:1px; display:flex; align-items:center; justify-content:center;}
  .task.on .box{background:var(--red); border-color:var(--red);}
  .task.on .box svg{width:12px; height:12px; stroke-width:3;}
  .dl{display:flex; align-items:center; gap:12px; padding:12px; border:1px solid var(--line); border-radius:10px; margin-top:8px; font-size:14px;}
  .dl span{flex:1;}

  /* Chat */
  .chat{display:flex; flex-direction:column; height:calc(100vh - 190px); min-height:420px;}
  @media (min-width:900px){ .chat{height:calc(100vh - 150px);} }
  .msgs{flex:1; overflow-y:auto; display:flex; flex-direction:column; gap:12px; padding:4px 2px 12px;}
  .msg{max-width:88%; padding:12px 14px; border-radius:16px; font-size:14.5px; line-height:1.55;}
  .msg.u{align-self:flex-end; background:var(--red); border-bottom-right-radius:4px;}
  .msg.a{align-self:flex-start; background:var(--card); border:1px solid var(--line); border-bottom-left-radius:4px;}
  .msg.a ol,.msg.a ul{padding-left:18px; margin:6px 0;}
  .msg .src{display:flex; flex-wrap:wrap; gap:6px; margin-top:10px;}
  .msg .src span{font-size:11px; background:var(--bg-alt); border:1px solid var(--line); border-radius:99px; padding:3px 9px; color:var(--grey);}
  .msg .demo{font-size:11px; color:var(--grey-dim); margin-top:8px;}
  .msg.fb{border-color:rgba(34,197,94,.4);}
  .typing{display:inline-flex; gap:4px;}
  .typing i{width:7px; height:7px; border-radius:50%; background:var(--grey); animation:blink 1s infinite;}
  .typing i:nth-child(2){animation-delay:.15s;} .typing i:nth-child(3){animation-delay:.3s;}
  @keyframes blink{0%,100%{opacity:.25} 50%{opacity:1}}
  .sugg{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px;}
  .sugg button{background:var(--card); border:1px solid var(--line); color:var(--white); border-radius:99px; padding:8px 13px; font-size:13px; cursor:pointer;}
  .sugg button:hover{border-color:var(--red);}
  .composer{display:flex; gap:8px; padding-top:8px; border-top:1px solid var(--line);}
  .composer input{flex:1;}
  .composer .btn{padding:0 16px;}

  .scen{cursor:pointer; display:flex; gap:14px; align-items:flex-start;}
  .scen:hover{border-color:var(--red);}
  .scen b{display:block; font-size:15px; margin-bottom:3px;}
  .scen span{font-size:13px; color:var(--grey); line-height:1.45;}
  .diff{margin-left:auto;}

  /* Admin */
  .tabs{display:flex; gap:6px; overflow-x:auto; margin:14px 0 16px; scrollbar-width:none;}
  .tabs button{background:var(--card); border:1px solid var(--line); color:var(--grey); border-radius:99px; padding:9px 15px; font-size:13.5px; font-weight:700; cursor:pointer; white-space:nowrap;}
  .tabs button.on{background:var(--red); border-color:var(--red); color:var(--white);}
  .kpis{display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-bottom:16px;}
  @media (min-width:900px){ .kpis{grid-template-columns:repeat(4,1fr);} }
  .kpi b{font-family:'Anton',sans-serif; font-weight:400; font-size:28px; color:var(--red); display:block;}
  .kpi span{font-size:12px; color:var(--grey);}
  .prow{display:grid; grid-template-columns:auto 1fr auto; gap:12px; align-items:center; padding:14px 0; border-bottom:1px solid var(--line);}
  .prow:last-child{border-bottom:none;}
  .prow .nm{font-weight:700; font-size:14.5px;}
  .prow .meta{font-size:12px; color:var(--grey); margin-top:2px;}
  .prow .bar{margin-top:8px;}
  .flag{color:#f59e0b;}
  .struct .mod{padding:12px 0; border-bottom:1px solid var(--line); display:flex; gap:12px; align-items:center; font-size:14px;}
  .struct .mod:last-child{border-bottom:none;}
  .struct .mod span.n{flex:1;}
  .drop{border:2px dashed var(--line); border-radius:12px; padding:22px; text-align:center; color:var(--grey); font-size:13.5px; line-height:1.5; margin-top:14px;}
  .prow.click, .mod.click{cursor:pointer;}
  .prow.click:hover, .mod.click:hover{background:var(--card-2);}
  .row-btns{display:flex; align-items:center; gap:6px; color:var(--grey-dim);}
  .icon-btn{width:34px; height:34px; border-radius:8px; border:1px solid var(--line); background:transparent; color:var(--grey); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto;}
  .icon-btn:hover{color:var(--white); border-color:#3a3a3a;}
  .icon-btn:disabled{opacity:.3; cursor:default;}
  .icon-btn svg{width:16px; height:16px;}
  .erow{display:flex; align-items:center; gap:10px; padding:12px 0; border-bottom:1px solid var(--line);}
  .erow:last-child{border-bottom:none;}
  label.drop{display:block; cursor:pointer;}
  label.drop:hover{border-color:var(--red); color:var(--white);}
  .toast{position:fixed; left:50%; bottom:90px; transform:translateX(-50%) translateY(20px); background:var(--white); color:var(--bg); font-weight:700; font-size:14px; padding:12px 18px; border-radius:99px; opacity:0; transition:all .25s ease; z-index:90; pointer-events:none;}
  .toast.show{opacity:1; transform:translateX(-50%);}

  /* ---- Ergänzungen für die echte App ---- */
  .logo{color:var(--white);}
  .logo-top{visibility:visible;}
  @media (min-width:900px){ .logo-top{visibility:hidden;} }
  .me-name{font-size:13px;}
  @media (max-width:420px){ .me-name{display:none;} }
  .menu[hidden]{display:none;}
  .menu form{margin:0;}
  label.menu-item{position:relative;}
  .back{display:inline-flex; align-items:center; gap:6px; margin-bottom:12px;}
  .alert{background:rgba(230,57,43,.12); border:1px solid var(--red); border-radius:10px; padding:12px 14px; font-size:13.5px; line-height:1.45; margin-top:16px;}
  .center-link{text-align:center; margin-top:16px; font-size:13.5px;}
  .center-link a, .check a, .prose a, .legal a{color:var(--white); text-decoration:underline;}
  .check{display:flex; gap:10px; align-items:flex-start; font-size:13.5px; color:var(--grey); margin-top:16px; line-height:1.45; cursor:pointer;}
  .check input{width:18px; height:18px; flex:0 0 auto; margin-top:1px; accent-color:var(--red);}
  .legal{position:relative; margin-top:18px; font-size:12px; color:var(--grey-dim); text-align:center;}
  .login{flex-direction:column;}
  .login-card .sub{margin-bottom:4px;}
  .prose h3{font-size:15px; font-weight:800; margin:20px 0 6px;}
  .prose p, .prose li{font-size:13.5px; color:var(--grey); line-height:1.6;}
  .prose ul{padding-left:18px; display:grid; gap:6px;}
  .prose b{color:var(--white);}
  .login-card:has(.prose){max-width:680px;}
  a.lesson{color:inherit;}
  .player iframe{width:100%; height:100%; border:0; border-radius:14px;}
  .player:not(.empty){padding:0; overflow:hidden;}
  .desc{margin-top:14px; color:var(--grey); font-size:14.5px; line-height:1.6;}
  button.task{width:100%; background:none; border:none; border-bottom:1px solid var(--line); color:var(--white); font:inherit; text-align:left;}
  #aufgaben form:last-child button.task{border-bottom:none;}
  .soon{max-width:560px; margin-top:16px; display:grid; gap:14px; justify-items:start;}
  .soon p{color:var(--grey); line-height:1.55; font-size:14.5px;}
  .lnum.sm{width:32px; height:32px; font-size:14px;}
  .lnum.full{background:var(--red);}
  .tabs a{background:var(--card); border:1px solid var(--line); color:var(--grey); border-radius:99px; padding:9px 15px; font-size:13.5px; font-weight:700; white-space:nowrap;}
  .tabs a.on{background:var(--red); border-color:var(--red); color:var(--white);}
  .row-between{display:flex; align-items:center; justify-content:space-between; gap:10px;}
  .empty-state{display:grid; gap:10px; justify-items:start;}
  .steps-list{padding-left:18px; margin-top:10px; display:grid; gap:8px;}
  .person{display:flex; align-items:center; gap:14px; margin-bottom:6px;}
  .av-lg{width:56px; height:56px; font-size:19px;}
  .kpi-text{font-size:18px !important; line-height:1.6;}
  .actions{display:grid; gap:10px; margin-top:12px;}
  .invite-box{border-color:rgba(230,57,43,.5); margin-bottom:16px; display:grid; gap:8px;}
  .invite-box b{display:flex; align-items:center; gap:8px; font-size:15px;}
  .copy-row{display:flex; gap:8px;}
  .copy-row input{font-size:13px;}
  .danger-zone{border-color:rgba(230,57,43,.35);}
  .erow .grow{flex:1; min-width:0; color:inherit;}
  .erow form{margin:0;}
  .narrow{max-width:520px;}
  .drop{margin-top:12px;}
  .flag{color:#f59e0b;}
  .toast{bottom:96px;}
  @media (min-width:900px){ .toast{bottom:32px;} }
  .vp{margin-top:12px; background:var(--bg-alt); display:grid; gap:8px;}
  .vp .vp-text{font-size:13px; color:var(--grey); line-height:1.45;}
  .vp[data-state="ok"] .vp-text{color:var(--green);}
  .vp[data-state="error"] .vp-text{color:var(--red);}
  .vp[data-state="ok"] .bar i{background:var(--green);}
  .pill-draft{background:rgba(245,158,11,.14); color:#f59e0b;}
  .pub-form{margin:0; flex:0 0 auto;}
  .switch{display:inline-flex; align-items:center; gap:8px; background:var(--bg-alt); border:1px solid var(--line); border-radius:99px; padding:4px 10px 4px 4px; cursor:pointer; color:#f59e0b; font:inherit; font-size:12px; font-weight:700; white-space:nowrap;}
  .switch .knob{width:30px; height:18px; border-radius:99px; background:#3a3a3a; position:relative; flex:0 0 auto; transition:background .15s ease;}
  .switch .knob::after{content:""; position:absolute; top:2px; left:2px; width:14px; height:14px; border-radius:50%; background:var(--white); transition:transform .15s ease;}
  .switch.on{color:var(--green);}
  .switch.on .knob{background:var(--green);}
  .switch.on .knob::after{transform:translateX(12px);}
  .mod{display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--line);}
  .mod-link{display:flex; align-items:center; gap:12px; flex:1; min-width:0; color:inherit;}
  .mod-link:hover .n{color:var(--white); text-decoration:underline;}
  .erow{flex-wrap:wrap;}
  .pub-check{display:flex; gap:12px; align-items:flex-start; margin:0; cursor:pointer;}
  .pub-check b{color:var(--white);}
  @media (max-width:520px){ .switch .lbl{display:none;} .switch{padding:4px;} }
