/* =====================================================================
   ZWISCHENWELTEN – shared design system
   Mirrors the homepage (index.html) aesthetic: warm paper canvas,
   Berlin blue ink, lime accent, Inter type, rounded "site-shell" card.
   Used by the content sub-pages (Über uns, Netzwerk, Bürgerredaktion,
   Kontakt, Mach mit!, Impressum).
   ===================================================================== */

:root{
  --bg: #e9e7e1;
  --canvas: #f4f1e9;
  --paper: #f6f3eb;
  --text: #123f7a;
  --text-soft: #32527f;
  --muted: #6d7278;
  --line: rgba(18,63,122,0.08);
  --line-strong: rgba(18,63,122,0.12);
  --accent: #e2851e;
  --accent-dark: #c66f12;
  --map-blue: #123f7a;
  --map-soft: #93b5d7;
  --map-green: #e2851e;
  --warm: #f0d5b3;
  --rose: #e8bfb6;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(0,0,0,0.08);
  --max: 1180px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height:1.5;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
}
.skip-link:focus{
  left:16px;
  top:16px;
  z-index:9999;
  background:#000;
  color:#fff;
  padding:12px 14px;
  border-radius:10px;
}

.site-shell{
  width:min(calc(100% - 32px), 1280px);
  margin:12px auto;
  background: var(--canvas);
  border-radius: 20px;
  overflow:hidden;
  position:relative;
  box-shadow: var(--shadow);
  min-height:100vh;
}

.site-shell::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  pointer-events:none;
  z-index:0;
}

.site-shell > *{
  position:relative;
  z-index:1;
}

.container{
  width:min(calc(100% - 56px), var(--max));
  margin-inline:auto;
}

/* ---------- TOP NAV ---------- */
.top-nav{ padding:24px 0 10px; }

.top-nav-inner{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:24px;
}

.brand{
  display:inline-flex;
  align-items:center;
  font-size:20px;
  font-weight:800;
  letter-spacing:-0.03em;
  color:var(--text);
}
.brand img{
  height:64px;
  width:auto;
  display:block;
}

.nav-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:30px;
  list-style:none;
  margin:0;
  padding:0;
}

.nav-links a{
  font-size:14px;
  color:var(--text-soft);
  font-weight:500;
}

.nav-links a.is-current{
  color:var(--text);
  font-weight:700;
}

.nav-actions{
  display:flex;
  align-items:center;
  gap:18px;
}

.nav-actions a{
  font-size:14px;
  color:var(--text);
  font-weight:500;
}

.pill-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 18px;
  border-radius:999px;
  background:var(--accent);
  color:var(--text);
  font-weight:700;
  border:none;
}
.pill-btn:hover{ background:var(--accent-dark); }

.menu-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.menu-icon{
  width:16px;
  height:12px;
  position:relative;
  display:inline-block;
}

.menu-icon::before,
.menu-icon::after,
.menu-icon span{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:2px;
  background:var(--text);
  border-radius:2px;
}

.menu-icon::before{ top:0; }
.menu-icon span{ top:5px; }
.menu-icon::after{ bottom:0; width:70%; margin-left:auto; }

/* ---------- PAGE HERO ---------- */
.page-hero{
  padding:40px 0 18px;
}

.eyebrow,
.section-eyebrow{
  font-size:13px;
  font-weight:600;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--text-soft);
  margin:0 0 12px;
}

.page-title{
  margin:0;
  font-size:clamp(40px, 6vw, 72px);
  line-height:1.05;
  letter-spacing:-0.05em;
  font-weight:800;
  max-width:16ch;
}

.page-title em{
  font-style:normal;
  background:var(--accent);
  padding:0 .15em;
  border-radius:.1em;
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}

.page-lead{
  margin:22px 0 0;
  max-width:60ch;
  font-size:clamp(16px, 1.8vw, 18px);
  line-height:1.6;
  color:var(--text-soft);
  font-weight:500;
}

/* Meta strip (Stand / Förderung / Träger on the about page) */
.meta-strip{
  margin:26px 0 0;
  display:grid;
  gap:8px;
  max-width:74ch;
}
.meta-strip p{
  margin:0;
  font-size:13px;
  line-height:1.55;
  color:var(--muted);
  font-style:italic;
}

/* ---------- SECTION SCAFFOLD ---------- */
.section{ padding:30px 0; }
.section-head{ margin-bottom:24px; }
.section-title{
  margin:0;
  font-size:clamp(28px, 3.6vw, 42px);
  line-height:1.05;
  letter-spacing:-0.04em;
  font-weight:700;
  max-width:22ch;
  color:var(--text);
}
.section-title em{
  font-style:normal;
  background:var(--accent);
  padding:0 .15em;
  border-radius:.1em;
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}

/* ---------- PROSE CARD ---------- */
.prose-card{
  background:var(--white);
  border:1px solid var(--line-strong);
  border-radius:28px;
  padding:38px clamp(24px, 4vw, 52px);
  position:relative;
  overflow:hidden;
}

.prose-card::before{
  content:"";
  position:absolute;
  width:320px;
  height:320px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(217,239,115,.18), transparent 65%);
  top:-160px;
  right:-120px;
  pointer-events:none;
}

.prose-card.is-dark{
  background:var(--text);
  color:#f4f1e9;
  border-color:var(--text);
}
.prose-card.is-dark::before{
  background:radial-gradient(circle, rgba(217,239,115,.22), transparent 65%);
}

.prose-card.is-accent{
  background:var(--accent);
  border-color:var(--accent);
}

.prose{
  position:relative;
  z-index:1;
  max-width:70ch;
}

.prose h2{
  margin:0 0 14px;
  font-size:clamp(26px, 3.2vw, 36px);
  line-height:1.08;
  letter-spacing:-0.04em;
  font-weight:700;
}

.prose h3{
  margin:30px 0 10px;
  font-size:21px;
  letter-spacing:-0.03em;
  font-weight:700;
}

.prose h4{
  margin:22px 0 6px;
  font-size:13px;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--text-soft);
}

.prose p{
  margin:0 0 14px;
  font-size:14.5px;
  line-height:1.75;
  color:#4f5964;
}

.prose-card.is-dark .prose p,
.prose-card.is-dark .prose li{ color:rgba(244,241,233,.85); }
.prose-card.is-dark .prose h2,
.prose-card.is-dark .prose h3{ color:#f4f1e9; }
.prose-card.is-dark .prose h4{ color:var(--accent); }
.prose-card.is-dark .prose a{ color:var(--accent); }

.prose-card.is-accent .prose p,
.prose-card.is-accent .prose li{ color:#274472; }
.prose-card.is-accent .prose h2,
.prose-card.is-accent .prose h3,
.prose-card.is-accent .prose h4{ color:var(--text); }

.prose a{
  color:var(--text);
  font-weight:600;
  border-bottom:1px solid rgba(18,63,122,.35);
}
.prose a:hover{ border-bottom-color:var(--text); }

.prose strong{ color:var(--text); }
.prose-card.is-dark .prose strong{ color:#fff; }

.prose ul{
  list-style:none;
  margin:0 0 16px;
  padding:0;
  display:grid;
  gap:10px;
}

.prose ul li{
  font-size:14px;
  line-height:1.6;
  color:#4f5964;
  display:flex;
  gap:10px;
  align-items:flex-start;
}

.prose ul li::before{
  content:"";
  flex-shrink:0;
  margin-top:9px;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--text);
}
.prose-card.is-dark .prose ul li::before{ background:var(--accent); }

/* ---------- CARD GRIDS (team / partners / contacts) ---------- */
.card-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
  margin:8px 0 0;
}
.card-grid.cols-2{ grid-template-columns:repeat(2, 1fr); }

.info-card{
  background:var(--white);
  border:1px solid var(--line-strong);
  border-radius:22px;
  padding:24px 22px 24px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.info-tag{
  align-self:flex-start;
  font-size:11px;
  font-weight:700;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--text);
  background:var(--accent);
  padding:5px 11px;
  border-radius:999px;
  margin-bottom:4px;
}

.info-card h3{
  margin:0;
  font-size:19px;
  letter-spacing:-0.03em;
  font-weight:700;
  color:var(--text);
  line-height:1.2;
}

.info-role{
  margin:0;
  font-size:13px;
  font-weight:600;
  color:var(--text-soft);
}

.info-card p{
  margin:0;
  font-size:13.5px;
  line-height:1.6;
  color:#4f5964;
}

.info-meta{
  margin:6px 0 0;
  display:grid;
  gap:4px;
  font-size:13.5px;
  color:#3a5179;
}
.info-meta a{ color:var(--text); font-weight:600; }
.info-meta a:hover{ text-decoration:underline; }

.info-address{
  font-style:normal;
  font-size:12.5px;
  color:#556171;
  margin-top:auto;
  padding-top:10px;
  border-top:1px solid var(--line);
  line-height:1.5;
}

.info-worldview{
  font-size:12px;
  font-weight:600;
  letter-spacing:0.02em;
  color:var(--text-soft);
}

/* ---------- JOIN / MITMACHEN CARDS ---------- */
.join-grid{ margin-top:0; }

.join-card{
  position:relative;
  overflow:hidden;
  background:var(--white);
  border:1px solid var(--line-strong);
  border-radius:22px;
  padding:28px 26px 26px;
  display:flex;
  flex-direction:column;
  gap:10px;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.join-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:var(--accent);
  transform:scaleY(0);
  transform-origin:top;
  transition:transform .25s ease;
}

.join-card:hover{
  transform:translateY(-3px);
  border-color:rgba(18,63,122,0.22);
  box-shadow:0 18px 40px -24px rgba(18,63,122,0.45);
}

.join-card:hover::before{ transform:scaleY(1); }

.join-num{
  font-size:14px;
  font-weight:700;
  letter-spacing:0.08em;
  color:var(--text);
  background:var(--accent);
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  margin-bottom:4px;
}

.join-card h3{
  margin:0;
  font-size:19px;
  letter-spacing:-0.03em;
  font-weight:700;
  color:var(--text);
  line-height:1.25;
}

.join-card p{
  margin:0;
  font-size:14px;
  line-height:1.6;
  color:#4f5964;
}

.join-note{
  margin:26px 0 0;
  max-width:60ch;
  font-size:clamp(15px, 1.6vw, 16.5px);
  line-height:1.6;
  color:var(--text-soft);
  font-weight:500;
}
.join-note a{
  color:var(--text);
  font-weight:700;
  border-bottom:2px solid var(--accent);
  text-decoration:none;
  padding-bottom:1px;
}
.join-note a:hover{ border-bottom-color:var(--text); }

/* ---------- CTA BUTTONS ---------- */
.cta-row{
  margin-top:26px;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.btn-ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 20px;
  border-radius:999px;
  background:transparent;
  border:1px solid var(--line-strong);
  color:var(--text);
  font-weight:600;
  font-size:14px;
}
.btn-ghost:hover{ border-color:rgba(18,63,122,0.4); }

/* ---------- FOOTER ---------- */
.footer{ padding:30px 0 34px; }

.partners{
  border-top:1px solid var(--line-strong);
  padding:26px 0 22px;
  display:flex;
  align-items:center;
  gap:32px;
  flex-wrap:wrap;
}

.partners-label{
  font-size:12px;
  font-weight:600;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--text-soft);
  margin-right:8px;
}

.partners-logos{
  display:flex;
  align-items:center;
  gap:36px;
  flex-wrap:wrap;
}

.partner-logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:54px;
  transition:opacity .2s ease;
}
.partner-logo img{
  max-height:100%;
  width:auto;
  object-fit:contain;
  display:block;
}
.partner-logo:hover{ opacity:.75; }

.footer-inner{
  border-top:1px solid var(--line-strong);
  padding-top:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

.footer-links{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
}

.footer-inner,
.footer-links a{
  font-size:13px;
  color:#556171;
}

:focus-visible{
  outline:3px solid rgba(18,63,122,0.55);
  outline-offset:3px;
  border-radius:10px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px){
  .top-nav-inner{ grid-template-columns:1fr; }
  .card-grid{ grid-template-columns:repeat(2, 1fr); }
  .card-grid.cols-2{ grid-template-columns:1fr; }
  .nav-links{ justify-content:flex-start; flex-wrap:wrap; }
  .nav-actions{ justify-content:flex-start; }
}

@media (max-width: 760px){
  .container{ width:min(calc(100% - 28px), var(--max)); }
  .site-shell{
    width:min(calc(100% - 12px), 1280px);
    border-radius:16px;
  }
  .top-nav{ padding-top:18px; }
  .nav-links{ gap:16px; }
  .page-hero{ padding-top:24px; }
  .card-grid{ grid-template-columns:1fr; }
  .prose-card{ padding:28px 22px; }
}
