/* AGRICOIN – Linda Carbon Stufe 1 (w12l). Knopf + Panel, handyfreundlich (360 px), hell/dunkel. Quelle src/w12_linda/linda.css → /js/linda/linda.css */
:root {
  --lnd-bg: #ffffff; --lnd-ink: #1d2b24; --lnd-mut: #55645b; --lnd-line: #d5ddd7; --lnd-acc: #2f6b3f; --lnd-acc-ink: #ffffff;
  --lnd-soft: #eef4ef; --lnd-warn: #fff6dc; --lnd-warn-line: #d9b44a; --lnd-mark: #ffe58a; --lnd-shadow: 0 10px 34px rgba(16, 32, 22, .22);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lnd-bg: #17201b; --lnd-ink: #e8efe9; --lnd-mut: #a9b8ae; --lnd-line: #33433a; --lnd-acc: #7fc28f; --lnd-acc-ink: #0f1a13;
    --lnd-soft: #1f2c24; --lnd-warn: #3a3218; --lnd-warn-line: #a88a33; --lnd-mark: #6b5a12; --lnd-shadow: 0 10px 34px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  --lnd-bg: #17201b; --lnd-ink: #e8efe9; --lnd-mut: #a9b8ae; --lnd-line: #33433a; --lnd-acc: #7fc28f; --lnd-acc-ink: #0f1a13;
  --lnd-soft: #1f2c24; --lnd-warn: #3a3218; --lnd-warn-line: #a88a33; --lnd-mark: #6b5a12; --lnd-shadow: 0 10px 34px rgba(0, 0, 0, .5);
}
.lnd-knopf {
  position: fixed; right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(var(--lnd-unten, 12px) + env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px 0 12px; border: 0; border-radius: 999px;
  background: var(--lnd-acc); color: var(--lnd-acc-ink); font: 700 15px/1.1 system-ui, -apple-system, 'Segoe UI', sans-serif; cursor: pointer;
  box-shadow: var(--lnd-shadow); -webkit-tap-highlight-color: transparent;
}
.lnd-knopf:hover { filter: brightness(1.06); }
.lnd-knopf:focus-visible, .lnd-panel :focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.lnd-knopf .lnd-ic { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .18); align-items: center; justify-content: center; }
.lnd-knopf svg { width: 18px; height: 18px; }
.lnd-knopf[hidden] { display: none !important; }
html.lnd-offen .lnd-knopf { display: none; }
@media print { .lnd-knopf, .lnd-panel { display: none !important; } }

.lnd-panel {
  position: fixed; z-index: 1250; right: 16px; bottom: calc(var(--lnd-unten, 12px) + env(safe-area-inset-bottom, 0px)); width: 400px; max-width: calc(100vw - 32px);
  max-height: min(680px, calc(100vh - var(--lnd-unten, 12px) - 32px)); max-height: min(680px, calc(100dvh - var(--lnd-unten, 12px) - 32px));
  display: flex; flex-direction: column; box-sizing: border-box; background: var(--lnd-bg); color: var(--lnd-ink); border: 1px solid var(--lnd-line);
  border-radius: 16px; box-shadow: var(--lnd-shadow); font: 400 15px/1.45 system-ui, -apple-system, 'Segoe UI', sans-serif; text-align: left;
}
.lnd-panel[hidden] { display: none; }
.lnd-panel *, .lnd-panel *::before, .lnd-panel *::after { box-sizing: border-box; }
.lnd-kopf { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; border-bottom: 1px solid var(--lnd-line); }
.lnd-av { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--lnd-acc); color: var(--lnd-acc-ink); display: inline-flex; align-items: center; justify-content: center; }
.lnd-av svg { width: 22px; height: 22px; }
.lnd-kt2 { flex: 1 1 auto; min-width: 0; }
.lnd-panel h2 { margin: 0; font-size: 17px; line-height: 1.2; color: inherit; }
.lnd-stufe { margin: 0; font-size: 12.5px; color: var(--lnd-mut); }
.lnd-zu { flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--lnd-ink); font-size: 26px; line-height: 1; cursor: pointer; }
.lnd-zu:hover { background: var(--lnd-soft); }
.lnd-body { overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px 14px; }
.lnd-kenn { flex: 0 0 auto; margin: 8px 14px 0; padding: 7px 10px; border-radius: 10px; background: var(--lnd-soft); border-left: 4px solid var(--lnd-acc); font-weight: 600; font-size: 13.5px; }
.lnd-hallo { margin: 0 0 10px; font-size: 14px; color: var(--lnd-mut); }
.lnd-form label { display: block; font-weight: 700; font-size: 13.5px; margin: 0 0 4px; }
.lnd-zeile { display: flex; gap: 6px; }
.lnd-zeile input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--lnd-line); border-radius: 10px; background: var(--lnd-bg); color: var(--lnd-ink); font: inherit; font-size: 16px; }
.lnd-such { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--lnd-acc); color: var(--lnd-acc-ink); font: 700 15px/1 system-ui, sans-serif; cursor: pointer; }
.lnd-vs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 4px; font-size: 13px; color: var(--lnd-mut); }
.lnd-vs > span { width: 100%; }
.lnd-chip { min-height: 36px; padding: 6px 10px; border: 1px solid var(--lnd-line); border-radius: 999px; background: var(--lnd-bg); color: var(--lnd-ink); font: 500 13px/1.25 system-ui, sans-serif; cursor: pointer; text-align: left; }
.lnd-chip:hover { border-color: var(--lnd-acc); }
.lnd-antwort { margin-top: 10px; }
.lnd-hat .lnd-hallo { display: none; }
@media (max-width: 560px) { .lnd-hat .lnd-vs { display: none; } }
.lnd-antwort:empty { display: none; }
.lnd-hinweis { margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: var(--lnd-warn); border: 1px solid var(--lnd-warn-line); font-size: 13.5px; }
.lnd-karte { padding: 10px 12px; border: 1px solid var(--lnd-line); border-radius: 12px; }
.lnd-karte h3 { margin: 2px 0 6px; font-size: 15.5px; line-height: 1.3; color: inherit; }
.lnd-steht { margin: 0; font-size: 12.5px; color: var(--lnd-mut); }
.lnd-zitat { margin: 0 0 8px; padding: 0 0 0 10px; border-left: 3px solid var(--lnd-line); font-size: 14.5px; overflow-wrap: anywhere; }
.lnd-zitat mark { background: var(--lnd-mark); color: inherit; padding: 0 1px; border-radius: 3px; }
.lnd-zahl { margin: 0 0 6px; font-size: 12.5px; color: var(--lnd-mut); }
.lnd-quelle, .lnd-orig { margin: 0; font-size: 13px; color: var(--lnd-mut); overflow-wrap: anywhere; }
.lnd-quelle a, .lnd-orig a, .lnd-nach a, .lnd-mensch a { color: var(--lnd-acc); font-weight: 700; }
.lnd-lesen { display: inline-block; min-height: 32px; padding: 6px 0; }
.lnd-werb { display: inline-block; margin: 0 0 6px; padding: 2px 8px; border-radius: 6px; background: #5b4a00; color: #fff; font-size: 12px; font-weight: 700; }
.lnd-weitere { margin-top: 10px; }
.lnd-weitere p { margin: 0 0 4px; font-weight: 700; font-size: 13.5px; }
.lnd-weitere ul { margin: 0; padding: 0; list-style: none; }
.lnd-weitere li { margin: 0 0 4px; }
.lnd-mehr { min-height: 36px; padding: 4px 0; border: 0; background: none; color: var(--lnd-acc); font: 600 14px/1.3 system-ui, sans-serif; text-align: left; cursor: pointer; text-decoration: underline; }
.lnd-q2 { font-size: 12px; color: var(--lnd-mut); }
.lnd-wn { padding: 10px 12px; border: 1px dashed var(--lnd-mut); border-radius: 12px; }
.lnd-wn p { margin: 0 0 6px; }
.lnd-nach, .lnd-mensch { font-size: 13.5px; margin: 8px 0 0; }
.lnd-regeln { margin-top: 12px; font-size: 13.5px; }
.lnd-regeln summary { cursor: pointer; font-weight: 700; min-height: 36px; display: flex; align-items: center; }
.lnd-regeln ul { margin: 4px 0 0; padding-left: 18px; }
.lnd-fuss { margin: 10px 0 0; font-size: 12px; color: var(--lnd-mut); }
.lnd-laedt, .lnd-leer, .lnd-fehler { margin: 0; font-size: 14px; }
@media (max-width: 560px) {
  .lnd-panel { left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; border-radius: 16px 16px 0 0; max-height: 88vh; max-height: 88dvh; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .lnd-knopf .lnd-kt { font-size: 14px; }
}
@media (prefers-reduced-motion: no-preference) { .lnd-panel { animation: lndAuf .16s ease-out; } @keyframes lndAuf { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } } }
