/* Buchhaltung - Oberflaeche (Paket a0-oberflaeche). Ohne Bauschritt, ohne fremde Dateien. */

:root {
  --grund: #f4f5f7;
  --flaeche: #ffffff;
  --text: #1c2430;
  --leise: #5b6676;
  --rand: #d6dbe2;
  --akzent: #1f5fa8;
  --akzent-text: #ffffff;
  --fehler: #b42318;
  --radius: 10px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #12161c;
    --flaeche: #1b2129;
    --text: #e6e9ee;
    --leise: #9aa4b2;
    --rand: #2e3742;
    --akzent: #5b9be0;
    --akzent-text: #0b1220;
    --fehler: #f28b82;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--grund);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: anywhere;
}

[hidden] { display: none !important; }

h1 { font-size: 1.35rem; margin: 0 0 .25rem; }

.leise { color: var(--leise); margin: 0 0 1rem; }
.klein { font-size: .875rem; }

a { color: var(--akzent); }

.mitte {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.karte {
  width: 100%;
  max-width: 400px;
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 24px 20px;
}

form.karte { display: flex; flex-direction: column; }

label { font-weight: 600; font-size: .9rem; margin: .5rem 0 .25rem; }

input {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--grund);
  border: 1px solid var(--rand);
  border-radius: 8px;
  padding: 10px 12px;
}

input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
}

input.code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1.4rem;
  letter-spacing: .3em;
  text-align: center;
}

button {
  font: inherit;
  font-weight: 600;
  margin-top: 1rem;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid var(--akzent);
  background: var(--akzent);
  color: var(--akzent-text);
  cursor: pointer;
}

button:disabled { opacity: .6; cursor: wait; }

button.nebensache {
  background: transparent;
  color: var(--akzent);
  border-color: var(--rand);
  margin-top: .5rem;
}

.meldung { color: var(--fehler); margin: .75rem 0 0; }

.qr {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto 1rem;
  background: #ffffff;
  border-radius: 8px;
}

.schluessel {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: var(--grund);
  border: 1px solid var(--rand);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0 0 .5rem;
  word-break: break-all;
  user-select: all;
}

.kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 16px;
  background: var(--flaeche);
  border-bottom: 1px solid var(--rand);
}

.kopf .marke { font-weight: 700; }
/* E-Mail in eigener Zeile darunter - passt auch bei 360 px ohne Querlauf. */
.kopf .klein { order: 3; flex: 1 0 100%; margin: 0; }
.kopf button { margin: 0 0 0 auto; padding: 6px 12px; }

.inhalt { padding: 16px; display: flex; justify-content: center; }
.inhalt .karte { max-width: 720px; }
.leer p:last-child { margin-bottom: 0; }
