/* Runde 3: Calapex im Look von calapex.de – Rot #d11212, Schwarz #050505, Rajdhani, Panels mit roter Oberkante,
   Punktraster und Logo-Wasserzeichen. Gilt für das Fenster im App-Tab der Startseite und für die Seite /calapex/. */
@font-face{font-family:Rajdhani;src:url('assets/fonts/Rajdhani-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Rajdhani;src:url('assets/fonts/Rajdhani-SemiBold.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:Rajdhani;src:url('assets/fonts/Rajdhani-Bold.woff2') format('woff2');font-weight:700;font-display:swap}
.cx,.cx-explorer{--cx-red:#d11212;--cx-red-hi:#e8292e;--cx-glow:#d1121299;--cx-bg:#050505;--cx-line:#ffffff1c;--cx-soft:#cfcfcf;--cx-muted:#a6a6a6;--cx-orange:#ff4500;--cx-purple:#a970ff;font-family:Rajdhani,Barlow,Arial,sans-serif;color:#fff}
.cx-ico,.cx-btn svg,.cx-webcal svg{width:20px;height:20px;flex:0 0 auto;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}

/* Fenster */
.cx-window{position:relative;isolation:isolate;overflow:hidden;border:1px solid #ffffff17;border-top:3px solid var(--cx-red);border-radius:12px;background:linear-gradient(180deg,#141414f5,#0a0a0af5);box-shadow:0 34px 70px -28px #000,0 0 90px -34px var(--cx-glow)}
.cx-window:before{content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(#ffffff0d 1.2px,transparent 1.4px) 0 0/22px 22px,radial-gradient(90% 70% at 50% 0,#3a0707a8,transparent 70%);pointer-events:none}
.cx-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px 0}
.cx-bar-logo{height:30px;width:auto}
.cx-bar>span{font-size:14px;font-weight:600;color:var(--cx-muted)}
.cx-tabs{display:flex;gap:6px;padding:12px 14px 0;border-bottom:1px solid var(--cx-line);overflow-x:auto;scrollbar-width:none}
.cx-tabs::-webkit-scrollbar{display:none}
.cx-tabs [role=tab]{position:relative;min-height:46px;padding:12px 10px 13px;font:700 16px/1 Rajdhani,sans-serif;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;color:#b3b3b3}
.cx-tabs [role=tab]:after{content:'';position:absolute;left:8px;right:8px;bottom:-1px;height:2px;background:var(--cx-red);transform:scaleX(0);transition:transform 200ms var(--ease)}
.cx-tabs [aria-selected=true]{color:#fff}.cx-tabs [aria-selected=true]:after{transform:scaleX(1)}
.cx-screen{padding:20px 22px 18px;min-height:318px}
.cx-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 22px 14px;border-top:1px solid var(--cx-line);font-size:13px;color:var(--cx-muted)}
.cx-signal{display:flex;align-items:flex-end;gap:3px;height:12px}.cx-signal i{width:3px;height:9px;background:var(--cx-red);animation:cx-signal 1.6s ease-in-out infinite alternate}.cx-signal i:nth-child(2){height:12px;animation-delay:-.5s}.cx-signal i:nth-child(3){height:6px;animation-delay:-1s}
@keyframes cx-signal{to{transform:scaleY(.35)}}
.cx-head{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:16px}
.cx-head h3,.cx-head h4{margin:0;font:700 21px/1.1 Rajdhani,sans-serif;letter-spacing:.02em;text-transform:uppercase;color:#fff}
.cx-tag{flex:0 0 auto;padding:3px 9px;border:1px solid #d1121280;border-radius:4px;font-size:12px;font-weight:600;color:#ffb3b3}
.cx p{color:var(--cx-soft)}

/* Knöpfe */
.cx-btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:50px;padding:12px 26px;border:2px solid var(--cx-red);border-radius:8px;background:var(--cx-red);color:#fff;font:700 18px/1 Rajdhani,sans-serif;letter-spacing:.04em;text-transform:uppercase;box-shadow:0 10px 34px -12px var(--cx-glow);transition:background-color 160ms ease,border-color 160ms ease,transform 160ms var(--ease)}
.cx-btn-outline{background:#050505;box-shadow:none}
.cx-btn-small{min-height:44px;padding:9px 16px;font-size:15px}
.cx-btn:active{transform:scale(.97)}
.cx :focus-visible,.cx-explorer :focus-visible{outline-color:#fff}
.cx-tabs [role=tab]:focus-visible,.cx-feature-list [role=tab]:focus-visible{outline-offset:-3px}

/* Kalender */
.cx-week{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.cx-day{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:10px;min-height:86px;padding:9px 8px 10px;border:1px solid #ffffff12;border-radius:6px;background:#ffffff08;text-align:left;font-size:14px;color:var(--cx-soft);transition:background-color 160ms ease,border-color 160ms ease,transform 160ms var(--ease)}
.cx-day small{font-size:13px;font-weight:700;color:var(--cx-muted)}
.cx-day span{font-weight:700;line-height:1.1;color:#fff}
.cx-day.is-empty{background:none}
button.cx-day{border-color:#d1121255;background:#d112121c}
button.cx-day[aria-pressed=true]{border-color:var(--cx-red);background:linear-gradient(180deg,#d1121266,#d1121226);box-shadow:0 0 24px -8px var(--cx-glow)}
.cx-day.is-race span{color:#fff}
.cx-event{display:grid;gap:2px;margin-top:16px;padding:12px 14px;border-left:3px solid var(--cx-red);background:linear-gradient(90deg,#d112121f,transparent)}
.cx-when{font-size:14px;font-weight:600;color:#ffb3b3}
.cx-what{font-size:22px;font-weight:700}
.cx-cal-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px;margin-top:14px;font-size:14px;color:var(--cx-muted)}
.cx-countdown b{font-size:18px;font-variant-numeric:tabular-nums;color:#fff}
.cx-webcal{display:inline-flex;align-items:center;gap:8px}
.cx-webcal svg{width:17px;height:17px;color:var(--cx-red)}

/* Stintplaner */
.cx-table{width:100%;border-collapse:collapse;font-size:15px;font-variant-numeric:tabular-nums}
.cx-table th,.cx-table td{padding:7px 8px;border-bottom:1px solid var(--cx-line);text-align:left}
.cx-table thead th{font-size:13px;font-weight:700;color:var(--cx-muted)}
.cx-table tbody th{font-weight:600}
.cx-table tfoot th,.cx-table tfoot td{border-bottom:0;font-weight:700;color:#fff}
.cx-stepper{display:inline-flex;align-items:center;gap:4px}
.cx-stepper button{display:grid;place-items:center;width:32px;height:32px;border:1px solid #d1121266;border-radius:6px;font-size:18px;color:#fff;background:#d1121214}
.cx-stepper output{min-width:28px;text-align:center;font-weight:700}
.cx-timeline{position:relative;display:flex;gap:3px;height:10px;margin-top:14px;overflow:hidden;border-radius:3px}
.cx-timeline i{flex:var(--w,1);background:#d11212}.cx-timeline i:nth-child(2){background:#9e0e0e}.cx-timeline i:nth-child(3){background:#6d0b0b}
.cx-playhead{position:absolute;inset:0;width:100%;border-left:2px solid #fff;pointer-events:none;animation:cx-playhead 14s linear infinite}
@keyframes cx-playhead{from{transform:translateX(0)}to{transform:translateX(100%)}}
.cx-formula{margin:10px 0 0;font-size:13px;color:var(--cx-muted)}

/* Setups, Galerie, Chat, News */
.cx-folder{display:flex;align-items:center;gap:10px;margin-bottom:10px;font-size:15px;font-weight:600;color:var(--cx-soft)}
.cx-folder .cx-ico{color:var(--cx-red)}
.cx-files{display:grid;gap:6px}
.cx-file{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:10px 14px;border:1px solid #ffffff14;border-radius:8px;background:#ffffff08;font-size:16px;font-weight:600;text-align:left}
.cx-file small{font-size:13px;font-weight:600;color:var(--cx-muted)}
.cx-file[data-shared=true] small{color:#ffb3b3}
.cx-file[aria-pressed=true]{border-color:var(--cx-red);background:#d112121f}
.cx-file-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin-top:14px}
.cx-file-status{font-size:15px;color:var(--cx-soft)}
.cx-modes,.cx-filter,.cx-folders,.cx-quick{display:flex;flex-wrap:wrap;gap:6px}
.cx-modes{margin-bottom:8px}
.cx-modes button,.cx-filter button,.cx-folders button,.cx-quick button{min-height:40px;padding:7px 13px;border:1px solid #ffffff1f;border-radius:6px;font-size:15px;font-weight:700;color:var(--cx-soft);background:#ffffff08}
.cx-modes .is-orange[aria-pressed=true]{background:var(--cx-orange);border-color:#cc3700;color:#fff}
.cx-modes .is-purple[aria-pressed=true]{background:var(--cx-purple);border-color:#8c52ff;color:#120a1f}
.cx-filter button[aria-pressed=true],.cx-folders button[aria-pressed=true]{border-color:var(--cx-red);color:#fff;background:#d1121226}
.cx-streams{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:6px}
.cx-streams li{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:4px 12px;padding:8px 10px;border:1px solid #ffffff12;border-radius:8px;background:#ffffff06}
.cx-streams strong{font-size:16px}.cx-streams small{grid-column:3;font-size:13px;color:var(--cx-muted)}
.cx-streams li>strong{grid-column:3;grid-row:1}
.cx-screenlet{grid-row:1/3;display:flex;align-items:flex-end;gap:3px;width:56px;height:34px;padding:6px;border-radius:4px;background:linear-gradient(135deg,#2a0b0b,#0d0d0d)}
.cx-screenlet i{flex:1;height:60%;background:#ff6a3d;animation:cx-eq 1.1s ease-in-out infinite alternate}.cx-screenlet i:nth-child(2){animation-delay:-.3s;height:90%}.cx-screenlet i:nth-child(3){animation-delay:-.7s;height:40%}.cx-screenlet i:nth-child(4){animation-delay:-.9s;height:75%}
li[data-mode=community] .cx-screenlet i{background:var(--cx-purple)}
@keyframes cx-eq{to{transform:scaleY(.3)}}
.cx-live{grid-row:1/3;display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:4px;font-size:12px;font-weight:700;color:#fff;background:#d11212}
.cx-live:before{content:'';width:6px;height:6px;border-radius:50%;background:#fff;animation:cx-pulse 1.4s ease-in-out infinite}
@keyframes cx-pulse{50%{opacity:.25}}
.cx-empty{margin:12px 0 0;font-size:15px}
.cx-roster{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.cx-roster li{display:flex;align-items:center;gap:12px;min-height:48px;padding:6px 10px;border:1px solid #ffffff12;border-radius:8px;background:#ffffff06}
.cx-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#2a0b0b;border:1px solid #d1121288;font-weight:700}
.cx-roster strong{flex:1;font-size:16px}
.cx-role{min-height:40px;padding:6px 12px;border:1px solid #d1121266;border-radius:6px;font-size:14px;font-weight:700;color:#ffc9c9;background:#d1121214}
.cx-invite{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:14px}
.cx-code{font-size:18px;font-weight:700;letter-spacing:.08em;font-variant-numeric:tabular-nums;color:var(--cx-soft)}
.cx-devices{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cx-device{display:grid;align-content:start;gap:8px;min-height:150px;padding:14px;border:1px solid #ffffff14;border-radius:10px;background:#ffffff08}
.cx-device small{font-size:13px;font-weight:700;color:var(--cx-muted)}
.cx-device strong{font-size:19px;line-height:1.2}
.cx-device.is-remote{border-style:dashed}
.cx-synced{font-size:14px;color:#ffb3b3}
.cx-gallery{list-style:none;margin:12px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cx-gallery img{width:100%;aspect-ratio:360/224;object-fit:cover;border-radius:8px;border:1px solid #ffffff14}
.cx-messages{list-style:none;margin:12px 0;padding:0;display:grid;gap:8px;max-height:190px;overflow:auto}
.cx-messages li{display:grid;gap:2px;max-width:86%;padding:8px 12px;border-radius:10px 10px 10px 2px;background:#ffffff0d;font-size:15px}
.cx-messages b{font-size:13px;color:#ffb3b3}
.cx-messages li.is-own{justify-self:end;border-radius:10px 10px 2px 10px;background:#d1121238}
.cx-news{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}
.cx-news li{display:grid;gap:4px;padding:10px 12px;border-left:3px solid var(--cx-red);background:#ffffff08;font-size:15px;color:var(--cx-soft)}
.cx-kind{font-size:13px;font-weight:700;color:#fff}

@media(hover:hover) and (pointer:fine){
  .cx-btn:hover{background:var(--cx-red-hi);border-color:var(--cx-red-hi)}.cx-btn-outline:hover{background:#1a0505}
  .cx-tabs [role=tab]:hover,.cx-feature-list [role=tab]:hover{color:#fff}
  button.cx-day:hover,.cx-file:hover{border-color:#e8292e}
  .cx-modes button:hover,.cx-filter button:hover,.cx-folders button:hover,.cx-quick button:hover,.cx-role:hover,.cx-stepper button:hover{border-color:#e8292e;color:#fff}
}

/* Startseite: Calapex-Tab bekommt das rote Leuchten der echten Seite. */
#panel-calapex .app-visual{position:relative}
#panel-calapex .app-visual:before{content:'';position:absolute;inset:-14% -6% -10%;z-index:-1;background:radial-gradient(ellipse at 50% 45%,#d1121233,transparent 64%);pointer-events:none}
#panel-calapex .cx-window{transform:perspective(1300px) rotateY(-3deg)}

/* Seite /calapex/ */
/* Hintergrund wie calapex.de: roter Verlauf oben, Punktraster über die ganze Seite, ohne Fläche über den Rand. */
body[data-page=calapex]{background:radial-gradient(#ffffff0a 1.5px,transparent 1.6px) 0 0/26px 26px,radial-gradient(circle at 50% 0,#1f0505 0,#0a0a0a 900px,#050505 1500px) #050505}
.cx-page .back-link{color:#c9c9c9}
.cx-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);align-items:center;gap:4%;min-height:500px;padding-bottom:30px}
.cx-hero-logo{width:min(380px,100%);height:auto}
.cx-hero h1{margin-top:28px;font:700 clamp(40px,4vw,58px)/1.02 Rajdhani,sans-serif;letter-spacing:.01em;text-transform:uppercase;text-shadow:0 0 40px #d1121266}
.cx-lead{max-width:520px;margin-top:20px;font-size:21px;line-height:1.45}
.cx-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:30px}
.cx-fine{margin-top:18px;font-size:14px;color:var(--cx-muted)}
.cx-stage{position:relative;height:440px;perspective:1000px;touch-action:pan-y pinch-zoom}
.cx-depth{position:absolute;inset:0;transform-style:preserve-3d;will-change:transform}
.cx-depth>*{position:absolute}
.cx-grid{inset:8% 4%;border-radius:20px;background:radial-gradient(#ffffff1f 1.4px,transparent 1.6px) 0 0/22px 22px;-webkit-mask-image:radial-gradient(closest-side,#000,#0000);mask-image:radial-gradient(closest-side,#000,#0000);transform:translateZ(-60px)}
.cx-halo{left:18%;top:14%;width:64%;height:72%;border-radius:50%;background:radial-gradient(closest-side,#d1121270,#d1121200);transform:translateZ(-30px)}
.cx-symbol{left:21%;top:24%;width:58%;height:auto;filter:drop-shadow(0 18px 30px #000c);transform:translateZ(40px)}
.cx-chip{display:grid;gap:2px;padding:12px 16px;border:1px solid #ffffff1f;border-top:3px solid var(--cx-red);border-radius:10px;background:#0b0b0bf0;box-shadow:0 20px 40px -18px #000;font-weight:700}
.cx-chip small{font-size:13px;color:var(--cx-muted)}
.cx-chip b{font-size:22px;font-variant-numeric:tabular-nums}
.cx-chip-count{right:2%;bottom:14%;transform:translateZ(110px)}
.cx-chip-live{left:2%;top:12%;display:flex;align-items:center;gap:10px;border-top-color:var(--cx-orange);font-size:17px;transform:translateZ(90px)}
.cx-chip-live i{width:9px;height:9px;border-radius:50%;background:var(--cx-orange);box-shadow:0 0 14px var(--cx-orange);animation:cx-pulse 1.4s ease-in-out infinite}
.cx-section{margin:70px 0 0}
.cx-section h2{font:700 clamp(32px,3vw,44px)/1.1 Rajdhani,sans-serif;letter-spacing:.02em;text-transform:uppercase;color:var(--cx-red);padding-bottom:12px;border-bottom:1px solid #d1121266}
.cx-about{padding:34px 40px 38px;border:1px solid #ffffff14;border-radius:12px;background:#141414bf}
.cx-about-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:20px 56px;margin-top:22px;align-items:start}
.cx-about p{margin:0;font-size:20px;line-height:1.55}
.cx-about .cx-about-live{display:flex;gap:14px;padding:16px 18px;border-left:3px solid var(--cx-orange);background:linear-gradient(90deg,#ff45001f,#ff450000);font-weight:700;color:#fff}
.cx-about-live i{flex:0 0 auto;width:10px;height:10px;margin-top:9px;border-radius:50%;background:var(--cx-orange);box-shadow:0 0 14px var(--cx-orange);animation:cx-pulse 1.4s ease-in-out infinite}
.cx-features h2{margin-bottom:28px}
.cx-explorer{display:grid;grid-template-columns:minmax(230px,300px) minmax(0,1fr);gap:30px;align-items:start}
.cx-feature-list{display:flex;flex-direction:column;gap:2px;padding:6px 0;border-left:1px solid var(--cx-line)}
.cx-feature-list [role=tab]{display:flex;align-items:center;gap:12px;min-height:50px;margin-left:-2px;padding:10px 16px;border-left:3px solid transparent;text-align:left;font:700 19px/1.1 Rajdhani,sans-serif;color:#bdbdbd;transition:color 160ms ease,background-color 160ms ease,border-color 160ms ease}
.cx-feature-list .cx-ico{color:#8a8a8a;transition:color 160ms ease}
.cx-feature-list [aria-selected=true]{color:#fff;border-left-color:var(--cx-red);background:linear-gradient(90deg,#d1121233,#d1121200)}
.cx-feature-list [aria-selected=true] .cx-ico{color:var(--cx-red)}
.cx-explorer-screen .cx-screen{min-height:440px;padding:22px 26px 24px}
.cx-feature-head{margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--cx-line)}
.cx-feature-head h3{font:700 28px/1.1 Rajdhani,sans-serif;letter-spacing:.02em;text-transform:uppercase}
.cx-feature-head p{max-width:620px;margin-top:8px;font-size:18px;line-height:1.45}
.cx-access{border-color:#d1121255;font-family:Rajdhani,Barlow,sans-serif}
.cx-access h2{color:#fff;text-transform:uppercase;letter-spacing:.02em;font-family:Rajdhani,Barlow,sans-serif;font-style:normal;font-weight:700}
.cx-access h3{font-family:Rajdhani,Barlow,sans-serif;font-size:21px}
.cx-access p{font-size:19px}
.cx-access .text-link{border-color:var(--cx-red)}
.cx-page .other-apps{padding-top:30px}

@media(max-width:1100px) and (min-width:761px){
  .cx-screen{padding:16px;min-height:300px}.cx-day{min-height:76px;padding:7px 6px;font-size:13px}.cx-tabs [role=tab]{font-size:14px;padding:12px 6px}
  .cx-hero{grid-template-columns:1fr 1fr;gap:3%}.cx-stage{height:360px}.cx-explorer{grid-template-columns:220px minmax(0,1fr);gap:18px}
}
@media(max-width:760px){
  #panel-calapex .cx-window{transform:none}
  .cx-bar{padding:14px 14px 0}.cx-bar-logo{height:24px}.cx-bar>span{font-size:12px}
  .cx-tabs{padding:8px 6px 0;gap:2px}.cx-tabs [role=tab]{font-size:14px;padding:12px 8px}
  .cx-screen{padding:16px 14px 14px;min-height:0}
  .cx-head{flex-wrap:wrap;gap:6px 10px;margin-bottom:12px}.cx-head h3,.cx-head h4{font-size:19px}
  .cx-week{grid-template-columns:repeat(4,1fr)}
  .cx-day.is-empty{display:none}
  .cx-day{min-height:74px}
  .cx-table{font-size:14px}.cx-table th,.cx-table td{padding:6px 4px}.cx-stepper button{width:30px;height:30px}
  .cx-devices{grid-template-columns:1fr}.cx-device{min-height:0}
  .cx-foot{padding:10px 14px 12px;font-size:12px}
  .cx-hero{display:block;min-height:0;padding-bottom:0}
  .cx-hero-logo{width:240px}
  .cx-hero h1{margin-top:20px;font-size:44px}
  .cx-lead{font-size:18px}
  .cx-actions .cx-btn{flex:1 1 220px}
  .cx-stage{height:250px;margin:16px -12px 0}
  .cx-chip{padding:9px 12px}.cx-chip b{font-size:18px}.cx-chip-live{font-size:15px}
  .cx-section{margin-top:44px}
  .cx-about{padding:22px 18px 24px}.cx-about-grid{grid-template-columns:1fr}.cx-about p{font-size:17px}
  .cx-explorer{display:block}
  .cx-feature-list{flex-direction:row;gap:6px;margin:0 -24px 14px;padding:2px 24px 6px;border:0;overflow-x:auto;scroll-snap-type:x proximity;scroll-padding-inline:24px;scrollbar-width:none}
  .cx-feature-list::-webkit-scrollbar{display:none}
  .cx-feature-list [role=tab]{flex:0 0 auto;min-height:46px;margin:0;padding:8px 13px;border:1px solid #ffffff1f;border-radius:8px;font-size:16px;scroll-snap-align:start}
  .cx-feature-list [aria-selected=true]{border-color:var(--cx-red);background:#d1121233}
  .cx-explorer-screen .cx-screen{min-height:0;padding:16px 14px 18px}
  .cx-feature-head h3{font-size:22px}.cx-feature-head p{font-size:16px}
  .cx-access h2{font-size:30px}
}
@media(prefers-reduced-motion:reduce){.cx-depth{transform:none!important}#panel-calapex .cx-window{transform:none}}
