:root {
  color-scheme: light dark;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #d4d4d4;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(180deg, #d4d4d4, #8a8a8a);
  color: #111;
  padding: 12px 10px 20px;
  overflow-y: auto;
  font-size: 16px;
  line-height: 1.55;
}

.app-frame {
  /* Iets breder + minder body-padding → vier tegels passen op typische TFT (1280+) */
  width: min(1320px, 100%);
  background: #363636;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  border: 4px solid #2a2a2a;
  margin: 0 auto 16px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  background: #363636;
  color: #f4f4f4;
}

.app-title {
  display: flex;
  gap: 16px;
  align-items: center;
}

.app-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #4a4a4a;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.app-subtitle {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b5b5b5;
}

.app-header h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  color: #fff;
}

.app-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.small-secondary-button {
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.small-secondary-button:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #f25c5c;
}

.icon-button,
.primary-button,
.document-card a {
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 8px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button {
  width: 36px;
  height: 36px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-size: 16px;
}

.primary-button {
  background: #f25c5c;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-inline: 26px;
  font-size: 13px;
}

.app-content {
  background: #f0f0f0;
  padding: clamp(14px, 2vw, 22px) clamp(12px, 2.2vw, 26px) clamp(12px, 1.8vw, 20px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.2vw, 24px);
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: clamp(14px, 1.8vw, 20px) clamp(14px, 2vw, 22px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.intro-card p {
  font-size: 17px;
  color: #3e3e3e;
  line-height: 1.5;
}

.document-grid {
  display: grid;
  gap: clamp(10px, 1.2vw, 16px);
  /* Vast 4 kolommen op brede schermen (TFT); responsive naar 3 / 2 / 1 */
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.document-card {
  min-height: 168px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vw, 14px);
  color: #333;
  background: linear-gradient(180deg, #fff, #f7f7f7);
  border: 1px solid #e4e4e4;
  position: relative;
  padding-top: clamp(22px, 2.5vw, 28px);
}

.document-icon {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  line-height: 1;
  display: block;
}

.document-card::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 26px;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f25c5c, #ff9d5c);
}

.document-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #f25c5c;
}

.document-card h2 {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.title-main {
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 700;
  color: #111;
  line-height: 1.15;
}

.title-meta {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6d6d6d;
}

.title-meta.accent {
  color: #f25c5c;
}

.document-card p {
  flex-grow: 1;
  color: #4d4d4d;
  line-height: 1.35;
  font-size: clamp(13px, 1.35vw, 15px);
}

.document-card a {
  align-self: stretch;
  background: #363636;
  color: #fff;
  padding: 10px 24px;
  font-size: 13px;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.document-card a:hover {
  background: #f25c5c;
  transform: translateY(-1px);
}

.app-footer {
  padding: 12px 20px;
  background: #ffffff;
  text-align: center;
  font-size: 12px;
  color: #555;
}

/* Eén band: © — collega + hub — knop; centreert en wrapt als een TFT-balk */
.app-footer-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  max-width: min(100%, 58rem);
  margin: 0 auto;
  padding: 0.2rem 0;
  font-size: clamp(0.8125rem, 1.45vw, 0.92rem);
  line-height: 1.4;
}

.app-footer-copy {
  color: #5c534d;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}

.app-footer-sep {
  color: #9a928a;
  font-weight: 700;
  user-select: none;
  flex-shrink: 0;
  line-height: 1;
}

.app-footer-colleague {
  margin: 0;
  color: #4a433c;
  font-weight: 600;
  text-align: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 28rem;
  text-wrap: balance;
}

.app-footer-hub {
  color: #8e2f2a;
  font-weight: 700;
  letter-spacing: 0.01em;
}

@media (max-width: 520px) {
  .app-footer-inner {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.15rem 0;
  }

  .app-footer-sep {
    display: none;
  }

  .app-footer-copy {
    white-space: normal;
  }

  .app-footer-colleague {
    flex-basis: auto;
    max-width: 22rem;
  }
}

@media (max-width: 380px) {
  .app-footer-colleague {
    font-size: 0.97em;
    line-height: 1.38;
  }
}

/* Zelfde pill-stijl als Afvalkalender-knop, maar leesbaar op lichte footer */
.app-footer .app-footer-button.small-secondary-button {
  flex-shrink: 0;
  white-space: nowrap;
  border: 2px solid #363636;
  background: #f4f4f5;
  color: #222;
}

.app-footer .app-footer-button.small-secondary-button:hover {
  background: #363636;
  color: #fff;
  border-color: #363636;
}

.help-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.help-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.help-content {
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  color: #222;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.help-content h2 {
  font-size: 20px;
}

/* Tot hieronder: 4 kolommen (o.a. 1024×768 TFT). Pas kleiner aan op telefoon / smal venster */
@media (max-width: 900px) {
  .document-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .document-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .app-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 420px) {
  .document-grid {
    grid-template-columns: 1fr;
  }

  .app-header {
    padding: 16px 18px;
  }
}

