/* Imker-Nachbarschafts-Kit – mobil zuerst, keine externen Ressourcen. */
:root {
  --ink: #1b1b1b;
  --muted: #4a4a4a;
  --bg: #faf7ef;
  --card: #fff;
  --accent: #7a4b00;
  --accent-dark: #5a3700;
  --err: #a11a1a;
  --line: #c9c1ad;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; overflow-wrap: anywhere; }
a { color: #6a3f00; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible, summary:focus-visible {
  outline: 3px solid #1a4f8a;
  outline-offset: 2px;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.screen { max-width: 76rem; margin: 0 auto; padding: 1rem; }
.head h1 { font-size: 1.6rem; line-height: 1.2; margin: 0.5rem 0; color: var(--accent-dark); }
.lead { font-size: 1.1rem; margin: 0.25rem 0; }
.lead-sub { margin: 0.25rem 0 0.5rem; color: var(--muted); }
.disclaimer { font-size: 0.875rem; color: var(--muted); }
.hint { font-size: 0.875rem; color: var(--muted); display: block; margin: 0.25rem 0; }
.small { font-size: 0.875rem; color: var(--muted); }
.req { color: var(--err); font-weight: 600; font-size: 0.875rem; }
.opt { color: var(--muted); font-size: 0.875rem; }
.err { color: var(--err); font-size: 0.9rem; display: block; min-height: 0; margin: 0.15rem 0 0; }
.err:empty { display: none; }
.status { margin-left: 0.5rem; }

.layout { display: grid; gap: 1.5rem; }
.form, .outputs { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; min-width: 0; }
.form h2, .outputs h2 { margin-top: 0; font-size: 1.25rem; }
.outputs h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }

.field { margin: 0 0 0.9rem; min-width: 0; }
label { display: block; font-weight: 600; margin-bottom: 0.2rem; }
input[type="text"], select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.6rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #77705f;
  border-radius: 6px;
}
textarea { resize: vertical; line-height: 1.4; }
input[aria-invalid="true"] { border: 2px solid var(--err); }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 1rem; padding: 0.75rem; min-width: 0; }
legend { font-weight: 700; padding: 0 0.3rem; }
.row { display: grid; gap: 0 1rem; }
.check { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; }
.check input { width: 24px; height: 24px; margin: 0; flex: none; }
.check label { margin: 0; font-weight: 600; padding: 0.6rem 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 0.55rem 1rem;
  font: inherit; font-weight: 700; color: #fff; background: var(--accent);
  border: 2px solid var(--accent-dark); border-radius: 8px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--accent-dark); }
.actions { margin: 0.75rem 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.errors { color: var(--err); }
.errors ul { margin: 0.25rem 0; padding-left: 1.2rem; }
.linkish { font: inherit; color: var(--err); background: none; border: 0; padding: 0.6rem 0; min-height: 44px; text-decoration: underline; cursor: pointer; text-align: left; }

.tabs { display: flex; gap: 0.25rem; border-bottom: 2px solid var(--accent); margin-bottom: 1rem; }
.tabs [role="tab"] {
  min-height: 44px; padding: 0.5rem 0.9rem; font: inherit; font-weight: 700;
  color: var(--accent-dark); background: #f1e7cf; border: 2px solid var(--accent); border-bottom: 0;
  border-radius: 8px 8px 0 0; cursor: pointer;
}
.tabs [role="tab"][aria-selected="true"] { background: var(--accent); color: #fff; }
[role="tabpanel"]:focus-visible { outline-offset: 4px; }

.checklist { padding-left: 1.2rem; }
.checklist li { margin-bottom: 0.75rem; }

.footer { margin: 2rem auto 1rem; text-align: center; max-width: 76rem; padding: 0 1rem; }
.footer a { display: inline-block; padding: 0.6rem 0.25rem; min-height: 44px; }

/* ---------- Druckstücke (gleiches Markup für Vorschau und Druck) ---------- */
.sheet-frame { position: relative; width: 100%; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.sheet { transform-origin: 0 0; background: #fff; color: #111; overflow: hidden; }
.ph { color: #666; font-style: italic; }

.poster {
  width: 190mm; height: 275mm; padding: 6mm 9mm;
  display: flex; flex-direction: column; gap: 3mm;
  font-size: 12pt; line-height: 1.3;
}
.poster p, .poster h2, .poster h3 { margin: 0; }
.p-head { font-size: 20pt; line-height: 1.12; color: #5a3700; }
.p-intro { font-size: 12pt; }
.p-grid { display: grid; grid-template-columns: 1fr 44mm; gap: 5mm; align-items: center; }
.p-fig { margin: 0; display: flex; flex-direction: column; align-items: center; }
.p-fig svg { width: 62mm; height: 62mm; display: block; }
.p-fig figcaption { text-align: center; font-size: 10pt; line-height: 1.25; }
.p-radius-label { display: block; font-weight: 700; }
.p-note { display: block; font-size: 9.5pt; color: #444; }
.p-qr { text-align: center; font-weight: 700; font-size: 10.5pt; }
.p-qr .qr { width: 40mm; height: 40mm; margin: 0 auto 1.5mm; }
.p-qr .qr svg { width: 100%; height: 100%; display: block; }
.p-probe { border: 0.5mm solid #b8860b; border-radius: 3mm; padding: 2.5mm 4mm; background: #fff8e1; }
.p-probe h3 { font-size: 14pt; color: #5a3700; margin-bottom: 1mm; }
.p-contact { font-weight: 700; font-size: 12pt; }
.p-reply { margin-top: auto; border-top: 0.4mm dashed #333; padding-top: 2.5mm; display: flex; flex-direction: column; gap: 2mm; }
.p-reply-title { font-weight: 700; font-size: 10.5pt; }
.p-line { display: flex; align-items: flex-end; gap: 2mm; }
.p-line .blank { flex: 1; border-bottom: 0.3mm solid #333; height: 6mm; }
.p-box { font-size: 11.5pt; }
.p-foot { font-size: 8.5pt; color: #444; text-align: center; }

.cards {
  width: 190mm; height: 275mm; padding: 27.5mm 10mm 0;
  display: grid; grid-template-columns: repeat(2, 85mm); grid-template-rows: repeat(4, 55mm);
  justify-content: center; align-content: start;
}
.card {
  width: 85mm; height: 55mm; padding: 4mm 5mm;
  border: 0.3mm dashed #777; overflow: hidden; break-inside: avoid;
  display: flex; flex-direction: column; gap: 1mm; font-size: 9pt; line-height: 1.25;
}
.card p { margin: 0; }
.c-name { font-size: 13pt; font-weight: 700; color: #5a3700; }
.c-title { font-weight: 700; }
.c-kontakt { font-weight: 700; }
.c-link { margin-top: auto !important; font-size: 7.5pt; color: #444; }

.print-root { display: none; }

/* ---------- Infoseite / Textseiten ---------- */
.prose { max-width: 44rem; margin: 0 auto; padding: 1rem; }
.prose h1 { font-size: 1.6rem; line-height: 1.2; color: var(--accent-dark); }
.imker-box { background: #fff8e1; border: 2px solid #b8860b; border-radius: 10px; padding: 0.75rem 1rem; margin: 0.5rem 0 1rem; }
.imker-box p { margin: 0.3rem 0; }
.imker-line { font-weight: 700; font-size: 1.1rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin: 0 0 0.6rem; padding: 0 0.9rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: 0.7rem 0; min-height: 44px; }
.faq details p { margin: 0 0 0.7rem; }

@media (min-width: 40rem) {
  .row { grid-template-columns: 1fr 1fr; }
  .head h1 { font-size: 2rem; }
}
@media (min-width: 900px) {
  .layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
}

/* ---------- Druck: nur das gewählte Druckstück ---------- */
@page { size: A4 portrait; margin: 10mm; }
@media print {
  :root, html, body { background: #fff; margin: 0; padding: 0; }
  .screen { display: none !important; }
  .print-root { display: block !important; }
  .print-root .sheet { transform: none !important; box-shadow: none; border: 0; break-after: avoid; break-inside: avoid; }
  .print-root .ph { color: #666; }
  .prose .btn, .footer { display: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
