/* Bitformerei Zentrale – Login & Anwendungen */
:root{--bg:#f2f3f6;--ink:#1c212b;--sub:#647083;--line:#e2e5eb;--card:#fff;--dark:#11151c;--dark2:#1b2130;--accent:#ee5d45;--accent2:#d9472f;--ok:#17855b;--okbg:#e6f6ee;--radius:18px}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--bg);color:var(--ink);font:15px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
a{color:var(--accent2)}
:focus-visible{outline:3px solid #7aa7ff;outline-offset:2px}
h1,h2{margin:0;letter-spacing:-.03em}
p{margin:0 0 14px;color:var(--sub)}
svg{flex:none}
.hub-wrap{width:100%;max-width:1180px;margin:0 auto;padding:0 clamp(16px,4vw,32px)}
.hub-brand{display:inline-flex;align-items:center;gap:11px;color:#fff;text-decoration:none;font-weight:800;letter-spacing:.16em;font-size:14px}

/* Kopfleiste & Hero */
.hub-bar{background:var(--dark);color:#fff;position:sticky;top:0;z-index:5;border-bottom:1px solid #ffffff12}
.hub-bar-in{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:66px}
.hub-nav{display:flex;align-items:center;gap:4px}
.hub-nav a,.hub-nav-btn{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border-radius:10px;color:#c9cfd9;text-decoration:none;font-weight:600;font-size:14px;background:none;border:0;cursor:pointer;font-family:inherit}
.hub-nav a:hover,.hub-nav-btn:hover{background:#ffffff12;color:#fff}
.hub-nav a[aria-current=page]{background:#ffffff1a;color:#fff}
.hub-nav svg{width:18px;height:18px}
.hub-inline{margin:0}
.hub-hero{background:radial-gradient(1000px 380px at 85% -40%,#ee5d4566,transparent 70%),radial-gradient(700px 300px at 0% 120%,#3b6cff33,transparent 70%),linear-gradient(180deg,var(--dark),var(--dark2));color:#fff;padding:clamp(34px,6vw,64px) 0 clamp(90px,10vw,120px)}
.hub-hero h1{font-size:clamp(32px,5.5vw,54px);line-height:1.05;margin:6px 0 12px;color:#fff}
.hub-date{color:#ff9a87;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;margin:0}
.hub-lead{color:#c3cad6;max-width:640px;font-size:16px}
.hub-main{flex:1;margin-top:clamp(-80px,-8vw,-64px);padding-bottom:48px}

/* Hinweise */
.hub-alert{background:#eef7f2;border:1px solid #cbe9d9;color:#1d5a3d;border-radius:14px;padding:14px 18px;margin:0 0 18px}
.hub-alert-error{background:#fdeeea;border-color:#f6cfc5;color:#8b2a1c}
.hub-hint{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:14px;padding:14px 18px;margin:0 0 18px;color:var(--ink);text-decoration:none;box-shadow:0 10px 30px #11151c14}
.hub-hint svg{color:var(--accent)}
.hub-hint span{flex:1;color:var(--sub)}
.hub-hint strong{color:var(--ink)}
.hub-hint b{white-space:nowrap;color:var(--accent2)}

/* Kacheln */
.hub-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}
.hub-tile{margin:0;--c:var(--accent);--cbg:#fdece8}
.hub-tile-bitoffice_admin{--c:#ee5d45;--cbg:#fdece8}
.hub-tile-bitoffice_portal{--c:#3b6cff;--cbg:#eaf0ff}
.hub-tile-netdesk{--c:#11957a;--cbg:#e3f6f1}
.hub-tile-bitbooks{--c:#e2455a;--cbg:#fdecef}
.hub-tile-firetutor{--c:#e8590c;--cbg:#fff0e6}
.hub-tile button{position:relative;width:100%;height:100%;min-height:228px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:8px;padding:24px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 14px 40px #11151c14;cursor:pointer;font:inherit;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.hub-tile button::before{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:var(--c)}
.hub-tile button:hover{transform:translateY(-4px);border-color:color-mix(in srgb,var(--c) 45%,var(--line));box-shadow:0 22px 50px #11151c22}
.hub-tile button:disabled{opacity:.7;cursor:progress}
.hub-tile-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:15px;background:var(--cbg);color:var(--c);margin-bottom:6px}
.hub-tile-icon svg{width:27px;height:27px}
.hub-tile strong{font-size:19px;letter-spacing:-.02em}
.hub-tile-desc{color:var(--sub);font-size:14px}
.hub-tile-foot{margin-top:auto;padding-top:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%}
.hub-tile em{font-style:normal;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--c);background:var(--cbg);border-radius:99px;padding:5px 10px}
.hub-tile b{font-size:14px;color:var(--c);white-space:nowrap}

/* Karten & Formulare */
.hub-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:clamp(20px,3vw,30px);box-shadow:0 14px 40px #11151c12;margin:0 0 18px}
.hub-card h2{display:flex;align-items:center;gap:10px;font-size:20px;margin-bottom:16px}
.hub-card h2 svg{width:22px;height:22px;color:var(--accent)}
.hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.hub-grid .hub-card{margin:0}
.hub-grid+.hub-card{margin-top:18px}
.hub-empty{grid-column:1/-1}
label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#4e5869;margin:0 0 14px}
input{font:inherit;width:100%;min-height:46px;padding:11px 13px;border:1px solid #d4d9e2;border-radius:11px;background:#fff;color:var(--ink)}
input:focus{outline:none;border-color:#9db8f0;box-shadow:0 0 0 3px #7aa7ff33}
input:disabled{background:#f5f6f8;color:#7a8392}
.hub-btn,.hub-btn-ghost{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 20px;border-radius:11px;border:0;font:inherit;font-weight:800;cursor:pointer}
.hub-btn{background:var(--accent);color:#fff}
.hub-btn:hover{background:var(--accent2)}
.hub-btn-ghost{background:#eef0f4;color:#3c4452}
.hub-btn-ghost:hover{background:#e3e6ec}
.hub-form-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
.hub-form-row label{flex:1 1 220px;margin:0}
.hub-small{font-size:13px}
.hub-status{display:inline-flex;font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;padding:4px 10px;border-radius:99px;background:#fdece8;color:var(--accent2);margin-right:8px}
.hub-status-on{background:var(--okbg);color:var(--ok)}
details{margin-top:10px}
summary{cursor:pointer;font-weight:700;margin-bottom:12px}
.hub-mfa-setup{display:grid;grid-template-columns:auto minmax(0,1fr);gap:24px;align-items:start}
.hub-qr{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px}
.hub-qr img{display:block}
.hub-steps{margin:0 0 16px;padding-left:20px;color:var(--sub)}
.hub-steps li{margin-bottom:8px}
.hub-secret,.hub-codes{font:13px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;background:#f5f6f8;border:1px solid var(--line);border-radius:8px;padding:3px 8px;word-break:break-all}
.hub-codes{display:block;padding:12px 14px;margin:10px 0 0;white-space:pre}

/* Login */
.hub-auth{flex:1;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);min-height:100vh}
.hub-auth-story{display:flex;flex-direction:column;justify-content:space-between;gap:40px;padding:clamp(28px,5vw,64px);color:#fff;background:radial-gradient(900px 500px at 100% 0%,#ee5d4570,transparent 65%),radial-gradient(700px 400px at 0% 100%,#3b6cff40,transparent 65%),linear-gradient(160deg,var(--dark),var(--dark2))}
.hub-auth-story h1{font-size:clamp(38px,5.5vw,62px);line-height:1.02;color:#fff;margin:8px 0 16px}
.hub-auth-story p{color:#c3cad6;font-size:17px;max-width:480px}
.hub-auth-story small{color:#8a93a3}
.hub-kicker{color:#ff9a87!important;font-size:12px!important;font-weight:800;letter-spacing:.16em;margin:0!important}
.hub-apps{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:22px 0 0}
.hub-apps li{border:1px solid #ffffff2e;background:#ffffff10;border-radius:99px;padding:6px 13px;font-size:13px;color:#e3e7ee}
.hub-auth-panel{display:grid;place-items:center;padding:clamp(20px,5vw,56px)}
.hub-login{width:100%;max-width:420px;margin:0}
.hub-login h2{font-size:26px;margin-bottom:6px}
.hub-login form{margin-bottom:10px}
.hub-login .hub-btn,.hub-login .hub-btn-ghost{width:100%}
.hub-icon-badge{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:14px;background:#fdece8;color:var(--accent);margin-bottom:12px}
.is-auth .hub-foot{position:fixed;right:0;bottom:0;width:50%;background:transparent}

/* Fuß */
.hub-foot{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px;padding:22px 16px;font-size:13px}
.hub-foot a{color:var(--sub);text-decoration:none}
.hub-foot a:hover{color:var(--ink);text-decoration:underline}

/* Tablet & Handy */
@media (max-width:900px){
  .hub-auth{grid-template-columns:1fr;min-height:0}
  .hub-auth-story{gap:22px;padding:28px 20px 34px}
  .hub-auth-story small{display:none}
  .hub-auth-panel{margin-top:-26px;padding:0 16px 24px}
  .is-auth .hub-foot{position:static;width:auto}
  .hub-grid{grid-template-columns:1fr}
  .hub-mfa-setup{grid-template-columns:1fr}
  .hub-nav span{display:none}
  .hub-nav a,.hub-nav-btn{padding:10px}
}
@media (max-width:520px){
  .hub-tiles{grid-template-columns:1fr}
  .hub-tile button{min-height:0}
  .hub-hint{flex-wrap:wrap}
  .hub-brand span{font-size:12px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* ===== App-Rahmen mit Seitenleiste (wie BitOffice) ===== */
.hub-app{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:100vh;flex:1}
.hub-side{position:sticky;top:0;height:100vh;overflow-y:auto;display:flex;flex-direction:column;background:#171b22;color:#c0c6d0;padding:28px 16px 18px}
.hub-side-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 8px 28px}
.hub-logo{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none}
.hub-logo span{display:flex;flex-direction:column;font-weight:800;font-size:21px;letter-spacing:-.6px;line-height:1.05}
.hub-logo small{font:600 8px ui-monospace,monospace;letter-spacing:3px;color:#8d96a7;margin-top:4px}
.hub-menu{display:none;background:#ffffff12;color:#fff;border:1px solid #ffffff26;border-radius:9px;padding:8px 13px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.hub-sidenav{display:flex;flex-direction:column;gap:3px}
.hub-navhead{margin:20px 12px 7px;color:#8e98a8;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.hub-navform{margin:0}
.hub-navlink{position:relative;display:flex;align-items:center;gap:11px;width:100%;padding:10px 12px;border-radius:9px;color:#c0c6d0;background:none;border:0;font:inherit;font-size:14px;font-weight:600;text-align:left;text-decoration:none;cursor:pointer}
.hub-navlink svg{width:19px;height:19px}
.hub-navlink:hover,.hub-navlink.active{background:#2c3039;color:#fff}
.hub-navlink.active{box-shadow:inset 3px 0 #ff7057}
.hub-navico{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:color-mix(in srgb,var(--c,#ff7057) 18%,transparent);color:var(--c,#ff7057);flex:none}
.hub-navico svg{width:17px;height:17px}
.hub-navtext{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.25}
.hub-navtext small{font-size:11px;font-weight:500;color:#8e98a8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-navgo{opacity:0;color:#8e98a8;transition:opacity .15s}
.hub-navlink:hover .hub-navgo{opacity:1}
.hub-app-bitoffice_admin{--c:#ff7057}.hub-app-bitoffice_portal{--c:#6b8dff}.hub-app-netdesk{--c:#35c2a2}.hub-app-bitbooks{--c:#f0687b}.hub-app-firetutor{--c:#ff8a3d}
.hub-dot{width:8px;height:8px;border-radius:50%;background:#ff7057;margin-left:auto}
.hub-side-bottom{margin-top:auto;display:flex;align-items:center;gap:10px;padding:16px 8px 0;border-top:1px solid #ffffff14}
.hub-avatar{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:50%;background:#ff7057;color:#171b22;font-weight:800}
.hub-who{display:flex;flex-direction:column;min-width:0;flex:1;font-size:12px;line-height:1.3}
.hub-who strong{color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-who small{color:#8e98a8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-logout{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:#ffffff0d;color:#c0c6d0;border:0;cursor:pointer}
.hub-logout:hover{background:#ffffff1f;color:#fff}
.hub-logout svg{width:18px;height:18px}
.hub-content{min-width:0;display:flex;flex-direction:column;padding:0 clamp(16px,3vw,40px) 18px;max-width:1500px;width:100%}
.hub-content main{flex:1}
.hub-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 0;border-bottom:1px solid #e1e5ec;margin-bottom:28px;font-size:12px;color:#788192}
.hub-top b{color:#4ba583;margin-left:10px}
.hub-welcome{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;background:radial-gradient(700px 260px at 100% 0%,#ee5d4540,transparent 70%),linear-gradient(135deg,#171b22,#252b38);color:#fff;border-radius:22px;padding:clamp(22px,3.5vw,36px);margin:0 0 20px;box-shadow:0 18px 44px #11151c24}
.hub-welcome h1{color:#fff;font-size:clamp(28px,4vw,42px);line-height:1.08;margin:6px 0 10px}
.hub-welcome p{color:#c3cad6;max-width:620px;margin:0}
.hub-eyebrow{font-size:11px;font-weight:800;letter-spacing:.16em;color:#ff9a87}
.hub-welcome-stats{display:flex;gap:10px}
.hub-welcome-stats span{display:flex;flex-direction:column;align-items:flex-start;min-width:110px;background:#ffffff10;border:1px solid #ffffff22;border-radius:14px;padding:12px 16px;font-size:12px;color:#c3cad6}
.hub-welcome-stats b{font-size:26px;line-height:1.1;color:#fff}
.hub-welcome-stats b.ok{color:#5fd6a5}.hub-welcome-stats b.warn{color:#ffb19f}
.hub-foot-app{padding:26px 0 6px;justify-content:flex-start}
@media (max-width:1000px){.hub-app{grid-template-columns:220px minmax(0,1fr)}}
@media (max-width:860px){
  .hub-app{display:block}
  .hub-side{position:sticky;z-index:10;height:auto;max-height:100vh;padding:12px 16px}
  .hub-side-top{margin:0}
  .hub-menu{display:inline-flex}
  .hub-sidenav,.hub-side-bottom{display:none}
  .hub-side.open .hub-sidenav{display:flex;padding-top:10px}
  .hub-side.open .hub-side-bottom{display:flex;padding-bottom:6px}
  .hub-top{padding:14px 0;margin-bottom:18px}
  .hub-welcome-stats{width:100%}
  .hub-welcome-stats span{flex:1;min-width:0}
}
