/*
 * Startseite git.verdigado.com – verdigado eG & Netzbegrünung e.V.
 * Alle Regeln sind auf .vnb-home begrenzt und wirken nur auf der Startseite.
 * Neutrale Farben kommen aus den Forgejo-Theme-Variablen (hell/dunkel automatisch),
 * Markenfarben sind fest: verdigado_pink #E60064, verdigado_black #00354E (Styleguide 2020),
 * Netzbegrünung Limette #72B21F (Icon) und Dunkelgrün #0F8442 (Präsentationsvorlage).
 * Schriften liegen lokal (keine Anfrage an Google Fonts), Lizenz: SIL OFL 1.1.
 */

@font-face {
  font-family: 'VNB Sarabun';
  src: url('../fonts/vnb/sarabun-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VNB Sarabun';
  src: url('../fonts/vnb/sarabun-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VNB Sarabun';
  src: url('../fonts/vnb/sarabun-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VNB Plex Mono';
  src: url('../fonts/vnb/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VNB Plex Mono';
  src: url('../fonts/vnb/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

.vnb-home {
  --vnb-pink: #e60064;
  --vnb-navy: #00354e;
  --vnb-lime: #72b21f;
  --vnb-green: #0f8442;
  --vnb-bg: var(--color-body, #f6f7f5);
  --vnb-surface: var(--color-box-body, #ffffff);
  --vnb-text: var(--color-text, #00354e);
  --vnb-muted: var(--color-text-light, #46606d);
  --vnb-border: var(--color-secondary, #dce3e6);
  --vnb-ghost: var(--color-secondary-dark-2, #8fa5af);

  background: var(--vnb-bg);
  color: var(--vnb-text);
  font-family: 'VNB Sarabun', var(--fonts-regular, system-ui, sans-serif);
  font-size: 17px;
  line-height: 1.55;
  text-align: left;
  padding-top: 0;
}

.vnb-home h1,
.vnb-home h2,
.vnb-home h3 {
  font-family: inherit;
  color: var(--vnb-text);
  margin: 0;
  padding: 0;
  border: 0;
}
.vnb-home p {
  margin: 0;
}
.vnb-home a {
  color: inherit;
}
.vnb-home a:hover {
  opacity: 0.85;
  text-decoration: none;
}
.vnb-home img {
  display: block;
  max-width: 100%;
  height: auto;
}

.vnb-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Kopfbereich */
.vnb-hero {
  padding-top: 56px;
  padding-bottom: 56px;
}
.vnb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.vnb-marks {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--vnb-border);
}
.vnb-marks img {
  height: 34px;
  width: auto;
}
.vnb-brand-text {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
}
.vnb-brand-text small {
  font-weight: 400;
  font-size: 14px;
  color: var(--vnb-muted);
}
.vnb-amp {
  color: var(--vnb-muted);
  font-weight: 400;
}
.vnb-home .vnb-hero h1 {
  max-width: 860px;
  text-wrap: balance;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
}
.vnb-lead {
  margin-top: 12px !important;
  font-size: 18px;
  color: var(--vnb-muted);
}
.vnb-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.vnb-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none !important;
}
.vnb-home .vnb-btn-solid {
  background: var(--vnb-text);
  color: var(--vnb-bg);
}
.vnb-btn-ghost {
  border: 1.5px solid var(--vnb-ghost);
}

/* Farbband */
.vnb-band {
  display: flex;
  height: 6px;
}
.vnb-band span {
  flex: 1;
}
.vnb-band span:first-child {
  background: var(--vnb-pink);
}
.vnb-band span:last-child {
  background: var(--vnb-lime);
}

/* Abschnitte */
.vnb-section {
  padding-top: 72px;
  padding-bottom: 24px;
}
.vnb-last {
  padding-bottom: 96px;
}
.vnb-home .vnb-section h2 {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
}
.vnb-intro {
  margin-top: 12px !important;
  max-width: 640px;
  color: var(--vnb-muted);
}

/* Anmeldekarten */
.vnb-cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}
.vnb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 28px 28px;
  background: var(--vnb-surface);
  border: 1px solid var(--vnb-border);
  border-radius: 12px;
  overflow: hidden;
}
.vnb-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: var(--vnb-ghost);
}
.vnb-card-vd::before {
  background: var(--vnb-pink);
}
.vnb-card-nb::before {
  background: var(--vnb-lime);
}
.vnb-kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--vnb-muted);
}
.vnb-home .vnb-card h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}
.vnb-card p {
  color: var(--vnb-muted);
}
.vnb-card strong {
  color: var(--vnb-text);
}
.vnb-grow {
  flex-grow: 1;
}
.vnb-login {
  height: 52px;
  box-sizing: border-box;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none !important;
}
.vnb-home .vnb-login-vd {
  background: var(--vnb-pink);
  color: #ffffff;
}
.vnb-home .vnb-login-nb {
  background: var(--vnb-lime);
  color: var(--vnb-navy);
}
.vnb-home .vnb-login-guest {
  border: 1.5px solid var(--vnb-ghost);
  color: var(--vnb-text);
}
.vnb-note {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 15px;
  color: var(--vnb-muted);
}
.vnb-note p {
  max-width: 640px;
}
.vnb-home .vnb-note a {
  font-weight: 600;
  color: var(--vnb-text);
  text-decoration: underline;
}

/* Erste Schritte */
.vnb-steps {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px 24px;
}
.vnb-steps li {
  border-top: 1px solid var(--vnb-border);
  padding-top: 18px;
}
.vnb-num {
  font-family: 'VNB Plex Mono', var(--fonts-monospace, monospace);
  font-size: 14px;
  color: var(--vnb-muted);
}
.vnb-home .vnb-steps h3 {
  margin: 6px 0;
  font-size: 19px;
  font-weight: 700;
}
.vnb-steps p {
  font-size: 16px;
  color: var(--vnb-muted);
}
.vnb-home .vnb-steps a {
  font-weight: 600;
  color: var(--vnb-text);
  text-decoration: underline;
}

/* Projekte */
.vnb-projects {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.vnb-project {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--vnb-surface);
  border: 1px solid var(--vnb-border);
  border-radius: 12px;
  text-decoration: none !important;
}
.vnb-chip {
  flex: none;
  width: 52px;
  height: 52px;
  box-sizing: border-box;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--vnb-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vnb-chip img {
  height: 38px;
  width: auto;
}
.vnb-project-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
  color: var(--vnb-muted);
}
.vnb-mono {
  font-family: 'VNB Plex Mono', var(--fonts-monospace, monospace);
  font-size: 15px;
  font-weight: 500;
  color: var(--vnb-text);
}
.vnb-more {
  margin-top: 20px !important;
  font-size: 15px;
}
.vnb-home .vnb-more a {
  font-weight: 600;
  text-decoration: underline;
}

/* Wer steckt dahinter */
.vnb-orgs {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.vnb-org {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
}
.vnb-home .vnb-org-vd {
  background: var(--vnb-pink);
  color: #ffffff;
}
.vnb-home .vnb-org-nb {
  background: var(--vnb-green);
  color: #ffffff;
}
.vnb-org-logo {
  height: 220px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.vnb-org-nb .vnb-org-logo {
  padding: 32px;
}
.vnb-org-logo > img {
  max-height: 150px;
  width: auto;
}
/* verdigado-Logo laut Styleguide nur auf Weiß */
.vnb-org-white {
  height: 100%;
  width: 290px;
  max-width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.vnb-org-white img {
  max-height: 136px;
  width: auto;
}
.vnb-org-text {
  padding: 0 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
}
.vnb-org-text strong {
  font-size: 20px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .vnb-hero {
    padding-top: 36px;
    padding-bottom: 40px;
  }
  .vnb-section {
    padding-top: 56px;
  }
  .vnb-home .vnb-section h2 {
    font-size: 28px;
  }
  .vnb-home .vnb-hero h1 {
    font-size: 24px;
  }
}

/* Open Source auf GitHub */
.vnb-oss {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
.vnb-oss-label {
  font-size: 15px;
  color: var(--vnb-muted);
  margin-right: 4px;
}
.vnb-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--vnb-border);
  background: var(--vnb-surface);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
}
.vnb-home .vnb-section .vnb-subhead {
  margin-top: 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--vnb-muted);
}
.vnb-subhead + .vnb-projects {
  margin-top: 14px;
}
.vnb-chip-gh {
  background: #24292f;
  border-color: #24292f;
  color: #ffffff;
}
