body {
  font-family: system-ui, sans-serif;
  width: min(95%, 90rem);
  margin: 1.5rem auto 4rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

h1, h2 { color: #ff7e5f; }

@media (max-width: 480px) {
  body { width: 100%; margin: 1rem auto 2rem; }
}
button { font: inherit; padding: 0.5rem 1rem; cursor: pointer; }
input { font: inherit; padding: 0.4rem; width: 100%; box-sizing: border-box; margin-bottom: 0.75rem; }
label { display: block; font-size: 0.85rem; margin-bottom: 0.2rem; }
/* Formulieren blijven op leesbare breedte staan ook al mag de pagina zelf
   (tegel-overzichten, het diagram) nu de volle schermbreedte gebruiken. */
form { margin-bottom: 1rem; max-width: 28rem; }
ul { padding-left: 1.2rem; }
p.hint { color: #666; font-size: 0.85rem; }
p.error { color: #b00020; font-size: 0.85rem; }
a { color: #0284c7; text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid #0284c7; outline-offset: 2px; }

.links { font-size: 0.9rem; }
.logo { display: block; width: 220px; height: auto; margin-bottom: 2rem; }
[hidden] { display: none !important; }

#app-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; position: relative; }
#app-header .logo { width: 240px; margin-bottom: 0; }
/* Groter dan de standaard .icon-button (2rem): dit is de hoofdknop van de
   header; de kleinere actieknoppen elders blijven compact. */
#menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
}
#menu-toggle svg {
  width: 24px;
  height: 24px;
}
#menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 100;
  margin: 0.4rem 0 0;
  padding: 0.4rem 0;
  min-width: 10rem;
  list-style: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
#menu-dropdown li { padding: 0; }
#menu-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  color: #0f172a;
  font-weight: 500;
}
#menu-dropdown a:hover { background: #f2f2f2; text-decoration: none; }

/* Taalschakelaar (NL/EN) onderaan het menu — zie i18n.js. De actieve taal
   krijgt geen apart element/icoon, alleen een subtiele markering
   (aria-current, door i18n.js gezet), zodat dit ook zonder extra assets kan. */
.menu-lang {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem 1rem !important;
  border-top: 1px solid #eee;
  margin-top: 0.25rem;
}
.lang-option {
  flex: 1 1 0;
  padding: 0.3rem 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.lang-option:hover { background: #ffd2c2; border-color: #ff7e5f; }
.lang-option[aria-current="true"] {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.tile-meta { font-size: 0.8rem; color: #666; display: block; }
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  cursor: pointer;
}
/* Hover in een schakering van de titelkleur (#ff7e5f, oranje uit het logo). */
.icon-button { transition: background-color 0.15s ease, color 0.15s ease; }
.icon-button:hover { background: #ffd2c2; color: #b83a1d; }
.icon-button:focus-visible { outline: 2px solid #ff7e5f; outline-offset: 2px; }
.icon-button svg { width: 16px; height: 16px; }

/* Kaart (.panel) + lichter sub-blok (.panel-block) daarbinnen, zodat losse
   secties er als bij elkaar horende, herkenbare blokken uitzien. */
.panel {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}
.panel + .panel {
  margin-top: 1rem;
}
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.panel-header h3 { margin: 0; }

.panel-block {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.panel-block h4 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

/* Links naar voorwaarden, privacy en about, rechtsonder op elke pagina (story
   startscherm-en-editor/58): klein, en alleen de links zelf zijn klikbaar. */
.legal-links {
  position: fixed;
  right: 0.75rem;
  bottom: 0.4rem;
  z-index: 40;
  display: flex;
  gap: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  pointer-events: none;
}
.legal-links a {
  color: #64748b;
  pointer-events: auto;
}
@media print {
  .legal-links { display: none; }
}

/* Melding op de Beta-omgeving (story platform-en-infrastructuur/13): bovenaan
   elke pagina, duidelijk zichtbaar en niet weg te klikken. */
.beta-banner {
  margin: -0.5rem 0 1rem;
  padding: 0.6rem 0.9rem;
  border: 2px solid #b45309;
  border-radius: 6px;
  background: #fef3c7;
  color: #451a03;
  font-size: 0.9rem;
  line-height: 1.4;
}
.beta-banner strong {
  display: inline-block;
  margin-right: 0.25rem;
  padding: 0 0.4rem;
  border-radius: 3px;
  background: #b45309;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* De pagina's zelf: leesbare regellengte. */
.legal-page article {
  max-width: 46rem;
  line-height: 1.55;
}
.legal-page article h2 { margin-top: 1.75rem; }
.legal-page .legal-meta { color: #666; font-size: 0.85rem; }
.legal-page .lang-switch { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.legal-page .lang-option[aria-current="true"] { font-weight: 600; }
