/*
Theme Name: AfroAllianz
Author: AfroAllianz Göppingerkreis e.V.
Description: Eigenständiges Vereinstheme in Dunkelgrün und Türkis für AfroAllianz Göppingerkreis e.V.
Version: 1.12.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: afroallianz
*/

/* Outfit and Fraunces, SIL Open Font License 1.1. Files live in assets/fonts. */

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/outfit-400.woff2") format("woff2");
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/outfit-500.woff2") format("woff2");
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/outfit-600.woff2") format("woff2");
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/outfit-700.woff2") format("woff2");
}
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/fraunces-560.woff2") format("woff2");
}
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/fraunces-700.woff2") format("woff2");
}

:root {
  --green-950: #07261a;
  --green-900: #0c3b28;
  --green-800: #145c3a;
  --turquoise: #14b8b0;
  --turquoise-deep: #0a6a70;
  --sand: #f4f1ea;
  --paper: #fffcf7;
  --ink: #14241c;
  --muted: #3e564c;
  --line: rgba(12, 59, 40, 0.12);
  --shadow: 0 18px 50px rgba(7, 38, 26, 0.08);
  --radius: 18px;
  --space: 1rem;
  --focus: 3px solid var(--turquoise-deep);
  --serif: Fraunces, Georgia, "Palatino Linotype", serif;
  --sans: Outfit, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

p { margin: 0 0 0.9rem; }

a { color: var(--turquoise-deep); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  color: var(--green-950);
  padding: 0.6rem 1rem;
  z-index: 80;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(1380px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.topbar {
  background: var(--green-950);
  color: #d7efe8;
  font-size: 0.88rem;
}
.topbar a { color: #bff6f1; text-decoration: none; }
.topbar-inner p { margin: 0; padding: 0.45rem 0; display: flex; flex-wrap: wrap; gap: 0.45rem 0.7rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 104px;
}
.brand { display: flex; flex: none; }
.brand img { height: 78px; width: auto; display: block; }
.site-nav { margin-left: auto; }
.menu { list-style: none; margin: 0; padding: 0; }
.site-nav .menu { display: flex; flex-wrap: wrap; gap: 0.15rem 0.9rem; align-items: center; }
.site-nav a {
  position: relative;
  color: var(--green-900);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.28rem;
  width: 100%;
  height: 2px;
  background: var(--turquoise);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--turquoise-deep); }
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after { transform: scaleX(1); }
.site-header.is-scrolled { box-shadow: 0 10px 28px rgba(7, 38, 26, 0.08); }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-weight: 600;
  color: var(--green-900);
}
.nav-toggle-lines {
  width: 16px;
  height: 10px;
  border-top: 2px solid var(--green-900);
  border-bottom: 2px solid var(--green-900);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary::after,
.btn-green::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.55rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 220ms ease;
}
.btn-primary:hover::after,
.btn-green:hover::after,
.btn-primary:focus-visible::after,
.btn-green:focus-visible::after { transform: translate(3px, -2px) rotate(45deg); }
.btn-primary { background: var(--turquoise); color: var(--green-950); }
.btn-primary:hover { background: #8ff3ec; }
.btn-green { background: var(--green-900); color: #fff; }
.btn-green:hover { background: var(--green-800); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-line { background: transparent; color: var(--green-900); border-color: rgba(12, 59, 40, 0.28); }
.btn-line:hover { border-color: var(--turquoise-deep); color: var(--turquoise-deep); }
.header-cta { flex: none; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(78vh, 760px);
  display: flex;
  align-items: flex-end;
  color: #f4fffb;
  background: var(--green-950);
  padding: 0;
}
.hero-media,
.hero-shade { position: absolute; inset: 0; }
.hero-media img,
.hero-media .illus-frame,
.hero-media .illus-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.illus-frame { position: relative; display: block; }
.illus-badge {
  position: absolute;
  z-index: 3;
  margin: 0;
  max-width: calc(100% - 2rem);
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(7, 38, 26, 0.88);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.hero-badge { top: 1.15rem; right: 1.15rem; }
.story-figure .illus-frame { border-radius: 24px; overflow: hidden; }
.story-figure .illus-frame img { border-radius: 0; }
.story-figure .illus-badge,
.aa-slider .illus-badge { left: 1rem; bottom: 1rem; }
.aa-slider-stage { position: relative; }
.hero-shade {
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 38, 26, 0.97) 0%, rgba(7, 38, 26, 0.9) 32%, rgba(7, 38, 26, 0.62) 58%, rgba(7, 38, 26, 0.28) 100%);
}
.hero h1,
.hero .lead { text-shadow: 0 2px 16px rgba(7, 38, 26, 0.45); }
.hero-media .aa-slider,
.hero-media .aa-slider-stage,
.hero-media .aa-slide { height: 100%; }
.hero-media .aa-slider { border-radius: 0; background: transparent; }
.hero-media .aa-slide img { height: 100%; max-height: none; aspect-ratio: auto; }
.hero-media .aa-slider-controls,
.hero-media .aa-slide figcaption {
  position: absolute;
  z-index: 5;
  left: 1rem;
  width: auto;
  max-width: min(18rem, calc(100% - 2rem));
  background: rgba(7, 38, 26, 0.78);
  border-radius: 16px;
}
.hero-media .aa-slider-controls { top: 1rem; padding: 0.35rem 0.55rem; }
.hero-media .aa-slide figcaption { top: 5rem; }
.story-figure .story-photo { width: 100%; height: auto; display: block; border-radius: 24px; }
.view-switch { display: flex; gap: 0.8rem; margin: 0; }
.view-switch .is-current { font-weight: 700; }
.calendar-nav { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin: 0 0 1rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; }
.calendar-head { margin: 0; font-size: 0.78rem; font-weight: 700; }
.calendar-day { min-height: 4.6rem; padding: 0.35rem; background: #fff; border-radius: 10px; }
.calendar-day ul { margin: 0.3rem 0 0; padding: 0; list-style: none; font-size: 0.78rem; }
.calendar-day.is-empty { background: transparent; }
.team-links { display: flex; flex-wrap: wrap; gap: 0.7rem; padding: 0 1rem; }
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(46rem, calc(100% - 2.5rem));
  margin-left: max(1.25rem, calc((100% - 1380px) / 2));
  margin-right: auto;
  padding: 7.5rem 0 6.2rem;
}
.hero-media img { transform-origin: center 30%; }
.hero-copy > * { animation: aa-rise 480ms ease both; }
.hero-copy > :nth-child(2) { animation-delay: 70ms; }
.hero-copy > :nth-child(3) { animation-delay: 140ms; }
.hero-copy > :nth-child(4) { animation-delay: 210ms; }
.hero-media img { animation: aa-settle 640ms ease both; }
@keyframes aa-rise {
  from { transform: translateY(10px); }
  to { transform: none; }
}
@keyframes aa-settle {
  from { transform: scale(1.04); }
  to { transform: none; }
}
.hero h1 {
  margin: 0.3rem 0 0.8rem;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: #fff;
  text-wrap: balance;
}
.hero-note {
  max-width: 40rem;
  margin: 1.3rem 0 0;
  color: #d7efe8;
  font-size: 0.92rem;
}
.lead { font-size: 1.18rem; max-width: 40rem; color: #f3fffb; }
.page-hero {
  background:
    radial-gradient(520px 180px at 100% 0%, rgba(20, 184, 176, 0.28), transparent 62%),
    linear-gradient(165deg, var(--green-950), var(--green-900));
  color: #f4fffb;
  padding: 3.3rem 0 2.8rem;
}
.page-hero h1 {
  margin: 0.35rem 0 0.55rem;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}
.page-hero .lead { color: #e7f7f2; }
.breadcrumb,
.breadcrumb a { color: #bff6f1; text-decoration: none; font-size: 0.92rem; }
.kicker {
  margin: 0 0 0.4rem;
  color: var(--turquoise-deep);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.kicker-light { color: #9ff3ec; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }
.hero-card {
  background: #fff;
  color: var(--ink);
  border-radius: 24px;
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}
.hero-card img { width: min(100%, 280px); height: auto; }
.hero-card p { color: var(--muted); }
.hero-card a { font-weight: 700; }

.section { padding: 4.2rem 0; }
.section-tight { padding-top: 0.4rem; }
.section-sand { background: var(--sand); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.3rem;
}
.section-head h2,
.prose h2,
.pillar h2,
.news-card h2,
.news-card h3,
.team-card h2,
.album-card h2 { margin: 0.2rem 0 0.45rem; }
.section h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.section-gap { margin-top: 2.2rem; }
.intro-copy { margin-bottom: 1.4rem; }

.overlap { margin-top: -2.6rem; position: relative; z-index: 2; padding-top: 0; }
.pillar-grid,
.area-grid,
.news-grid,
.team-grid,
.album-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.news-grid,
.team-grid,
.album-grid { grid-template-columns: repeat(3, 1fr); }
.area-grid-detail { grid-template-columns: 1fr 1fr; }

.pillar,
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.pillar { padding: 1.15rem 1.15rem 1.25rem; }
.area-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.2rem 1.35rem;
  scroll-margin-top: 120px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(7, 38, 26, 0.12);
}
.area-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.9rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--green-900);
  color: var(--turquoise);
}
.area-icon svg { width: 1.55rem; height: 1.55rem; }
.section .area-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.22rem;
  line-height: 1.25;
}
.area-lead { margin: 0 0 0.85rem; color: var(--muted); }
.area-more {
  margin-top: auto;
  font-weight: 600;
  color: var(--turquoise-deep);
  text-decoration: none;
}
.area-label {
  margin: 0 0 0.4rem;
  color: var(--turquoise-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.area-examples { color: var(--muted); }
.area-examples ul { margin: 0; padding-left: 1.1rem; }
.area-examples li + li { margin-top: 0.35rem; }
.area-note { max-width: 44rem; margin: -0.2rem 0 1.2rem; color: var(--muted); }
.notice-banner {
  margin: 0.4rem 0 0;
  padding: 0.95rem 1.1rem;
  border: 1px solid #b7e6e1;
  border-radius: 16px;
  background: #e7f7f5;
}
.notice-banner p { margin: 0; }
.pillar-nr {
  font-family: var(--serif);
  color: var(--turquoise-deep);
  font-size: 1.3rem;
}
.pillar p,
.muted { color: var(--muted); }
.muted { display: block; font-size: 0.95rem; }

.layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}
.layout > * { min-width: 0; }
.story-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.story-figure { margin: 0; }
.story-figure img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  display: block;
  box-shadow: var(--shadow);
}
.story-figure figcaption,
.hero-note { line-height: 1.45; }
.story-figure figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.support-card {
  background: var(--green-900);
  color: #f4fffb;
  border-radius: 28px;
  padding: 1.7rem 1.6rem 1.8rem;
}
.support-card h2 { margin: 0.2rem 0 0.7rem; color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.support-card p,
.support-card li { color: #d7efe8; }
.support-card ol { margin: 0 0 1.1rem; padding-left: 1.15rem; }
.support-card li + li { margin-top: 0.4rem; }
.support-card-deep { background: var(--green-950); }
.contact-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.6rem;
}
.contact-band h2 { margin: 0.15rem 0 0.45rem; }
.steps { padding: 1.2rem 1.3rem 1.4rem; }
.steps ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.steps li + li { margin-top: 0.45rem; }

.prose { font-size: 1.05rem; line-height: 1.7; }
.prose > * + * { margin-top: 0.2rem; }
.prose h2 { font-size: 1.8rem; margin-top: 1.5rem; }
.prose img,
.entry-image img { border-radius: 16px; }
.entry-image { margin: 0 0 1rem; }
.legal { max-width: 760px; }

.facts { margin: 0; }
.facts div {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--turquoise-deep);
  font-weight: 700;
}
.facts dd { margin: 0.15rem 0 0; }
.missing {
  color: #8a5a12;
  background: #fff4dc;
  border-radius: 999px;
  padding: 0.08rem 0.5rem;
  font-size: 0.85rem;
}

.event-list { display: grid; gap: 0.75rem; }
.event-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.event-row:hover { border-color: rgba(10, 106, 112, 0.45); }
.event-date {
  background: var(--green-900);
  color: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 0.5rem 0.2rem;
}
.event-date strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
}
.event-title { display: block; font-size: 1.15rem; }
.event-more { color: var(--turquoise-deep); font-weight: 700; }
.event-row:has(.event-thumb) { grid-template-columns: 84px 96px 1fr auto; }
.event-thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 12px; }

.news-card a,
.album-card a { display: block; color: inherit; text-decoration: none; }
.news-card,
.album-card,
.team-card { overflow: hidden; }
.news-card a,
.album-card a,
.team-card { padding: 0 0 1rem; }
.news-card h2,
.news-card h3,
.news-card p,
.album-card h2,
.album-card p,
.team-card h2,
.team-card .role,
.team-card .prose { padding-inline: 1rem; }
.news-card img,
.album-card img,
.team-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.team-photo { aspect-ratio: 1; }
.meta { color: var(--muted); font-size: 0.9rem; margin-top: 0.9rem; }
.role { color: var(--turquoise-deep); font-weight: 700; }
.avatar-fallback,
.album-fallback {
  display: grid;
  place-items: center;
  margin: 1rem;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--green-900);
  color: #d9fff8;
  font-family: var(--serif);
  font-size: 2rem;
}
.album-fallback { border-radius: 16px; width: calc(100% - 2rem); height: 140px; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.empty { padding: 2rem 1.2rem; text-align: center; }
.empty h3 { margin-top: 0; }

.donate-band {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--green-900);
  color: #f4fffb;
  border-radius: 28px;
  padding: 1.8rem;
}
.donate-band h2 { margin: 0.2rem 0 0.5rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.donate-band p { margin: 0; color: #d7efe8; }

.banner {
  border: 1px solid var(--line);
  background: var(--sand);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}
.banner-warn { background: #fff8e8; border-color: #e2c27a; }
.account { padding-left: 1.1rem; }
.side-card { padding: 1.2rem; }
.back-link { margin-top: 0; }

.contact-form p,
.comment-form p,
.search-form { margin: 0 0 0.9rem; }
label { display: block; font-weight: 650; margin-bottom: 0.3rem; }
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
  width: 100%;
  border: 1px solid rgba(12, 59, 40, 0.18);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
input[type="checkbox"] { width: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.consent label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 500; max-width: 42rem; }
.form-note { padding: 0.8rem 1rem; border-radius: 12px; }
.form-note-ok { background: #e7f8f2; color: var(--green-900); }
.form-note-bad { background: #fff1f0; color: #8d2b2b; }
.aa-hp {
  position: absolute;
  left: -10000px;
  height: 0;
  overflow: hidden;
}
.search-form { display: flex; gap: 0.6rem; align-items: center; }
.search-form input { max-width: 420px; }

.comments { margin-top: 2.4rem; }
.comment-list { padding-left: 1.1rem; }
.comment-list li { margin-bottom: 1rem; }
.comment-meta { color: var(--muted); font-size: 0.9rem; }
.comment-notes { color: var(--muted); }

.pagination,
.post-navigation { margin-top: 1.6rem; }
.nav-links,
.nav-links { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.page-numbers,
.post-navigation a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  color: var(--green-900);
  border: 1px solid var(--line);
}
.page-numbers.current { background: var(--green-900); color: #fff; }

.site-footer {
  background: var(--green-950);
  color: #d7efe8;
  padding: 2.6rem 0 1.2rem;
  margin-top: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 1.5rem;
}
.footer-logo {
  display: inline-block;
  background: #fff;
  border-radius: 14px;
  padding: 0.35rem 0.6rem;
  margin-bottom: 0.8rem;
}
.footer-logo img { height: 54px; width: auto; display: block; }
.site-footer h2 { color: #fff; font-size: 1.25rem; }
.footer-nav a,
.site-footer a { color: #bff6f1; text-decoration: none; }
.footer-nav .menu { display: grid; gap: 0.35rem; }
.footer-legal { display: flex; gap: 1rem; }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.4rem;
  padding-top: 0.8rem;
}
.footer-base p { margin: 0; color: #b7d2c8; font-size: 0.92rem; }

.team-stage { padding: 2rem 1.5rem; max-width: 42rem; }
.team-stage h2 { margin: 0.2rem 0 0.6rem; }
.team-stage p:last-child { margin-bottom: 0; color: var(--muted); }
.team-card { display: flex; flex-direction: column; padding-bottom: 1.2rem; }
.team-body { min-width: 0; }
.team-role {
  margin: 0.95rem 0 0.15rem;
  color: var(--turquoise-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.team-focus { margin: 0.15rem 0 0; color: var(--muted); }
.team-card .avatar-fallback {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}
.team-card-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  align-items: center;
  padding-bottom: 0;
}
.team-card-lead .team-body { padding: 1.4rem 1.5rem; }
.album-count {
  position: absolute;
  z-index: 1;
  top: 0.8rem;
  left: 0.8rem;
  margin: 0;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: var(--green-950);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
.album-card { position: relative; }
.album-text { margin-top: 1.3rem; }
.aa-slider {
  background: var(--green-950);
  color: #fff;
  border-radius: 28px;
  overflow: hidden;
}
.aa-slider:focus-visible { outline-offset: 4px; }
.aa-slide { margin: 0; }
.aa-slide[hidden] { display: none; }
.aa-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 640px;
  object-fit: cover;
  display: block;
}
.aa-slide figcaption {
  margin: 0;
  padding: 0.9rem 1.2rem 0.2rem;
  color: #d7efe8;
}
.aa-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem 1rem;
}
.aa-slider-controls p { margin: 0; font-weight: 700; }
.aa-slider-controls button {
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 999px;
  background: var(--turquoise);
  color: var(--green-950);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step-card { padding: 1.3rem 1.2rem 1.4rem; }
.step-nr {
  margin: 0;
  font-family: var(--serif);
  color: var(--turquoise-deep);
  font-size: 1.4rem;
}
.step-card h2 { margin: 0.25rem 0 0.45rem; font-size: 1.35rem; }
.step-card p { color: var(--muted); }
.step-card a { font-weight: 700; color: var(--green-900); }
.news-card-lead { grid-column: 1 / -1; }
.news-card-lead a {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
}
.news-card-lead img { aspect-ratio: 16 / 10; }

:focus-visible { outline: 3px solid var(--turquoise-deep); outline-offset: 3px; }
::selection { background: #bff6f1; color: var(--green-950); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; padding: 0.7rem 0; }
  .site-nav { display: none; order: 4; flex: 1 1 100%; margin-left: 0; }
  .site-nav.is-open { display: block; }
  .site-nav .menu { display: grid; gap: 0; }
  .site-nav .menu a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .header-cta { margin-left: auto; }
  .brand img { height: 62px; }
  .header-inner { min-height: 84px; }
  .hero-copy { margin-left: auto; padding: 6.2rem 0 4.6rem; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(7, 38, 26, 0.45) 0%, rgba(7, 38, 26, 0.88) 70%);
  }
  .story-grid,
  .support-grid,
  .layout,
  .donate-band,
  .footer-grid,
  .form-grid,
  .contact-band { grid-template-columns: 1fr; display: grid; }
  .contact-band { display: grid; }
  .overlap { margin-top: 0; padding-top: 3.2rem; }
  .pillar-grid,
  .area-grid { grid-template-columns: 1fr 1fr; }
  .news-grid,
  .team-grid,
  .album-grid,
  .step-grid { grid-template-columns: 1fr 1fr; }
  .team-card-lead,
  .news-card-lead a { display: block; }
}

@media (max-width: 640px) {
  .pillar-grid,
  .area-grid,
  .area-grid-detail,
  .news-grid,
  .team-grid,
  .album-grid,
  .step-grid { grid-template-columns: 1fr; }
  .event-row,
  .event-row:has(.event-thumb) { grid-template-columns: 64px 64px minmax(0, 1fr); }
  .event-thumb { display: block; width: 64px; height: 48px; }
  .event-more { display: inline-flex; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .search-form { flex-direction: column; align-items: stretch; }
  .search-form input { max-width: none; }
  .hero-badge { top: 0.75rem; right: 0.75rem; font-size: 0.78rem; }
  .calendar-grid { gap: 0.15rem; }
  .calendar-head { font-size: 0.68rem; }
  .calendar-day { min-height: 2.6rem; padding: 0.15rem; font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .area-card { transition: none; }
  .btn:hover,
  .area-card:hover { transform: none; }
  .aa-slide { animation: none; }
}

.team-open {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0 0 1.1rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.team-open:focus-visible,
.purpose-card:focus-within,
.faq details:focus-within { outline: 3px solid var(--turquoise); outline-offset: 3px; }
.team-open .team-photo,
.team-open .avatar-fallback.team-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
  font-size: 4.5rem;
}
.team-role { color: var(--turquoise-deep); font-weight: 700; padding: 0.9rem 1rem 0; }
.team-name {
  padding: 0 1rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.15;
}
.person-dialog {
  width: min(520px, calc(100vw - 2rem));
  padding: 0 0 1.2rem;
  border: 0;
  border-radius: 20px;
}
.person-dialog .team-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.person-dialog h2,
.person-dialog .prose,
.person-dialog .team-focus,
.person-dialog .team-links,
.person-dialog .btn { margin-inline: 1.1rem; }
.person-dialog::backdrop { background: rgba(7, 38, 26, 0.55); }
.donate-lead,
.donate-split {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.4rem;
  align-items: start;
}
.donate-panel h2,
.donate-panel h3 { margin-top: 0.2rem; }
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}
.purpose-card h3 { margin-top: 0; font-size: 1.15rem; }
.donate-note { max-width: 68ch; }
.transparency-list { padding-left: 1.1rem; }
.transparency-list li + li { margin-top: 0.55rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  margin-top: 0.6rem;
}
.faq summary { cursor: pointer; font-weight: 700; }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.filter-row a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  text-decoration: none;
  color: var(--green-950);
  background: #fff;
}
.filter-row a.is-current { background: var(--green-900); color: #fff; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin-top: 1rem; }
.photo-open { padding: 0; border: 0; background: transparent; cursor: pointer; }
.photo-open img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; }
.photo-dialog { width: min(920px, calc(100vw - 2rem)); border: 0; border-radius: 18px; padding: 0.8rem; }
.photo-dialog img { width: 100%; max-height: 72vh; object-fit: contain; background: #07261A; }
.photo-dialog::backdrop { background: rgba(7, 38, 26, 0.72); }
.news-card-lead { grid-column: 1 / -1; }
.news-card-lead img { aspect-ratio: 16 / 8; }
.step-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card,
.event-row,
.team-card { transition: transform 0.18s ease, border-color 0.18s ease; }
@media (max-width: 980px) {
  .support-grid,
  .purpose-grid,
  .photo-grid,
  .step-grid,
  .donate-lead,
  .donate-split { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .card,
  .event-row,
  .team-card { transition: none; }
}

.section-head > a,
.view-switch a,
.filter-row a,
.back-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}
.view-switch a,
.filter-row a {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--green-900);
}
.view-switch a.is-current,
.filter-row a.is-current { background: var(--green-900); color: #fff; }
.team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.team-frame { position: relative; display: block; overflow: hidden; }
.team-frame .team-photo { transition: transform 240ms ease; }
.team-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.25rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(7, 38, 26, 0.05) 20%, rgba(7, 38, 26, 0.88) 100%);
  color: #fff;
  opacity: 0;
  transition: opacity 220ms ease;
}
.team-overlay .team-role,
.team-overlay .team-focus { margin: 0; padding: 0; color: #f4fffb; }
.team-overlay .team-focus { font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
.team-card { transition: transform 220ms ease, border-color 220ms ease; }
.team-card:hover,
.team-card:focus-within { transform: translateY(-3px); }
.team-open:hover .team-overlay,
.team-open:focus-visible .team-overlay,
.team-open:focus-within .team-overlay { opacity: 1; }
.team-open:hover .team-frame .team-photo,
.team-open:focus-visible .team-frame .team-photo { transform: scale(1.04); }
.event-row:hover,
.news-card:hover,
.album-card:hover { border-color: rgba(10, 106, 112, 0.45); }
input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
textarea,
select { min-height: 48px; }
textarea { min-height: 8rem; }
input:focus-visible,
textarea:focus-visible,
select:focus-visible { outline: var(--focus); outline-offset: 2px; }
.photo-dialog [data-aa-light-caption] {
  margin: 0.7rem 0.2rem 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}
.photo-dialog .aa-slider-controls { color: var(--ink); }
.photo-dialog .aa-slider-controls button[data-aa-close] {
  width: auto;
  min-height: 44px;
  padding: 0 1rem;
  font-size: 1rem;
  font-weight: 700;
}
dialog[open] { animation: aa-dialog-in 0.16s ease; }
@keyframes aa-dialog-in { from { transform: translateY(8px); } }
.calendar-day a,
.calendar-day button { min-height: 44px; }
.news-grid .news-card img,
.news-card-lead img {
  width: 100%;
  height: 210px;
  max-height: 210px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  background: var(--sand);
  padding: 0;
}
.news-card-lead a { grid-template-columns: minmax(220px, 380px) 1fr; }
.news-card,
.album-card,
.event-row,
.area-card,
.purpose-card { transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
.news-card:hover,
.album-card:hover,
.event-row:hover,
.area-card:hover,
.purpose-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(7, 38, 26, 0.1);
}
.event-more { display: inline-flex; align-items: center; gap: 0.35rem; }
.event-more::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 200ms ease;
}
.event-row:hover .event-more::after,
.event-row:focus-visible .event-more::after { transform: translateX(3px) rotate(45deg); }
.card img,
.album-card img,
.photo-open img,
.story-figure img { transition: transform 240ms ease; }
.news-card:hover img,
.album-card:hover img,
.photo-open:hover img,
.story-figure:hover img { transform: scale(1.03); }
.aa-motion { animation: aa-rise 420ms ease; }
@media (min-width: 981px) {
  .community-paths {
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-areas: "join agenda support" "join account account";
  }
  .community-paths .step-card:nth-child(1) { grid-area: join; background: var(--green-950); color: #f4fffb; }
  .community-paths .step-card:nth-child(1) h2,
  .community-paths .step-card:nth-child(1) p { color: #f4fffb; }
  .community-paths .step-card:nth-child(1) .step-nr,
  .community-paths .step-card:nth-child(1) a { color: #9ff3ec; }
  .community-paths .step-card:nth-child(2) { grid-area: agenda; }
  .community-paths .step-card:nth-child(3) { grid-area: support; }
  .community-paths .step-card:nth-child(4) { grid-area: account; background: #fff; }
  .about-editorial { grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.72fr); gap: 3rem; }
  .about-editorial .prose { font-size: 1.12rem; }
  .about-editorial .facts {
    position: sticky;
    top: 7.5rem;
    padding: 0.3rem 1.15rem 0.9rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
  }
}
@media (min-width: 1680px) {
  .container { width: min(1520px, calc(100% - 4rem)); }
  .hero-copy { margin-left: max(2rem, calc((100% - 1520px) / 2)); }
  .section { padding: 4.6rem 0; }
}
@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .news-card-lead a { display: block; }
  .site-nav a::after { display: none; }
}
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *,
  .hero-media img,
  .aa-motion,
  dialog[open],
  .team-grid .team-card,
  .team-frame .team-photo,
  .event-row,
  .news-card,
  .album-card,
  .area-card,
  .card img,
  .btn,
  .btn-primary::after,
  .btn-green::after { animation: none; transition: none; }
  .aa-motion { animation: none; }
  .team-card:hover,
  .team-card:focus-within,
  .team-open:hover .team-frame .team-photo,
  .news-card:hover,
  .album-card:hover,
  .event-row:hover,
  .area-card:hover,
  .news-card:hover img,
  .gift-amount { transform: none; }
}

.story-grid { grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); }
.prose { max-width: 68ch; }
.layout .prose,
.about-editorial .prose,
.donate-lead .prose { max-width: none; }
@media (max-width: 980px) {
  .story-grid { grid-template-columns: 1fr; }
}

#loginform {
  max-width: 26rem;
  margin-top: 0.4rem;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
}
#loginform p { margin: 0 0 0.85rem; }
#loginform label { font-weight: 700; }
#loginform input[type="text"],
#loginform input[type="password"] { width: 100%; }
#loginform input[type="submit"] {
  min-height: 48px;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--green-900);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.gift-hero { align-items: center; min-height: 0; padding: 4.5rem 0 3rem; }
.gift-hero .hero-shade {
  background: linear-gradient(100deg, rgba(7, 38, 26, 0.97) 0%, rgba(7, 38, 26, 0.93) 48%, rgba(7, 38, 26, 0.5) 100%);
}
.gift-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.5rem;
  align-items: center;
}
.gift-hero .hero-copy { width: auto; margin: 0; padding: 0; }
.gift-card {
  background: #fff;
  color: var(--ink);
  border-radius: 28px;
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: 0 24px 50px rgba(7, 38, 26, 0.22);
}
.gift-card h2 { margin: 0.15rem 0 0.55rem; color: var(--green-950); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.gift-card p { color: var(--muted); }
.gift-card .kicker { color: var(--turquoise-deep); }
.gift-note { font-size: 0.95rem; }
.gift-rhythm,
.gift-amounts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.gift-rhythm label,
.gift-amount {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-950);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.gift-amount { transition: transform 220ms ease, background-color 220ms ease, color 220ms ease, border-color 220ms ease; }
.gift-amount:hover,
.gift-amount:focus-visible { transform: translateY(-3px); border-color: var(--turquoise-deep); }
.gift-amount.is-selected { background: var(--green-950); color: #fff; border-color: var(--green-950); }
.gift-card .btn { width: 100%; margin-top: 0.4rem; }
.gift-transfer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.gift-iban { font-family: var(--serif); font-size: 1.35rem; color: var(--green-950); letter-spacing: 0.03em; }
.gift-qr svg { width: 168px; height: 168px; margin-top: 0.6rem; background: #fff; }
.gift-status { min-height: 1.4rem; margin: 0.7rem 0 0; font-weight: 700; color: var(--green-900); }
.gift-purposes { display: grid; gap: 0.9rem; }
.gift-purpose {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.2rem;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
}
.gift-purpose.is-flip { background: var(--green-950); color: #f4fffb; }
.gift-purpose.is-flip p,
.gift-purpose.is-flip h3 { color: #f4fffb; }
.gift-purpose.is-flip .kicker { color: #9ff3ec; }
.gift-purpose h3 { margin: 0.15rem 0 0.35rem; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.gift-purpose-mark {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--green-900);
  color: var(--turquoise);
}
.gift-purpose.is-flip .gift-purpose-mark { background: rgba(255, 255, 255, 0.08); color: #9ff3ec; }
.gift-purpose-mark svg { width: 42px; height: 42px; }
@media (max-width: 980px) {
  .gift-hero { padding: 2.2rem 0 1.6rem; }
  .gift-hero .hero-badge { top: 0.7rem; left: 0.8rem; right: auto; }
  .gift-hero .hero-copy { padding-top: 2.8rem; }
  .gift-hero-grid,
  .gift-purpose { grid-template-columns: 1fr; }
  .gift-card { order: 2; }
}

@media print {
  .topbar,
  .site-header,
  .site-footer,
  .btn { display: none !important; }
  body { background: #fff; }
}
