/* Shared theme of the tree map and the about page: deep dark green, glassy and shiny.
   Colours as variables - change them here, both pages follow. */
:root {
  --bg: #03110a;                                   /* page background (deep forest green, almost black) */
  --bg-glow: #0f3a24;                              /* soft light in the background of the about page */
  --glass: rgba(4, 26, 14, .76);                   /* glass panels (the map shines through a little) */
  --glass-strong: rgba(3, 20, 11, .86);            /* popups, drop-down lists */
  --glass-tint: linear-gradient(150deg, rgba(110, 225, 150, .15) 0%, rgba(40, 120, 75, .06) 35%,
                                        rgba(2, 24, 12, .05) 62%, rgba(0, 0, 0, .22) 100%);
  --glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .025) 22%,
                                         rgba(255, 255, 255, 0) 45%);   /* light reflection on the upper edge */
  --glass-border: rgba(140, 235, 175, .20);
  --glass-edge: rgba(200, 255, 220, .35);          /* bright top edge */
  --ink: #e6f6ec;
  --muted: #8fb89d;
  --accent: #74e39c;
  --accent-strong: #22a95a;
  --accent-soft: rgba(116, 227, 156, .15);         /* hover / selected */
  --accent-mid: rgba(116, 227, 156, .26);
  --accent-glow: rgba(80, 225, 140, .35);
  --danger: #ff8a80;
  --radius: 16px;
  --shadow: 0 18px 42px rgba(0, 0, 0, .50), 0 2px 8px rgba(0, 0, 0, .35),
            inset 0 1px 0 var(--glass-edge), inset 0 -1px 0 rgba(0, 0, 0, .40),
            inset 0 0 28px rgba(100, 230, 150, .05);
  --blur: blur(18px) saturate(175%) brightness(.92);
  --scroll: #2f7a4d;
}

html, body { background: var(--bg); color: var(--ink);
             font: 14px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
.muted { color: var(--muted); }

/* glass: tinted, blurred background + reflection on the top + bright edge */
.glass { background: var(--glass-sheen), var(--glass-tint), var(--glass);
         border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--shadow);
         -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }

/* shiny pill button (e.g. "Karte öffnen") */
.btn-glow { color: var(--ink); cursor: pointer; border-radius: 999px;
            background: linear-gradient(180deg, rgba(160, 255, 195, .30), rgba(34, 169, 90, .28) 55%, rgba(10, 70, 38, .45)),
                        var(--glass);
            border: 1px solid rgba(160, 255, 200, .45);
            box-shadow: 0 8px 26px rgba(0, 0, 0, .45), 0 0 22px var(--accent-glow),
                        inset 0 1px 0 rgba(230, 255, 240, .55), inset 0 -2px 6px rgba(0, 40, 20, .45);
            -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
            transition: transform .2s, box-shadow .2s, filter .2s; }
.btn-glow:hover, .btn-glow:focus-visible { transform: translateY(-1px); filter: brightness(1.12); outline: none;
                                           box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 34px var(--accent-glow),
                                                       inset 0 1px 0 rgba(230, 255, 240, .7), inset 0 -2px 6px rgba(0, 40, 20, .45); }

/* form fields: dark, inset */
select, input[type=search], input[type=text], textarea {
  font: inherit; color: var(--ink); background: rgba(0, 12, 6, .45); border: 1px solid var(--glass-border);
  border-radius: 10px; padding: 5px 8px; outline: none; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45); }
select:focus, input:focus, textarea:focus { border-color: var(--accent); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45), 0 0 0 3px var(--accent-soft); }
select option { background: #062014; color: var(--ink); }
input[type=checkbox], input[type=range] { accent-color: var(--accent-strong); }

* { scrollbar-width: thin; scrollbar-color: var(--scroll) transparent; }
