:root{
  --bg:#050816;
  --bg2:#0a1023;
  --panel:rgba(12,18,38,.82);
  --panel-strong:rgba(15,23,52,.95);
  --panel-soft:rgba(18,29,60,.72);
  --text:#e9f1ff;
  --muted:#96a7d5;
  --border:rgba(106,140,255,.22);
  --border-strong:rgba(87,211,255,.45);
  --accent:#56d8ff;
  --accent2:#8b5cf6;
  --accent3:#2cf2b3;
  --danger:#ff6484;
  --success:#3ee7a5;
  --shadow:0 18px 45px rgba(0,0,0,.34);
  --glow:0 0 0 1px rgba(86,216,255,.22), 0 0 24px rgba(86,216,255,.14), 0 10px 30px rgba(0,0,0,.38);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.55;
  background:
    radial-gradient(circle at 12% 18%, rgba(44,242,179,.08), transparent 24%),
    radial-gradient(circle at 85% 14%, rgba(86,216,255,.14), transparent 26%),
    radial-gradient(circle at 78% 72%, rgba(139,92,246,.14), transparent 28%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg2) 58%, #040611 100%);
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(255,255,255,.45), transparent 85%);
  opacity:.22;
}
a{color:#9fe8ff;text-decoration:none;transition:.18s ease}
a:hover{color:white;text-decoration:none}
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:1rem 1.3rem;
  background:rgba(6,10,24,.82);
  border-bottom:1px solid rgba(86,216,255,.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position:sticky;
  top:0;
  z-index:20;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  font-weight:900;
  letter-spacing:.03em;
  color:white;
  font-size:1.18rem;
  padding:.45rem .7rem;
  border:1px solid rgba(86,216,255,.25);
  border-radius:14px;
  background:linear-gradient(135deg, rgba(86,216,255,.16), rgba(139,92,246,.18));
  box-shadow:0 0 18px rgba(86,216,255,.12);
}
.brand::before{
  content:"◈";
  color:var(--accent);
  text-shadow:0 0 14px rgba(86,216,255,.8);
}
.topbar nav{display:flex;gap:.55rem;flex-wrap:wrap}
.topbar nav a{
  padding:.45rem .72rem;
  border-radius:12px;
  border:1px solid transparent;
  color:#d7e7ff;
  background:rgba(255,255,255,.03);
}
.topbar nav a:hover{
  transform:translateY(-1px);
  border-color:rgba(86,216,255,.22);
  background:rgba(86,216,255,.08);
  box-shadow:0 0 0 1px rgba(86,216,255,.06), 0 0 20px rgba(86,216,255,.08);
}
.container{max-width:1240px;margin:0 auto;padding:1.4rem}
.grid.two{display:grid;grid-template-columns:minmax(0,2fr) minmax(290px,1fr);gap:1.2rem}
.card,.auth-card{
  position:relative;
  background:linear-gradient(180deg, rgba(16,24,49,.9), rgba(10,17,36,.86));
  border:1px solid var(--border);
  border-radius:20px;
  padding:1.15rem;
  margin-bottom:1rem;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.card::before,.auth-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(135deg, rgba(86,216,255,.08), transparent 30%, transparent 65%, rgba(139,92,246,.10));
  opacity:.9;
}
.card > *, .auth-card > *{position:relative;z-index:1}
.card:hover{box-shadow:var(--glow)}
h1,h2,h3{
  margin:.1rem 0 .8rem;
  line-height:1.2;
  letter-spacing:.01em;
}
h1{font-size:1.8rem}
h2{font-size:1.35rem}
h3{font-size:1.08rem;color:#dbe8ff}
p{margin:.55rem 0 .8rem}
.meta{color:var(--muted);font-size:.92rem}
.composer textarea,.composer input,.composer select,form input,form textarea,form select{
  width:100%;
  margin:.3rem 0 .85rem;
  background:rgba(5,10,24,.78);
  color:var(--text);
  border:1px solid rgba(114,144,255,.2);
  border-radius:14px;
  padding:.85rem .95rem;
  outline:none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
textarea{resize:vertical;min-height:120px}
select{appearance:auto}
.composer textarea:focus,.composer input:focus,.composer select:focus,form input:focus,form textarea:focus,form select:focus{
  border-color:var(--border-strong);
  box-shadow:0 0 0 3px rgba(86,216,255,.12), 0 0 18px rgba(86,216,255,.12);
  transform:translateY(-1px);
}
label{display:block;color:#bdd0f8;font-size:.93rem;margin:.4rem 0}
button,.button{
  border:0;
  border-radius:14px;
  padding:.76rem 1rem;
  font-weight:800;
  letter-spacing:.01em;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  color:#07111f;
  background:linear-gradient(135deg, var(--accent) 0%, #8bddff 48%, var(--accent2) 100%);
  box-shadow:0 10px 24px rgba(39,135,255,.25), inset 0 1px 0 rgba(255,255,255,.25);
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
button:hover,.button:hover{transform:translateY(-1px);filter:brightness(1.03);text-decoration:none;box-shadow:0 0 20px rgba(86,216,255,.22), 0 14px 28px rgba(0,0,0,.25)}
.button.secondary{background:linear-gradient(135deg, rgba(139,92,246,.85), rgba(86,216,255,.9));color:white}
.danger-form button{background:linear-gradient(135deg, #ff6484, #ff8a64);color:white}
.notice{
  padding:.95rem 1rem;
  border-radius:16px;
  margin-bottom:1rem;
  background:rgba(16,24,49,.92);
  border:1px solid rgba(114,144,255,.18);
  box-shadow:var(--shadow);
}
.notice.success{border-color:rgba(62,231,165,.38);box-shadow:0 0 0 1px rgba(62,231,165,.10), 0 0 22px rgba(62,231,165,.08)}
.notice.danger{border-color:rgba(255,100,132,.36);box-shadow:0 0 0 1px rgba(255,100,132,.10), 0 0 22px rgba(255,100,132,.08)}
.post{padding-bottom:1rem}
.post p{white-space:normal}
.post-img{max-width:100%;border-radius:16px;border:1px solid rgba(86,216,255,.16);box-shadow:0 8px 26px rgba(0,0,0,.28)}
.comments{border-top:1px solid rgba(255,255,255,.08);margin-top:.95rem;padding-top:.9rem}
.comment{padding:.55rem 0;border-bottom:1px solid rgba(255,255,255,.06)}
.comment:last-child{border-bottom:0}
.comment-form{display:flex;gap:.6rem;margin-top:.8rem}
.comment-form input{margin:0}
.comment-form button{width:auto;min-width:72px}
.inline-form{display:inline-flex;gap:.45rem;align-items:center;vertical-align:middle;flex-wrap:wrap}
.inline-form input,.inline-form select{width:auto;margin:0}
.auth-card{max-width:520px;width:100%;margin:2.5rem auto;padding:1.4rem}
.badge{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  border:1px solid rgba(86,216,255,.28);
  color:#c7f4ff;
  border-radius:999px;
  padding:.22rem .62rem;
  font-size:.82rem;
  background:rgba(86,216,255,.08);
  box-shadow:0 0 16px rgba(86,216,255,.08);
}
.badge::before{content:"•";color:var(--accent)}
table{width:100%;border-collapse:collapse;background:rgba(5,10,24,.28);border-radius:14px;overflow:hidden}
td,th{border-bottom:1px solid rgba(255,255,255,.08);padding:.68rem;text-align:left}
th{color:#c8d8ff;font-size:.92rem;background:rgba(255,255,255,.03)}
tr:hover td{background:rgba(255,255,255,.02)}
.chatbox{
  display:flex;
  flex-direction:column;
  gap:.6rem;
  margin:1rem 0;
  max-height:520px;
  overflow:auto;
  padding-right:.25rem;
}
.bubble{
  max-width:78%;
  padding:.82rem .95rem;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg, rgba(21,33,67,.92), rgba(11,18,38,.92));
}
.bubble.me{
  align-self:flex-end;
  background:linear-gradient(135deg, rgba(86,216,255,.20), rgba(139,92,246,.24));
  border-color:rgba(86,216,255,.18);
}
.bubble.them{align-self:flex-start}
.bubble small{display:block;color:var(--muted);margin-top:.35rem}
.report{border-bottom:1px solid rgba(255,255,255,.08);padding:.75rem 0}
code{
  display:inline-block;
  background:rgba(4,9,20,.92);
  border:1px solid rgba(86,216,255,.18);
  border-radius:10px;
  padding:.2rem .45rem;
  color:#b6f0ff;
  word-break:break-all;
}
.profile h1{margin-bottom:.5rem}
.event h2{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:rgba(255,255,255,.03)}
::-webkit-scrollbar-thumb{background:linear-gradient(180deg, rgba(86,216,255,.5), rgba(139,92,246,.5));border-radius:999px}
@media(max-width:980px){
  .grid.two{grid-template-columns:1fr}
}
@media(max-width:820px){
  .topbar{align-items:flex-start;flex-direction:column}
  .topbar nav{width:100%}
  .container{padding:.9rem}
  .inline-form{display:flex;flex-wrap:wrap}
  .comment-form{flex-direction:column}
  .bubble{max-width:92%}
}


/* SIM-Verzeichnis */
.directory-head .search-form{
  display:flex;
  gap:.65rem;
  align-items:center;
  margin-top:1rem;
}
.directory-head .search-form input{
  margin:0;
}
.sim-card{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:1rem;
  align-items:stretch;
}
.sim-img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:16px;
  border:1px solid rgba(86,216,255,.18);
  box-shadow:0 10px 28px rgba(0,0,0,.28);
  background:rgba(255,255,255,.04);
}
.sim-content h2{
  margin-top:.1rem;
}
.sim-detail{
  max-width:980px;
  margin-left:auto;
  margin-right:auto;
}
.sim-hero{
  width:100%;
  max-height:420px;
  object-fit:cover;
  border-radius:18px;
  border:1px solid rgba(86,216,255,.2);
  margin-bottom:1rem;
  box-shadow:0 14px 36px rgba(0,0,0,.34);
}
input[type="file"]{
  padding:.7rem;
  cursor:pointer;
}
input[type="file"]::file-selector-button{
  border:0;
  border-radius:11px;
  padding:.55rem .75rem;
  margin-right:.8rem;
  color:#07111f;
  font-weight:800;
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  cursor:pointer;
}
@media(max-width:720px){
  .sim-card{
    grid-template-columns:1fr;
  }
  .sim-img{
    height:210px;
  }
  .directory-head .search-form{
    flex-direction:column;
    align-items:stretch;
  }
}


.sim-img.placeholder{
  display:grid;
  place-items:center;
  min-height:160px;
  font-size:3rem;
  color:var(--accent);
  text-shadow:0 0 24px rgba(86,216,255,.7);
  background:
    radial-gradient(circle at center, rgba(86,216,255,.14), transparent 55%),
    rgba(255,255,255,.035);
}
.sim-content h2 .badge{
  margin-left:.35rem;
  vertical-align:middle;
}
