/* forest-layer.css - Aussehen zu forest-layer.js: die Schalterzeile des Wald-Layers und das Overlay mit der
   Beschreibung (README). Farben kommen aus den Variablen der Seite (--ink, --muted, --accent,
   --glass-border ...); fehlt eine, gilt der Wert hinter dem Komma. */

/* ---- Schalterzeile: Checkbox "Wald", dahinter der Verweis auf die Beschreibung ---- */
.forest-toggle-row { display: flex; align-items: center; gap: 14px; margin: 8px 0; padding: 6px 0;
                     font-size: 13px; font-weight: 600; color: var(--ink, #e6f2e8); }
.forest-toggle-row label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; cursor: pointer; }
.forest-toggle-row input[type=checkbox] { flex: none; margin: 0; cursor: pointer; accent-color: var(--accent-strong, #4caf50); }
.forest-toggle-row a { font-size: 12px; font-weight: 400; color: var(--accent, #8fd694); text-decoration: none;
                       border-bottom: 1px dotted var(--muted, #9fbca8); }
.forest-toggle-row a:hover, .forest-toggle-row a:focus-visible { border-bottom-style: solid; }

/* ---- Beschreibung als bildschirmfüllendes Overlay (ForestLayer.readme.open) ----
   Fast deckender Hintergrund ohne Weichzeichner: ein Weichzeichner über der ganzen WebGL-Karte ist auf
   älteren Handys teuer. z-index 15: über Karte, Controls und Panels der Seite. */
.forest-readme { position: fixed; inset: 0; z-index: 15; display: none; overflow-y: auto; overscroll-behavior: contain;
                 background: rgba(4, 18, 11, .96); color: var(--ink, #e6f2e8);
                 font: 15px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
.forest-readme.open { display: block; }
.forest-readme-close { position: fixed; top: 10px; right: 12px; z-index: 16; width: 44px; height: 44px; padding: 0;
                       font: inherit; font-size: 22px; line-height: 1; color: var(--ink, #e6f2e8); cursor: pointer;
                       border: 1px solid var(--glass-border, rgba(180, 230, 190, .16)); border-radius: 50%;
                       background: rgba(10, 30, 21, .92); }
.forest-readme-close:hover, .forest-readme-close:focus-visible { border-color: var(--accent, #8fd694); outline: none; }
.forest-readme-body { max-width: 860px; margin: 0 auto; padding: 18px 18px 64px; box-sizing: border-box; }
.forest-readme-note { color: var(--muted, #9fbca8); }
.forest-readme-body a { color: var(--accent, #8fd694); }
.forest-readme-body h1 { font-size: 26px; margin: 6px 56px 14px 0; }
.forest-readme-body h2 { font-size: 20px; margin: 30px 0 10px; padding-top: 14px;
                         border-top: 1px solid var(--glass-border, rgba(180, 230, 190, .16)); color: var(--accent, #8fd694); }
.forest-readme-body h3 { font-size: 16px; margin: 22px 0 8px; }
.forest-readme-body p { margin: 10px 0; }
.forest-readme-body ul, .forest-readme-body ol { margin: 10px 0; padding-left: 22px; }
.forest-readme-body li { margin: 6px 0; }
.forest-readme-body code { font: 13px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: rgba(255, 255, 255, .08);
                           padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.forest-readme-body pre { margin: 12px 0; padding: 12px 14px; overflow-x: auto; background: rgba(0, 0, 0, .32);
                          border: 1px solid var(--glass-border, rgba(180, 230, 190, .16)); border-radius: 10px; }
.forest-readme-body pre code { background: none; padding: 0; overflow-wrap: normal; white-space: pre; }
.forest-readme-body .table-wrap { overflow-x: auto; margin: 12px 0; }
.forest-readme-body table { border-collapse: collapse; min-width: 100%; font-size: 14px; }
.forest-readme-body th, .forest-readme-body td { text-align: left; vertical-align: top; padding: 7px 10px;
                                                 border-bottom: 1px solid var(--glass-border, rgba(180, 230, 190, .16)); }
.forest-readme-body th { color: var(--muted, #9fbca8); font-weight: 600; white-space: nowrap; }
.forest-readme-body td:first-child code { overflow-wrap: normal; white-space: nowrap; }
