:root{
body { outline: 8px solid red !important; }
  --bg:#000;

  --text: rgba(225,255,250,.88);
  --muted: rgba(225,255,250,.62);
  --line: rgba(225,255,250,.14);

  --panel: rgba(6,16,24,.74);
  --panel2: rgba(6,16,24,.56);

  --neon: rgba(120,255,230,.92);
  --neon2: rgba(180,110,255,.78);
  --warn: rgba(255,90,140,.88);
  --ok: rgba(80,255,180,.85);

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  --ui: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  --shadow: 0 22px 60px rgba(0,0,0,.55);
  --shadow2: 0 10px 30px rgba(0,0,0,.35);

  --r: 18px;

  /* Neue UI-Details */
  --glass: rgba(0,0,0,.18);
  --glass2: rgba(0,0,0,.12);

  --focus: 0 0 0 5px rgba(120,255,230,.12);
  --focus2: 0 0 0 9px rgba(180,110,255,.08);

  --grid: rgba(225,255,250,.045);
  --edge: rgba(120,255,230,.22);
  --edge2: rgba(180,110,255,.18);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  overflow-x:hidden;
}

/* Selection (fühlt sich „terminaliger“ an) */
::selection{
  background: rgba(120,255,230,.22);
  color: rgba(255,255,255,.92);
}

a{ color: rgba(225,255,250,.80); text-decoration:none; }
a:hover{ color: rgba(225,255,250,.95); }

.wrap{
  position:relative;
  max-width: 1120px;
  margin:0 auto;
  padding: 22px 16px 60px;
}

/* ------------------------------------------------------------------ */
/* BACKDROP: Skyline + Glows + Grid + Noise                            */
/* ------------------------------------------------------------------ */

.backdrop{
  position:fixed; inset:0;
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(120,255,230,.16), transparent 60%),
    radial-gradient(900px 500px at 90% 8%, rgba(180,110,255,.12), transparent 65%),
    linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,.86)),
    var(--skyline-url);
  background-size:cover;
  background-position:center;
  filter:saturate(1.08) contrast(1.07);
  transform:scale(1.02);
}

/* Scanlines (wie gehabt, minimal stärker) */
.scanlines{
  pointer-events:none;
  position:fixed; inset:0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:100% 3px;
  opacity:.12;
  mix-blend-mode: overlay;
}

/* Subtiles Grid-Overlay (Digital/Japan HUD) */
body::before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  opacity:.16;
  background:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 72px 72px;
  mix-blend-mode: overlay;
}

/* Leichtes Noise (ohne Bilddatei) */
body::after{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  opacity:.045;
  background-image:
    radial-gradient(rgba(255,255,255,.55) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
}

/* ------------------------------------------------------------------ */
/* TOPBAR                                                             */
/* ------------------------------------------------------------------ */

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  border:1px solid var(--line);
  border-radius: var(--r);

  background:
    linear-gradient(180deg, rgba(6,16,24,.82), rgba(6,16,24,.55));
  box-shadow: var(--shadow);
  padding: 12px 14px;
  backdrop-filter: blur(12px);
  margin-bottom: 14px;

  position: relative;
  overflow: hidden;
}

/* „Holo“-Kante oben */
.topbar::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,
      rgba(120,255,230,.12),
      rgba(180,110,255,.10),
      rgba(6,16,24,0)
    );
  opacity:.85;
}

/* Glanzkante */
.topbar::after{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(225,255,250,.22), transparent);
  opacity:.55;
  pointer-events:none;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.dot{
  width:10px; height:10px;
  border-radius:99px;
  background: var(--neon);
  box-shadow:
    0 0 0 5px rgba(120,255,230,.12),
    0 0 18px rgba(120,255,230,.35);
  flex:0 0 auto;
}
.brand strong{
  font-family: var(--mono);
  letter-spacing:.9px;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand span{
  display:block;
  font-family: var(--mono);
  color: var(--muted);
  font-size:12px;
  letter-spacing:.7px;
  margin-top:2px;
}

.nav{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.nav a{
  font-family: var(--mono);
  font-size:12px;
  letter-spacing:.7px;
  color: rgba(225,255,250,.74);

  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding:8px 10px;
  border-radius:12px;

  position: relative;
  overflow: hidden;
  transition: transform .08s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.nav a:hover{
  border-color: rgba(120,255,230,.35);
  background: rgba(120,255,230,.06);
  color: rgba(225,255,250,.92);
  box-shadow: 0 0 0 6px rgba(120,255,230,.06);
  transform: translateY(-1px);
}
.nav a:focus-visible{
  outline: none;
  box-shadow: var(--focus), var(--focus2);
}

/* ------------------------------------------------------------------ */
/* WINDOW                                                             */
/* ------------------------------------------------------------------ */

.window{
  border:1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  box-shadow: var(--shadow);
  overflow:hidden;
  backdrop-filter: blur(12px);
  position: relative;
}

/* HUD-Kanten / Neon-Edge */
.window::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(120,255,230,.14), transparent 30%),
    linear-gradient(315deg, rgba(180,110,255,.12), transparent 30%);
  opacity:.8;
}

/* feine Innenkante */
.window::after{
  content:"";
  position:absolute;
  inset: 1px;
  pointer-events:none;
  border-radius: 21px;
  border: 1px solid rgba(225,255,250,.06);
}

.wtop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 14px;
  border-bottom:1px solid rgba(225,255,250,.10);
  background: linear-gradient(90deg, rgba(120,255,230,.10), rgba(180,110,255,.08), rgba(6,16,24,0));
  position: relative;
}

/* Glanzlinie unter Titelleiste */
.wtop::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(225,255,250,.18), transparent);
  opacity:.45;
  pointer-events:none;
}

.label{
  font-family: var(--mono);
  font-size:12px;
  letter-spacing:.8px;
  color: rgba(225,255,250,.75);
}

.content{ padding:18px; }

h1{
  margin:0 0 8px;
  font-family: var(--mono);
  letter-spacing:1.1px;
  font-size: clamp(22px, 3vw, 34px);
}
.sub{
  font-family: var(--mono);
  font-size:12.5px;
  letter-spacing:1.2px;
  color: rgba(225,255,250,.72);
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ------------------------------------------------------------------ */
/* HERO / GRID                                                        */
/* ------------------------------------------------------------------ */

.hero{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:12px;
  margin-bottom: 12px;
}
@media (max-width: 980px){ .hero{ grid-template-columns:1fr; } }

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width: 980px){ .grid{ grid-template-columns:1fr; } }

/* ------------------------------------------------------------------ */
/* CARDS / SECTIONS                                                   */
/* ------------------------------------------------------------------ */

.card,
.section,
.toc,
.field,
.checks{
  border:1px solid rgba(225,255,250,.12);
  background: rgba(0,0,0,.18);
  border-radius: 18px;
  padding: 14px;
  color: var(--muted);
  line-height: 1.7;
  box-shadow: var(--shadow2);
  position: relative;
  overflow:hidden;
}

/* Neon-Innenkante (subtil) */
.card::before,
.section::before,
.toc::before,
.field::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(120,255,230,.08), transparent 40%),
    linear-gradient(270deg, rgba(180,110,255,.06), transparent 45%);
  opacity:.8;
}

.card h2, .section h2{
  margin:0 0 10px;
  font-family: var(--mono);
  letter-spacing:.9px;
  font-size: 14px;
  color: rgba(225,255,250,.88);
}
.section h2{ font-size: 15px; }

.section h3{
  margin:14px 0 8px;
  font-family: var(--mono);
  letter-spacing:.8px;
  font-size: 13px;
  color: rgba(225,255,250,.82);
}

.mono{ font-family: var(--mono); }

/* ------------------------------------------------------------------ */
/* CALLOUTS                                                           */
/* ------------------------------------------------------------------ */

.callout{
  border:1px solid rgba(120,255,230,.18);
  background: rgba(120,255,230,.06);
  border-radius: 18px;
  padding: 12px;
  color: rgba(225,255,250,.84);
  line-height: 1.6;
  box-shadow: var(--shadow2);
}
.hard{
  border:1px solid rgba(255,90,140,.32);
  background: rgba(255,90,140,.08);
  border-radius: 18px;
  padding: 12px;
  color: rgba(255,255,255,.86);
  line-height: 1.6;
  box-shadow: var(--shadow2);
}
.ok{
  border:1px solid rgba(80,255,180,.28);
  background: rgba(80,255,180,.06);
  border-radius: 18px;
  padding: 12px;
  color: rgba(225,255,250,.84);
  line-height: 1.6;
  box-shadow: var(--shadow2);
}
.callout strong, .hard strong, .ok strong{
  font-family: var(--mono);
  letter-spacing:.8px;
}

/* ------------------------------------------------------------------ */
/* ACTIONS / BUTTONS                                                  */
/* ------------------------------------------------------------------ */

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 12px;
}
.btn{
  font-family: var(--mono);
  letter-spacing:.9px;
  text-transform: uppercase;
  font-size: 12.5px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(225,255,250,.16);
  background: rgba(0,0,0,.24);
  color: rgba(225,255,250,.88);
  display:inline-flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  transition: transform .08s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover{
  border-color: rgba(120,255,230,.38);
  background: rgba(120,255,230,.06);
  transform: translateY(-1px);
  box-shadow: 0 0 0 6px rgba(120,255,230,.05);
}
.btn:active{ transform: translateY(0); filter: brightness(.98); }
.btn:focus-visible{
  outline:none;
  box-shadow: var(--focus), var(--focus2);
}

.btn.primary{
  border-color: rgba(120,255,230,.52);
  background: linear-gradient(180deg, rgba(120,255,230,.14), rgba(0,0,0,.18));
  box-shadow: 0 0 0 6px rgba(120,255,230,.06), 0 20px 60px rgba(0,0,0,.35);
}

.k{
  width:10px; height:10px;
  border-radius:2px;
  background: linear-gradient(135deg, rgba(120,255,230,.95), rgba(180,110,255,.85));
  box-shadow: 0 0 18px rgba(120,255,230,.22);
}

/* ------------------------------------------------------------------ */
/* TOC / CHIPS                                                        */
/* ------------------------------------------------------------------ */

.toc strong{
  display:block;
  font-family: var(--mono);
  letter-spacing:.8px;
  font-size: 13px;
  color: rgba(225,255,250,.84);
  margin-bottom: 10px;
}
.chips{ display:flex; flex-wrap:wrap; gap:8px; }

.chip{
  font-family: var(--mono);
  font-size:12px;
  letter-spacing:.7px;
  color: rgba(225,255,250,.74);
  border:1px solid rgba(225,255,250,.14);
  background: rgba(255,255,255,.03);
  padding:8px 10px;
  border-radius: 12px;
  display:inline-block;
  transition: transform .08s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.chip:hover{
  border-color: rgba(120,255,230,.35);
  background: rgba(120,255,230,.06);
  color: rgba(225,255,250,.92);
  transform: translateY(-1px);
  box-shadow: 0 0 0 6px rgba(120,255,230,.05);
}
.chip:focus-visible{
  outline:none;
  box-shadow: var(--focus), var(--focus2);
}

/* ------------------------------------------------------------------ */
/* QUOTES                                                             */
/* ------------------------------------------------------------------ */

.quote{
  border-left: 2px solid rgba(120,255,230,.45);
  padding-left: 10px;
  margin: 10px 0;
  color: rgba(225,255,250,.80);
}

/* ------------------------------------------------------------------ */
/* FORMS                                                              */
/* ------------------------------------------------------------------ */

form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width: 900px){ form{ grid-template-columns:1fr; } }

.field label{
  display:block;
  font-family: var(--mono);
  letter-spacing:.7px;
  font-size: 12px;
  color: rgba(225,255,250,.74);
  margin-bottom: 8px;
}
input, textarea, select{
  width:100%;
  color: rgba(225,255,250,.90);
  background: rgba(6,16,24,.35);
  border: 1px solid rgba(225,255,250,.16);
  border-radius: 12px;
  padding: 10px 10px;
  outline:none;
  font-family: var(--ui);
  font-size: 14px;
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
input:focus, textarea:focus, select:focus{
  border-color: rgba(120,255,230,.45);
  box-shadow: var(--focus);
  background: rgba(6,16,24,.45);
}

textarea{ min-height: 140px; resize: vertical; }
.full{ grid-column: 1 / -1; }

.errors{
  border:1px solid rgba(255,90,140,.35);
  background: rgba(255,90,140,.08);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow2);
}
.errors ul{ margin: 8px 0 0 18px; }

/* ------------------------------------------------------------------ */
/* FOOTER                                                             */
/* ------------------------------------------------------------------ */

footer{
  margin-top: 14px;
  padding: 12px 4px 0;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:space-between;
  color: rgba(225,255,250,.55);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing:.5px;
}
footer a{
  color: rgba(225,255,250,.68);
  border-bottom: 1px dashed rgba(225,255,250,.18);
}
footer a:hover{ border-bottom-color: rgba(120,255,230,.40); }

/* ------------------------------------------------------------------ */
/* HEADER LOGO (harte Begrenzung, wie bei dir)                         */
/* ------------------------------------------------------------------ */

.brand-text{ display:flex; flex-direction:column; }

.logo{
  display:flex;
  align-items:center;
}

.logo img{
  height:34px;
  width:auto;
  display:block;
  filter:
    drop-shadow(0 0 6px rgba(120,255,230,.35))
    drop-shadow(0 0 18px rgba(180,110,255,.25));
  opacity:.95;
}

/* --- Header Logo Fix: nie übergroß --- */
.topbar .logo img{
  height: 28px;
  max-height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.topbar .brand{ align-items: center; }
.topbar .logo{
  flex: 0 0 auto;
  line-height: 0;
}

/* ===== Header Logo: harte Begrenzung ===== */
.topbar{ align-items: center; }
.topbar .brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Logo als Icon-Container */
.topbar .logo{
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  line-height: 0;
  border: 1px solid rgba(225,255,250,.14);
  background: rgba(0,0,0,.16);
}

/* Bild IM Container passend skalieren (egal wie groß die PNG ist) */
.topbar .logo img{
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  display: block;
  opacity: .95;
  filter:
    drop-shadow(0 0 6px rgba(120,255,230,.30))
    drop-shadow(0 0 18px rgba(180,110,255,.18));
}

/* ------------------------------------------------------------------ */
/* AUTO WINDOW TOPBAR (Titelleiste)                                    */
/* ------------------------------------------------------------------ */

.wtop.auto-wtop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(225,255,250,.10);
  background: linear-gradient(90deg, rgba(120,255,230,.10), rgba(180,110,255,.08), rgba(6,16,24,0));
}

.wtop .label{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .8px;
  color: rgba(225,255,250,.75);
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.bars{ display:flex; gap:7px; }
.bar{
  width:10px; height:10px;
  border-radius:3px;
  background: rgba(225,255,250,.16);
  border:1px solid rgba(225,255,250,.12);
}
.bar:nth-child(1){ background: rgba(255,90,140,.22); border-color: rgba(255,90,140,.28); }
.bar:nth-child(2){ background: rgba(120,255,230,.18); border-color: rgba(120,255,230,.22); }
.bar:nth-child(3){ background: rgba(180,110,255,.16); border-color: rgba(180,110,255,.22); }

/* ------------------------------------------------------------------ */
/* Motion safety                                                      */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce){
  .nav a, .btn, .chip{ transition:none; }
}

.langtoggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-left:10px;
  padding-left:10px;
  border-left:1px solid rgba(225,255,250,.14);
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
  font-size:12px;
  letter-spacing:.7px;
  opacity:.9;
}
.langtoggle .lang{
  color: rgba(225,255,250,.74);
  text-decoration:none;
}
.langtoggle .lang.active{
  color: rgba(225,255,250,.92);
  opacity:1;
}
.langtoggle .sep{
  opacity:.35;
}
.langtoggle a.lang:hover{
  color: rgba(225,255,250,.95);
  text-decoration:none;
  border-bottom:1px dashed rgba(120,255,230,.35);
}

