:root {
  --wit: #fff;
  --zwart: #000;
  --kaart: #0b0e14;
  --blauw: #0446a9;        /* blauw uit het logo */
  --blauw-donker: #03378a;
  --blauw-licht: #3b7ae4;  /* leesbaar blauw op zwart */
  --lijn: #1d2433;
  --grijs: #a8b0bf;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: var(--zwart);
  color: var(--wit);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

/* Visitekaart op zwart: blauwe kop, foto links (wit vlak), logo en info rechts, zwarte voet */
.kaart {
  width: 100%;
  max-width: 860px;
  overflow: hidden;
  border: 2px solid var(--lijn);
  border-radius: 16px;
  background: var(--kaart);
}

.kop {
  height: 14px;
  background: var(--blauw);
}

.inhoud {
  display: grid;
  grid-template-columns: 2fr 3fr;
}

.foto {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 20px;
  background: var(--wit);  /* foto heeft een witte studio-achtergrond */
}

.foto img {
  display: block;
  width: 100%;
  height: auto;
}

.info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 40px 40px;
}

.logo {
  align-self: flex-end;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-bottom: 24px;
}

h1 {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.15;
}

.tagline {
  margin: 4px 0 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--lijn);
  color: var(--blauw-licht);
  font-size: 1.1rem;
  font-weight: 600;
}

.verborgen {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.knoppen {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.knop {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border: 2px solid var(--wit);
  border-radius: 10px;
  color: var(--wit);
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}

.knop:hover,
.knop:focus-visible {
  background: var(--wit);
  color: var(--zwart);
  outline: none;
}

.knop.whatsapp {
  background: var(--blauw);
  border-color: var(--blauw);
  color: var(--wit);
}

.knop.whatsapp:hover,
.knop.whatsapp:focus-visible {
  background: var(--blauw-donker);
  border-color: var(--blauw-donker);
}

.knop svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.voet {
  padding: 10px 20px;
  border-top: 1px solid var(--lijn);
  background: var(--zwart);
  color: var(--grijs);
  font-size: .85rem;
  text-align: right;
}

/* Telefoon: info boven, foto eronder */
@media (max-width: 700px) {
  .inhoud { grid-template-columns: 1fr; }
  .foto img { max-width: 300px; }
  .info {
    order: -1;
    align-items: center;
    padding: 28px 20px 8px;
    text-align: center;
  }
  .logo { align-self: center; }
  .knoppen { justify-content: center; }
  .voet { text-align: center; }
}

/* Portaal (/portaal): overzicht van Joops projecten, achter Zero Trust */
body.portaal { align-items: flex-start; }

.portaal .kaart { max-width: 960px; }

.portaal-kop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 40px 0;
}

.portaal-kop .logo {
  max-width: 220px;
  margin: 0;
}

.portaal .tagline {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.projecten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 28px 40px 40px;
  list-style: none;
}

.project {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--lijn);
  border-radius: 12px;
  background: var(--zwart);
}

.project-kop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.project p {
  margin: 8px 0 0;
  color: var(--grijs);
}

.project .adres {
  color: var(--blauw-licht);
  font-size: .9rem;
  word-break: break-all;
}

.project .knoppen {
  margin-top: auto;
  padding-top: 18px;
}

.project .knop {
  min-height: 44px;
  padding: 0 16px;
}

.knop.vol {
  background: var(--blauw);
  border-color: var(--blauw);
}

.knop.vol:hover,
.knop.vol:focus-visible {
  background: var(--blauw-donker);
  border-color: var(--blauw-donker);
  color: var(--wit);
}

.label {
  flex: none;
  padding: 2px 10px;
  border: 1px solid var(--lijn);
  border-radius: 999px;
  color: var(--grijs);
  font-size: .8rem;
  font-weight: 600;
}

.label.live {
  border-color: var(--blauw);
  color: var(--blauw-licht);
}

.portaal .voet {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.voet a { color: var(--blauw-licht); }

/* Melding "Geen toegang" */
.melding { max-width: 520px; }
.melding p { color: var(--grijs); }

@media (max-width: 700px) {
  .portaal-kop {
    flex-direction: column-reverse;
    align-items: center;
    padding: 28px 20px 0;
    text-align: center;
  }
  .projecten { padding: 24px 16px 28px; }
  .project .knoppen { justify-content: flex-start; }
}
