:root {
  --bg-top: #121726;
  --bg-bottom: #0a0d17;
  --card: rgba(255, 255, 255, 0.06);
  --card-stroke: rgba(255, 255, 255, 0.08);
  --house: #66b3ff;
  --solar: #ffc740;
  --back: #4dd98c;
  --grid: #fc6b6b;
  --gas: #f2994d;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --radius: 20px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom)) fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

/* Taalkeuze: toon alleen de actieve taal. */
html[data-lang="nl"] [lang="en"] { display: none !important; }
html[data-lang="en"] [lang="nl"] { display: none !important; }

.lang-switch {
  position: absolute;
  top: 16px;
  right: 20px;
  display: inline-flex;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: 999px;
  padding: 3px;
  z-index: 10;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--house);
  color: var(--bg-bottom);
}

a { color: var(--house); text-decoration: none; }
a:hover { text-decoration: underline; }

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 36px;
}

.hero img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

h1 { font-size: 30px; font-weight: 700; margin: 0; }
h2 { font-size: 20px; font-weight: 700; margin: 0 0 4px; }

.lead { color: var(--muted); font-size: 17px; margin: 0; max-width: 48ch; }

.card {
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.card p { color: var(--muted); margin: 8px 0; }
.card p:first-of-type { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.card .icon { color: var(--house); }

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.section-head svg { width: 22px; height: 22px; flex: none; color: var(--house); }

.app-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
}
.app-tile:hover { text-decoration: none; }
.app-tile img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.app-tile .meta { display: flex; flex-direction: column; }
.app-tile .meta strong { font-size: 17px; }
.app-tile .meta span { color: var(--muted); font-size: 14px; }
.app-tile .chev { margin-left: auto; color: var(--muted); }

ol, ul { color: var(--muted); padding-left: 20px; margin: 8px 0; }
li { margin: 6px 0; }

code {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.footer {
  margin-top: 40px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.muted { color: var(--muted); }
.updated { color: var(--muted); font-size: 14px; margin-top: 0; }

h3 { font-size: 16px; margin: 22px 0 4px; }
