/*
 * Upload-Seite im levweb-Design.
 * Farben, Schriften und Formen sind aus design/levweb übernommen, damit die
 * Seite für den Kunden erkennbar zum Rest gehört. Zwei Rollen fehlten dort und
 * sind hier ergänzt: --warm trägt jetzt Störungen, --sage den Erfolg.
 */

:root {
  --bg: #F5F1EA;
  --bg-2: #EDE8DD;
  --bg-soft: #FBF8F2;
  --ink: #1A1814;
  --ink-2: #3D372F;
  --mute: #7A6F62;
  --mute-2: #B0A698;
  --line: rgba(26, 24, 20, .12);
  --line-soft: rgba(26, 24, 20, .07);
  --sage: #5C8F73;
  --sage-d: #3F7053;
  --sage-soft: #E0EBE3;
  --warm: #C97C5D;
  --warm-soft: #F6E7E0;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
::selection { background: var(--sage); color: var(--bg); }

/* ---------- Kopf ---------- */

.banner {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 14, "wght" 400;
  font-size: .9rem;
  color: var(--mute);
  padding: .7rem 2rem;
  text-align: center;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2.5rem;
  background: rgba(245, 241, 234, .85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "wght" 700;
  font-size: 1.45rem;
  letter-spacing: -.025em;
  display: flex;
  align-items: baseline;
  gap: .05em;
}
.logo span { color: var(--sage); font-style: italic; }

.back { font-size: .93rem; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.back:hover { color: var(--sage-d); }

/* ---------- Inhalt ---------- */

.content { max-width: 760px; margin: 0 auto; padding: 4rem 2.5rem 5rem; }

.sub {
  color: var(--mute);
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 1rem;
}

h1 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96, "wght" 600;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 1.2rem;
}
h1 em { font-style: italic; color: var(--sage); }

h2 {
  font-family: var(--serif);
  font-variation-settings: "wght" 600;
  font-size: 1.25rem;
  letter-spacing: -.01em;
  margin: 0 0 .7rem;
}

p { color: var(--ink-2); margin-bottom: .8rem; }
.lead { font-size: 1.02rem; }
.mute { color: var(--mute); }
a.link { color: var(--sage-d); text-decoration: underline; }

.note {
  background: var(--bg-2);
  border-left: 3px solid var(--sage);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .93rem;
  color: var(--ink-2);
  border-radius: 0 4px 4px 0;
}

.hinweis-klein { font-size: .88rem; color: var(--mute); margin-top: 1.2rem; }

/* ---------- Ablagefläche ---------- */

.ablage {
  margin: 2rem 0 1.2rem;
  border: 1.5px dashed var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
  transition: border-color .25s, background .25s;
}
.ablage:hover, .ablage:focus-within { border-color: var(--sage); }
.ablage.hover { border-color: var(--sage); background: var(--sage-soft); }

/* Das Feld selbst bleibt bedienbar, ist aber optisch durch das Label ersetzt. */
.datei-input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.ablage-inhalt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: 3rem 1.5rem;
  cursor: pointer;
  text-align: center;
}
.datei-input:focus-visible + .ablage-inhalt { outline: 2px solid var(--sage-d); outline-offset: 4px; border-radius: 16px; }

/* Sieht aus wie eine Schaltflaeche und ist eine: der Klick geht durch das
   Label an das darunterliegende Dateifeld. */
.ablage-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.6rem;
  min-height: 48px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 100px;
  font-weight: 500;
  font-size: .98rem;
  transition: background .25s, transform .25s;
}
.ablage:hover .ablage-knopf { background: var(--sage-d); transform: translateY(-1px); }
.ablage-klein { font-size: .9rem; color: var(--mute); }

/* ---------- Dateiliste ---------- */

.liste { list-style: none; margin: 0 0 1.4rem; }
.liste li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1.1rem;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  margin-bottom: .5rem;
  font-size: .95rem;
}
.liste .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste .groesse { color: var(--mute); flex-shrink: 0; }

/* ---------- Bestätigung + Schaltflächen ---------- */

.bestaetigung {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin: 1.6rem 0;
  font-size: .93rem;
  color: var(--ink-2);
}
.bestaetigung input {
  margin-top: .25rem;
  width: 18px; height: 18px;
  accent-color: var(--sage-d);
  flex-shrink: 0;
}
.bestaetigung label { cursor: pointer; }

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1.4rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .95rem;
  min-height: 48px;
  cursor: pointer;
  transition: all .25s;
}
.btn-primary { background: var(--ink); color: var(--bg); border: 1.5px solid var(--ink); }
.btn-primary:hover:not(:disabled) { background: var(--sage-d); border-color: var(--sage-d); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary .arr { transition: transform .25s; }
.btn-primary:hover:not(:disabled) .arr { transform: translateX(2px); }

.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }

/* ---------- Fortschritt ---------- */

.balken {
  height: 12px;
  background: var(--bg-2);
  border-radius: 100px;
  overflow: hidden;
  margin: 2rem 0 .8rem;
}
.balken-fuellung {
  height: 100%;
  width: 0;
  background: var(--sage);
  border-radius: 100px;
  transition: width .4s cubic-bezier(.22, 1, .36, 1);
}
.balken-text {
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "wght" 600;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}
.balken-text .mute { font-family: var(--sans); font-size: .95rem; font-weight: 400; }

.stoerung {
  background: var(--warm-soft);
  border-left: 3px solid var(--warm);
  padding: .9rem 1.15rem;
  border-radius: 0 4px 4px 0;
  font-size: .93rem;
  margin-bottom: 1.4rem;
}

/* ---------- Belegkarte ---------- */

.beleg-karte {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  margin: 1.8rem 0;
}
.beleg-zeile {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 0;
  margin: 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .95rem;
}
.beleg-zeile:last-child { border-bottom: 0; }
.beleg-zeile span { color: var(--mute); }
.beleg-zeile strong { font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* ---------- Rechtsblock + Fuß ---------- */

.rechtsblock {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: .93rem;
}
.rechtsblock p { color: var(--mute); }
.rechtsblock strong { color: var(--ink-2); }

footer {
  padding: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .88rem;
  color: var(--mute);
  max-width: 760px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--line);
}
footer a { transition: color .25s; }
footer a:hover { color: var(--sage-d); }

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 640px) {
  .top { padding: 1rem 1.25rem; }
  .content { padding: 2.5rem 1.25rem 3.5rem; }
  .ablage-inhalt { padding: 2.2rem 1rem; }
  footer { padding: 2rem 1.25rem; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    transition-duration: .001s !important;
  }
  html { scroll-behavior: auto; }
}
