/* MAP Office-Kontakt: nur dieser Bereich; Vorstand und restliche Website bleiben unverändert. */
.office-section {
  padding-block: 64px;
  scroll-margin-top: 100px;
}
.office-card {
  display: grid;
  grid-template-columns: 191px minmax(0, 1fr);
  align-items: start;
  gap: 36px;
  max-width: 1000px;
  margin-inline: auto;
  padding: 32px;
  background: var(--white, #fff);
  border: 1px solid var(--line, #dce8e4);
  border-radius: var(--radius-lg, 32px);
  box-shadow: var(--shadow-sm, 0 8px 28px rgba(16,72,58,.08));
}
.office-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--green-50, #f3f8f6);
  border: 1px solid var(--line, #dce8e4);
  border-radius: 20px;
}
/* Die Vorlage ist 147 x 209 Pixel groß. Keine künstliche Vergrößerung. */
.office-portrait .office-photo {
  display: block;
  width: 147px;
  max-width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 10px;
}
.office-role {
  color: var(--green-900, #10483a);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.4;
}
.office-content { min-width: 0; }
.office-content .eyebrow { margin-bottom: 8px; }
.office-content h2 {
  margin: 0 0 12px;
  color: var(--ink, #16312d);
  font-size: clamp(1.65rem, 2.8vw, 2rem);
  line-height: 1.22;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
}
.office-intro {
  margin: 0;
  color: var(--text, #425a55);
  font-size: 1rem;
  line-height: 1.65;
}
.office-hours {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 16px;
  color: var(--green-900, #10483a);
  background: var(--green-50, #f3f8f6);
  border: 1px solid var(--line, #dce8e4);
  border-radius: 14px;
}
.office-hours svg { width: 23px; height: 23px; flex: 0 0 23px; }
.office-hours p { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 0; line-height: 1.5; }
.office-hours strong { font-weight: 700; }
.office-hours span { white-space: nowrap; }
.office-contact-list { margin-top: 14px; }
.office-contact-row {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line, #dce8e4);
  line-height: 1.6;
}
.office-contact-row:last-child { border-bottom: 0; padding-bottom: 0; }
.office-contact-row dt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink, #16312d);
  font-size: .91rem;
  font-weight: 700;
  padding-top: 1px;
}
.office-contact-row dt svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--green-700, #1f7458);
}
.office-contact-row dd { min-width: 0; margin: 0; color: var(--text, #425a55); font-size: 1rem; }
.office-contact-row address { font-style: normal; }
.office-contact-row a { display: inline-block; overflow-wrap: anywhere; text-underline-offset: 3px; }
.office-contact-row a:hover { text-decoration: underline; }
.office-contact-row a:focus-visible { outline: 2px solid var(--green-700, #1f7458); outline-offset: 4px; border-radius: 3px; }
.office-phone-links { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.office-phone-links a { white-space: nowrap; }
@media (max-width: 820px) {
  .office-card { grid-template-columns: 169px minmax(0, 1fr); gap: 24px; padding: 24px; }
  .office-portrait { padding: 10px; }
  .office-contact-row { grid-template-columns: 1fr; gap: 4px; }
  .office-contact-row dd { padding-left: 30px; }
}
@media (max-width: 580px) {
  .office-section { padding-block: 40px; }
  .office-card { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px; border-radius: 22px; }
  .office-portrait { justify-self: start; padding: 12px; gap: 10px; border-radius: 16px; }
  .office-portrait .office-photo { width: 112px; }
  .office-content h2 { font-size: 1.65rem; }
  .office-hours { padding: 12px; align-items: start; }
  .office-hours svg { margin-top: 2px; }
  .office-phone-links { flex-direction: column; gap: 6px; }
}

/* Vorstand: Gruppenfoto oben, Inhalte kompakt darunter. */
.board-card {
  max-width: 1180px;
  margin-inline: auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line, #dce8e4);
  border-radius: var(--radius-lg, 32px);
  box-shadow: var(--shadow-sm, 0 8px 28px rgba(16,72,58,.08));
}
.board-photo-wrap {
  display: block;
  width: 100%;
  background: #f5f7f6;
}
.board-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  object-position: center;
}
.board-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 46px;
  padding: 38px 42px 42px;
}
.board-main h2 {
  margin: 8px 0 14px;
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: 1.12;
}
.board-main > p {
  margin: 0;
  max-width: 650px;
}
.board-names {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.board-name {
  padding: 11px 16px;
  color: var(--green-900, #10483a);
  background: var(--green-50, #f3f8f6);
  border: 1px solid var(--line, #dce8e4);
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.25;
}
.rossian-compact {
  align-self: start;
  padding-left: 34px;
  border-left: 1px solid var(--line, #dce8e4);
}
.rossian-compact .eyebrow {
  display: block;
  margin-bottom: 10px;
  line-height: 1.45;
}
.rossian-compact h3 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.25;
}
.rossian-compact h3 small {
  font-size: .78em;
  font-weight: 700;
}
.rossian-compact p {
  margin: 0 0 12px;
}
.rossian-compact p:last-child {
  margin-bottom: 0;
}
@media (max-width: 820px) {
  .board-card { border-radius: 24px; }
  .board-photo { max-height: none; }
  .board-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
  }
  .rossian-compact {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line, #dce8e4);
  }
}
@media (max-width: 580px) {
  .board-card { border-radius: 20px; }
  .board-content { padding: 22px; gap: 24px; }
  .board-main h2 { font-size: 1.75rem; }
  .board-names { gap: 8px; margin-top: 18px; }
  .board-name { padding: 9px 12px; font-size: .94rem; }
  .rossian-compact { padding-top: 20px; }
}

/* Vorstand V2: Überschrift oberhalb des Fotos, Namen direkt darunter. */
.board-card-v2 .board-heading {
  padding: 38px 42px 30px;
  text-align: center;
}
.board-card-v2 .board-heading h2 {
  margin: 8px 0 14px;
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: 1.12;
}
.board-card-v2 .board-heading p {
  max-width: 780px;
  margin: 0 auto;
}
.board-card-v2 .board-after-photo {
  padding: 28px 42px 42px;
}
.board-card-v2 .board-names {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 30px;
}
.board-card-v2 .board-name {
  text-align: center;
  border-radius: 14px;
}
.board-card-v2 .rossian-compact {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 0 0;
  border-left: 0;
  border-top: 1px solid var(--line, #dce8e4);
  text-align: center;
}
.board-card-v2 .rossian-compact .eyebrow {
  margin-inline: auto;
}
@media (max-width: 820px) {
  .board-card-v2 .board-heading { padding: 28px 28px 24px; }
  .board-card-v2 .board-after-photo { padding: 24px 28px 30px; }
  .board-card-v2 .board-names { grid-template-columns: 1fr; margin-bottom: 24px; }
  .board-card-v2 .rossian-compact { padding-top: 22px; }
}
@media (max-width: 580px) {
  .board-card-v2 .board-heading { padding: 22px 20px 18px; }
  .board-card-v2 .board-after-photo { padding: 20px; }
  .board-card-v2 .board-heading h2 { font-size: 1.75rem; }
}


/* 2026-09-20: kompakte Namen unter dem Gruppenfoto */
.board-after-photo {
  padding: 22px 34px 34px;
}
.board-names-four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
}
.board-names-four .board-name {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 8px 10px;
  border-radius: 13px;
  font-size: .88rem;
  text-align: center;
  line-height: 1.2;
}
.board-names-four .board-name small {
  display: block;
  margin-top: 3px;
  color: var(--text, #425a55);
  font-size: .66rem;
  font-weight: 600;
  line-height: 1.2;
}
.board-names-four .board-name-rossian {
  background: #eef7f3;
  border-color: #cfe2db;
}
.board-after-photo .rossian-compact {
  margin-top: 0;
  padding: 24px 0 0;
  border-left: 0;
  border-top: 1px solid var(--line, #dce8e4);
}
@media (max-width: 820px) {
  .board-after-photo { padding: 20px 24px 28px; }
  .board-names-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .board-after-photo { padding: 16px 18px 24px; }
  .board-names-four { gap: 8px; margin-bottom: 20px; }
  .board-names-four .board-name { font-size: .82rem; padding: 8px 6px; min-height: 46px; }
  .board-names-four .board-name small { font-size: .61rem; }
}

/* 2026-09-20: Namen exakt unter den Personen im Gruppenfoto ausrichten. */
@media (min-width: 821px) {
  .board-card-v2 .board-after-photo {
    padding: 14px 24px 38px;
  }
  .board-card-v2 .board-names.board-names-four {
    position: relative;
    display: block;
    height: 44px;
    margin: 0 0 28px;
  }
  .board-card-v2 .board-names-four .board-name {
    position: absolute;
    top: 0;
    width: max-content;
    max-width: 170px;
    min-height: 0;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: .82rem;
    line-height: 1.15;
    white-space: nowrap;
    transform: translateX(-50%);
  }
  .board-card-v2 .board-names-four .board-name:nth-child(1) { left: 23%; }
  .board-card-v2 .board-names-four .board-name:nth-child(2) { left: 44%; }
  .board-card-v2 .board-names-four .board-name:nth-child(3) { left: 61%; }
  .board-card-v2 .board-names-four .board-name:nth-child(4) { left: 76%; }
  .board-card-v2 .board-names-four .board-name-rossian {
    background: var(--green-50, #f3f8f6);
    border-color: var(--line, #dce8e4);
  }
}

@media (max-width: 820px) {
  .board-card-v2 .board-names.board-names-four {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 22px;
  }
  .board-card-v2 .board-names-four .board-name {
    width: auto;
    min-height: 0;
    padding: 8px 10px;
    font-size: .82rem;
  }
}

/* FINAL: durchgehende Namensleiste über die gesamte Breite des Gruppenfotos */
.board-card-v2 .board-after-photo {
  padding: 0 0 34px !important;
}
.board-card-v2 .board-names.board-names-four {
  position: static !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  width: 100% !important;
  height: auto !important;
  gap: 0 !important;
  margin: 0 0 12px !important;
  background: var(--green-50, #f3f8f6);
  border-top: 1px solid var(--line, #dce8e4);
  border-bottom: 1px solid var(--line, #dce8e4);
}
.board-card-v2 .board-names-four .board-name {
  position: static !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 44px !important;
  padding: 9px 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--green-900, #10483a) !important;
  background: transparent !important;
  border: 0 !important;
  border-right: 1px solid var(--line, #dce8e4) !important;
  border-radius: 0 !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  text-align: center !important;
}
.board-card-v2 .board-names-four .board-name:last-child {
  border-right: 0 !important;
}
.board-card-v2 .board-after-photo .rossian-compact {
  max-width: 820px;
  margin: 0 auto !important;
  padding: 10px 34px 0 !important;
  border-left: 0 !important;
  border-top: 0 !important;
  text-align: center;
}

@media (max-width: 820px) {
  .board-card-v2 .board-names.board-names-four {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .board-card-v2 .board-names-four .board-name:nth-child(2) {
    border-right: 0 !important;
  }
  .board-card-v2 .board-names-four .board-name:nth-child(-n+2) {
    border-bottom: 1px solid var(--line, #dce8e4) !important;
  }
  .board-card-v2 .board-after-photo .rossian-compact {
    padding: 12px 22px 0 !important;
  }
}

@media (max-width: 480px) {
  .board-card-v2 .board-names.board-names-four {
    grid-template-columns: 1fr !important;
  }
  .board-card-v2 .board-names-four .board-name {
    min-height: 44px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line, #dce8e4) !important;
    font-size: .86rem !important;
  }
  .board-card-v2 .board-names-four .board-name:last-child {
    border-bottom: 0 !important;
  }
}

/* 2026-09-20: Manuela-Bereich direkt an die Namensleiste ziehen */
.board-card-v2 .board-names.board-names-four {
  margin-bottom: 0 !important;
}
.board-card-v2 .board-after-photo .rossian-compact {
  padding: 8px 26px 14px !important;
  margin-top: 0 !important;
}
.board-card-v2 .rossian-compact .eyebrow {
  margin: 0 0 4px !important;
  line-height: 1.25 !important;
}
.board-card-v2 .rossian-compact h3 {
  margin: 0 0 5px !important;
  line-height: 1.18 !important;
}
.board-card-v2 .rossian-compact p {
  margin: 0 0 6px !important;
  line-height: 1.45 !important;
}
.board-card-v2 .rossian-compact p:last-child {
  margin-bottom: 0 !important;
}
@media (max-width: 820px) {
  .board-card-v2 .board-after-photo .rossian-compact {
    padding: 8px 18px 12px !important;
  }
}

/* FINAL 2026-09-20: Namen schlicht nebeneinander mit etwas Abstand */
.board-card-v2 .board-names.board-names-four {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px 34px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 12px 22px 8px !important;
  background: transparent !important;
  border: 0 !important;
}
.board-card-v2 .board-names-four .board-name {
  display: inline-block !important;
  position: static !important;
  transform: none !important;
  width: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  color: var(--green-900, #10483a) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: .9rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  text-align: center !important;
}
.board-card-v2 .board-after-photo .rossian-compact {
  padding: 8px 24px 14px !important;
  margin: 0 auto !important;
  border: 0 !important;
}
@media (max-width: 700px) {
  .board-card-v2 .board-names.board-names-four {
    gap: 8px 20px !important;
    padding: 12px 16px 8px !important;
  }
  .board-card-v2 .board-names-four .board-name {
    font-size: .86rem !important;
  }
}
@media (max-width: 430px) {
  .board-card-v2 .board-names.board-names-four {
    gap: 7px 14px !important;
  }
  .board-card-v2 .board-names-four .board-name {
    font-size: .82rem !important;
  }
}
