/* OpenBCM - Aurora design (http/aurora.css)
 * Wird einmalig erzeugt und nie ueberschrieben. Farben unten anpassen,
 * Datei loeschen stellt die Vorgabe wieder her.
 * Created once, never overwritten. Delete to restore the default.
 */
:root {
  --a1: #7c3aed;  /* Verlauf Farbe 1 / gradient colour 1 */
  --a2: #2563eb;  /* Verlauf Farbe 2 */
  --a3: #06b6d4;  /* Verlauf Farbe 3 */
  --bg: #f3f4fb;
  --glass: rgba(255,255,255,.72);
  --glass-b: rgba(15,23,42,.08);
  --text: #0f172a;
  --muted: #64748b;
  --hover: rgba(124,58,237,.08);
  --term: #0b1020;
  --term-text: #dbe4ff;
  --r: 18px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.08);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #070a14; --glass: rgba(22,27,45,.66);
    --glass-b: rgba(255,255,255,.08); --text: #e8ecf8; --muted: #94a3b8;
    --hover: rgba(167,139,250,.12); --term: #05070f;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35); }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; color: var(--text);
  font: 15px/1.55 var(--font); background: var(--bg);
  background-image:
    radial-gradient(60rem 40rem at -10% -20%, rgba(124,58,237,.22), transparent 60%),
    radial-gradient(50rem 35rem at 110% -10%, rgba(6,182,212,.20), transparent 60%),
    radial-gradient(40rem 30rem at 50% 120%, rgba(37,99,235,.16), transparent 60%);
  background-attachment: fixed; }
a { color: var(--a2); }
.ic { width: 20px; height: 20px; flex: 0 0 20px; display: inline-block; }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Kopfleiste */
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center;
  gap: .8rem; padding: .7rem 1.2rem; padding-top: max(.7rem, env(safe-area-inset-top));
  background: var(--glass); border-bottom: 1px solid var(--glass-b);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px); }
.bar a { color: inherit; text-decoration: none; }
.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.brand .logo { width: 36px; height: 36px; border-radius: 11px; display: grid;
  place-items: center; color: #fff; font-weight: 800; font-size: .72rem;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--a1), var(--a2) 55%, var(--a3));
  box-shadow: 0 6px 18px rgba(124,58,237,.35); }
.brand img { height: 36px; border-radius: 11px; }
.brand b { font-size: 1.05rem; letter-spacing: -.01em; }
.brand small { display: block; color: var(--muted); font-size: .78rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who { margin-left: auto; display: flex; align-items: center; gap: .5rem;
  font: 600 .85rem var(--mono); padding: .3rem .4rem .3rem .75rem;
  border-radius: 999px; background: var(--hover); }
.who::after { content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.25); margin-right: .3rem; }
.burger { display: none; cursor: pointer; padding: .35rem; border-radius: 10px; }
.burger:hover { background: var(--hover); }
.navtgl { position: absolute; opacity: 0; pointer-events: none; }
/* Aufbau */
.layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 1.5rem;
  max-width: 1320px; margin: 0 auto; padding: 1.5rem 1.2rem; }
.side { position: sticky; top: 5.2rem; align-self: start;
  max-height: calc(100vh - 6.5rem); overflow-y: auto; padding: .6rem;
  background: var(--glass); border: 1px solid var(--glass-b); border-radius: var(--r);
  box-shadow: var(--shadow); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.side h3 { margin: .9rem .7rem .3rem; font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.side h3:first-child { margin-top: .3rem; }
.side a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem;
  border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 500; }
.side a .ic { color: var(--muted); }
.side a:hover { background: var(--hover); }
.side a:hover .ic { color: var(--a1); }
main { min-width: 0; }
.scrim { display: none; }
/* Begruessung und Kacheln */
.hero { position: relative; overflow: hidden; padding: 1.6rem 1.6rem 1.4rem;
  margin-bottom: 1.2rem; border-radius: calc(var(--r) + 6px); color: #fff;
  background: linear-gradient(120deg, var(--a1), var(--a2) 55%, var(--a3));
  box-shadow: 0 18px 40px -12px rgba(79,70,229,.55); }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.35), transparent 70%); }
.hero h1 { margin: 0; font-size: clamp(1.4rem, 3.5vw, 2rem); letter-spacing: -.02em; }
.hero p { margin: .3rem 0 0; opacity: .9; }
.tiles { display: grid; gap: .9rem; margin-bottom: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.tiles a { display: flex; flex-direction: column; gap: .55rem; padding: 1rem;
  border-radius: var(--r); text-decoration: none; color: var(--text);
  background: var(--glass); border: 1px solid var(--glass-b); box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease; font-weight: 600; }
.tiles a:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(79,70,229,.18); }
.tiles .ic { width: 40px; height: 40px; flex: none; padding: 9px; border-radius: 12px;
  color: #fff; background: linear-gradient(135deg, var(--a1), var(--a2)); }
.tiles a:nth-child(2) .ic { background: linear-gradient(135deg, #ec4899, #f97316); }
.tiles a:nth-child(3) .ic { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.tiles a:nth-child(4) .ic { background: linear-gradient(135deg, #10b981, #06b6d4); }
.tiles a:nth-child(5) .ic { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.tiles small { font: 400 .78rem var(--mono); color: var(--muted); }
.card { padding: 1.2rem; margin-bottom: 1.2rem; border-radius: var(--r);
  background: var(--glass); border: 1px solid var(--glass-b); box-shadow: var(--shadow); }
/* Befehlszeile */
.cmd { display: flex; align-items: center; gap: .4rem; padding: .35rem;
  margin-bottom: 1.2rem; border-radius: 16px; background: var(--glass);
  border: 1px solid var(--glass-b); box-shadow: var(--shadow); }
.cmd::before { content: ">"; font: 700 1rem var(--mono); color: var(--a1);
  padding-left: .7rem; }
.cmd input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--text); font: 1rem var(--mono); padding: .6rem .3rem; }
.cmd:focus-within { box-shadow: 0 0 0 3px rgba(124,58,237,.25), var(--shadow); }
button, .btn { font: 600 .95rem var(--font); padding: .65rem 1.15rem; border: 0;
  border-radius: 12px; cursor: pointer; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow: 0 6px 16px rgba(79,70,229,.3); display: inline-block; }
button:hover { filter: brightness(1.08); }
button.sec { background: var(--hover); color: var(--text); box-shadow: none; }
/* Ausgabe als Terminal-Karte */
pre, .textfeld { position: relative; margin: 0 0 1.2rem; padding: 1.3rem 1.2rem 1.2rem;
  border-radius: var(--r); background: var(--term); color: var(--term-text);
  font: 13px/1.55 var(--mono); overflow-x: auto; white-space: pre;
  box-shadow: 0 20px 40px -18px rgba(2,6,23,.6); border: 1px solid rgba(255,255,255,.06); }
pre::before { content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 3px; border-radius: var(--r) var(--r) 0 0;
  background: linear-gradient(90deg, var(--a1), var(--a2), var(--a3)); }
pre a { color: #a5b4fc; }
.wraptgl { position: absolute; opacity: 0; pointer-events: none; }
.wraplbl { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem;
  color: var(--muted); cursor: pointer; margin: 0 0 .5rem .2rem; user-select: none; }
.wraplbl::before { content: ""; width: 28px; height: 16px; border-radius: 999px;
  background: var(--glass-b); box-shadow: inset 0 0 0 1px var(--glass-b);
  transition: background .15s; }
.wraptgl:checked + .wraplbl::before { background: linear-gradient(90deg, var(--a1), var(--a2)); }
.wraptgl:checked ~ pre { white-space: pre-wrap; word-break: break-word; }
/* Formulare */
.form { display: grid; gap: .9rem; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .85rem; color: var(--muted); }
.form input, .form textarea { font: 1rem var(--font); width: 100%; color: var(--text);
  padding: .7rem .85rem; border-radius: 12px; border: 1px solid var(--glass-b);
  background: rgba(127,127,127,.06); }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--a1);
  box-shadow: 0 0 0 3px rgba(124,58,237,.2); }
.form textarea { font-family: var(--mono); font-size: .9rem; min-height: 16rem; resize: vertical; }
.form .row { display: grid; gap: .9rem; grid-template-columns: 1fr 9rem; }
.form .actions { display: flex; gap: .6rem; flex-wrap: wrap; }
h1, h2 { letter-spacing: -.015em; }
main > h1 { font-size: 1.5rem; margin: 0 0 1rem; }
/* Fusszeile */
.foot { max-width: 1320px; margin: 0 auto; padding: 0 1.2rem 2rem;
  color: var(--muted); font-size: .82rem; }
.foot a { color: var(--muted); }
.foot details { margin-top: .5rem; }
.foot summary { cursor: pointer; }
.legal { margin-top: .6rem; }
.tabbar { display: none; }
/* Smartphone */
@media (max-width: 860px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .burger { display: block; }
  .brand small { display: none; }
  .layout { display: block; padding: 1rem .9rem; }
  .side { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; width: 82%;
    max-width: 320px; max-height: none; border-radius: 0 24px 24px 0;
    padding: calc(1rem + env(safe-area-inset-top)) .7rem 1rem;
    transform: translateX(-105%); transition: transform .25s ease;
    background: var(--bg); }
  .navtgl:checked ~ .layout .side { transform: none; }
  .navtgl:checked ~ .scrim { display: block; position: fixed; inset: 0; z-index: 40;
    background: rgba(2,6,23,.45); }
  .hero { padding: 1.3rem; }
  .tiles { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .tiles a { display: grid; grid-template-columns: 36px 1fr; column-gap: .65rem;
    row-gap: 0; align-items: center; align-content: center; padding: .75rem; font-size: .9rem; line-height: 1.25; }
  .tiles .ic { width: 36px; height: 36px; padding: 8px; grid-row: span 2; }
  .tiles small { font-size: .72rem; }
  .form .row { grid-template-columns: 1fr 6.5rem; }
  pre, .textfeld { font-size: 12px; padding: 1rem .9rem .9rem; }
  .cmd button { padding: .6rem .9rem; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed;
    z-index: 35; left: .7rem; right: .7rem; bottom: calc(.7rem + env(safe-area-inset-bottom));
    padding: .35rem; border-radius: 22px; background: var(--glass);
    border: 1px solid var(--glass-b); box-shadow: 0 10px 30px rgba(2,6,23,.18);
    -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); }
  .tabbar a, .tabbar label { display: flex; flex-direction: column; align-items: center;
    gap: .15rem; padding: .4rem 0; border-radius: 16px; font-size: .68rem;
    font-weight: 600; color: var(--muted); text-decoration: none; cursor: pointer; }
  .tabbar a:hover, .tabbar label:hover { color: var(--a1); background: var(--hover); }
  .tabbar .ic { width: 22px; height: 22px; }
  .tabbar .new { color: #fff; background: linear-gradient(135deg, var(--a1), var(--a2));
    box-shadow: 0 6px 16px rgba(79,70,229,.35); }
  .tabbar .new:hover { color: #fff; }
}
/* Anmeldeseite */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.auth .box { width: 100%; max-width: 400px; padding: 2rem 1.6rem; border-radius: 24px;
  background: var(--glass); border: 1px solid var(--glass-b); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.auth .logo { width: 52px; height: 52px; border-radius: 16px; display: grid;
  place-items: center; color: #fff; font-weight: 800; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--a1), var(--a2) 55%, var(--a3));
  box-shadow: 0 10px 24px rgba(124,58,237,.4); }
.auth h1 { margin: 0 0 .2rem; font-size: 1.6rem; letter-spacing: -.02em; }
.auth label { display: grid; gap: .3rem; margin: .8rem 0; font-size: .85rem;
  font-weight: 600; color: var(--muted); }
.auth input { font: 1rem var(--font); padding: .75rem .85rem; border-radius: 12px;
  border: 1px solid var(--glass-b); background: rgba(127,127,127,.06); color: var(--text); }
.auth input:focus { outline: 0; border-color: var(--a1); box-shadow: 0 0 0 3px rgba(124,58,237,.2); }
.auth button { width: 100%; margin-top: .6rem; padding: .8rem; }
.auth .guest button { margin-top: .2rem; }
.auth .ok { color: #16a34a; } .auth .err { color: #dc2626; }
.auth small { color: var(--muted); }
.auth .legal { text-align: center; font-size: .85rem; margin-top: 1.2rem; }
.auth .legal a { color: var(--muted); }
