/* Auftragsportal, ruhige Fassung (Niki 24.11.2026): viel Weißraum, eine Spalte, keine Kästen um
   alles. Bewegung nur, wo sie etwas erklärt (Hochladen, Haken nach dem Senden). */
@font-face { font-family: "Amaranth"; src: url("/fonts/amaranth-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Catamaran"; src: url("/fonts/catamaran-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Catamaran"; src: url("/fonts/catamaran-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --blau: #004AAD;
  --blau-dunkel: #002855;
  --orange: #FFA500;
  --text: #181818;
  --grau: #5f6368;
  --linie: #e3e6eb;
  --flaeche: #f6f7f9;
  --rot: #b3261e;
  --hinweis: #7a4b00;
}

* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; font-family: "Catamaran", system-ui, sans-serif; color: var(--text); line-height: 1.6; background: #fff; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--blau); }
h1, h2 { font-family: "Amaranth", Georgia, serif; line-height: 1.1; margin: 0; color: var(--blau-dunkel); letter-spacing: -.01em; }
h1 { font-size: 2.6rem; margin-bottom: 1.6rem; }
h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }

.kopf { background: linear-gradient(170deg, #002855 0%, #004AAD 100%); padding: .6rem 1.5rem; }
.kopf-innen { max-width: 640px; margin: 0 auto; }
.kopf img { height: 44px; width: auto; display: block; }

main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 4rem 1.5rem 5rem; }
.karte { margin-bottom: 2rem; }
.schmal { max-width: 520px; }
.leise { color: var(--grau); }

label { display: block; font-weight: 600; margin: 1.2rem 0 .4rem; }
input[type="email"], input[type="text"], textarea, select {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  padding: .8rem 1rem; border: 1px solid #cfd4dc; border-radius: 12px; transition: border-color .15s;
}
textarea { min-height: 220px; resize: vertical; font-size: 1.05rem; line-height: 1.55; display: block; }
textarea::placeholder { color: #8a9099; }
input:hover, textarea:hover, select:hover { border-color: #aab1bc; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, .anhang:focus-within, .danke:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px;
}
#kunde-wahl { margin-bottom: 1.2rem; }
#kunde-wahl label { margin-top: 0; }

.hilfe { color: var(--grau); font-size: .92rem; margin: .5rem 0 0; }
.hinweis { color: var(--hinweis); font-size: .95rem; margin: .6rem 0 0; padding-left: 1.1rem; position: relative; }
.hinweis::before { content: ""; position: absolute; left: 0; top: .6em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--orange); }
.hinweis:empty { display: none; }

button {
  font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; font-size: .95rem; cursor: pointer;
  border: 0; border-radius: 999px; padding: .85rem 1.7rem; background: var(--blau); color: #fff;
}
button.haupt { background: var(--orange); color: #181818; margin-top: 2rem; }
button:disabled { opacity: .55; cursor: wait; }
.textknopf { background: none; color: var(--grau); padding: 0; font-family: inherit; font-weight: 400; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; border-radius: 0; }
.textknopf:hover { color: var(--text); }
.leise-knopf { background: var(--flaeche); color: var(--text); margin-top: 1.5rem; }

/* Anhängen: kein Kasten, eine Zeile. Beim Darüberziehen wird die Fläche sichtbar. */
.ablage { margin-top: 1.4rem; padding: .7rem 0; border-radius: 12px; transition: background .15s, padding .15s; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.ablage.ueber { background: #eef3fb; padding: .7rem 1rem; }
.ablage input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.anhang { margin: 0; display: inline-flex; align-items: center; gap: .5rem; color: var(--blau); font-weight: 600; cursor: pointer; }
.anhang::before { content: "+"; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1.5px solid currentColor; font-weight: 400; line-height: 1; }
.ablage .hilfe { margin: 0; }
@media (pointer: coarse) { .ablage .hilfe { display: none; } } /* Am Handy zieht niemand Dateien */
.dateiliste { list-style: none; padding: 0; margin: .3rem 0 0; }
.dateiliste li { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; align-items: baseline; padding: .55rem 0; border-top: 1px solid var(--linie); font-size: .95rem; }
.dateiliste .name { overflow-wrap: anywhere; }
.dateiliste progress { grid-column: 1 / -1; width: 100%; height: 4px; margin-top: .4rem; appearance: none; border: 0; background: var(--linie); border-radius: 2px; }
.dateiliste progress::-webkit-progress-bar { background: var(--linie); border-radius: 2px; }
.dateiliste progress::-webkit-progress-value { background: var(--blau); border-radius: 2px; }
.dateiliste progress::-moz-progress-bar { background: var(--blau); }
.stand-datei { grid-column: 1 / -1; font-size: .85rem; color: var(--grau); }
.stand-datei.fehler { color: var(--rot); }

.meldung { margin: 1rem 0 0; font-size: .97rem; }
.meldung:empty { display: none; }
.meldung.gut { color: #12491c; }
.meldung.schlecht { color: var(--rot); }
.meldung.info { color: var(--grau); }
#laden.meldung.schlecht { margin-bottom: 2rem; }

/* Danke: das Formular macht Platz, ein Haken zeichnet sich. */
.danke { text-align: center; padding: 1rem 0 1rem; }
.danke h1 { margin: 1.2rem 0 .8rem; }
.danke p { color: var(--grau); max-width: 30rem; margin: 0 auto .6rem; }
.danke .gross { font-size: 1.25rem; color: var(--text); }
.haken { width: 64px; height: 64px; display: block; margin: 0 auto; fill: none; stroke: var(--blau); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.haken circle { stroke: var(--linie); }
.danke.neu .haken path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: zeichnen .5s .15s ease-out forwards; }
@keyframes zeichnen { to { stroke-dashoffset: 0; } }

/* Aufträge: Liste ohne Tabelle, Stand als drei Punkte. */
#bereich-liste { margin-top: 4.5rem; }
.auftraege { list-style: none; margin: 0; padding: 0; }
.auftrag { padding: 1.3rem 0; border-top: 1px solid var(--linie); }
.auftrag-kopf { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: .82rem; color: var(--grau); letter-spacing: .01em; }
.auftrag-text { margin: .3rem 0 .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.auftrag-rueckfrage { margin: .6rem 0 0; font-size: .9rem; color: var(--hinweis); }
.stand { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); font-size: .82rem; color: #8a9099; position: relative; --weit: 0; }
.stand.stufe-1 { --weit: .5; }
.stand.stufe-2 { --weit: 1; }
.stand::before, .stand::after { content: ""; position: absolute; top: 4px; left: 4px; height: 1.5px; }
.stand::before { right: 4px; background: var(--linie); }
.stand::after { width: calc((100% - 8px) * var(--weit)); background: var(--blau); }
.stand li { position: relative; padding-top: 1.1rem; }
.stand li:nth-child(2) { text-align: center; }
.stand li:nth-child(3) { text-align: right; }
.stand li::before { content: ""; position: absolute; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 1.5px solid #c3c8d0; z-index: 1; }
.stand li:nth-child(2)::before { left: calc(50% - 4.5px); }
.stand li:nth-child(3)::before { left: auto; right: 0; }
.stand li.an { color: var(--text); }
.stand li.an::before { background: var(--blau); border-color: var(--blau); }

.fuss { text-align: center; color: var(--grau); font-size: .85rem; padding: 2rem 1.5rem 2.5rem; }
.fuss:has(#wer:empty) { display: none; }

.balken { width: 100%; margin-top: 1rem; }
.versteckt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .danke.neu .haken path { animation: none; stroke-dashoffset: 0; }
}
@media (max-width: 560px) {
  html { font-size: 17.5px; }
  h1 { font-size: 2.1rem; }
  main { padding-top: 2.5rem; }
}
