/* ChrisEmm Phase 42: UX + Sicherheit polish
   Nur additive Regeln, keine alten Chatfixes überschreiben. */
:root{
  --cem-bg-0:#08111f;
  --cem-bg-1:#101a2c;
  --cem-card:rgba(15,23,42,.82);
  --cem-card-2:rgba(17,24,39,.92);
  --cem-line:rgba(148,163,184,.18);
  --cem-text:#eef6ff;
  --cem-muted:#9fb2cc;
  --cem-blue:#38bdf8;
  --cem-pink:#ec4899;
  --cem-green:#22c55e;
  --cem-violet:#8b5cf6;
}

/* Login / Startseite: Gastzugang nicht mehr verstecken */
.cem-startpage{min-height:calc(100dvh - 80px)}
.cem-login-card{position:relative;overflow:hidden}
.cem-login-card:before{content:"";position:absolute;inset:-80px -80px auto auto;width:180px;height:180px;background:radial-gradient(circle,rgba(56,189,248,.18),transparent 64%);pointer-events:none}
.cem-entry-choice{display:grid;grid-template-columns:1fr;gap:12px;margin:16px 0 18px;position:relative;z-index:1}
.cem-entry-choice a{display:flex;align-items:center;gap:13px;padding:15px 16px;border-radius:18px;text-decoration:none;border:1px solid rgba(148,163,184,.18);background:rgba(15,23,42,.62);color:var(--cem-text);box-shadow:0 10px 28px rgba(0,0,0,.18);transition:.18s ease}
.cem-entry-choice a:hover{transform:translateY(-1px);border-color:rgba(56,189,248,.38);background:rgba(30,41,59,.78)}
.cem-entry-choice i{width:42px;height:42px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,var(--cem-blue),var(--cem-violet));color:#06101e;box-shadow:0 12px 28px rgba(56,189,248,.18)}
.cem-entry-choice strong{display:block;font-size:15px;line-height:1.15}.cem-entry-choice small{display:block;color:var(--cem-muted);margin-top:3px;line-height:1.25}.cem-entry-choice .cem-guest-entry{border-color:rgba(34,197,94,.28);background:linear-gradient(135deg,rgba(34,197,94,.14),rgba(15,23,42,.72))}.cem-entry-choice .cem-guest-entry i{background:linear-gradient(135deg,#22c55e,#38bdf8)}.cem-entry-choice .cem-register-entry{border-color:rgba(236,72,153,.28)}.cem-entry-choice .cem-register-entry i{background:linear-gradient(135deg,#ec4899,#8b5cf6);color:white}.cem-login-note{margin:10px 0 0;color:var(--cem-muted);font-size:13px;line-height:1.45}.cem-benefit-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0}.cem-benefit-list span{border:1px solid rgba(148,163,184,.15);background:rgba(255,255,255,.045);border-radius:14px;padding:10px 11px;color:#dbeafe;font-size:13px}.cem-benefit-list i{color:var(--cem-green);margin-right:6px}

/* Vereinfachte Navigation: wichtige Gastaktion sichtbar */
.cem-guest-register-btn{background:linear-gradient(135deg,#22c55e,#38bdf8)!important;color:#04111d!important;border-radius:999px!important;font-weight:900!important;padding:9px 13px!important;box-shadow:0 10px 28px rgba(34,197,94,.2)}
.sidenav a[href="/register.php"]{background:linear-gradient(135deg,rgba(34,197,94,.2),rgba(56,189,248,.12));border:1px solid rgba(34,197,94,.28)}

/* Profile: sozialer, klarer, card-basierter */
.profile-page-static .page{max-width:1220px}.profile-web-bg{padding-bottom:30px}.profile-hero-modern{border:1px solid rgba(148,163,184,.18);background:linear-gradient(145deg,rgba(15,23,42,.88),rgba(17,24,39,.76));box-shadow:0 24px 80px rgba(0,0,0,.23);overflow:hidden}.profile-cover{min-height:230px;background-size:cover;background-position:center}.profile-cover-shade{background:linear-gradient(180deg,rgba(8,17,31,.05),rgba(8,17,31,.78));height:100%}.profile-modern-row{display:grid;grid-template-columns:auto 1fr auto;gap:20px;align-items:end;margin-top:-62px;padding:0 24px 24px;position:relative}.profile-avatar-wrap{position:relative}.profile-avatar{width:132px!important;height:132px!important;border-radius:34px!important;border:4px solid rgba(15,23,42,.94)!important;box-shadow:0 20px 55px rgba(0,0,0,.38);object-fit:cover}.profile-online-dot{position:absolute;right:8px;bottom:8px;width:22px;height:22px;border-radius:999px;background:linear-gradient(135deg,#22c55e,#84cc16);border:4px solid #0f172a;box-shadow:0 0 0 6px rgba(34,197,94,.12)}.profile-title h1{margin:0;color:#fff;font-size:clamp(28px,4vw,44px);letter-spacing:-.045em}.profile-name-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.profile-mini-stats{display:flex;gap:9px;flex-wrap:wrap;margin-top:10px}.profile-mini-stats span{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.10);color:#dbeafe;border-radius:999px;padding:7px 11px;font-size:13px}.profile-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.profile-tabs{display:flex;gap:8px;overflow-x:auto;padding:10px!important;background:rgba(15,23,42,.72)!important;border:1px solid rgba(148,163,184,.14)!important}.profile-tabs a{white-space:nowrap;border-radius:999px;padding:10px 13px;color:#cbd5e1;text-decoration:none}.profile-tabs a.active,.profile-tabs a:hover{background:linear-gradient(135deg,#2563eb,#ec4899);color:white}.profile-layout-refined{display:grid;grid-template-columns:minmax(280px,360px) 1fr;gap:18px;align-items:start}.profile-sidebar-modern{display:flex;flex-direction:column;gap:14px}.profile-info-modern,.profile-feed-modern .card,.profile-sidebar-modern .card{border:1px solid rgba(148,163,184,.15)!important;background:linear-gradient(145deg,rgba(15,23,42,.78),rgba(17,24,39,.68))!important;box-shadow:0 18px 55px rgba(0,0,0,.18)}.section-title{display:flex;align-items:center;gap:10px}.section-title h2,.section-title h3{margin:0}.profile-about-wide{font-size:15px;line-height:1.65}.profile-team-note-card{border-color:rgba(245,158,11,.24)!important}.profile-team-note-form textarea{min-height:118px;border-radius:16px;background:rgba(2,6,23,.42);color:#e5eefb;border:1px solid rgba(148,163,184,.18);padding:12px;width:100%}.team-note-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.team-note-meta button{border:0;border-radius:14px;padding:10px 14px;background:linear-gradient(135deg,#f59e0b,#ec4899);color:#fff;font-weight:800;cursor:pointer}.friends-grid-small,.friends-grid-full{display:grid;grid-template-columns:repeat(auto-fill,minmax(94px,1fr));gap:10px}.friend-tile,.visitor-mini-row{border:1px solid rgba(148,163,184,.15);background:rgba(255,255,255,.045);border-radius:16px;text-decoration:none;color:#dbeafe;padding:10px;transition:.16s ease}.friend-tile:hover,.visitor-mini-row:hover{transform:translateY(-1px);border-color:rgba(56,189,248,.35)}.friend-tile img{width:48px;height:48px;border-radius:16px;object-fit:cover;display:block;margin-bottom:7px}.visitor-mini-list{display:grid;gap:9px}.visitor-mini-row{display:flex;gap:10px;align-items:center}.visitor-mini-row img{width:42px;height:42px;border-radius:14px;object-fit:cover}.visitor-mini-row small{display:block;color:var(--cem-muted);margin-top:2px}

/* Onboarding / Hinweise */
.cem-user-guide-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.cem-user-guide-strip .guide-card{border:1px solid rgba(148,163,184,.16);background:rgba(15,23,42,.62);border-radius:18px;padding:14px;color:#dbeafe}.guide-card b{display:block;margin-bottom:4px}.guide-card small{color:var(--cem-muted);line-height:1.35}

@media(max-width:900px){.profile-modern-row{grid-template-columns:1fr;text-align:center;justify-items:center;margin-top:-52px}.profile-actions{justify-content:center}.profile-layout-refined{grid-template-columns:1fr}.profile-avatar{width:112px!important;height:112px!important;border-radius:28px!important}.cem-user-guide-strip{grid-template-columns:1fr 1fr}.cem-feature-row{grid-template-columns:1fr!important}}
@media(max-width:560px){.cem-entry-choice{gap:10px}.cem-benefit-list,.cem-user-guide-strip{grid-template-columns:1fr}.profile-cover{min-height:190px}.profile-modern-row{padding:0 14px 18px}.profile-tabs{margin-left:-4px;margin-right:-4px}.top-actions{gap:6px}.cem-guest-register-btn{font-size:12px!important;padding:8px 10px!important}}
.cem-pulse-soft{animation:cemPulseSoft 1.4s ease-out 1}@keyframes cemPulseSoft{0%{box-shadow:0 0 0 0 rgba(34,197,94,.36)}100%{box-shadow:0 0 0 18px rgba(34,197,94,0)}}
