/* AGRICOIN – Beta-Band, Etikett „BETA“ und Feedback-Formular (fix_beta 25.11.2026; Quelle src/beta/beta.css → /css/beta.css). Hell/dunkel, Handy zuerst. */
.agc-beta, .agc-fbd { --bt-bg: #fff3cf; --bt-ink: #4a3300; --bt-line: #e3b94d; --bt-acc: #0b6e3f; --bt-on: #fff; --bt-panel: #fff; --bt-text: #1f2328; --bt-mut: #5b636d; --bt-feld: #fff; --bt-feldl: #b9c0c8; }
[data-theme="dark"] .agc-beta, [data-theme="dark"] .agc-fbd { --bt-bg: #3a2d0c; --bt-ink: #ffe6a6; --bt-line: #8a6a1c; --bt-acc: #46c38a; --bt-on: #062414; --bt-panel: #1b1f24; --bt-text: #e8eaed; --bt-mut: #a8b0b9; --bt-feld: #111418; --bt-feldl: #4a525c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .agc-beta, :root:not([data-theme="light"]) .agc-fbd { --bt-bg: #3a2d0c; --bt-ink: #ffe6a6; --bt-line: #8a6a1c; --bt-acc: #46c38a; --bt-on: #062414; --bt-panel: #1b1f24; --bt-text: #e8eaed; --bt-mut: #a8b0b9; --bt-feld: #111418; --bt-feldl: #4a525c; }
}
/* Etikett neben dem Logo – bleibt immer sichtbar */
.agc-beta-tag { display: inline-flex; align-items: center; flex: 0 0 auto; align-self: center; margin-left: 6px; padding: 2px 6px; border-radius: 6px; background: #f2b705; color: #2b1d00;
  font: 800 11px/1.2 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: .06em; vertical-align: middle; white-space: nowrap; text-decoration: none; }
header a:has(> .agc-beta-tag) { display: inline-flex !important; align-items: center; flex-wrap: nowrap; }
/* Band ganz oben */
.agc-beta { box-sizing: border-box; width: 100%; max-width: 100%; background: var(--bt-bg); color: var(--bt-ink); border-bottom: 2px solid var(--bt-line);
  font: 400 14px/1.4 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; position: relative; z-index: 61; }
.agc-beta *, .agc-fbd * { box-sizing: border-box; }
.agc-beta-in { display: flex; align-items: center; gap: 6px; max-width: 1200px; margin: 0 auto; padding: 0 8px; min-height: 48px; }
.agc-beta-i { flex: 0 0 auto; font-size: 18px; line-height: 1; }
.agc-beta-t { flex: 1 1 auto; min-width: 0; margin: 0; padding: 6px 0; }
.agc-beta-t b { font-weight: 800; }
.agc-beta-k { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  font: 700 14px/1.2 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; border: 1px solid var(--bt-line); background: transparent; color: inherit; }
.agc-beta-k:focus-visible { outline: 3px solid var(--bt-acc); outline-offset: 2px; }
.agc-beta-fb { flex: 0 0 auto; background: var(--bt-acc); color: var(--bt-on); border-color: var(--bt-acc); white-space: nowrap; }
.agc-beta-x, .agc-beta-mehr { flex: 0 0 auto; padding: 0; width: 44px; font-size: 16px; }
.agc-beta-mehr { display: none; }
.agc-beta.offen .agc-beta-mehr .agc-beta-pf { display: inline-block; transform: rotate(180deg); }
.agc-beta-mob { margin: 0 auto; max-width: 1200px; padding: 0 12px 10px 34px; }
.agc-beta-mob[hidden] { display: none; }
@media (min-width: 701px) { .agc-beta-mob { display: none !important; } }
@media (max-width: 700px) {
  .agc-beta-lg { display: none; }
  .agc-beta-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .agc-beta-mehr { display: inline-flex; }
  .agc-beta-in { padding: 0 6px; gap: 4px; }
  .agc-beta-fb { padding: 0 10px; }
}
@media (max-width: 360px) { .agc-beta-i { display: none; } }
@media print { .agc-beta, .agc-fbd { display: none !important; } }

/* Feedback-Formular */
.agc-fbd { width: min(560px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1px solid var(--bt-feldl); border-radius: 16px;
  background: var(--bt-panel); color: var(--bt-text); font: 400 15px/1.45 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; overflow: auto; }
.agc-fbd::backdrop { background: rgba(10, 14, 18, .55); }
.agc-fbd-f, .agc-fbd-ok { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.agc-fbd-f[hidden], .agc-fbd-ok[hidden] { display: none; }
.agc-fbd-kopf { display: flex; align-items: flex-start; gap: 8px; }
.agc-fbd-kopf h2 { flex: 1 1 auto; margin: 8px 0 0; font-size: 19px; line-height: 1.25; }
.agc-fbd-x { border-color: transparent; }
.agc-fbd p { margin: 0 0 4px; }
.agc-fbd-p, .agc-fbd-min, .agc-fbd-mit { color: var(--bt-mut); }
.agc-fbd-min, .agc-fbd-mit { font-size: 13px; }
.agc-fbd label { font-weight: 700; margin-top: 6px; }
.agc-fbd textarea, .agc-fbd input[type="email"] { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--bt-feldl); border-radius: 10px; background: var(--bt-feld); color: var(--bt-text); font: inherit; resize: vertical; }
.agc-fbd textarea:focus, .agc-fbd input:focus { outline: 3px solid var(--bt-acc); outline-offset: 1px; }
.agc-fbd input:disabled { opacity: .55; }
.agc-fbd-mail { display: flex; flex-direction: column; gap: 6px; }
.agc-fbd-chk { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400 !important; cursor: pointer; }
.agc-fbd-chk[hidden] { display: none; }
.agc-fbd-chk input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; accent-color: var(--bt-acc); }
.agc-fbd-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.agc-fbd-mit a { color: var(--bt-acc); }
.agc-fbd-msg { padding: 8px 10px; border-radius: 10px; background: #fde8e8; color: #7a1010; font-weight: 600; }
[data-theme="dark"] .agc-fbd-msg { background: #4a1818; color: #ffd6d6; }
.agc-fbd-msg[hidden] { display: none; }
.agc-fbd-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.agc-fbd-send { background: var(--bt-acc); color: var(--bt-on); border-color: var(--bt-acc); padding: 0 18px; }
.agc-fbd-send:disabled { opacity: .7; cursor: progress; }
.agc-fbd-ab { border-color: var(--bt-feldl); }
.agc-fbd-okh { font-size: 17px; margin-top: 6px !important; }
@media (max-width: 420px) { .agc-fbd-btns .agc-beta-k { flex: 1 1 auto; } }
/* Hof-App auf dem Handy: Band im Kopf neben dem Logo (kein zusätzlicher Platz über „Was jetzt?“) */
.agc-beta-fbk { display: none; }
.agc-beta.im-kopf { width: auto; max-width: none; flex: 0 0 auto; background: transparent; border: 0; z-index: auto; }
.agc-beta.im-kopf .agc-beta-in { padding: 0; margin: 0; min-height: 44px; gap: 4px; }
.agc-beta.im-kopf .agc-beta-i, .agc-beta.im-kopf .agc-beta-t, .agc-beta.im-kopf .agc-beta-mehr, .agc-beta.im-kopf .agc-beta-mob { display: none !important; }
.agc-beta.im-kopf .agc-beta-fbl { display: none; }
.agc-beta.im-kopf .agc-beta-fbk { display: inline; }
.agc-beta.im-kopf .agc-beta-x { color: var(--bt-ink); background: var(--bt-bg); }
.agc-fbd-beta { margin: 2px 0 6px !important; padding: 8px 10px; border-radius: 10px; background: var(--bt-bg); color: var(--bt-ink); border: 1px solid var(--bt-line); font-size: 14px; }

/* fb-10: Startbild der Website zieht die Höhe des Beta-Bands ab, damit der Hauptknopf im ersten Bild bleibt */
body .zh { min-height: min(max(620px, calc(100svh - var(--l2hdr, 72px) - var(--agc-beta-h, 0px))), 940px); }
/* fb-11: Hof-App auf dem Handy – „BETA“ als kleiner Aufkleber auf dem Logo (nimmt keine Breite weg, damit Logo und Knöpfe in einer Zeile bleiben) */
@media (max-width: 700px) {
  header.top a.brand:has(> .agc-beta-tag), header.top a.brand { position: relative; }
  header.top a.brand .agc-beta-tag { position: absolute; left: 18px; top: -5px; margin: 0; padding: 1px 4px; font-size: 9px; line-height: 1.1; z-index: 2; pointer-events: none; }
}
/* fb-12: im Knopf-Raster der Hof-App nur „🧪 Feedback“ (eine Zelle) – kein ✕, damit nichts über den Rand ragt */
.ctl-n .agc-beta.im-kopf .agc-beta-x { display: none !important; }
.ctl-n .agc-beta.im-kopf, .ctl-n .agc-beta.im-kopf .agc-beta-in, .ctl-n .agc-beta.im-kopf .agc-beta-fb { width: 100%; min-width: 0; }
