/* Abgezeichnet – ein CSS-File. Mobile-first (390 px zuerst). */
:root {
  --gruen: #1f7a4d;
  --gruen-dunkel: #155c39;
  --rot: #b3261e;
  --text: #1a1a1a;
  --grau: #6b7280;
  --rahmen: #d7d9dd;
  --bg: #f5f6f8;
  --weiss: #ffffff;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  background: var(--weiss);
  border-bottom: 1px solid var(--rahmen);
}
.marke { font-weight: 700; font-size: 1.15rem; color: var(--gruen); text-decoration: none; }

.inhalt { max-width: 420px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }

h1 { font-size: 1.4rem; margin: 0.25rem 0 1rem; }
p.hinweis { color: var(--grau); font-size: 0.92rem; }

.karte {
  background: var(--weiss);
  border: 1px solid var(--rahmen);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

label { display: block; font-weight: 600; font-size: 0.9rem; margin: 0.85rem 0 0.3rem; }
input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--rahmen);
  border-radius: 8px;
  background: var(--weiss);
}
input:focus { outline: 2px solid var(--gruen); border-color: var(--gruen); }

select, textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--rahmen);
  border-radius: 8px;
  background: var(--weiss);
  font-family: inherit;
}
select:focus, textarea:focus { outline: 2px solid var(--gruen); border-color: var(--gruen); }

table.meta-liste { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; }
table.meta-liste td { padding: 0.5rem 0.3rem; border-bottom: 1px solid var(--rahmen); font-size: 0.92rem; }
table.meta-liste td:first-child { color: var(--grau); width: 42%; }

input.code {
  text-align: center;
  letter-spacing: 0.4em;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.knopf {
  display: block;
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--weiss);
  background: var(--gruen);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.knopf:hover { background: var(--gruen-dunkel); }
.knopf:disabled { background: #a9c7b6; cursor: default; }
/* Ladezustand (Etappe 6): während PDF-Erzeugung o.ä. */
.laedt { opacity: 0.7; pointer-events: none; }
.knopf-text {
  background: none; border: none; color: var(--grau);
  font: inherit; cursor: pointer; padding: 0;
}
.abmelden-form { margin: 0; }

.link-zeile { margin-top: 1rem; font-size: 0.92rem; text-align: center; }
a { color: var(--gruen-dunkel); }

.meldungen { margin-bottom: 1rem; }
.meldung {
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}
.meldung--fehler { background: #fdecea; color: var(--rot); border: 1px solid #f5c6c2; }
.meldung--ok { background: #e7f4ec; color: var(--gruen-dunkel); border: 1px solid #b7e0c6; }

.qr-bild {
  display: block;
  width: 220px; height: 220px;
  margin: 1rem auto;
  border: 1px solid var(--rahmen);
  border-radius: 8px;
}
.secret {
  font-family: ui-monospace, monospace;
  background: var(--bg);
  border: 1px dashed var(--rahmen);
  border-radius: 6px;
  padding: 0.5rem;
  text-align: center;
  word-break: break-all;
  font-size: 0.85rem;
}

.leer-zustand { text-align: center; color: var(--grau); padding: 2rem 1rem; }

/* Listen & Zeilen */
.liste { margin-top: 1rem; }
.zeile {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.zeile-link { text-decoration: none; color: inherit; }
.zeile-link:hover { border-color: var(--gruen); }
.zeile-titel { font-weight: 600; }
.zeile.inaktiv { opacity: 0.6; }
.zeile-aktionen { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; white-space: nowrap; }
.zeile-aktionen form { margin: 0; }
.pfeil { color: var(--grau); font-size: 1.4rem; }

/* Ampel (Formvorschriften) */
.ampel { font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.ampel-gruen { color: var(--gruen); }
.ampel-rot { color: var(--rot); }

/* Badges */
.badge { font-size: 0.72rem; padding: 0.1rem 0.45rem; border-radius: 999px; vertical-align: middle; }
.badge-grau { background: #eceef1; color: var(--grau); }

/* Vorlagen-Detail */
.disclaimer {
  margin-top: 1rem; font-size: 0.82rem; color: var(--grau);
  border-top: 1px solid var(--rahmen); padding-top: 0.75rem; font-style: italic;
}
.dok-vorschau {
  border: 1px solid var(--rahmen); border-radius: 8px; padding: 0.75rem;
  background: var(--bg); font-size: 0.9rem; margin-top: 0.5rem;
}
.dok-vorschau h1 { font-size: 1.1rem; }
.dok-vorschau h2 { font-size: 0.95rem; margin: 0.75rem 0 0.25rem; }
summary { cursor: pointer; font-weight: 600; }
code { font-family: ui-monospace, monospace; font-size: 0.85em; }

/* Etwas mehr Luft auf größeren Schirmen */
@media (min-width: 640px) {
  .inhalt { padding-top: 2rem; }
}
