:root {
  /* EC-Corporate-Design: Sächsischer Jugendverband EC / Deutscher EC-Verband */
  --ec-green: #94C356;
  --ec-green-strong: #79a741;
  --ec-green-deep: #5f8a2f;
  --ink: #22301d;
  --muted: #5b6b52;
  --bg: #ffffff;
  --bg-soft: #f5f8ef;
  --line: rgba(34, 48, 29, 0.12);
  --radius: 16px;
  --max: 1080px;
  --font: "Montserrat", system-ui, sans-serif;
  --font-display: "Goldney", "Montserrat", system-ui, sans-serif;
}

/* EC-Schriften (aus dem CD der Nextcloud selbst gehostet) */
@font-face {
  font-family: "Goldney";
  src: url("/assets/fonts/Goldney-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/Montserrat-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/Montserrat-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/Montserrat-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/Montserrat-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/Montserrat-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand-name { font-family: var(--font-display); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-logo { height: 40px; width: auto; }
.brand-place { font-size: 15px; font-weight: 700; color: var(--ec-green-deep); padding-left: 12px; border-left: 1px solid var(--line); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--ec-green-deep); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; }
.hero-inner { max-width: 720px; position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 14px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ec-green-deep);
}
.eyebrow-dark { color: rgba(255, 255, 255, 0.85); }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; margin: 0 0 20px; font-weight: 800; }
.hero .accent { color: var(--ec-green-strong); }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 56ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-hex {
  position: absolute; top: -60px; right: -40px; width: 460px; height: 460px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: linear-gradient(150deg, rgba(148, 195, 86, 0.18), rgba(148, 195, 86, 0.04));
  pointer-events: none;
}

/* Foto-Hero (Gruppenbild als Hintergrund) */
.hero-photo { padding: 96px 0; min-height: 70vh; display: flex; align-items: center; background-size: cover; background-position: center; }
@media (max-width: 720px) { .hero-photo { min-height: 52vh; } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18, 27, 15, 0.88), rgba(18, 27, 15, 0.5)); }
.hero-photo .eyebrow { color: #c9efa0; }
.hero-photo h1 { color: #fff; }
.hero-photo .accent { color: #b8e08a; }
.hero-photo .lead { color: rgba(255, 255, 255, 0.92); }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; font-family: var(--font); text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn-primary { background: var(--ec-green); color: #fff; }
.btn-primary:hover { background: var(--ec-green-strong); transform: translateY(-1px); }
.btn-ghost { background: rgba(148, 195, 86, 0.12); color: var(--ec-green-deep); border-color: rgba(148, 195, 86, 0.4); }
.btn-ghost:hover { background: rgba(148, 195, 86, 0.2); }
.btn-light { background: #fff; color: var(--ec-green-deep); }
.btn-light:hover { background: #f0f5e6; }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline { background: transparent; color: var(--ec-green-deep); border-color: var(--ec-green); }
.btn-outline:hover { background: rgba(148, 195, 86, 0.1); }

/* Sections */
.section { padding: 84px 0; }
.section h2 { font-size: clamp(26px, 3.5vw, 36px); margin: 0 0 12px; font-weight: 800; }
.section-green {
  background: linear-gradient(160deg, #3a571d 0%, #29400f 100%);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.section-green p, .section-green .lead { color: rgba(255, 255, 255, 0.92); }

/* Split layout */
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.split p { color: var(--muted); }
.fact-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.fact-box h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.fact-hint { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.fact-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fact-box li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.fact-box li span {
  display: inline-grid; place-items: center; min-width: 40px; height: 24px;
  border-radius: 6px; background: var(--ec-green); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}

/* Cards (Grundsätze) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; }
.section-green .card { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); }
.card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.section-green .card p { color: rgba(255, 255, 255, 0.92); }

/* Schedule */
.schedule { margin: 20px 0 0; display: flex; flex-direction: column; gap: 14px; }
.schedule div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.schedule dt { font-weight: 800; color: var(--ec-green-deep); }
.schedule dd { margin: 0; color: var(--ink); }

/* Contact */
.contact { text-align: center; max-width: 720px; }
.contact .lead { margin-left: auto; margin-right: auto; }
.contact-actions { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 14px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--ec-green-deep); }

/* Legal */
.legal { max-width: 720px; padding: 64px 24px; }
.legal h1 { font-size: 30px; margin: 0 0 20px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); }

@media (max-width: 720px) {
  .nav { display: none; }
  .split { grid-template-columns: 1fr; }
  .hero { padding: 72px 0; }
  .section { padding: 60px 0; }
  .schedule div { grid-template-columns: 1fr; gap: 4px; }
}

/* Einblicke (Foto-Galerie) */
.foto-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.foto-item { margin: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.foto-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.foto-item:hover img { transform: scale(1.04); }
.foto-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(18, 24, 16, 0.93); display: flex; align-items: center; justify-content: center; }
.foto-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.fl-close { position: absolute; top: 16px; right: 20px; background: none; border: none; color: #fff; font-size: 38px; line-height: 1; cursor: pointer; padding: 0 8px; }
@media (max-width: 720px) { .foto-grid { grid-template-columns: 1fr; } }