/* ===============================
   BASIS
   =============================== */
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: clamp(.8rem, 3vw, 1.6rem);

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Arial, sans-serif;
  font-size: 16px;

  color: #2f2f2f;
  line-height: 1.7;
  background: url('/img/ofb-background.png') no-repeat center center fixed;
  background-size: cover;
}

.container {
  max-width: 56rem;
  margin: 0 auto;
}

/* ===============================
   CARD
   =============================== */
.card {
  background: rgba(255,255,255,0.93);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.card.hex-card {
  margin: 1.2rem auto;
  max-width: 52rem;
  border: 2px solid rgba(111,127,106,.25);
  box-shadow: 0 3px 14px rgba(0,0,0,.12);
  background: rgba(255,255,255,0.9);
}

/* ===============================
   LOGO (gecentreerd & begrensd)
   =============================== */
.logo-in-card {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.2rem;
}

.logo-in-card img {
  display: block;
  width: clamp(90px, 30vw, 160px);
  max-width: 100%;
  height: auto;
}

/* ===============================
   TRIGRAM + HEXAGRAM BLOK
   ÉÉN kader, flex-wrap gestuurd
   =============================== */
.trigram-hex-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;

  padding: 1.4rem;
  border-radius: 14px;
  background: rgba(0,0,0,.06);
}

/* ===============================
   HEXAGRAM
   =============================== */
.hex-visual-frame {
  order: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hex-visual-inner {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.35);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.15);
}

/* ===============================
   TRIGRAMMEN
   =============================== */
.trigram-list {
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}

.trigram-item {
  padding: 0;
  background: none;
  box-shadow: none;
}

.trigram-visual {
  width: 72px;
  height: 72px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.35);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.15);
}

.trigram-visual a,
.trigram-visual a > div {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===============================
   TEKST & ACTIES
   =============================== */
h1, h2 {
  text-align: center;
}

.subtitle {
  text-align: center;
  font-style: italic;
  color: #5f6f5a;
}

.actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.button {
  width: 240px;
  height: 52px;
  background: #6f7f6a;
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  text-decoration: none;
}

.button:hover {
  background: #5f6f5a;
}

/* ===============================
   FOOTER
   =============================== */
.card-footer {
  margin-top: 2.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,.12);
  text-align: center;
  font-size: .9rem;
}

.card-footer a {
  color: #5f6f5a;
  text-decoration: none;
}

.card-footer a:hover {
  text-decoration: underline;
}

/* ===============================
   RESPONSIVE ACTIES
   =============================== */
.actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Zorg dat alle knoppen exact dezelfde lettergrootte gebruiken */
.button,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  font-size: 1rem !important;
  font-family: inherit !important;
}

