/* ===== Design tokens (see design_handoff_buebew_website/README.md) ===== */
:root {
  --bg: #faf7f2;
  --bg-card: #fffdfa;
  --bg-accent: #f4e9e4;
  --border: #e7dfd4;
  --border-accent: #e5cfc4;
  --text: #2b2420;
  --text-secondary: #4a423b;
  --text-muted: #6f645a;
  --text-weak: #8a7d72;
  --accent: #8a3a3a;
  --accent-hover: #6f2e2e;
  --input-border: #d9cfc2;
  --selection: #f0ded6;
  --footer-bg: #2b2420;
  --footer-text: #cfc6bc;
  --footer-link: #e8ded2;
  --footer-muted: #9a9086;
  --footer-title: #f5efe7;
  --footer-accent: #d99a8a;

  --font-serif: 'Spectral', Georgia, serif;
  --font-sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body { text-wrap: pretty; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
::selection { background: var(--selection); }

.no-underline { text-decoration: none; }
.text-weak { color: var(--text-weak); }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent-em { color: var(--accent); font-style: italic; }

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1 {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 18px;
}

.intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  max-width: 68ch;
  text-wrap: pretty;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.logo { display: flex; align-items: center; }
.logo img { height: 44px; width: auto; }

.main-nav { display: flex; gap: 30px; align-items: center; }

.main-nav a {
  position: relative;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 600;
  padding: 6px 1px;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-toggle-checkbox { display: none; }

.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 26px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.nav-toggle-label span,
.nav-toggle-label::before,
.nav-toggle-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
}
.nav-toggle-label::before { top: 0; }
.nav-toggle-label span { top: 8.5px; }
.nav-toggle-label::after { bottom: 0; }

/* ===== Hero ===== */
.hero {
  padding: 56px 24px 0;
  display: flex;
  gap: 56px;
  align-items: center;
}
.hero-text { flex: 1; min-width: 0; }
.hero-image { width: 460px; flex-shrink: 0; }
.hero-image .placeholder, .hero-image .lightbox-trigger { width: 460px; height: 300px; border-radius: 18px; aspect-ratio: 460 / 300; }

/* ===== Aktuelles: main grid ===== */
.main-grid {
  padding: 48px 24px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}

article.news-item {
  border-top: 1px solid var(--border);
  padding: 44px 0;
}
article.news-item:first-child { border-top: none; padding-top: 0; }
/* clearfix: the floated .news-image must not bleed into the next article */
article.news-item::after { content: ""; display: table; clear: both; }

/* Image floats left, text wraps around it and continues full-width once past its height */
.news-item.with-image .news-image {
  float: left;
  width: 300px;
  max-width: 100%;
  margin: 0 36px 20px 0;
}

.news-image .placeholder, .news-image .lightbox-trigger {
  width: 300px;
  height: 210px;
  border-radius: 14px;
  aspect-ratio: 300 / 210;
}
.image-caption { font-size: 13px; color: var(--text-weak); margin-top: 8px; line-height: 1.5; }

.news-item h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  margin: 10px 0 14px;
}

.news-item p, .details-content p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 14px;
}
.news-item > div > p:last-child, .news-item > p:last-child { margin-bottom: 0; }
.news-item ul, .news-item ol {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 14px;
  padding-left: 22px;
}

/* Weiterlesen toggle — pure HTML/CSS, no JS */
article details { margin-top: 14px; }
article details summary {
  list-style: none;
  cursor: pointer;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}
article details summary::-webkit-details-marker { display: none; }
article details summary::marker { content: ""; }
article details summary .label-open { display: none; }
article details[open] summary .label-open { display: inline; }
article details[open] summary .label-closed { display: none; }
article details .details-content { margin-top: 14px; }

/* Archive */
.archive { border-top: 1px solid var(--border); padding: 44px 0 0; }
.archive h2 { font-family: var(--font-serif); font-size: 24px; font-weight: 600; margin: 0 0 24px; }
.archive-grid {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  row-gap: 13px;
  column-gap: 20px;
  font-size: 15.5px;
  line-height: 1.5;
}
.archive-grid .date { color: var(--text-weak); }

/* Sidebar */
aside.sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.card.accent { background: var(--bg-accent); border-color: var(--border-accent); }
.card .eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.card .eyebrow.muted { color: var(--footer-muted); }
.card h3 {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 8px;
}
.card .meta { font-size: 15.5px; color: var(--text-secondary); line-height: 1.6; }
.card .hint { margin-top: 14px; font-size: 14.5px; color: var(--text-muted); }
.card .body-text { font-size: 15.5px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.card .link-arrow { font-weight: 700; font-size: 15px; }
.card.impressum { font-size: 15px; line-height: 1.75; color: var(--text-secondary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--accent-hover); color: #fff; }

/* ===== Generic content sections (Verein / BüBewegt) ===== */
.section { padding: 56px 24px 0; }
.section h2 { font-family: var(--font-serif); font-size: 28px; font-weight: 600; margin: 0 0 8px; }
.section .lead { font-size: 16px; color: var(--text-muted); margin: 0 0 28px; }

.people-grid { display: grid; gap: 24px; }
.people-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.people-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }

.person-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.person-card.gr { padding: 28px; }
.person-card.vs { padding: 24px; gap: 14px; }
.person-card .placeholder, .person-card .lightbox-trigger { border-radius: 50%; aspect-ratio: 1 / 1; }
.person-card.gr .placeholder, .person-card.gr .lightbox-trigger { width: 132px; height: 132px; }
.person-card.vs .placeholder, .person-card.vs .lightbox-trigger { width: 108px; height: 108px; }
.person-card .name { font-family: var(--font-serif); font-weight: 600; }
.person-card.gr .name { font-size: 20px; }
.person-card.vs .name { font-size: 18px; }
.person-card .role { color: var(--accent); font-weight: 600; margin-top: 4px; }
.person-card.gr .role { font-size: 14.5px; }
.person-card.vs .role { font-size: 14px; }

.banner {
  background: var(--bg-accent);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.banner h3 { font-family: var(--font-serif); font-size: 21px; font-weight: 600; margin: 0 0 6px; }
.banner .meta { font-size: 15px; color: var(--text-muted); }

/* BüBewegt issue grid */
.issues-grid {
  padding: 48px 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.issue-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  gap: 22px;
}
.issue-card .placeholder, .issue-card .lightbox-trigger { width: 96px; height: 128px; border-radius: 8px; flex-shrink: 0; aspect-ratio: 96 / 128; }
.issue-body { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.issue-body .kicker { margin-bottom: 0; }
.issue-title { font-family: var(--font-serif); font-size: 22px; font-weight: 600; margin-top: 4px; }
.issue-topics { font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.issue-download { font-weight: 700; font-size: 15px; margin-top: auto; }

/* ===== Kontakt ===== */
.contact-grid {
  padding: 48px 24px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: start;
}
form.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
form.contact-form .form-title { font-family: var(--font-serif); font-size: 24px; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14.5px; font-weight: 700; color: var(--text-secondary); }
.field input, .field textarea {
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
.field textarea { resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-hint { font-size: 13.5px; color: var(--text-weak); }

/* ===== Placeholder (photo not yet delivered) ===== */
.placeholder {
  background: repeating-linear-gradient(135deg, rgba(138, 58, 58, 0.06) 0 10px, transparent 10px 20px);
  border: 1px dashed var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-weak);
  font-size: 13px;
  padding: 8px;
}

/* ===== Lightbox — real photos only, no JS (CSS :target technique) =====
   Sizing (width/height/aspect-ratio/border-radius) is set on .lightbox-trigger itself
   by each context (hero-image, news-image, person-card, issue-card) — see there. */
.lightbox-trigger { display: block; cursor: zoom-in; overflow: hidden; }
.lightbox-trigger img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(43, 36, 32, 0.85);
}
.lightbox-overlay:target { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; }
.lightbox-overlay img {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

/* ===== Footer ===== */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 96px; }
.footer-main {
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
}
.footer-brand { font-family: var(--font-serif); font-size: 21px; font-weight: 600; color: var(--footer-title); margin-bottom: 12px; }
.footer-brand em { color: var(--footer-accent); font-style: italic; }
.footer-claim { font-size: 15px; line-height: 1.6; margin: 0; max-width: 40ch; }
.footer-col-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-muted);
  margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.footer-links a, .footer-address a { color: var(--footer-link); }
.footer-address { font-size: 15px; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bottom .container {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  color: var(--footer-muted);
}
.footer-bottom a { color: var(--footer-muted); }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .main-grid, .contact-grid { grid-template-columns: 1fr; }
  aside.sidebar { position: static; }
  .news-item.with-image .news-image { float: none; width: 100%; margin: 0 0 20px; }
  .news-image .placeholder, .news-image .lightbox-trigger { width: 100%; height: auto; aspect-ratio: 300 / 210; }
  .people-grid.grid-3, .people-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .issues-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero { flex-direction: column; align-items: stretch; padding-top: 40px; }
  .hero-image { width: 100%; order: -1; }
  .hero-image .placeholder, .hero-image .lightbox-trigger { width: 100%; height: auto; aspect-ratio: 460 / 300; }
  h1 { font-size: 34px; }

  .nav-toggle-label { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
  .nav-toggle-checkbox:checked ~ .main-nav { display: flex; }
  .main-nav a { width: 100%; padding: 12px 0; min-height: 44px; display: flex; align-items: center; }
  .main-nav a.active::after { bottom: 8px; }

  .footer-main { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .archive-grid { grid-template-columns: 90px minmax(0, 1fr); }
  .banner { padding: 24px; }
  .people-grid.grid-3, .people-grid.grid-4 { grid-template-columns: 1fr; }
}
