:root {
  --bg: #f7f4ef;
  --ink: #2e3830;
  --ink-soft: #5a6360;
  --brand: #19937e;
  --brand-light: #e0f2ee;
  --brand-dark: #116b5b;
  --menu-contact: #7a5c3a;
  --sand: #ede5d6;
  --sand-dark: #d9cfc0;
  --danger: #a63a3a;
  --card: #ffffff;
  --line: #e4ddd3;
  --shadow: 0 2px 16px rgba(60, 80, 70, 0.08);
  --shadow-hover: 0 6px 24px rgba(60, 80, 70, 0.14);
  --radius: 16px;
  --font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-dark);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.narrow {
  width: min(680px, 92vw);
}

/* ── Header ── */

.site-header {
  background: #fdfaf6;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 210px;
  height: auto;
  display: block;
  vertical-align: middle;
}

.nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

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

.nav a.is-active {
  background: var(--menu-contact);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}


/* ── Hero ── */

.hero {
  padding: 0;
}

.hero-home {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #f0ece4 0%, var(--bg) 60%);
}

.hero-copy {
  max-width: 680px;
  padding-top: 4.5rem;
  padding-bottom: 1.2rem;
}

.hero h1 {
  margin-top: 0;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.hero-sub {
  margin-bottom: 2rem;
  max-width: 580px;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero-illustration {
  width: min(1100px, 92vw);
  display: block;
  margin: 3rem auto 0;
  border-radius: 20px;
}

/* Sensibilisierungswoche */

.campaign-eyebrow,
.resource-type {
  margin: 0 0 0.55rem;
  color: #087f98;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agenda-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

/* ── Buttons ── */

.btn {
  display: inline-block;
  border: none;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.btn-secondary:hover {
  background: #d4eae6;
  color: var(--brand-dark);
}

.btn-danger {
  background: var(--danger);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ── Cards ── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 2rem auto;
}

.two-col {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.three-col {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card,
.event-card,
.form-card {
  background: var(--card);
  border: none;
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
}

.container > .card {
  margin: 2rem 0;
  overflow-x: auto;
}

/* ── Home teasers ── */

.home-teasers {
  padding: 2.5rem 0 1rem;
}

.teaser-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.teaser-card h2 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  color: var(--menu-contact);
}

.teaser-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

.teaser-card a {
  margin-top: 0.8rem;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
}

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

/* ── Berichte carousel ── */

.berichte-section {
  padding: 2.5rem 0 3.5rem;
  background: var(--sand);
}

.berichte-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.2rem;
}

.berichte-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.berichte-header a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.berichte-header a:hover {
  text-decoration: underline;
}

.berichte-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.4rem;
}

.bericht-preview {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

[data-contribution-card][hidden] {
  display: none;
}

.bericht-preview:hover {
  box-shadow: var(--shadow-hover);
}

.bericht-preview > a img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.bericht-preview-body {
  padding: 1.2rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bericht-date {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
  display: block;
}

.bericht-preview-body h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.bericht-preview-body h3 a {
  text-decoration: none;
  color: var(--ink);
}

.bericht-preview-body h3 a:hover {
  color: var(--brand);
}

.bericht-preview-body p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  flex: 1;
  margin: 0 0 1rem;
}

.bericht-link {
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.bericht-link:hover {
  text-decoration: underline;
}

/* Network partners */

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-header h2 {
  margin: 0;
}

.network-partners-section {
  margin-top: -1rem;
}

.network-partner-carousel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.network-partner-card {
  min-height: 190px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.network-partner-link:hover {
  color: var(--ink);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.network-partner-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  line-height: 1.35;
}

.network-partner-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.partner-logo-wrap {
  width: 100%;
  height: 82px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fdfaf6;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.partner-logo-wrap-round {
  width: 82px;
  height: 82px;
  align-self: center;
  padding: 0.3rem;
  border-radius: 50%;
  background: #fff;
}

.partner-logo-wrap-round img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.partner-mark {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 1.4rem;
}

/* Agenda */

.agenda-section {
  padding: 2.8rem 0 3.8rem;
  background: #fdfaf6;
}

.agenda-section-top {
  padding-top: 1rem;
  background: transparent;
}

.agenda-list {
  display: grid;
  gap: 0.85rem;
}

.agenda-item {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.agenda-item[hidden] {
  display: none;
}

.agenda-item-featured {
  border: 2px solid #73cbd7;
}

.agenda-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 28px;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
}

.agenda-item summary::-webkit-details-marker {
  display: none;
}

.agenda-date-badge {
  width: 72px;
  height: 68px;
  border-radius: 14px;
  background: var(--brand-light);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  align-content: center;
  line-height: 1;
}

.agenda-date-badge span {
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}

.agenda-date-badge small {
  margin-top: 0.25rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.agenda-summary {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.agenda-meta,
.agenda-location {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.agenda-title {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
}

.agenda-toggle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
}

.agenda-toggle::before,
.agenda-toggle::after {
  content: "";
  position: absolute;
  background: var(--brand-dark);
  left: 7px;
  right: 7px;
  top: 12px;
  height: 2px;
}

.agenda-toggle::after {
  transform: rotate(90deg);
}

.agenda-item[open] .agenda-toggle::after {
  transform: rotate(0deg);
}

.agenda-detail {
  border-top: 1px solid var(--line);
  padding: 1rem 1.2rem 1.2rem calc(82px + 2.15rem);
}

.agenda-detail-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
  gap: 1.2rem;
  align-items: start;
}

.agenda-detail p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.agenda-detail dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
}

.agenda-detail dt {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.agenda-detail dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.agenda-links .btn {
  font-size: 0.88rem;
}

.agenda-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.agenda-more-button {
  min-width: 180px;
}

/* Informationen und Hilfe */

.information-intro {
  max-width: 760px;
  margin-bottom: 2rem;
}

.information-intro h1 {
  margin: 0 0 0.7rem;
}

.information-intro > p:last-child {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.resource-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.resource-card:hover {
  color: var(--ink);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.resource-card h2 {
  margin: 0 0 0.55rem;
  color: var(--menu-contact);
  font-size: 1.25rem;
}

.resource-card p {
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
}

.resource-logo {
  width: 100%;
  height: 94px;
  margin-bottom: 1rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.resource-logo-round img {
  width: 76px;
  height: 76px;
}

.resource-logo-stadt img {
  transform: translateY(11px);
}

.resource-link {
  margin-top: auto;
  color: var(--brand-dark);
  font-weight: 600;
}

.agenda-image {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fdfaf6;
}

.agenda-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.agenda-image.agenda-flyer-image img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

/* ── Forms ── */

label {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}

input,
button,
textarea {
  font: inherit;
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='file'],
input[type='date'],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  background: #fdfaf6;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

/* ── Flash ── */

.flash {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
}

.flash-success {
  background: #e8f5e9;
  color: #2e5e32;
}

.flash-error {
  background: #fdecea;
  color: #7a2020;
}

/* ── Admin / Tables ── */

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 0.6rem;
  vertical-align: top;
}

.inline-form,
.inline-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0;
}

.admin-list {
  margin-top: 1rem;
}

.admin-row p {
  margin: 0.15rem 0;
}

.editorial-form {
  margin-bottom: 1rem;
  padding: 1rem;
  box-shadow: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

/* ── Footer ── */

.site-footer {
  background: #ede8df;
}

.footer-grid {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-grid strong {
  color: var(--ink);
}

/* ── Page sections ── */

.page-section {
  padding: 2.5rem 0 3rem;
}

.page-intro {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.content-section {
  margin-bottom: 2.8rem;
}

.content-section h2 {
  margin-bottom: 0.7rem;
  color: var(--menu-contact);
}

.haltung-list,
.partner-list {
  padding-left: 1.3rem;
  margin: 0;
}

.haltung-list li,
.partner-list li {
  margin-bottom: 0.55rem;
  line-height: 1.6;
}

.external-link {
  color: var(--brand);
  word-break: break-word;
}

/* ── Contact ── */

.contact-card p {
  margin: 0.45rem 0;
}

/* ── Netzwerktreffen reports ── */

.bericht {
  margin-bottom: 2rem;
  padding: 2rem 2rem 1.5rem;
}

.bericht h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--menu-contact);
}

.bericht-bilder {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.bericht-bilder figure {
  margin: 0;
}

.bericht-bilder img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.bericht-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

.bericht ul {
  padding-left: 1.3rem;
}

.bericht ul li {
  margin-bottom: 0.45rem;
}

/* ── Responsive ── */

@media (max-width: 680px) {
  .nav-wrap {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 0;
  }

  .admin-row {
    flex-direction: column;
  }

  .brand img {
    width: 88px;
  }

  .nav {
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .nav a {
    font-size: 0.78rem;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .berichte-header {
    flex-direction: column;
    gap: 0.3rem;
  }

  .network-partner-carousel {
    grid-template-columns: 1fr;
  }

  .network-partner-card {
    min-height: 0;
  }

  .agenda-item summary {
    grid-template-columns: 62px minmax(0, 1fr) 26px;
    gap: 0.75rem;
    padding: 0.9rem;
  }

  .agenda-date-badge {
    width: 58px;
    height: 58px;
    border-radius: 12px;
  }

  .agenda-date-badge span {
    font-size: 0.95rem;
  }

  .agenda-detail {
    padding: 0.9rem 1rem 1rem;
  }

  .agenda-detail-inner {
    grid-template-columns: 1fr;
  }

  .agenda-detail dl {
    grid-template-columns: 1fr;
  }
}

/* One-pager report */

.onepager-page {
  padding: 2.4rem 0 3.4rem;
  background: #efebe4;
}

.onepager-sheet {
  --onepager-teal: #00746f;
  --onepager-green: #77b541;
  --onepager-yellow: #ffc400;
  width: min(1040px, 94vw);
  margin: 0 auto;
  background: #fff;
  color: #080808;
  box-shadow: 0 10px 34px rgba(40, 50, 45, 0.14);
  padding: clamp(1.4rem, 3.5vw, 4.3rem) clamp(1rem, 6vw, 5.9rem) 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.onepager-top {
  display: grid;
  grid-template-columns: 1fr 190px;
  align-items: start;
  min-height: 110px;
}

.onepager-ps-logo {
  width: 190px;
  height: 88px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.onepager-sheet h1 {
  margin: 1rem 0 1.8rem;
  color: var(--onepager-teal);
  font-size: clamp(1.75rem, 3vw, 2.32rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
  text-align: left;
}

.onepager-box,
.onepager-label {
  position: relative;
}

.onepager-box {
  border: 4px solid var(--onepager-teal);
  border-radius: 0 20px 20px 20px;
  min-height: 96px;
  padding: 1.6rem 2rem 1.25rem;
  margin: 0 0 2rem;
  box-shadow: 4px 4px 0 rgba(0, 116, 111, 0.16);
}

.onepager-box-wide {
  padding-right: clamp(1.3rem, 19vw, 13rem);
}

.onepager-box h2,
.onepager-label {
  display: inline-block;
  margin: 0;
  background: var(--onepager-teal);
  color: #fff;
  border-radius: 6px;
  padding: 0.22rem 1rem 0.34rem;
  font-size: clamp(1.3rem, 2.3vw, 1.8rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.onepager-box h2 {
  position: absolute;
  top: -1.15rem;
  left: -0.55rem;
}

.onepager-label {
  margin: 0 0 1.35rem -0.2rem;
}

.onepager-box ul {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.35;
}

.onepager-box li {
  position: relative;
  margin: 0.45rem 0;
  padding-left: 2rem;
}

.onepager-box li::before {
  content: "-";
  position: absolute;
  left: 0;
}

.onepager-illustration {
  position: absolute;
  right: clamp(1rem, 5vw, 4.5rem);
  top: 50%;
  transform: translateY(-50%);
  display: block;
  height: auto;
  object-fit: contain;
}

.onepager-buildings {
  width: 4.5rem;
}

.onepager-stars {
  width: 5.7rem;
}

.onepager-choice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.8rem;
}

.onepager-choice {
  min-height: 160px;
  margin: 0;
  padding-right: 6.6rem;
}

.onepager-choice .onepager-illustration {
  right: 1.4rem;
  top: 66%;
}

.onepager-or {
  border: 4px solid var(--onepager-teal);
  border-radius: 16px;
  color: var(--onepager-teal);
  background: #fff;
  text-align: center;
  font-weight: 900;
  font-size: 1.45rem;
  line-height: 1.1;
  padding: 0.8rem 0.7rem;
  box-shadow: 3px 3px 0 rgba(0, 116, 111, 0.14);
}

.onepager-or span {
  display: block;
}

.onepager-or span:first-child {
  border-bottom: 4px solid var(--onepager-teal);
  padding-bottom: 0.4rem;
  margin-bottom: 0.4rem;
}

.onepager-walk {
  width: 3.1rem;
}

.onepager-book {
  width: 4.2rem;
}

.onepager-talk {
  min-height: 130px;
}

.onepager-bubbles {
  width: 9rem;
}

.onepager-hand {
  width: 7.3rem;
}

.onepager-contact {
  min-height: 230px;
  margin: 2.3rem calc(clamp(1rem, 6vw, 5.9rem) * -1) 0;
  padding: 4.1rem clamp(1.5rem, 9vw, 7.5rem) 2rem;
  background: linear-gradient(120deg, rgba(238, 227, 0, 0.9), rgba(38, 163, 60, 0.94)), url("/static/img/onepager/footer-bg.png") center / cover;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 2rem;
  align-items: end;
}

.onepager-contact p {
  margin: 0 0 0.35rem;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  line-height: 1.35;
}

.onepager-contact p:first-child {
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  margin-bottom: 0.7rem;
}

.onepager-contact a {
  color: #fff;
  text-decoration: none;
}

.onepager-contact-icon {
  position: relative;
  display: inline-block;
  width: 1.45rem;
  height: 1.45rem;
  border: 2px solid #00746f;
  border-radius: 50%;
  vertical-align: -0.28rem;
  margin-right: 0.45rem;
  background: rgba(255, 255, 255, 0.16);
}

.onepager-contact-icon::before,
.onepager-contact-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.onepager-contact-person::before {
  top: 0.24rem;
  width: 0.36rem;
  height: 0.36rem;
  border: 2px solid #00746f;
  border-radius: 50%;
}

.onepager-contact-person::after {
  bottom: 0.2rem;
  width: 0.74rem;
  height: 0.42rem;
  border: 2px solid #00746f;
  border-top-left-radius: 0.7rem;
  border-top-right-radius: 0.7rem;
  border-bottom: 0;
}

.onepager-contact-phone::before {
  top: 0.45rem;
  width: 0.84rem;
  height: 0.42rem;
  border: 2px solid #00746f;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  border-bottom: 0;
}

.onepager-contact-phone::after {
  top: 0.28rem;
  width: 1rem;
  height: 0.2rem;
  border-left: 2px solid #00746f;
  border-right: 2px solid #00746f;
}

.onepager-contact-mail::before {
  top: 0.36rem;
  width: 0.92rem;
  height: 0.64rem;
  border: 2px solid #00746f;
  border-radius: 0.08rem;
}

.onepager-contact-mail::after {
  top: 0.45rem;
  width: 0.66rem;
  height: 0.66rem;
  border-left: 2px solid #00746f;
  border-bottom: 2px solid #00746f;
  transform: translateX(-50%) rotate(-45deg);
}

.onepager-contact-brand {
  display: grid;
  gap: 0.2rem;
  justify-items: start;
}

.onepager-df-logo {
  width: 160px;
  height: auto;
  margin-bottom: 0.6rem;
}

.onepager-contact-brand strong {
  font-size: 2rem;
  line-height: 1;
}

.onepager-contact-brand a {
  font-weight: 800;
  font-size: 1.2rem;
}

@media (max-width: 680px) {
  .onepager-sheet {
    width: 100%;
    padding-top: 1.2rem;
  }

  .onepager-top {
    grid-template-columns: 1fr 145px;
    min-height: 82px;
  }

  .onepager-ps-logo {
    width: 145px;
    height: 68px;
  }

  .onepager-box,
  .onepager-choice {
    padding: 1.65rem 1rem 1rem;
    border-width: 3px;
  }

  .onepager-box-wide,
  .onepager-choice {
    padding-right: 1rem;
  }

  .onepager-illustration {
    position: static;
    transform: none;
    margin: 0.7rem 0 0 auto;
    max-width: 34%;
  }

  .onepager-buildings {
    width: 4.5rem;
  }

  .onepager-stars {
    width: 5.7rem;
  }

  .onepager-walk {
    width: 3.1rem;
  }

  .onepager-book {
    width: 4.2rem;
  }

  .onepager-bubbles {
    width: 8rem;
  }

  .onepager-hand {
    width: 7rem;
  }

  .onepager-choice-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .onepager-or {
    width: 96px;
    margin: 0 auto;
  }

  .onepager-contact {
    grid-template-columns: 1fr;
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 2rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .onepager-sheet h1 {
    font-size: 1.55rem;
  }

  .onepager-box h2,
  .onepager-label {
    font-size: 1.1rem;
  }

  .onepager-box ul {
    font-size: 1rem;
  }
}

/* DB-backed Beiträge layout */
.berichte-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 360px);
  gap: 1.2rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 0.2rem 0 1rem;
  scrollbar-color: var(--sand-dark) transparent;
}

.bericht-preview.carousel-card {
  min-height: 430px;
  scroll-snap-align: start;
}

.bericht-preview .bericht-image-link {
  display: block;
  line-height: 0;
  background: #fdfaf6;
  border-bottom: 1px solid var(--line);
}

.bericht-preview.carousel-card .bericht-image-link {
  height: 215px;
}

.bericht-preview.carousel-card img,
.berichte-archive-grid .bericht-preview img,
.article-hero-image img,
.agenda-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bericht-preview.flyer-card img {
  object-fit: contain;
  background: #fdfaf6;
}

.berichte-archive-grid .bericht-preview.flyer-card .bericht-image-link {
  height: 250px;
}

.berichte-archive-grid .bericht-preview.flyer-card img {
  height: 100%;
}

.bericht-preview.carousel-card .bericht-preview-body {
  min-height: 215px;
}

.bericht-preview.carousel-card .bericht-preview-body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bericht-preview.carousel-card .bericht-link {
  margin-top: auto;
}

.berichte-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 0;
}

.contribution-filter-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: -0.5rem;
}

.contribution-filter-label,
.contribution-filter-result {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.contribution-filter {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--sand-dark);
}

.contribution-filter-button {
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.contribution-filter-button:hover {
  color: var(--brand-dark);
}

.contribution-filter-button.is-active {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.contribution-filter-button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.contribution-filter-result {
  min-height: 1.5rem;
  margin: 0.65rem 0 1rem;
}

.berichte-section .contribution-filter-wrap {
  margin-top: 0;
  margin-bottom: 1rem;
}

.berichte-archive-grid .bericht-preview img {
  height: 210px;
}

.bericht-preview.bericht-preview-flyer-focus img {
  object-position: center 75%;
}

.article-header {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.article-hero-image {
  margin: 0 0 2rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  max-height: 520px;
}

.article-hero-image img {
  max-height: 520px;
}

.article-hero-image-portrait {
  max-width: 640px;
  max-height: none;
  background: #fdfaf6;
}

.article-hero-image-portrait img {
  height: auto;
  max-height: none;
  object-fit: contain;
}

.article-body {
  max-width: 760px;
  font-size: 1.05rem;
}

.flyer-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.flyer-document-preview {
  display: block;
  width: min(100%, 760px);
  padding: 1rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.flyer-document-preview:hover {
  box-shadow: var(--shadow-hover);
}

.flyer-document-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.flyer-description {
  margin-top: 1.75rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  text-decoration: none;
  font-weight: 500;
}

.network-partner-card:not(.network-partner-link):hover {
  box-shadow: var(--shadow);
  transform: none;
}

.network-partner-card .partner-logo-wrap + span,
.network-partner-card > span:last-child {
  display: block;
}

.admin-dashboard-grid {
  align-items: start;
}

@media (max-width: 860px) {
  .berichte-carousel {
    grid-auto-columns: minmax(245px, 82vw);
  }

  .bericht-preview.carousel-card {
    min-height: 0;
  }

  .bericht-preview.carousel-card .bericht-image-link {
    height: 170px;
  }

  .bericht-preview.carousel-card .bericht-preview-body {
    min-height: 205px;
  }
}

@media (max-width: 680px) {
  .contribution-filter-wrap {
    align-items: stretch;
    flex-direction: column;
    gap: 0.55rem;
  }

  .contribution-filter {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
    width: 100%;
  }

  .contribution-filter-button {
    min-width: 0;
    min-height: 52px;
    padding: 0.45rem 0.55rem;
    font-size: 0.9rem;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Legal information uses the existing page typography and colours. */
.legal-page {
  max-width: 780px;
  overflow-wrap: anywhere;
}

.legal-page h2 {
  margin-top: 2rem;
  line-height: 1.35;
}

.legal-page address {
  font-style: normal;
}

.legal-page .legal-scope {
  padding: 1rem 1.25rem;
  background: var(--card);
  border-radius: var(--radius);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-legal a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 680px) {
  .nav-wrap {
    flex-direction: column;
    align-items: center;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  .nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
