/* Algemene reset / root-variabelen */
html {
  height: 100%;
}
:root{
  --header-height: 72px;
  --footer-height: 64px;
  --gap: 12px;
  --radius: 12px;
  --accent-left: linear-gradient(135deg,#3b82f6 0%, #06b6d4 100%);
  --accent-right: linear-gradient(135deg,#a78bfa 0%, #fb7185 100%);
  --safe-pad: 14px;
}
header[role="banner"] {
  position: fixed;
  top: var(--gap);
  left: var(--gap);
  right: var(--gap);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(2,6,23,0.08);
  z-index: 70;
  pointer-events: auto;
}
#logo {
  height: 4rem;
  margin: 0 auto;
  display: block;
}
main.container-fluid {
  padding: calc(var(--header-height) + var(--gap) + env(safe-area-inset-top, 0px)) 24px calc(var(--footer-height) + var(--gap) + env(safe-area-inset-bottom, 0px)) 24px;
  box-sizing: border-box;
  min-height: 100vh;
}
.pane {
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(2,6,23,.08);
  transform: translateY(0);
  transition: transform .28s ease, box-shadow .28s ease;
  display: block;
}
.pane:focus {
  outline: 3px solid rgba(59,130,246,.18);
  outline-offset: 4px;
}
.pane-inner {
  padding: 56px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pane-left { background: var(--accent-left); color: white; }
.pane-right { background: var(--accent-right); color: white; }
.pane h1, .pane h2 { font-size: 48px; margin: 0 0 8px; line-height: 1; }
.pane p { margin: 0 0 20px; font-size: 18px; opacity: .95; }
.cta { display: inline-block; margin-top: 10px; padding: 12px 20px; border-radius: 12px; background: rgba(255,255,255,.12); backdrop-filter: blur(4px); font-weight: 700; }
.pane:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(2,6,23,.12); }
.page-footer {
  position: fixed;
  bottom: var(--gap);
  left: var(--gap);
  right: var(--gap);
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 12px;
  z-index: 60;
  background: linear-gradient(to right, #2DABE3 10%, #831F82 50%, #E94F1D 90%);
  color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(2,6,23,0.16);
  font-size: 13px;
  pointer-events: auto;
}
#foot-note {
  background: linear-gradient(to right, #2DABE3 10%, #831F82 50%, #E94F1D 90%);
  background-clip: text;
  color: transparent;
}
/* Overlay */
.loader-overlay {
  position: fixed;
  inset: 0;                   /* top:0; right:0; bottom:0; left:0; */
  display: none !important;              /* toggled via JS */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  z-index: 9999;
  backdrop-filter: blur(2px);
}
/* Inner box */
.loader-box {
  background: white;
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 220px;
}
/* Simple spinner */
.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(0,0,0,0.08);
  border-top-color: rgba(0,0,0,0.55);
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
/* Text */
.loader-text {
  font-size: 14px;
  color: #222;
}
/* Visible helper */
.loader-overlay.visible {
  display: flex;
}
.page-footer small { margin: 0; display: block; text-align: center; }
@media (max-width:900px) {
  :root{ --header-height:56px; --footer-height:56px; --gap:6px; }
  header img{ height:36px; }
  .pane-inner{ padding:32px; min-height: unset; }
  .pane h1, .pane h2{ font-size:34px; }
  main.container-fluid{ padding-left:16px; padding-right:16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pane{ transition: none; }
}