/*
 * transfer — gemeinsames Aussehen fuer Empfaenger, Empfangslinks und
 * Verwaltung. Papierton wie bei wann, dazu ein tiefes Blau als einzige
 * Farbe mit Bedeutung: Das ist der Knopf, der etwas tut.
 */

:root {
  --grund: #f5f2ec;
  --karte: #ffffff;
  --karte-2: #faf8f4;
  --tinte: #1b2226;
  --leise: #5f6b70;
  --blass: #8f989c;
  --linie: #e6e1d7;
  --linie-2: #d8d2c5;
  --blau: #1f5aa6;
  --blau-dunkel: #174683;
  --blau-hell: #e6eef8;
  --gruen: #0f6e5c;
  --gruen-hell: #e2f0eb;
  --gelb: #9a6a0c;
  --gelb-hell: #fbf0d6;
  --rot: #b54a3c;
  --rot-hell: #f8e5e1;
  --schatten: 0 1px 2px rgba(27, 34, 38, .06), 0 6px 24px rgba(27, 34, 38, .06);
  --rund: 14px;
  --rund-k: 9px;
  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #121517;
    --karte: #1b2023;
    --karte-2: #20262a;
    --tinte: #e9ecec;
    --leise: #a3adb0;
    --blass: #7b868a;
    --linie: #2b3337;
    --linie-2: #3a4449;
    --blau: #6aa0e8;
    --blau-dunkel: #8db7ef;
    --blau-hell: #1b2a3d;
    --gruen: #3fb596;
    --gruen-hell: #173a31;
    --gelb: #e2ab45;
    --gelb-hell: #3a2f16;
    --rot: #e17c6c;
    --rot-hell: #3e2320;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--grund); color: var(--tinte);
  font: 16px/1.5 var(--schrift); min-height: 100vh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
a { color: var(--blau); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; }
p { margin: 0 0 .8em; }
.leise { color: var(--leise); }
.klein { font-size: .875rem; }
.versteckt { display: none !important; }

.kopfleiste {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 880px; margin: 0 auto; padding: 18px 16px 6px;
}
.marke { font-weight: 700; font-size: 1.15rem; color: var(--tinte); text-decoration: none; letter-spacing: -.01em; }
.marke::before { content: "↗"; color: var(--blau); margin-right: 6px; }

.seite { max-width: 640px; margin: 0 auto; padding: 12px 16px 48px; }
.seite.breit { max-width: 880px; }

.karte {
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--rund);
  box-shadow: var(--schatten); padding: 20px; margin-bottom: 16px;
}

label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 4px; }
label .leise { font-weight: 400; }
input[type=text], input[type=password], input[type=email], input[type=number], select, textarea {
  width: 100%; font: inherit; color: inherit; background: var(--karte-2);
  border: 1px solid var(--linie-2); border-radius: var(--rund-k); padding: 10px 12px;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blau); outline-offset: 1px; border-color: transparent; }
.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .felder { grid-template-columns: 1fr; } }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; border-radius: var(--rund-k); padding: 10px 16px;
  border: 1px solid var(--linie-2); background: var(--karte); color: var(--tinte);
  cursor: pointer; text-decoration: none; min-height: 44px;
}
.knopf:hover { border-color: var(--blass); }
.knopf.haupt { background: var(--blau); border-color: var(--blau); color: #fff; }
.knopf.haupt:hover { background: var(--blau-dunkel); }
.knopf.gefahr { color: var(--rot); }
.knopf.gefahr.sicher { background: var(--rot); border-color: var(--rot); color: #fff; }
.knopf.klein { padding: 6px 10px; min-height: 34px; font-size: .875rem; }
.knopf:disabled { opacity: .5; cursor: default; }
.zeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.zeile.ende { justify-content: flex-end; }
.abstand { margin-top: 16px; }

/* Ablagefeld fuer Dateien */
.ablage {
  border: 2px dashed var(--linie-2); border-radius: var(--rund); padding: 28px 16px;
  text-align: center; cursor: pointer; background: var(--karte-2); transition: border-color .15s, background .15s;
}
.ablage:hover, .ablage.drueber { border-color: var(--blau); background: var(--blau-hell); }
.ablage strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.ablage input { display: none; }

.dateiliste { list-style: none; margin: 12px 0 0; padding: 0; }
.dateiliste li {
  display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--linie);
}
.dateiliste li:last-child { border-bottom: 0; }
.dateiliste .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dateiliste .groesse { color: var(--leise); font-size: .875rem; white-space: nowrap; }
.dateiliste button { background: none; border: 0; color: var(--blass); cursor: pointer; font-size: 1.1rem; padding: 4px 8px; }

.balken { height: 10px; border-radius: 6px; background: var(--linie); overflow: hidden; }
.balken > div { height: 100%; width: 0; background: var(--blau); transition: width .3s; }
.fortschritt-text { display: flex; justify-content: space-between; font-size: .875rem; color: var(--leise); margin-top: 6px; }

.hinweis { border-radius: var(--rund-k); padding: 12px 14px; margin: 12px 0; background: var(--blau-hell); }
.hinweis.gut { background: var(--gruen-hell); }
.hinweis.warn { background: var(--gelb-hell); }
.hinweis.fehler { background: var(--rot-hell); color: var(--rot); }

.link-feld {
  display: flex; gap: 8px; align-items: stretch; margin: 8px 0;
}
.link-feld input { font-family: var(--mono); font-size: .9rem; }

.etikett {
  display: inline-block; font-size: .75rem; font-weight: 600; border-radius: 99px; padding: 2px 9px;
  background: var(--linie); color: var(--leise); white-space: nowrap;
}
.etikett.offen { background: var(--gruen-hell); color: var(--gruen); }
.etikett.bald { background: var(--gelb-hell); color: var(--gelb); }
.etikett.weg { background: var(--linie); color: var(--blass); }

.leer { text-align: center; color: var(--blass); padding: 24px 0; }
.fuss { text-align: center; color: var(--blass); font-size: .8rem; padding: 24px 16px; }
