/*
Theme Name: Aktive Bönnigheimer
Theme URI: https://aktive-boennigheimer.org/
Author: Aktive Bönnigheimer
Author URI: https://aktive-boennigheimer.org/
Description: Custom theme for the Aktive Bönnigheimer website.
Version: 0.6.3
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aktive-boennigheimer
Domain Path: /languages
Requires at least: 6.0
Requires PHP: 8.0
*/

/* Inter: cyrillic-ext, locally hosted. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-cyrillic-ext-variable.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Inter: cyrillic, locally hosted. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-cyrillic-variable.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Inter: greek-ext, locally hosted. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-greek-ext-variable.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}

/* Inter: greek, locally hosted. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-greek-variable.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* Inter: vietnamese, locally hosted. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-vietnamese-variable.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Inter: latin-ext, locally hosted. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext-variable.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter: latin, locally hosted. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --wine: #001b38;
  --wine-dark: #000f1f;
  --button: #ed5749;
  --button-dark: #cf3f33;
  --cream: #f7f1e8;
  --cream-strong: #efe3d2;
  --charcoal: #001b38;
  --muted: #5f6f52;
  --gold: #c59a4a;
  --white: #fffdf8;
  --line: rgba(0, 27, 56, 0.14);
  --shadow: 0 18px 45px rgba(0, 27, 56, 0.1);
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
}

.site-shell > main {
  flex: 1 0 auto;
}

.site-main-inner {
  background: var(--cream-strong);
}

.site-footer {
  flex-shrink: 0;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(0, 27, 56, 0.1);
  background: #fff;
}

.nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--charcoal);
}

.brand-logo {
  display: block;
  width: 145px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(0, 27, 56, 0.78);
  font-size: 15px;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--wine);
}

.nav-links a.button:hover {
  color: var(--white);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
}


.survey-nav-link {
  display: inline-flex;
  min-height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  border: 1px solid var(--button);
  border-radius: 7px;
  padding: 6px 12px;
  background: var(--white);
  color: var(--button);
  line-height: 1.05;
}

.survey-nav-link span {
  color: var(--button);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.survey-nav-link strong {
  display: block;
  max-width: 150px;
  overflow: hidden;
  color: var(--button);
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.survey-nav-link:hover {
  border-color: var(--button-dark);
  background: var(--button-dark);
  color: var(--white);
}

.survey-nav-link:hover span,
.survey-nav-link:hover strong {
  color: var(--white);
}

/* ── Buttons ── */
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 16px;
  background: var(--button);
  color: var(--white);
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}

.button:hover,
button:hover {
  background: var(--button-dark);
  color: var(--white);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 27, 56, 0.32);
  color: var(--white);
}

.button.secondary:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--button);
}

.button.light {
  border-color: var(--line);
  background: var(--white);
  color: var(--button);
}

.button.light:hover {
  border-color: var(--button);
  background: var(--button);
  color: var(--white);
}

/* ── Hero ── */
.hero {
  --hero-image-left: 50%;
  --hero-cut-width: 9%;
  --hero-image-cut: 18%;
  --hero-divider-width: 16px;
  --hero-divider-gap: 15px;
  position: relative;
  overflow: hidden;
  height: calc(100svh - var(--header-height));
  background:
    linear-gradient(135deg, rgba(0, 27, 56, 0.98), rgba(0, 15, 31, 0.96) 58%, rgba(95, 111, 82, 0.88));
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 120px);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--hero-image-left) - var(--hero-divider-gap));
  z-index: 1;
  width: calc(var(--hero-cut-width) + var(--hero-divider-width));
  clip-path: polygon(calc(100% - var(--hero-divider-width)) 0, 100% 0, var(--hero-divider-width) 100%, 0 100%);
  background: rgba(247, 241, 232, 0.2);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 50%);
  height: 100%;
  min-height: 0;
  align-items: center;
  padding: clamp(24px, 5vh, 56px) 0;
}

.hero-copy {
  max-width: 600px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

h1 {
  max-width: 800px;
  font-size: clamp(48px, min(7vw, 10vh), 86px);
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
}

h3 {
  font-size: 25px;
}

.hero-copy p {
  max-width: 650px;
  margin: clamp(14px, 3vh, 24px) 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.6vh, 22px);
}

.hero-copy > .eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.hero-eyebrow {
  display: block;
}

.hero-eyebrow .no-break {
  white-space: nowrap;
}

.hero-eyebrow > :first-child {
  margin-top: 0;
}

.hero-eyebrow > :last-child {
  margin-bottom: 0;
}

.hero-copy .hero-eyebrow p {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.hero-copy > h1 {
  padding-bottom: 0;
}

.hero-copy > .hero-intro {
  margin-top: 0;
}

.hero-copy > .hero-intro > :first-child {
  margin-top: 0;
}

.hero-copy > .hero-intro > :last-child {
  margin-bottom: 0;
}

.hero-copy > .hero-intro p {
  line-height: 1.5;
}

.hero-copy > .hero-actions {
  margin-top: 0;
}

.hero-copy > .hero-additional {
  margin: 0;
}

.hero-copy > .hero-additional > .hero-quote {
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(18px, 4vh, 34px);
}

.hero-copy .hero-quote {
  margin: clamp(14px, 3vh, 26px) 0 0;
  color: var(--gold);
}

.hero-copy .hero-quote p {
  margin: 0;
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
}

.hero-quote cite {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-style: normal;
}

.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--hero-image-left);
  z-index: 0;
  width: auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  clip-path: polygon(var(--hero-image-cut) 0, 100% 0, 100% 100%, 0 100%);
}

.hero-visual::before {
  display: none;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
}

.hero-visual figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(0, 27, 56, 0.58);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.hero-visual figcaption a,
.post-thumbnail figcaption a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ── Sections ── */
section {
  padding: 92px 0;
}

.section-cream-strong {
  background: var(--cream-strong);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: rgba(0, 27, 56, 0.7);
}

.section-head-stacked {
  align-items: flex-start;
  flex-direction: column;
  gap: 14px;
}

.section-head-stacked > div {
  width: 100%;
}

.section-head-stacked > p {
  max-width: 760px;
}

/* ── Grids ── */
.grid {
  display: grid;
  gap: 18px;
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.work-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.work-grid > .work-card {
  grid-column: span 2;
  grid-template-rows: auto auto 1fr;
}

.work-grid > .work-card:nth-last-child(2):nth-child(3n + 1) {
  grid-column: 2 / span 2;
}

.work-grid > .work-card:last-child:nth-child(3n + 1) {
  grid-column: 3 / span 2;
}

.work-grid .work-card h3 {
  font-size: 23px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ── Cards ── */
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(0, 27, 56, 0.05);
}

.work-card {
  display: grid;
  grid-template-rows: auto minmax(72px, auto) 1fr;
  align-content: start;
  min-height: 230px;
  padding: 22px;
}

.status {
  display: inline-flex;
  justify-self: start;
  margin-bottom: 22px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(95, 111, 82, 0.13);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.work-card p,
.post-card p,
.person-card p {
  color: rgba(0, 27, 56, 0.7);
}

.work-card h3 {
  align-self: start;
}

.work-card p {
  margin-top: 10px;
}

/* ── Board ── */
.board-section {
  background: var(--wine);
  color: var(--white);
}

.board-section .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.board-section-light {
  background: var(--white);
  color: var(--charcoal);
}

.board {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--wine);
  color: var(--white);
}

.board-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1.2fr;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 5px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.board-row:not(.header):nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

.board-row:not(.header):nth-child(odd) {
  background: rgba(255, 255, 255, 0.065);
}

.board-row:last-child {
  border-bottom: 0;
}

.board-row:not(.header):hover {
  background: rgba(255, 255, 255, 0.095);
}

.board-row.header {
  border-left: 0;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.board-row.status-gesammelt {
  border-left-color: #c59a4a;
}

.board-row.status-in-prufung,
.board-row.status-auswertung-lauft {
  border-left-color: #8fb3d9;
}

.board-row.status-konzeptphase,
.board-row.status-diskussion {
  border-left-color: #b893c6;
}

.board-row.status-in-bearbeitung,
.board-row.status-im-gemeinderat {
  border-left-color: #ed5749;
}

.board-row.status-beschlossen {
  border-left-color: #8fbf8f;
}

/* The accent is decorative and rotates independently of repeated statuses. */
.board-row:not(.header):nth-child(4n + 2) {
  border-left-color: #c59a4a;
}

.board-row:not(.header):nth-child(4n + 3) {
  border-left-color: #8fb3d9;
}

.board-row:not(.header):nth-child(4n + 4) {
  border-left-color: #b893c6;
}

.board-row:not(.header):nth-child(4n + 1) {
  border-left-color: #ed5749;
}

/* ── Event Band ── */
.event-band {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--wine);
  color: var(--white);
}

.event-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
}

.event-box p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

/* ── Post & Person Cards ── */
.post-card,
.person-card {
  padding: 22px;
}

.team-group + .team-group {
  margin-top: 56px;
}

.team-group h2 {
  margin-bottom: 24px;
}

.team-council h2 {
  text-align: center;
}

.team-council-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 28px;
}

.person-card-featured {
  display: flex;
  flex-direction: column;
  padding: 28px;
  text-align: center;
}

.person-card-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.person-profile-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: auto;
  border: 1px solid rgba(237, 87, 73, 0.55);
  border-radius: 999px;
  padding: 0;
  color: var(--button);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.person-card-main:hover .person-profile-link,
.person-card-main:focus-visible .person-profile-link,
.person-card-compact-main:hover .person-profile-link,
.person-card-compact-main:focus-visible .person-profile-link {
  border-color: var(--button);
  background: var(--button);
  color: var(--white);
}

.person-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dotted rgba(0, 27, 56, 0.2);
}

.person-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid rgba(237, 87, 73, 0.55);
  border-radius: 999px;
  color: #001b38;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.person-social-links svg,
.footer-social svg {
  display: block;
  width: 100%;
  height: 100%;
}

.person-social-links a:hover,
.person-social-links a:focus-visible {
  border-color: #ed5749;
  background: #ed5749;
  color: #fff;
}

.person-card-featured .person-photo {
  margin: -28px -28px 24px;
}

.person-card-featured h3 {
  font-size: clamp(30px, 3vw, 42px);
}

.person-title-prefix {
  display: block;
  margin-bottom: 4px;
  min-height: 1.2em;
  color: rgba(0, 27, 56, 0.7);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: none;
}

.person-title-prefix.is-empty {
  visibility: hidden;
}

.post-header .person-title-prefix {
  margin-bottom: 6px;
  font-size: 18px;
}

.person-card-compact {
  display: block;
  position: relative;
}

.person-card-compact-main {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.person-card-heading {
  margin-bottom: 16px;
}

.person-card-compact.has-social-links .person-card-heading {
  padding-right: 70px;
}

.person-card-heading .person-title-prefix.is-empty {
  display: none;
}

.person-card-heading h3 {
  margin: 0;
}

.person-card-compact-socials {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 6px;
}

.person-card-compact-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 7px;
  border: 1px solid rgba(237, 87, 73, 0.55);
  border-radius: 999px;
  color: #001b38;
  line-height: 1;
}

.person-card-compact-socials svg {
  display: block;
  width: 100%;
  height: 100%;
}

.person-card-compact-socials a:hover,
.person-card-compact-socials a:focus-visible {
  border-color: #ed5749;
  background: #ed5749;
  color: #fff;
}

.person-card-compact-content {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.person-card-compact-content .person-card-body:only-child {
  grid-column: 1 / -1;
}

.person-card-compact .person-photo-round {
  width: 144px;
  margin: 0;
  border-radius: 999px;
  aspect-ratio: 1;
}

.person-card-compact .person-photo-round img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--person-focus-x, 50%) var(--person-focus-y, 0%);
}

.person-card-body {
  display: block;
}

.person-card-body h3 {
  margin-bottom: 8px;
}

.person-card-body strong {
  display: block;
  margin-bottom: 6px;
  color: var(--charcoal);
}

.person-card-body span {
  color: rgba(0, 27, 56, 0.7);
  line-height: 1.45;
}

.post-card-image {
  display: block;
  overflow: hidden;
  width: calc(100% + 44px);
  margin: -22px -22px 18px;
  border-radius: 8px 8px 0 0;
  aspect-ratio: 16 / 10;
  background: var(--cream-strong);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.post-thumbnail {
  position: relative;
  width: min(760px, 100%);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: 0 auto 36px;
  border-radius: 8px;
  background: var(--cream-strong);
}

.prose > .post-thumbnail {
  margin-bottom: 36px !important;
}

.post-thumbnail img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

.post-thumbnail figcaption {
  position: absolute;
  right: 5px;
  bottom: 5px;
  max-width: calc(100% - 10px);
  margin: 0;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(0, 27, 56, 0.58);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.person-detail-photo {
  float: right;
  overflow: hidden;
  width: min(360px, 45%);
  margin: 0 0 18px 28px;
  border-radius: 8px;
}

.person-detail-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-position: var(--person-focus-x, 50%) var(--person-focus-y, 0%);
}

.person-detail-content::after {
  display: block;
  clear: both;
  content: "";
}

.single-menschen .site-main-inner,
.single-menschen .site-main-inner > .container,
.single-menschen .content-wrapper {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

.single-menschen .content-wrapper {
  width: 100%;
}

.single-menschen .post-header {
  padding-top: 16px;
}

.person-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.person-heading-name {
  min-width: 0;
}

.person-heading-row h1 {
  margin-bottom: 0;
}

.person-header-social-links {
  flex: 0 0 auto;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}

.single-post .page-hero + section {
  padding-bottom: 24px;
}

.post-navigation {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 27, 56, 0.14);
}

.post-navigation .nav-links {
  align-items: flex-start;
  justify-content: space-between;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  max-width: 46%;
}

.post-navigation .nav-next {
  margin-left: auto;
  text-align: right;
}

.post-navigation a {
  text-decoration: none;
}

.single-menschen .post-navigation {
  margin-top: auto;
  padding-bottom: 16px;
}

.single-umfragen .post-navigation {
  padding-bottom: 16px;
}

.single-umfragen .post-header {
  width: 100%;
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
  text-align: left;
}

.person-photo {
  display: block;
  overflow: hidden;
  margin: -22px -22px 22px;
  border-radius: 8px 8px 0 0;
  aspect-ratio: 4 / 5;
  background: var(--cream-strong);
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--person-focus-x, 50%) var(--person-focus-y, 0%);
}

.event-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.event-groups {
  display: grid;
  gap: 64px;
}

.event-group-heading {
  gap: 8px;
  margin-bottom: 24px;
}

.event-group-empty {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  color: rgba(0, 27, 56, 0.7);
}

.event-grid > .event-card:only-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - 18px) / 2);
}

.event-card-action {
  align-self: flex-end;
  margin-top: auto;
}

.event-program {
  margin: 18px 0 24px;
  color: rgba(0, 27, 56, 0.74);
}

.event-program > :first-child {
  margin-top: 0;
}

.event-program > :last-child {
  margin-bottom: 0;
}

.event-program ul,
.event-program ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

.event-program li + li {
  margin-top: 6px;
}

.entry-detail {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.entry-detail strong {
  color: var(--wine);
}

/* ── Section Actions ── */
.section-action {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.section-action .participation-button {
  border-color: var(--button);
  background: transparent;
  color: var(--button);
}

.section-action .participation-button:hover {
  background: var(--button);
  color: var(--white);
}

/* ── Process Steps ── */
.process-section {
  background: var(--cream-strong);
}

.process-step {
  border-left: 3px solid var(--wine);
  padding: 4px 20px 4px 18px;
}

.process-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--white);
  font-size: 14px;
  font-weight: 850;
}

.process-step p {
  color: rgba(0, 27, 56, 0.72);
}

/* ── Post Meta ── */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--wine);
  font-size: 13px;
  font-weight: 800;
}

/* ── Page Hero ── */
.page-hero {
  padding: 78px 0 56px;
  background: var(--wine);
  color: var(--white);
}

.page-hero .container {
  max-width: 800px;
  text-align: left;
}

.page-hero + section {
  background: var(--cream-strong);
}

.page-hero p {
  max-width: 800px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

/* ── Prose / Content ── */
.prose {
  max-width: 760px;
  margin: 0 auto;
}

.single-post article.prose {
  max-width: 800px;
}

.survey-content {
  max-width: 920px;
}

.post-type-archive-umfragen .page-hero + section {
  padding-bottom: 16px;
}

.survey-content #aboe-survey .aboe-survey__intro > p:not(.aboe-survey__eyebrow) {
  margin-top: 26px !important;
}

.survey-content #aboe-survey .aboe-survey__privacy {
  margin-top: 16px !important;
}

.survey-content #aboe-survey legend {
  float: left;
}

.survey-content #aboe-survey legend + .aboe-survey__help,
.survey-content #aboe-survey legend + .aboe-survey__choices {
  clear: both;
  padding-top: 14px;
}

.survey-content #aboe-survey .aboe-survey__facts li {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 !important;
}

.survey-content #aboe-survey .aboe-survey__choice {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
}

.survey-content #aboe-survey .aboe-survey__choices > br,
.survey-content #aboe-survey .aboe-survey__choice > br {
  display: none !important;
}

.survey-empty {
  text-align: center;
}

.survey-empty p {
  margin: 16px auto 24px;
}

.survey-content iframe {
  width: 100%;
  max-width: 100%;
  border: 0;
}

.survey-intro {
  margin-bottom: 24px !important;
  font-size: 20px;
}

.prose p,
.prose li {
  color: rgba(0, 27, 56, 0.78);
}

.post-content {
  margin-bottom: 48px;
}

.survey-preview {
  padding-top: clamp(32px, 4vw, 56px);
}

.post-content > :first-child,
.prose > :first-child {
  margin-top: 0;
}

.post-content > *,
.prose > * {
  margin-top: 0 !important;
  margin-bottom: 5px !important;
}

.post-content > :last-child,
.prose > :last-child {
  margin-bottom: 0;
}

.post-content p,
.prose p {
  margin-top: 0 !important;
  margin-bottom: 5px !important;
}

.post-content ul,
.post-content ol,
.prose ul,
.prose ol {
  margin-top: 0 !important;
  margin-bottom: 5px !important;
  padding-left: 24px;
}

.post-content .wp-block-paragraph,
.post-content [class^="wp-block-"],
.post-content [class*=" wp-block-"],
.prose .wp-block-paragraph,
.prose [class^="wp-block-"],
.prose [class*=" wp-block-"] {
  margin-top: 0 !important;
  margin-bottom: 5px !important;
  margin-block-start: 0 !important;
  margin-block-end: 5px !important;
}

.post-content .wp-block-paragraph + .wp-block-paragraph,
.prose .wp-block-paragraph + .wp-block-paragraph {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
}

.post-content > h2:not(:first-child),
.post-content > h3:not(:first-child),
.post-content > h4:not(:first-child),
.post-content > .wp-block-heading:not(:first-child),
.prose > h2:not(:first-child),
.prose > h3:not(:first-child),
.prose > h4:not(:first-child),
.prose > .wp-block-heading:not(:first-child) {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
  padding-top: 28px;
}

.post-content > h2,
.post-content > h2.wp-block-heading,
.prose > h2,
.prose > h2.wp-block-heading {
  margin-bottom: 12px !important;
  font-size: 30px !important;
  line-height: 1.15;
}

.post-content > h3,
.post-content > h3.wp-block-heading,
.prose > h3,
.prose > h3.wp-block-heading {
  margin-bottom: 10px !important;
  font-size: 18px !important;
  line-height: 1.2;
}

.post-content > h4,
.post-content > h4.wp-block-heading,
.prose > h4,
.prose > h4.wp-block-heading {
  margin-bottom: 8px !important;
  font-size: 16px !important;
  line-height: 1.25;
}

.post-content p:empty,
.prose p:empty {
  display: none;
}

.post-content li + li,
.prose li + li {
  margin-top: 5px;
}

.post-content .post-sources,
.prose .post-sources {
  margin-top: 32px !important;
  padding: 14px 16px;
  border-left: 3px solid rgba(237, 87, 73, 0.65);
  background: rgba(0, 27, 56, 0.045);
  font-size: 0.8em;
  line-height: 1.5;
  color: rgba(0, 27, 56, 0.7);
}

.post-content .post-sources > :last-child,
.prose .post-sources > :last-child {
  margin-bottom: 0 !important;
}

.post-content .post-sources p,
.prose .post-sources p {
  font-size: 14px !important;
  line-height: 1.5;
}

.is-impressum .prose a,
.is-impressum .post-content a {
  color: var(--button);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.is-impressum .prose a:hover,
.is-impressum .post-content a:hover {
  color: var(--button-dark);
}

/* ── Comments ── */
.comments-area {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.comment-list {
  display: grid;
  gap: 18px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.comment-body {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
}

.comment-meta {
  margin-bottom: 10px;
  color: rgba(0, 27, 56, 0.68);
  font-size: 14px;
}

.comment-form {
  display: grid;
  gap: 14px;
}

.comment-form label {
  display: inline;
  margin-bottom: 0;
  font-weight: 800;
}

.comment-form .comment-form-comment label,
.comment-form .comment-form-author label,
.comment-form .comment-form-email label,
.comment-form .comment-form-url label {
  display: inline-block;
  margin-bottom: 8px;
  padding-left: 8px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
}

.comment-form input[type="checkbox"] {
  width: auto;
  margin: 0 8px 0 0;
}

.comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 8px;
}

.comment-form .comment-form-cookies-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
}

.comment-form .required,
.comment-form .required-field-message {
  display: inline;
}

/* ── Forms ── */
.form-panel {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  padding: 28px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.participation-heading {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.form-privacy-note {
  margin: 2px 0 18px;
  color: rgba(0, 27, 56, 0.7);
  font-size: 14px;
}

.form-required-note {
  margin: 0;
  color: rgba(0, 27, 56, 0.7);
  font-size: 13px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.page-intro {
  margin: 0 0 28px;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.confirmation-hero {
  min-height: calc(100vh - var(--header-height) - 150px);
}

.confirmation-page {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-height) - 150px);
  background: var(--cream-strong);
}

.confirmation-page > .container {
  width: 100%;
}

.confirmation-card {
  max-width: 760px;
  margin: 0 auto;
  border-left: 5px solid var(--button);
  padding: 32px;
  box-shadow: none;
}

.confirmation-card h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 52px);
}

.confirmation-card > p:last-of-type {
  margin-bottom: 0;
  color: rgba(0, 27, 56, 0.76);
}

.navigation.pagination {
  margin-top: 34px;
}

.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 12px;
  background: var(--white);
}

.page-numbers.current {
  border-color: var(--wine);
  background: var(--wine);
  color: var(--white);
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 14px;
  background: var(--white);
  color: var(--charcoal);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* ── Footer ── */
.site-footer {
  padding: 44px 0;
  background: var(--wine);
  color: rgba(255, 255, 255, 0.74);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand strong {
  color: var(--white);
}

.footer-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-email {
  color: var(--white);
}

.footer-legal {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 700;
}

.footer-social strong {
  color: var(--white);
}

.footer-social-links {
  display: flex;
  gap: 10px;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 6px;
  color: rgba(255, 255, 255, 0.74);
}

.footer-social-links a:hover,
.footer-social-links a:focus-visible {
  color: var(--white);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-details {
    width: 100%;
    align-items: center;
    gap: 0;
  }

  .footer-legal {
    align-items: center;
  }

  .hero::before {
    display: none;
  }

  .hero {
    height: auto;
    min-height: calc(100svh - var(--header-height));
  }

  .nav {
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
  }

  .nav-toggle { order: 1; }
  .brand { order: 2; }

  .nav-links {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 2px;
    border-top: 1px solid rgba(0, 27, 56, 0.16);
  }

  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 11px 4px; }

  .post-navigation .nav-links {
    display: flex;
    width: auto;
    flex-direction: row;
    align-items: flex-start;
    gap: 22px;
    padding: 0;
    border-top: 0;
  }

  .nav-actions {
    order: 3;
    margin-left: auto;
  }

  .nav.menu-is-open .nav-actions {
    width: auto;
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
    width: 44px;
    min-height: 44px;
    padding: 10px;
    border-color: rgba(0, 27, 56, 0.28);
    background: transparent;
    color: var(--charcoal);
  }

  .nav-toggle:hover {
    border-color: rgba(0, 27, 56, 0.28);
    background: transparent;
    color: var(--charcoal);
  }

  @media (hover: hover) and (pointer: fine) {
    .nav-toggle:hover {
      border-color: var(--button);
      background: rgba(237, 87, 73, 0.08);
      color: var(--button);
    }
  }

  .nav-toggle-icon {
    display: flex;
    width: 22px;
    flex-direction: column;
    gap: 5px;
  }

  .nav-toggle-icon span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid.four,
  .grid.two,
  .grid.three,
  .work-grid,
  .team-council-grid,
  .event-box {
    grid-template-columns: 1fr;
  }

  .work-grid > .work-card,
  .work-grid > .work-card:nth-last-child(2):nth-child(3n + 1),
  .work-grid > .work-card:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }

  .event-grid > .event-card:only-child {
    width: 100%;
  }

  .person-detail-photo {
    float: none;
    width: 100%;
    margin: 0 0 24px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100svh - var(--header-height));
    padding: clamp(36px, 7svh, 64px) 0;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 9vw, 64px);
  }

  .hero-copy p {
    margin-top: 14px;
    font-size: clamp(16px, 2.4vw, 19px);
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-quote {
    margin-top: 16px;
  }

  .hero-visual {
    display: none;
  }

  .board-row {
    grid-template-columns: 1fr;
  }

  .board-row:not(.header) > * {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .board-row:not(.header) > *:not(:last-child) {
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.09);
  }

  .board-row:not(.header) > *::before {
    content: attr(data-label);
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .board-row.header {
    display: none;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  .hero-inner {
    padding: 28px 0 34px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 12px;
  }

  h1 {
    font-size: clamp(42px, 8.8vh, 68px);
  }

  .hero-copy p {
    max-width: 560px;
    font-size: clamp(16px, 2.5vh, 19px);
  }

  .button,
  button,
  .survey-nav-link {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 14px;
  }

  .hero-copy .hero-quote p {
    font-size: 13px;
  }
}

@media (min-width: 901px) and (max-height: 620px) {
  .hero-inner {
    padding: 18px 0 22px;
  }

  h1 {
    font-size: clamp(36px, 8vh, 52px);
  }

  .hero-copy p {
    max-width: 520px;
    font-size: 16px;
  }

  .hero-actions {
    margin-top: 14px;
  }

  .hero-copy .hero-quote {
    margin-top: 12px;
  }
}

@media (max-width: 560px) {
  .hero-copy > .eyebrow {
    white-space: normal;
  }

  .person-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .post-navigation .nav-links {
    flex-direction: column;
    gap: 18px;
  }

  .post-navigation .nav-previous,
  .post-navigation .nav-next {
    max-width: 100%;
  }

  .post-navigation .nav-next {
    margin-left: 0;
    text-align: left;
  }

  .person-header-social-links {
    margin-bottom: 4px;
  }
  .container {
    width: min(100% - 28px, 1120px);
  }

  section {
    padding: 64px 0;
  }

  .hero {
    min-height: calc(100svh - var(--header-height));
    padding: 0;
  }

  .hero-inner {
    min-height: calc(100svh - var(--header-height));
  }
}
