/* Konzept B — Warm & Community
   Freundlich, rund, nahbar. Erdige Farbpalette mit Moosgrün und Terrakotta,
   großzügige Karten mit weichen Schatten – Fokus auf Mitglieder & Gemeinschaft. */

:root {
  --bg: #fbf7ee;
  --bg-alt: #f2e8d6;
  --card: #ffffff;
  --ink: #2e2a22;
  --ink-soft: #7a6f5c;
  --moss: #4b6b44;
  --moss-dark: #37502f;
  --terracotta: #c1683c;
  --gold: #d9a441;
  --line: #e7dcc4;
  --white: #ffffff;
  --off-white: #fbf8f0;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.5px; margin: 0; }
.eyebrow {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 700;
}
body.nav-open { overflow: hidden; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--white);
  box-shadow: 0 2px 18px rgba(60,50,30,0.06);
}
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand span { font-size: 17px; line-height: 1.15; color: var(--moss-dark); font-weight: 800; }
.nav-desktop { display: flex; align-items: center; gap: 8px; }
.nav-desktop a {
  font-size: 14px; font-weight: 600; color: var(--ink);
  padding: 10px 16px; border-radius: 999px;
}
.nav-desktop a:hover { background: var(--bg-alt); }
.nav-cta {
  background: var(--terracotta) !important; color: var(--white) !important;
  padding: 11px 22px !important;
}
.nav-cta:hover { background: var(--moss-dark) !important; }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: var(--bg-alt); border-radius: 50%;
  border: none; cursor: pointer;
}
.hamburger span { width: 20px; height: 2px; background: var(--moss-dark); display: block; margin: 0 auto; border-radius: 2px; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; top: 0; right: -320px; width: 300px; height: 100%;
  background: var(--moss-dark); color: var(--white); z-index: 60;
  padding: 30px 28px; transition: right 0.35s ease;
  display: flex; flex-direction: column;
  border-radius: 24px 0 0 24px;
}
.sidebar.open { right: 0; }
.sidebar-close {
  align-self: flex-end; background: rgba(255,255,255,0.15); border: none; color: var(--white);
  font-size: 14px; cursor: pointer; margin-bottom: 30px; padding: 8px 16px; border-radius: 999px;
}
.sidebar nav { display: flex; flex-direction: column; gap: 10px; }
.sidebar nav a { font-size: 20px; font-weight: 700; padding: 10px 14px; border-radius: 14px; }
.sidebar nav a:hover { background: rgba(255,255,255,0.1); }
.sidebar-status { margin-top: auto; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.2); display: flex; flex-direction: column; gap: 10px; }
.overlay {
  position: fixed; inset: 0; background: rgba(46,42,34,0.5);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease; z-index: 50;
}
.overlay.open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero { padding: 36px 24px 0; max-width: 1180px; margin: 0 auto; }
.hero-card {
  position: relative; border-radius: 32px; overflow: hidden;
  height: 78vh; min-height: 480px; display: flex; align-items: flex-end;
}
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(46,42,34,0) 25%, rgba(38,32,22,0.45) 60%, rgba(30,26,18,0.85) 100%); }
.hero-content { position: relative; z-index: 2; color: var(--off-white); padding: 40px; }
.hero-content h1 { font-size: clamp(30px, 5.5vw, 54px); margin: 10px 0 14px; color: var(--off-white); text-shadow: 0 2px 18px rgba(20,16,8,0.3); }
.hero-content p { max-width: 480px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.92); margin-bottom: 22px; }
.hero-content .eyebrow { color: var(--gold); }

.status-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.3);
  padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  backdrop-filter: blur(4px);
}
.pill b { color: var(--gold); }

/* ---------- Swipe menu ---------- */
.swipe-section { padding: 60px 0 20px; }
.swipe-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; flex-wrap: wrap; gap: 10px; }
.swipe-head h2 { font-size: 26px; color: var(--moss-dark); }
.swipe-hint { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.swipe-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 24px 30px; margin: 0 -24px; -webkit-overflow-scrolling: touch;
}
.swipe-track::-webkit-scrollbar { height: 6px; }
.swipe-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.swipe-card {
  position: relative; flex: 0 0 74%; scroll-snap-align: start;
  height: 220px; border-radius: 26px; overflow: hidden; color: var(--white);
  box-shadow: 0 10px 30px rgba(60,50,30,0.15);
}
.swipe-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.swipe-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(75,107,68,0.15), rgba(30,26,18,0.75)); }
.swipe-card .label { position: absolute; left: 22px; bottom: 18px; right: 22px; z-index: 2; }
.swipe-card .label .eyebrow { color: var(--gold); }
.swipe-card .label h3 { font-size: 21px; color: var(--off-white); margin-top: 4px; text-shadow: 0 1px 10px rgba(20,16,8,0.35); }
@media (min-width: 720px) { .swipe-card { flex-basis: 28%; height: 260px; } }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-head { display:flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.section-head h2 { font-size: 28px; color: var(--moss-dark); }
.link-more {
  font-size: 13px; font-weight: 700; background: var(--bg-alt); color: var(--moss-dark);
  padding: 10px 18px; border-radius: 999px;
}
.link-more:hover { background: var(--moss); color: var(--white); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 24px rgba(60,50,30,0.08); display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(60,50,30,0.15); }
.news-card figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; }
.news-card img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 20px 22px 24px; }
.news-card .date {
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--terracotta); background: #fbeadf; padding: 4px 10px; border-radius: 999px;
}
.news-card h3 { font-size: 19px; margin: 12px 0 8px; line-height: 1.3; }
.news-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0; }

.moments-section .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
.moments-sub { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.moments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  grid-auto-flow: dense;
  gap: 18px;
}
.moments-item {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(60,50,30,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.moments-item.big { grid-column: span 2; grid-row: span 2; }
.moments-item.tall { grid-column: span 1; grid-row: span 2; }
.moments-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.moments-item:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(60,50,30,0.18); }
.moments-item:hover img { transform: scale(1.05); }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
  background: var(--card); border-radius: 32px; padding: 46px;
  box-shadow: 0 8px 30px rgba(60,50,30,0.08);
}
.split img { border-radius: 24px; aspect-ratio: 4/3; object-fit: cover; }
.split .eyebrow { margin-bottom: 10px; display:block; }
.split h2 { font-size: 28px; margin-bottom: 14px; color: var(--moss-dark); }
.split p { line-height: 1.7; color: var(--ink-soft); margin-bottom: 20px; }
.btn {
  display: inline-block; background: var(--moss); color: var(--white);
  padding: 13px 28px; font-size: 14px; font-weight: 700; border-radius: 999px;
}
.btn:hover { background: var(--moss-dark); }
.btn.outline { background: transparent; color: var(--moss); border: 2px solid var(--moss); }
.btn.outline:hover { background: var(--moss); color: var(--white); }

.board-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.board-card {
  text-align: center; background: var(--card); border-radius: 24px; padding: 26px 16px;
  box-shadow: 0 6px 20px rgba(60,50,30,0.07);
}
.board-avatar {
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--moss), var(--terracotta));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: var(--white);
  border: 4px solid var(--bg-alt);
}
.board-card h3 { font-size: 16px; }
.board-card .role { font-size: 13px; color: var(--terracotta); font-weight: 700; margin-top: 4px; }
.placeholder-tag { font-size: 11px; color: var(--ink-soft); background: var(--bg-alt); border-radius: 999px; padding: 3px 10px; display:inline-block; margin-top: 8px; }

table.plan { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
table.plan th { text-align: left; padding: 0 16px 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink-soft); font-weight: 700; }
table.plan td { background: var(--card); padding: 16px; font-size: 14px; box-shadow: 0 4px 14px rgba(60,50,30,0.06); }
table.plan tr td:first-child { border-radius: 16px 0 0 16px; }
table.plan tr td:last-child { border-radius: 0 16px 16px 0; }
table.plan td.badge span { background: var(--moss); color: var(--white); font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
table.plan td.badge span.done { background: var(--gold); color: var(--ink); }

.page-hero { padding: 150px 0 50px; background: var(--bg-alt); }
.page-hero .eyebrow { margin-bottom: 10px; display:block; }
.page-hero h1 { font-size: clamp(30px, 5vw, 46px); color: var(--moss-dark); }
.page-hero.with-image {
  position: relative; padding: 40px 24px 0; background: none; overflow: visible;
  max-width: 1180px; margin: 0 auto;
}
.page-hero.with-image .page-hero-inner {
  position: relative; border-radius: 32px; overflow: hidden;
  min-height: 320px; display: flex; align-items: flex-end; padding: 40px;
}
.page-hero.with-image .page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero.with-image .page-hero-inner::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(46,42,34,0.1) 30%, rgba(30,26,18,0.75) 100%);
}
.page-hero.with-image .container { position: relative; z-index: 2; padding: 0; }
.page-hero.with-image .eyebrow { color: var(--gold); }
.page-hero.with-image h1 { color: var(--off-white); text-shadow: 0 2px 18px rgba(20,16,8,0.4); }

/* ---------- Footer ---------- */
.site-footer { background: var(--moss-dark); color: rgba(255,255,255,0.85); padding: 60px 0 30px; margin-top: 30px; border-radius: 40px 40px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer-grid h4 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
.footer-grid p, .footer-grid a { font-size: 14px; line-height: 1.8; display: block; color: rgba(255,255,255,0.75); }
.footer-grid a:hover { color: var(--gold); }
.footer-note { font-size: 12px; color: rgba(255,255,255,0.5); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.mockup-banner {
  background: var(--terracotta); color: var(--white); text-align: center; font-size: 12px; font-weight: 600;
  padding: 8px 16px; letter-spacing: 0.3px;
}
.mockup-banner a { color: var(--white); text-decoration: underline; }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; padding: 26px; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 16px 16px 0; }
  .hero-card { border-radius: 24px; height: 82vh; }
  .footer-grid { grid-template-columns: 1fr; }
  .moments-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
}
