/* OpenBCM - modern web surface (http/modern.css)
 *
 * This file is created once by the mailbox and never overwritten.
 * Change the colours below to adapt the look to your box,
 * delete the file to get the default back.
 *
 * Diese Datei wird einmalig von der Mailbox erzeugt und danach nicht
 * mehr ueberschrieben. Farben unten anpassen; Datei loeschen stellt
 * die Vorgabe wieder her.
 */
:root {
  --accent: #1f6feb;        /* Akzentfarbe / accent colour */
  --accent-text: #ffffff;   /* Schrift auf Akzent / text on accent */
  --bg: #f4f6f9;            /* Seitenhintergrund / page background */
  --card: #ffffff;          /* Flaechen / cards */
  --text: #1c2330;
  --muted: #5b6474;
  --border: #d9dee7;
  --pre-bg: #0f1720;        /* Hintergrund Befehlsausgabe */
  --pre-text: #e6edf3;      /* Schrift Befehlsausgabe */
  --link: #1f6feb;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117; --card: #161b22; --text: #e6edf3; --muted: #9aa4b2;
    --border: #30363d; --pre-bg: #010409; --pre-text: #e6edf3; --link: #58a6ff;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 var(--font); }
a { color: var(--link); }
a:hover { text-decoration: none; }
/* Kopfleiste / top bar */
.bar { position: sticky; top: 0; z-index: 10; display: flex;
  align-items: center; gap: .75rem; padding: .6rem 1rem;
  background: var(--accent); color: var(--accent-text);
  box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.bar a { color: inherit; text-decoration: none; }
.brand { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.brand img { height: 32px; width: auto; border-radius: 4px; }
.brand b { font-size: 1.15rem; white-space: nowrap; }
.brand small { opacity: .85; font-size: .8rem; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.who { margin-left: auto; font: 600 .9rem var(--mono);
  background: rgba(255,255,255,.18); padding: .2rem .55rem;
  border-radius: 999px; white-space: nowrap; }
.burger { display: none; cursor: pointer; font-size: 1.5rem;
  line-height: 1; padding: .2rem .4rem; border-radius: 6px; }
.burger:hover { background: rgba(255,255,255,.15); }
.navtgl { position: absolute; opacity: 0; pointer-events: none; }
/* Aufbau / layout */
.layout { display: flex; max-width: 1280px; margin: 0 auto;
  gap: 1rem; padding: 1rem; align-items: flex-start; }
.side { flex: 0 0 230px; position: sticky; top: 4.2rem;
  max-height: calc(100vh - 5rem); overflow-y: auto;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .5rem 0; }
.side h3 { margin: .7rem 1rem .2rem; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side a { display: block; padding: .45rem 1rem; color: var(--text);
  text-decoration: none; border-left: 3px solid transparent; }
.side a:hover { background: var(--bg); border-left-color: var(--accent); }
main { flex: 1; min-width: 0; }
/* Befehlszeile / command line */
.cmd { display: flex; gap: .5rem; margin-bottom: 1rem; }
.cmd input { flex: 1; min-width: 0; font: 1rem var(--mono);
  padding: .65rem .8rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--card); color: var(--text); }
.cmd input:focus, .form input:focus, .form textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; }
button, .btn { font: 600 1rem var(--font); padding: .65rem 1.1rem;
  border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--accent); color: var(--accent-text);
  text-decoration: none; display: inline-block; }
button.sec { background: var(--border); color: var(--text); }
/* Schnellzugriff / quick tiles */
.tiles { display: grid; gap: .6rem; margin-bottom: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tiles a { display: block; padding: .8rem 1rem; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); text-decoration: none; font-weight: 600; }
.tiles a small { display: block; font: .8rem var(--mono);
  color: var(--muted); font-weight: 400; }
.tiles a:hover { border-color: var(--accent); }
.card { background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
/* Ausgabe der Mailbox / mailbox output */
pre, .textfeld { background: var(--pre-bg); color: var(--pre-text);
  font: 13px/1.45 var(--mono); padding: 1rem; margin: 0 0 1rem;
  border-radius: var(--radius); overflow-x: auto; white-space: pre; }
pre a { color: #7cc4ff; }
.wraptgl { position: absolute; opacity: 0; pointer-events: none; }
.wraplbl { display: inline-block; font-size: .85rem; color: var(--muted);
  cursor: pointer; margin-bottom: .4rem; user-select: none; }
.wraplbl::before { content: "\2610  "; }
.wraptgl:checked + .wraplbl::before { content: "\2611  "; }
.wraptgl:checked ~ pre { white-space: pre-wrap; word-break: break-word; }
/* Formulare / forms */
.form { display: grid; gap: .8rem; }
.form label { display: grid; gap: .25rem; font-weight: 600; font-size: .9rem; }
.form input, .form textarea { font: 1rem var(--font); width: 100%;
  padding: .6rem .7rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--card); color: var(--text); }
.form textarea { font-family: var(--mono); font-size: .9rem;
  min-height: 16rem; resize: vertical; }
.form .row { display: grid; gap: .8rem; grid-template-columns: 1fr 8rem; }
.form .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
h1, h2 { font-size: 1.3rem; margin: 0 0 1rem; }
/* Fusszeile / footer */
.foot { max-width: 1280px; margin: 0 auto; padding: 0 1rem 2rem;
  color: var(--muted); font-size: .85rem; }
.foot a { color: var(--muted); }
.foot details { margin-top: .5rem; }
.foot summary { cursor: pointer; }
/* Smartphone */
@media (max-width: 800px) {
  .burger { display: block; }
  .layout { display: block; padding: .75rem; }
  .side { display: none; position: static; max-height: none;
    margin-bottom: .75rem; }
  .navtgl:checked ~ .layout .side { display: block; }
  .brand small { display: none; }
  pre, .textfeld { font-size: 12px; padding: .75rem; }
  .form .row { grid-template-columns: 1fr 6rem; }
  .cmd button { padding: .65rem .8rem; }
}
/* Login-/Fehlerseite / login and error page */
.msgbox { max-width: 34rem; margin: 3rem auto; padding: 1.5rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); }
