/* Sonne & Hoffnung — shared tokens (softened) */
:root {
  --bg: #fdfaf3;
  --bg-2: #faf0d8;
  --bg-3: #f5ede0;
  --ink: #25302a;
  --sun: #ecb858;
  --sun-deep: #c99836;
  --terra: #b86a4f;
  --teal: #3d7a73;
  --muted: #7a7468;
  --line: rgba(37,48,42,0.10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: 'Manrope', sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { letter-spacing: -0.02em; }
.serif { font-family: 'Instrument Serif', serif; font-weight: 400; font-style: italic; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 36px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(253,250,243,0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; padding: 18px 36px; gap: 40px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.sun-mark { width:52px; height:66px; flex-shrink: 0; }
.sun-mark svg { width: 100%; height: 100%; }
.logo-text { line-height: 1.05; }
.logo-text .logo-afrika { font-size: 13px; font-weight: 700; color: var(--terra); letter-spacing: 0.15em; text-transform: uppercase; display: block; }
.logo-text b { font-size: 17px; font-weight: 800; display: block; }
.logo-text small { font-size: 8px; font-weight: 600; color: var(--sun-deep); letter-spacing: 0.14em; display: block; margin-top: 2px; }
nav.main { margin-left: auto; display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
nav.main a { padding: 6px 0; opacity: 0.65; transition: opacity .15s; }
nav.main a:hover { opacity: 1; }
nav.main a.on { opacity: 1; color: var(--terra); }
.lang-pill { display: inline-flex; background: rgba(37,48,42,0.05); border-radius: 999px; padding: 4px; font-size: 12px; font-weight: 600; }
.lang-pill span { padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.lang-pill span.on { background: var(--ink); color: var(--bg); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; border: 0; transition: transform .15s, box-shadow .15s; font-family: inherit; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(201,152,54,0.25); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }

/* Page lead */
.page-lead { padding: 80px 0 50px; position: relative; overflow: hidden; }
.page-lead::before { content: ""; position: absolute; top: -260px; right: -160px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, var(--sun) 0%, transparent 65%); opacity: 0.28; z-index: 0; }
.page-lead .wrap { position: relative; z-index: 1; }
.crumb { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.page-lead h1 { font-size: clamp(36px, 5vw, 64px); line-height: 0.96; font-weight: 700; max-width: 900px; }
.page-lead h1 em { color: var(--terra); font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.page-lead .dek { font-size: 20px; color: var(--muted); margin-top: 26px; max-width: 580px; }

/* Footer */
footer.site { background: var(--ink); color: var(--bg); padding: 70px 0 30px; margin-top: 80px; }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
footer.site h4 { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sun); margin-bottom: 16px; }
footer.site ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; opacity: 0.85; }
footer.site .social-ico { display: inline-flex; align-items: center; gap: 9px; }
footer.site .social-ico svg { width: 16px; height: 16px; flex: none; fill: currentColor; }
footer.site .legal { grid-column: 1/-1; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; font-size: 13px; opacity: 0.6; }
footer.site .footer-logo small { color: rgba(253,250,243,0.5); }
footer.site .footer-logo p { margin-top: 16px; opacity: 0.6; max-width: 280px; font-size: 14px; }

/* ──── RESPONSIVE ──── */
@media (max-width: 1024px) {
  .wrap { padding: 0 24px; }
  header.site .wrap { padding: 14px 24px; gap: 18px; flex-wrap: wrap; }
  nav.main { order: 5; width: 100%; margin: 8px 0 0; gap: 18px; overflow-x: auto; scrollbar-width: none; }
  nav.main::-webkit-scrollbar { display: none; }
  nav.main a { white-space: nowrap; }
  .page-lead { padding: 50px 0 30px; }
  .page-lead h1 { font-size: clamp(27px, 5.3vw, 48px); }
  .page-lead .dek { font-size: 17px; }
  footer.site .wrap { grid-template-columns: 1fr 1fr; gap: 32px; padding: 0 24px; }
}

.skip-link { position: absolute; top: -60px; left: 12px; z-index: 10000; background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 14px; transition: top 0.15s; }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--sun-deep, var(--terra, #c99836)); outline-offset: 2px; }

/* Hamburger menu */
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.hamburger svg { display: block; }

@media (max-width: 720px) {
  header.site .wrap { padding: 12px 16px; flex-wrap: nowrap; }
  header.site .logo-text small { display: none; }
  header.site .logo-text b { font-size: 15px; }
  .lang-pill { font-size: 11px; }
  .btn { padding: 10px 16px; font-size: 13px; }
  .wrap { padding: 0 16px; }
  .hamburger { display: block; order: 10; }
  header.site .btn-sun { display: none; }
  header.site .lang-pill { display: none; }
  nav.main { 
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; 
    background: var(--bg); z-index: 100; flex-direction: column; 
    align-items: center; justify-content: center; gap: 20px; 
    font-size: 22px; 
  }
  nav.main.open { display: flex; }
  nav.main a { opacity: 1; padding: 12px 0; }
  .nav-close { position: absolute; top: 18px; right: 18px; background: none; border: 0; cursor: pointer; font-size: 32px; color: var(--ink); line-height: 1; }
  .nav-mobile-extras { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 20px; }

  footer.site { padding: 50px 0 24px; margin-top: 50px; }
  footer.site .wrap { grid-template-columns: 1fr; gap: 28px; padding: 0 16px; }
  footer.site .legal { flex-direction: column; gap: 10px; margin-top: 30px; }

  /* Generic grid collapse — most pages use these patterns */
  .pgrid, .post-grid, .grid, .mem-grid, .info-grid,
  .feature .card, .body-grid .wrap, .form-sec .wrap, .contact .wrap,
  .hero-grid, .newsletter .wrap-in, .cta-card, .mem-card .head,
  .meta-strip-in, .article-body .wrap { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* Feature/Project card details */
  .feature .card .body { padding: 30px 26px; }
  .feature h2 { font-size: 30px; }
  .pcard .body { padding: 24px; }
  .pcard h3 { font-size: 22px; }
  .pcard .stats { gap: 18px; }
  .pcard .stats .s b { font-size: 22px; }

  /* Page-lead */
  .page-lead { padding: 36px 0 24px; }
  .page-lead h1 { font-size: clamp(23px, 6vw, 36px); line-height: 1; }
  .page-lead .dek { font-size: 16px; margin-top: 18px; }
  .crumb { margin-bottom: 14px; font-size: 11px; }

  /* Cards / sections */
  .cta { padding: 50px 16px !important; }
  .cta-card { padding: 36px 26px !important; border-radius: 24px !important; }
  .cta-card h2 { font-size: 34px !important; }

  .newsletter { padding: 50px 16px !important; margin: 0 !important; border-radius: 0 !important; }
  .newsletter h2 { font-size: 30px !important; }
  .newsletter .wrap-in { padding: 0 16px !important; }
  .nl-form { flex-direction: column; border-radius: 18px !important; padding: 8px !important; }
  .nl-form .btn { width: 100%; justify-content: center; }

  .timeline, .quote-sec, .faq, .related, .next-up, .principles, .board, .facts, .ways, .membership, .form-sec, .feature, .grid-section, .filter-bar, .projects, .contact, .article-body { padding: 40px 0 !important; }

  .timeline h2, .form-sec h2, .mem-card h2 { font-size: 34px !important; }
  .quote-sec blockquote, .quote blockquote { font-size: 28px !important; }
  .mem-card { padding: 36px 24px !important; border-radius: 24px !important; }

  /* Article detail */
  .article-lead h1 { font-size: clamp(21px, 5.7vw, 32px); }
  .article-lead .standfirst { font-size: 19px; }
  .meta-row { gap: 14px; padding: 18px 0; }
  .meta-row .share { margin-left: 0; }
  .toc { position: static; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .article-side, .side { position: static; }
  .prose h2 { font-size: 26px !important; }
  .prose p, .prose .drop p:first-child { font-size: 17px; }
  .prose .drop p:first-child::first-letter { font-size: 60px; }
  .prose .pull, .pull { font-size: 22px !important; padding: 20px 0 !important; }
  .gallery { grid-template-columns: 1fr !important; }

  /* Project detail */
  .proj-hero h1 { font-size: clamp(25px, 6vw, 40px); }
  .proj-hero .lede { font-size: 18px; }
  .hero-img { aspect-ratio: 4/3; margin-top: 28px; border-radius: 18px; }
  .hero-img::after { font-size: 10px !important; }
  .meta-strip-in { padding: 20px 0 !important; }
  .ms .v { font-size: 22px !important; }

  /* Forms */
  .form-card { padding: 26px !important; border-radius: 22px !important; }
  .form-card h2 { font-size: 26px !important; }
  .row2 { grid-template-columns: 1fr !important; gap: 0 !important; }
  .field input, .field select, .field textarea { font-size: 16px; /* prevent iOS zoom */ }

  /* Filter chips scroll */
  .filter-bar .wrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .filter-bar .wrap::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; flex-shrink: 0; }
  .search-box { flex-shrink: 0; width: 200px; margin-left: 8px; }

  /* Membership tiers */
  .mem-tier .price { font-size: 44px !important; }

  /* Ways/Mitmachen */
  .way { padding: 30px 26px !important; }
  .way h3 { font-size: 24px !important; }

  /* Über uns timeline */
  .tline::before { display: none; }
  .timeline .head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px !important; }

  /* Info cards / Kontakt */
  .info-card { padding: 22px !important; }

  /* Board portraits — keep tighter */
  .board .grid { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
}

@media (max-width: 420px) {
  .page-lead h1 { font-size: clamp(20px, 6.7vw, 29px); }
  .hero h1 { font-size: clamp(34px, 11vw, 52px) !important; }
  .board .grid { grid-template-columns: 1fr !important; }
}

/* ──── Bildergalerie / Photo gallery ──── */
.gallery-sec { padding: 10px 0 50px; }
.gallery-sec h2 { font-size: 32px; font-weight: 700; margin-bottom: 6px; }
.gallery-sec h2 em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--terra); font-weight: 400; }
.gallery-sec .gsub { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.ggroup-label { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gph { aspect-ratio: 4/3; border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--line); display: block; }
.gph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.gph:hover img { transform: scale(1.05); }
@media (max-width: 720px) {
  .ggrid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
  .gph { border-radius: 10px; }
}

/* Lightbox */
.glb { position: fixed; inset: 0; z-index: 200; background: rgba(23,18,13,0.94); display: flex; align-items: center; justify-content: center; }
.glb img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.glb button { position: absolute; border: 0; background: rgba(255,255,255,0.1); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.glb button:hover { background: rgba(255,255,255,0.22); }
.glb .glb-close { top: 20px; right: 20px; }
.glb .glb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.glb .glb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.glb .glb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.75); font-size: 13px; letter-spacing: 0.1em; }
@media (max-width: 720px) {
  .glb button { width: 40px; height: 40px; font-size: 18px; }
  .glb .glb-prev { left: 8px; } .glb .glb-next { right: 8px; }
}
