/* =========================================================
   Stylesheet voor Recreatieborrel.nl
   Auteur: Colin Pachovsky
   Datum: 2025
   ========================================================= */

/* ---------- Kleuren & variabelen ---------- */
:root {
  --bg: #0b1727;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --brand: #0ea5e9;
  --brand-ink: #0c4a6e;
  --ok: #059669;
  --err: #dc2626;
}

/* ---------- Basis ---------- */
* {
  box-sizing: border-box;
}

html,
body {
  height: auto;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg), #004a63);
  color: var(--ink);
}

.wrap {
  margin: 0 auto;
  /*padding: clamp(16px, 3vw, 32px);*/
}

/* ---------- Hero ---------- */
/*.hero {
  height: 70vh;
  background-image: url("img/recreatieborrel-header2.png");
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  color: #e2e8f0;
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  padding: 0 20px;
}*/

/* Desktop default */
.hero {
  min-height: clamp(760px, 70vh, 720px);
  background-image: url("img/recreatieborrel-header2.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 60%; /* iets lager focus */
}

/* Tablet */
@media (max-width: 900px) {
  .hero {
    min-height: 42vh;               /* iets lager, minder crop links/rechts */
    background-position: center 50%;
  }
}

/* Telefoon */
@media (max-width: 600px) {
  .hero {
    background-image: url("img/recreatieborrel-header2-mobile.png");
    background-size: cover;
    background-position: right;
    min-height: 34vh;
  }
}


.info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 20px 0;
  max-width: 1140px;
  margin: 0 auto;
}

.hero_title{
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  margin: 20px;
  padding: 20px 20px 0px 20px;
  display: flex;
  flex-direction: column;
}

.title {
  margin-top: 0px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
}

.subtitle {
  max-width: 800px;
  margin: 12px auto 16px;
  line-height: 1.6;
  font-size: 22px;
  font-weight: bold;
  color: white;
  border-radius: 15px;
  padding: 0px 20px 20px 20px;
}

/* ---------- Kaarten & layout ---------- */
.card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 24px;
  margin: 28px 0px 28px 0px;
}

main.wrap {
  display: block;
  max-width: 1140px;
}

/* ---------- Tekst ---------- */
h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
}

/* ---------- Badges ---------- */
.badges {
  display: flex;
  flex-direction: column; /* standaard: onder elkaar (mobile-first) */
  align-items: stretch;
  margin-top: 32px;
  width: 100%;
}

.badge {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  color: var(--ink);
  background-color: white;
  padding: 20px;
  margin: 5px 0px;
  border-radius: 15px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

@media (min-width: 900px) {
  .info .badges {
    flex-direction: row; /* vanaf desktop naast elkaar */
    justify-content: space-between; /* alleen binnen .info space-between */
  }

  .badge {
    margin: 0px;
  }

  .badges .badge:nth-child(2) {
    margin: 0px 10px;
  }
}

/* ---------- Formulieren ---------- */
form {
  display: grid;
  gap: 14px;
}

label {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #bae6fd;
  border-color: #7dd3fc;
}

.row {
  display: grid;
  gap: 12px;
}

@media (min-width: 700px) {
  .row-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .row-3 {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ---------- Consent ---------- */
/*.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
}

.consent input {
  margin-top: 3px;
}*/

/* ---------- Consent (iOS Safari fix) ---------- */
.consent {
  display: grid;
  grid-template-columns: auto 1fr; /* checkbox | tekst */
  align-items: start;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;             /* belangrijk: grid-item mag krimpen */
}

.consent input[type="checkbox"] {
  margin-top: 3px;
}

.consent label {
  min-width: 0;             /* belangrijk voor iOS */
  white-space: normal;
  overflow-wrap: anywhere;  /* breek lange stukken tekst */
  word-break: break-word;   /* fallback */
  -webkit-hyphens: auto;
  hyphens: auto;
}

.hint {
  font-size: 12px;
  color: #64748b;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  padding: 13px 18px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  color: white;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Statusmeldingen ---------- */
.status {
  display: none;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
}

.status.ok {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #bbf7d0;
}

.status.err {
  display: block;
  background: #fef2f2;
  color: #7f1d1d;
  border: 1px solid #fecaca;
}

/* ---------- Organisatoren ---------- */
.orgs {
  display: grid;
  grid-template-columns: 1fr; /* mobiel/tablet: onder elkaar */
  gap: 18px;
}

.org {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.org h3 {
  margin: 10px 0 6px;
  font-size: 18px;
}

.org-img {
  width: 100%;
  height: 160px;              /* vaste hoogte voor nette tegels */
  object-fit: contain;          /* vul zonder rekken */
  object-position: left;
  margin-bottom: 10px;
}

/* Desktop: 3 kolommen naast elkaar */
@media (min-width: 900px) {
  .orgs {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* ---------- Footer ---------- */
.foot {
  color: #cbd5e1;
  text-align: center;
  font-size: 13px;
  padding: 24px 0;
}

/* ---------- Honeypot ---------- */
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}


/* ---------- Praktische info card ---------- */
.info-card {
  display: grid;
  gap: 18px;
}

.info-card .info-media img {
  width: 100%;
  height: 100%;
  max-height: 320px;      /* voorkom té hoge kaart op mobiel */
  object-fit: cover;      /* vul mooi uit */
  border-radius: 12px;
  display: block;
}

.info-card .info-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.info-list > div {
  display: grid;
  grid-template-columns: 140px 1fr; /* label | value op brede schermen */
  gap: 10px;
}

.info-list dt {
  font-weight: 700;
  color: var(--ink);
}

.info-list dd {
  margin: 0;
  color: var(--muted);
}

/* Desktop: 1/3 (beeld) | 2/3 (tekst) en keurige hoogte */
@media (min-width: 900px) {
  .info-card {
    grid-template-columns: 1fr 2fr;  /* 1/3 | 2/3 */
    align-items: stretch;
  }
  .info-card .info-media img {
    height: 100%;
    max-height: none; /* volg de hoogte van de card */
  }
  .info-list > div {
    grid-template-columns: 160px 1fr; /* iets ruimer label op desktop */
  }
}
