/* OpenBCM - Design "Klar" (http/klar.css)
 * Hell, freundlich, uebersichtlich. Wird einmalig erzeugt und nie
 * ueberschrieben. Farben unten anpassen, Datei loeschen stellt die
 * Vorgabe wieder her.
 * Bright, friendly, tidy. Created once, never overwritten.
 */
:root {
  --bg: #f7f9fc;        /* Seitenhintergrund / page background */
  --card: #ffffff;      /* Flaechen / surfaces */
  --text: #1d2733;      /* Schrift / text */
  --muted: #5d6877;     /* Nebentext / secondary text */
  --line: #dfe5ee;      /* Linien / borders */
  --acc: #1d5fd1;       /* Akzentfarbe / accent colour */
  --acc-soft: #e6eefc;  /* helle Akzentflaeche / soft accent */
  --sun: #ffd76a;       /* Markierung fuer Neues / marker for new items */
  --r: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14181d; --card: #1d232a; --text: #e9edf1; --muted: #a3adb9;
    --line: #313a45; --acc: #7fb0ff; --acc-soft: #1f2f4a; color-scheme: dark; }
  .write, button, .btn, pre center a:first-child, pre .bgrp a:hover { color: #0b1a33; }
  .form input, .form textarea, .auth input { background: #14181d; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.5 var(--font); }
a { color: var(--acc); }
.ic { width: 22px; height: 22px; flex: 0 0 22px; display: inline-block; }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Kopf */
.bar { display: flex; align-items: center; gap: .8rem; max-width: 820px;
  margin: 0 auto; padding: 1rem 1rem .6rem;
  padding-top: max(1rem, env(safe-area-inset-top)); }
.brand { display: flex; align-items: center; gap: .6rem; min-width: 0;
  color: var(--text); text-decoration: none; }
.brand img { height: 36px; border-radius: 8px; }
.brand b { font-size: 1.25rem; }
.brand small { display: block; color: var(--muted); font-size: .85rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who { margin-left: auto; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.who b { color: var(--text); }
.write { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .95rem;
  border-radius: 999px; background: var(--acc); color: #fff; font-weight: 600;
  text-decoration: none; white-space: nowrap; }
.write:hover { filter: brightness(1.08); }
.navtgl { position: absolute; opacity: 0; pointer-events: none; }
/* Hauptpunkte */
.tabs { position: sticky; top: 0; z-index: 20; background: var(--bg);
  border-bottom: 1px solid var(--line); }
.tabs div { display: flex; max-width: 820px; margin: 0 auto; padding: 0 .5rem; }
.tabs a, .tabs label { flex: 1; text-align: center; padding: .7rem .2rem .6rem;
  color: var(--muted); font-weight: 600; text-decoration: none; cursor: pointer;
  border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover, .tabs label:hover { color: var(--text); }
.tabs a.on { color: var(--acc); border-bottom-color: var(--acc); }
.navtgl:checked ~ .tabs a.on { color: var(--muted); border-bottom-color: transparent; }
.navtgl:checked ~ .tabs label { color: var(--acc); border-bottom-color: var(--acc); }
/* Aufbau: eine Spalte */
.layout { max-width: 820px; margin: 0 auto; padding: 1.2rem 1rem 2rem; }
main { min-width: 0; }
main > h1 { font-size: 1.5rem; margin: .2rem 0 1rem; }
.hello { margin: .3rem 0 1.1rem; }
.hello h1 { margin: 0; font-size: 1.6rem; }
.hello p { margin: .15rem 0 0; color: var(--muted); }
/* "Mehr": alle weiteren Punkte, nur bei Bedarf sichtbar */
.side { display: none; margin-bottom: 1.2rem; padding: 1rem 1.1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  columns: 3 13rem; column-gap: 1.5rem; }
.navtgl:checked ~ .layout .side { display: block; }
.navtgl:checked ~ .layout main { display: none; }
.side h3 { margin: 1rem 0 .2rem; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); break-after: avoid; }
.side h3:first-of-type { margin-top: 0; }
.side a { display: block; padding: .4rem 0; color: var(--text);
  text-decoration: none; break-inside: avoid; }
.side a:hover { color: var(--acc); text-decoration: underline; }
.cmd { display: flex; gap: .5rem; column-span: all; margin-bottom: 1rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.cmd input { flex: 1; min-width: 0; font: 1rem var(--mono); padding: .6rem .8rem;
  color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; }
.cmd input:focus, .form input:focus, .form textarea:focus, .auth input:focus {
  outline: 2px solid var(--acc); outline-offset: 1px; }
button, .btn { font: 600 1rem var(--font); padding: .65rem 1.2rem; border: 0;
  border-radius: 999px; cursor: pointer; background: var(--acc); color: #fff;
  text-decoration: none; display: inline-block; }
button:hover, .btn:hover { filter: brightness(1.08); }
button.sec { background: var(--acc-soft); color: var(--acc); }
/* Startseite: grosse, klare Auswahl */
.tiles { display: grid; gap: .6rem; margin-bottom: 1.2rem; }
.tiles a { display: grid; grid-template-columns: 46px 1fr; column-gap: .9rem;
  align-items: center; padding: .9rem 1rem; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); color: var(--text);
  text-decoration: none; font-weight: 600; font-size: 1.08rem; }
.tiles a:hover { border-color: var(--acc); }
.tiles .ic { width: 46px; height: 46px; padding: 11px; border-radius: 50%;
  grid-row: span 2; background: var(--acc-soft); color: var(--acc); }
.tiles small { font-weight: 400; font-size: .92rem; color: var(--muted); }
.card { padding: 1rem 1.1rem; margin-bottom: 1.2rem; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); }
/* Ausgabe */
pre, .textfeld { margin: 0 0 1.2rem; padding: 1rem 1.1rem; background: var(--card);
  color: var(--text); border: 1px solid var(--line); border-radius: var(--r);
  font: 14px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word;
  overflow-x: auto; }
.wraptgl, .wraplbl { display: none; }
/* Nachricht lesen */
pre .mhead { display: block; white-space: normal; font-family: var(--font);
  margin-bottom: .6rem; }
pre .mhead b { display: block; font-size: 1.3rem; line-height: 1.3; }
pre .mhead span { color: var(--muted); font-size: .95rem; }
pre .tech { color: var(--muted); font-size: 12px; margin-bottom: 1rem;
  padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
pre .tech summary { font: .9rem var(--font); cursor: pointer; }
/* Nachrichtenlisten als Zeilen */
pre .msg { display: block; white-space: normal; font: 1rem/1.4 var(--font);
  padding: .7rem .2rem .7rem 1.1rem; margin: 0; color: var(--text);
  text-decoration: none; border-top: 1px solid var(--line); position: relative; }
pre .msg:hover { background: var(--acc-soft); }
pre > .msg:first-child, pre > .bgrp:first-child { border-top: 0; }
pre .msg b { display: block; font-weight: 600; }
pre .msg span { display: block; color: var(--muted); font-size: .88rem; }
pre .msg.new b { font-weight: 700; }
pre .msg.new::before { content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 10px; height: 10px; border-radius: 50%; background: var(--sun);
  box-shadow: 0 0 0 1px #d9a514; }
/* Rubriken */
pre .bgrp { display: block; white-space: normal; font: 1rem/1.4 var(--font);
  padding: .6rem 0; border-top: 1px solid var(--line); }
pre .bgrp a { display: inline-block; margin: .15rem .3rem .15rem 0; padding: .25rem .7rem;
  border-radius: 999px; background: var(--acc-soft); color: var(--acc);
  text-decoration: none; font-size: .92rem; }
pre .bgrp a:hover { background: var(--acc); color: #fff; }
pre .bgrp a.bmain { display: block; background: none; padding-left: 0;
  color: var(--text); font-weight: 700; font-size: 1.05rem; }
pre .bgrp a.bmain:hover { color: var(--acc); background: none; }
/* Aktionen unter einer Nachricht */
pre hr, pre br { display: none; }
pre center { display: flex; flex-wrap: wrap; gap: .5rem; font-size: 0;
  white-space: normal; margin-top: .4rem; padding-top: 1rem;
  border-top: 1px solid var(--line); }
pre center a { font: 600 .95rem var(--font); padding: .5rem 1rem; border-radius: 999px;
  background: var(--acc-soft); color: var(--acc); text-decoration: none; }
pre center a:first-child { background: var(--acc); color: #fff; }
pre center a font { color: inherit; }
/* Formulare */
.form { display: grid; gap: .9rem; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.form input, .form textarea { font: 1rem var(--font); width: 100%; color: var(--text);
  padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; }
.form textarea { font-family: var(--mono); font-size: .92rem; min-height: 15rem;
  resize: vertical; }
.form .row { display: grid; gap: .9rem; grid-template-columns: 1fr 10rem; }
.form .actions { display: flex; gap: .6rem; flex-wrap: wrap; }
/* Fuss */
.foot { max-width: 820px; margin: 0 auto; padding: 0 1rem 2rem; color: var(--muted);
  font-size: .88rem; }
.foot a { color: var(--muted); }
.foot details { margin-top: .4rem; }
.foot summary { cursor: pointer; }
.legal { margin-top: .5rem; }
@media (min-width: 700px) {
  .tiles { grid-template-columns: 1fr 1fr; }
}
/* Smartphone */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand small { display: none; }
  .who { display: none; }
  .write { margin-left: auto; }
  .tabs a, .tabs label { font-size: .92rem; }
  .layout { padding: 1rem .8rem 2rem; }
  .form .row { grid-template-columns: 1fr 7rem; }
  pre, .textfeld { font-size: 12.5px; padding: .8rem .85rem; }
}
/* Anmeldeseite */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 1.2rem; }
.auth .box { width: 100%; max-width: 420px; padding: 1.8rem 1.5rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 20px; }
.auth .logo { width: 56px; height: 56px; border-radius: 50%; display: grid;
  place-items: center; margin-bottom: .9rem; background: var(--acc-soft);
  color: var(--acc); font-weight: 800; }
.auth h1 { margin: 0 0 .1rem; font-size: 1.6rem; }
.auth label { display: grid; gap: .3rem; margin: .8rem 0; font-weight: 600;
  font-size: .95rem; }
.auth input { font: 1rem var(--font); padding: .7rem .8rem; color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.auth button { width: 100%; margin-top: .5rem; padding: .8rem; }
.auth .guest button { margin-top: .2rem; }
.auth .ok { color: #17803d; } .auth .err { color: #c62828; }
.auth small { color: var(--muted); }
.auth .legal { text-align: center; font-size: .9rem; margin-top: 1.1rem; }
.auth .legal a { color: var(--muted); }
