/* DIRKS Heiden – Design abgeleitet von dirks-heiden.de (Stand 01.11.2026)
   Rot als Hausfarbe, dunkles Grau für Text, fette Versalien mit Sperrung,
   eckige Buttons. Fonts: Montserrat (Webseite nutzt eine vergleichbare
   geometrische Grotesk), Fallback Systemschrift. */

/* Montserrat wird nicht von Google geladen (Datenschutz). Die Systemschrift ist der Fallback. */

:root {
  color-scheme: light;
  --red: #a6192e;
  --red-dark: #8a1526;
  --red-soft: #fbeef0;
  --grey-900: #2b2b2b;
  --grey-700: #4a4a4a;
  --grey-500: #6b6b6b;
  --grey-200: #e4e4e4;
  --grey-100: #f5f5f5;
  --bg: #ffffff;
  --card: #ffffff;
  --text: var(--grey-900);
  --muted: var(--grey-500);
  --accent: var(--red);
  --accent-soft: var(--red-soft);
  --ok: #2e7d32;
  --warn: #b45309;
  --radius: 4px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  margin: 0;
  background: var(--grey-100);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
}

/* Kopfbereich: das Maskottchen trägt Logo und Titel, darunter Gewerk und Anfrage-Nr. */
.site-header {
  background: var(--bg);
  color: var(--text);
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-bild {
  display: block;
  width: min(100%, 32rem);
  height: auto;
  margin: 0 auto;
}

.seitenfuss {
  padding: 1.75rem 1rem 2.25rem;
  text-align: center;
}

.seitenfuss .phone {
  display: inline-block;
  color: var(--grey-700);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.seitenfuss .phone:hover {
  color: var(--red);
}

.hero-meta {
  max-width: 32rem;
  margin: 0 auto;
  padding: 0 1rem 1rem;
  text-align: center;
}

.hero-meta:not(:has(p:not([hidden]))) {
  display: none;
}

.gewerk-zeile {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
}

.app {
  padding: 1rem;
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
  padding: 1rem 1rem 1.1rem;
  margin-bottom: 1rem;
}

.card-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.hint {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.progress {
  height: 10px;
  background: var(--grey-200);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  transition: width 0.35s ease;
}

.progress-text {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey-700);
}

.anfrage-zeile {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--grey-700);
}

.fertig-hinweis {
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.8rem;
  background: #e8f5e9;
  border-left: 4px solid var(--ok);
  color: #1b5e20;
  font-size: 0.9rem;
}

.meldung {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  border-left: 4px solid var(--grey-500);
  background: #fff;
  box-shadow: var(--shadow);
}

.meldung.ok {
  border-left-color: var(--ok);
  color: #1b5e20;
  background: #e8f5e9;
}

.meldung.warn {
  border-left-color: var(--warn);
  color: #7a3b00;
  background: #fff4e5;
}

.card-intro {
  border-top-color: var(--grey-700);
}

.card-intro .card-title {
  color: var(--grey-900);
}

.card-block .card-title {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--grey-200);
}

.feld {
  padding: 0.85rem 0 0.9rem;
  border-bottom: 1px solid var(--grey-200);
}

.feld:last-of-type {
  border-bottom: none;
  padding-bottom: 0.3rem;
}

.feld-kopf {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.feld-frage {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

.feld-meta {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.feld-eingabe {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.feld-eingabe input[type="text"],
.feld-eingabe input[type="date"],
.feld-eingabe select {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 0.8rem;
  border: 1px solid #c9c9c9;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--text);
}

.feld-eingabe input:focus,
.feld-eingabe select:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}

.feld-eingabe .einheit {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey-700);
  flex: 0 0 auto;
}

.radio-gruppe {
  flex-wrap: wrap;
  gap: 0.45rem;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #c9c9c9;
  border-radius: var(--radius);
  font-size: 0.92rem;
  cursor: pointer;
  background: #fff;
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 0;
}

.radio input {
  accent-color: var(--red);
  margin: 0;
  flex: 0 0 auto;
}

.radio:has(input:checked) {
  border-color: var(--red);
  background: var(--red-soft);
  font-weight: 600;
}

.feld-zusatz {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 0.55rem;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--grey-700);
  cursor: pointer;
}

.check input {
  accent-color: var(--red);
  margin: 0;
}

.feld.deaktiviert .feld-eingabe {
  opacity: 0.45;
}

.feld.geaendert .feld-frage::after {
  content: " •";
  color: var(--red);
}

.feld-fehler {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--red-dark);
  font-weight: 600;
}

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
  padding-top: 0.15rem;
}

.badge.optional {
  color: var(--grey-500);
}

.optional-details {
  margin-top: 0.5rem;
  border-top: 1px dashed var(--grey-200);
}

.optional-details summary {
  cursor: pointer;
  padding: 0.7rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey-700);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.optional-details summary::-webkit-details-marker {
  display: none;
}

.optional-details summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border: 1px solid var(--grey-500);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

.optional-details[open] summary::before {
  content: "–";
}

.card-optional {
  border-top-color: var(--grey-500);
}

.card-optional .card-title {
  color: var(--grey-700);
}

.aktionen {
  margin: 0.25rem 0 1.25rem;
  text-align: center;
}

.aktionen .btn-primary {
  width: 100%;
  padding: 0.95rem 1.25rem;
}

.aktionen .btn-primary:disabled {
  background: #c9c9c9;
  cursor: default;
}

.senden-hinweis {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.liste-uploads {
  list-style: none;
  margin: 0;
  padding: 0;
}

.upload-item {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.upload-item button {
  width: 100%;
  text-align: left;
  border: none;
  background: #fff;
  padding: 0.85rem 1rem;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.upload-item button:hover {
  background: var(--grey-100);
}

.upload-item button:disabled {
  opacity: 0.65;
  cursor: default;
}

.upload-item.done button {
  background: var(--accent-soft);
}

.upload-item .icon {
  flex: 0 0 1.5rem;
  font-size: 1.2rem;
  line-height: 1.2;
}

.upload-item .label {
  flex: 1;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.upload-item .label-text {
  font-weight: 600;
  line-height: 1.35;
}

.upload-item .label-hinweis {
  font-size: 0.82rem;
  color: var(--muted);
}

.upload-item .fortschritt {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red);
}

.upload-item .haken {
  color: var(--ok);
  font-weight: 800;
  font-size: 1.1rem;
}

.upload-item.voll button {
  background: var(--grey-100);
}

.upload-item .badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}

.upload-item .status {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.upload-item .status.ok {
  color: var(--ok);
}

.upload-item .error {
  color: var(--red-dark);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.field span {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--grey-700);
}

.field input {
  padding: 0.7rem 0.75rem;
  border: 1px solid #c9c9c9;
  border-radius: var(--radius);
  font: inherit;
}

.field input:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}

/* Primärer Button im Website-Stil: rot, Versalien, eckig */
.btn,
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.8rem 1.25rem;
  font: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover,
.btn-primary:hover {
  background: var(--red-dark);
}

.footer-hinweis {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1rem 0;
}

.footer-hinweis a {
  color: var(--red);
  font-weight: 600;
}

.status-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.25rem 1.25rem;
  margin-top: -1.25rem;
  text-align: center;
}

.status-message {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.75rem;
}

.status-detail {
  color: var(--muted);
  margin: 0 0 0.75rem;
  max-width: 22rem;
}

.status-detail a {
  color: var(--red);
  font-weight: 700;
}

.status-aktion {
  margin: 0.25rem 0 1rem;
}

.gueltig-hinweis {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
