/* cvluis · Tool-Seiten: jedes Tool hat seine eigene Optik.
   Gilt für die Projektseiten (projekte/projekte.css) und für Villagers: Repurposed.
   Die Seite setzt <html data-theme="host|modspire|studio|village">; die Variablen unten machen den Unterschied.
   Der Hintergrund kommt aus themes/bg-<theme>.js. */

:root {
  --bg: #070b09;
  --acc: #3fa857;
  --acc-hi: #8fd6a0;
  --ink: #e6f2ea;
  --muted: #a6bcae;
  --panel: rgba(10, 20, 14, 0.6);
  --edge: #1f4a2c;
  --r: 4px;
  --head: "Pixelify Sans", system-ui, sans-serif;
  --body: Nunito, system-ui, sans-serif;
  --panel-shadow: none;
  --btn-shadow: none;
}

/* Konsole: Terminal-Grün auf Schwarz */
html[data-theme="host"] {
  --bg: #050a07; --acc: #5fd4e8; --acc-hi: #b5f0ff; --ink: #d8f5e0; --muted: #8fb89b;
  --panel: rgba(7, 16, 11, 0.6); --edge: #1d4a2a; --r: 2px;
  --head: "Consolas", "Lucida Console", "Pixelify Sans", monospace;
}
html[data-theme="host"] .glass { box-shadow: inset 0 0 0 1px rgba(63, 168, 87, 0.08), 0 0 26px rgba(63, 168, 87, 0.12); }
html[data-theme="host"] .eyebrow::before { content: "> "; color: var(--acc-hi); }
html[data-theme="host"] h1 { text-shadow: 0 0 14px rgba(63, 168, 87, 0.45); }

/* Bauplan: Blau, gestrichelte Kanten wie Konstruktionslinien */
html[data-theme="modspire"] {
  --bg: #0a1a2a; --acc: #3b8fc4; --acc-hi: #46d6ff; --ink: #e2f1fb; --muted: #9dbed6;
  --panel: rgba(12, 34, 52, 0.6); --edge: #2f6d95; --r: 4px;
  --head: "Pixelify Sans", system-ui, sans-serif;
}
html[data-theme="modspire"] .glass { border-style: dashed !important; border-color: rgba(70, 214, 255, 0.5) !important; }
html[data-theme="modspire"] .eyebrow { text-transform: uppercase; }

/* Pixel-Werkstatt: dunkles Violett, harte Schatten, flache Kanten */
html[data-theme="studio"] {
  --bg: #161220; --acc: #7fb81f; --acc-hi: #b8e05a; --ink: #f1ecf7; --muted: #b8aecb;
  --panel: rgba(33, 28, 47, 0.6); --edge: #0b0912; --r: 0px;
  --head: "Pixelify Sans", system-ui, sans-serif;
  --panel-shadow: 6px 6px 0 #0b0912;
  --btn-shadow: 3px 3px 0 #0b0912;
}
html[data-theme="studio"] .glass { border: 3px solid #0b0912 !important; border-radius: 0 !important; }
html[data-theme="studio"] .btn { border: 2px solid #0b0912 !important; border-radius: 0 !important; }
html[data-theme="studio"] .btn:hover { transform: translate(-1px, -1px); }

/* Dorf bei Abend: Holzschilder, warmes Gold */
html[data-theme="village"] {
  --bg: #1d1733; --acc: #ffd56a; --acc-hi: #ffe9a8; --ink: #f6e6c8; --muted: #d9c7a6;
  --panel: rgba(62, 40, 26, 0.6); --edge: #5f4326; --r: 8px;
  --head: "Pixelify Sans", system-ui, sans-serif;
}
html[data-theme="village"] .glass {
  background: linear-gradient(180deg, rgba(94, 62, 38, 0.94), rgba(62, 40, 26, 0.95)) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 213, 106, 0.22), 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="village"] .eyebrow::before { content: "✦ "; }

/* Gemeinsame Regeln für alle Tool-Seiten */
html { background: var(--bg); }
body { background: transparent !important; color: var(--ink); font-family: var(--body); }
.theme-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }

.glass, .glass--strong {
  background: var(--panel) !important;
  border: 1px solid var(--edge) !important;
  border-radius: var(--r) !important;
  box-shadow: var(--panel-shadow) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.glass::before, .glass::after { content: none !important; display: none !important; }

h1, h2, h3 { font-family: var(--head); color: var(--ink); }
h1 { color: var(--acc-hi); }
.eyebrow { color: var(--acc); font-family: var(--head); letter-spacing: 0.12em; }
.footer { color: var(--muted); }
.footer a:hover { color: var(--acc-hi); }
.vp-nav a:hover, .vp-nav a[aria-current="true"] { color: var(--acc-hi); }
.nav__brand { font-family: var(--head); }

.btn {
  border-radius: var(--r) !important;
  border: 1px solid var(--edge);
  background: transparent;
  color: var(--ink);
  box-shadow: var(--btn-shadow);
}
.btn:hover { border-color: var(--acc); color: var(--acc-hi); }
.btn--primary { background: var(--acc) !important; border-color: var(--acc) !important; color: var(--bg) !important; }
.btn--primary:hover { color: var(--bg); filter: brightness(1.08); }

.tags li { border: 1px solid var(--edge); background: rgba(0, 0, 0, 0.25); color: var(--acc-hi); border-radius: var(--r); }
.vp-bar { border-radius: var(--r); background: rgba(0, 0, 0, 0.4); border: 1px solid var(--edge); }
.vp-bar i { background: var(--acc); }
.pj-stats li, .pj-video video, .vp-hero__media img { border-radius: var(--r); }
.pj-stats li { border: 1px solid var(--edge); background: rgba(0, 0, 0, 0.25); }

/* Startanimation in der Farbe des Tools */
:root { --accent: var(--acc); --intro-face: rgba(63, 168, 87, 0.2); }
html[data-theme="host"] { --accent: #5fd4e8; --intro-face: rgba(95, 212, 232, 0.22); }
html[data-theme="modspire"] { --accent: #46d6ff; --intro-face: rgba(70, 214, 255, 0.16); }
html[data-theme="studio"] { --accent: #7fb81f; --intro-face: #7fb81f; }
html[data-theme="village"] { --accent: #ffd56a; --intro-face: #946b3a; }
.intro-on .intro, .intro-out .intro {
  background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html.intro-on canvas.theme-bg { opacity: 0; }
html.is-ready canvas.theme-bg { opacity: 1; transition: opacity .85s ease; }
.intro__cube i { background: var(--intro-face) !important; border-color: var(--acc-hi) !important; box-shadow: 0 0 22px var(--glow), inset 0 0 14px var(--glow) !important; }
html[data-theme="studio"] .intro__cube i { border: 3px solid #0b0912 !important; }
.intro__line { background: rgba(255, 255, 255, 0.12) !important; }
.intro__line i { background: var(--acc) !important; box-shadow: 0 0 12px var(--glow) !important; }

/* Mehr Glow in der Farbe des Tools */
:root { --glow: rgba(63, 168, 87, 0.55); }
html[data-theme="host"] { --glow: rgba(95, 212, 232, 0.6); }
html[data-theme="modspire"] { --glow: rgba(70, 214, 255, 0.55); }
html[data-theme="studio"] { --glow: rgba(127, 184, 31, 0.6); }
html[data-theme="village"] { --glow: rgba(255, 213, 106, 0.6); }
h1 { text-shadow: 0 0 18px var(--glow); }
.eyebrow { text-shadow: 0 0 10px var(--glow); }
.btn--primary { box-shadow: 0 0 18px var(--glow); }
.btn:hover { box-shadow: 0 0 16px var(--glow); }
.glass:hover { box-shadow: 0 0 24px var(--glow) !important; }
.tags li { box-shadow: 0 0 10px var(--glow); }

