/* =========================================================
   Stadtjugendring Einbeck e. V. – Stylesheet
   Komplett lokal, keine externen Schriften oder Skripte.
   ========================================================= */

:root {
  --sun:        #f6a721;   /* Orange aus dem Logo  */
  --sun-deep:   #e2890c;
  --sun-soft:   #fff5e0;
  --blue:       #1f6cb0;   /* Blau aus dem Logo    */
  --blue-deep:  #15518a;

  --ink:        #1d1d1f;
  --body:       #38383b;
  --muted:      #6c6c72;
  --line:       #e7e7e9;
  --bg:         #ffffff;
  --bg-alt:     #f7f7f8;
  --bg-dark:    #1d1d1f;

  --radius:     14px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12);
  --wrap:       1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.section { padding: 70px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section__head p  { color: var(--muted); font-size: 1.08rem; margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sun-deep);
  margin-bottom: .6em;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { height: 42px; width: auto; }
.brand span { font-size: 1.02rem; line-height: 1.15; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 9px 12px; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: .95rem; transition: background .15s, color .15s;
  /* Menüpunkte nie umbrechen – "Aus dem Jugendring" sonst zweizeilig. */
  white-space: nowrap;
}
.nav-links a:hover { background: var(--bg-alt); text-decoration: none; }
.nav-links a.active { background: var(--ink); color: #fff; }

.nav-toggle {
  display: none; border: 0; background: none; cursor: pointer;
  width: 44px; height: 44px; padding: 0; border-radius: 10px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; position: relative; width: 22px; height: 2px;
  background: var(--ink); margin: 0 auto; transition: .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 78% -10%, var(--sun-soft), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%);
  padding: 86px 0 78px;
  overflow: hidden;
}
.hero__inner { max-width: 760px; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: .35em;
}
.hero h1 .accent { color: var(--sun-deep); }
.hero p { font-size: 1.2rem; color: var(--muted); margin: 0 0 1.8em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .12s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--sun); color: #3a2600; box-shadow: 0 6px 18px rgba(246,167,33,.35); }
.btn--primary:hover { background: var(--sun-deep); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--arrow::after { content: "→"; font-weight: 700; }

/* ---------- Card grid ---------- */
.cards { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .15s, box-shadow .15s, border-color .15s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; text-decoration: none; }
.card__icon {
  width: 50px; height: 50px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; background: var(--sun-soft); font-size: 1.5rem;
}
.card h3 { font-size: 1.22rem; margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0 0 1.1em; flex: 1; }
.card__more { color: var(--sun-deep); font-weight: 700; font-size: .95rem; }
.card__more::after { content: " →"; }

/* ---------- Content / article pages ---------- */
.page-head {
  background: linear-gradient(180deg, var(--sun-soft), #fff);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 46px;
}
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-head p { color: var(--muted); font-size: 1.12rem; max-width: 680px; margin: .2em 0 0; }

.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 1.5rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.2rem; margin: 1.5em 0 .4em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose img { border-radius: var(--radius-sm); margin: 1.4em 0; box-shadow: var(--shadow); }

/* ---------- People grid (Vorstand / Ältestenrat) ---------- */
.people { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.person {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px; text-align: center;
}
.person__role { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sun-deep); font-weight: 700; }
.person__name { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: .35em 0 .15em; }
.person__mail { font-size: .92rem; word-break: break-word; }

/* ---------- Member list ---------- */
.members { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.member {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.member__name { font-weight: 600; color: var(--ink); }
.member__link {
  font-size: .85rem; font-weight: 700; color: var(--sun-deep);
  white-space: nowrap; padding: 5px 12px; border-radius: 999px; background: var(--sun-soft);
}
.member__link:hover { background: var(--sun); color: #3a2600; text-decoration: none; }
.member__link[aria-disabled] { background: var(--bg-alt); color: var(--muted); }

/* ---------- News list ---------- */
.news { display: grid; gap: 26px; grid-template-columns: repeat(2, 1fr); }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-card__media { aspect-ratio: 16/9; background: var(--bg-alt); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-card__date { font-size: .82rem; color: var(--sun-deep); font-weight: 700; letter-spacing: .04em; }
.news-card h3 { font-size: 1.25rem; margin: .35em 0 .5em; }
.news-card p { color: var(--muted); margin: 0; }

/* ---------- Termine ---------- */
.termine { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.termin {
  display: flex; align-items: flex-start; gap: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; transition: box-shadow .15s, border-color .15s;
}
.termin:hover { box-shadow: var(--shadow); border-color: transparent; }
.termin__date {
  flex: none; width: 68px; padding: 10px 0; border-radius: 12px;
  text-align: center; background: var(--sun-soft); color: var(--sun-deep);
}
.termin__day { display: block; font-size: 1.55rem; font-weight: 800; line-height: 1.05; color: var(--ink); }
.termin__month { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.termin__body { flex: 1; min-width: 0; }
.termin__body h3 { font-size: 1.1rem; margin: 0 0 .15em; }
.termin__body p { color: var(--muted); margin: .45em 0 0; }
.termin__meta { display: block; font-size: .88rem; color: var(--muted); font-weight: 600; }
.termin__meta span + span::before { content: "·"; margin: 0 .5em; }

/* Preisträger table */
.awards { width: 100%; border-collapse: collapse; }
.awards th, .awards td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.awards th { width: 90px; color: var(--sun-deep); font-weight: 700; }
.awards tr:hover td { background: var(--bg-alt); }

.muted { color: var(--muted); font-size: .95rem; }

/* ---------- Downloads ---------- */
.downloads { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.download-item {
  display: flex; align-items: center; gap: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; transition: box-shadow .15s, border-color .15s;
}
.download-item:hover { box-shadow: var(--shadow); border-color: transparent; }
.download-item__icon {
  flex: none; width: 56px; height: 56px; border-radius: 12px;
  display: grid; place-items: center; background: var(--sun-soft);
  color: var(--sun-deep); font-weight: 800; font-size: .82rem; letter-spacing: .02em;
}
.download-item__body { flex: 1; min-width: 0; }
.download-item__body h3 { font-size: 1.1rem; margin: 0 0 .15em; }
.download-item__body p  { color: var(--muted); margin: 0 0 .3em; }
.download-item__meta { font-size: .82rem; color: var(--muted); font-weight: 600; letter-spacing: .03em; }
.download-item__action { flex: none; }
.download-item__action .btn { padding: 10px 18px; font-size: .92rem; }
.btn[aria-disabled] { opacity: .55; cursor: default; }
.btn[aria-disabled]:hover { transform: none; }

@media (max-width: 620px) {
  .download-item { flex-wrap: wrap; gap: 14px; }
  .download-item__action { width: 100%; }
  .download-item__action .btn { width: 100%; justify-content: center; }
}

/* Info / contact boxes */
.infobox {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; margin: 1.4em 0;
}
.infobox h3 { margin-top: 0; }

.note {
  background: var(--sun-soft); border-left: 4px solid var(--sun);
  padding: 16px 20px; border-radius: var(--radius-sm); margin: 1.2em 0;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #c8c8cc; padding: 56px 0 28px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55em; }
.site-footer .brand span { color: #fff; }
.site-footer .brand small { color: #9a9aa0; }
.footer-logo { height: 44px; background: #fff; padding: 5px 8px; border-radius: 8px; }
.footer-bottom {
  border-top: 1px solid #34343a; padding-top: 22px; font-size: .86rem; color: #9a9aa0;
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
}
.footer-bottom a { color: #c8c8cc; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .cards, .people, .news, .members, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
/* Das Klappmenü beginnt früher als das übrige Layout: seit dem Menüpunkt
   "Termine" ist die Leiste sonst breiter als der Platz neben dem Logo. */
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
    box-shadow: var(--shadow-lg); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 13px 14px; border-radius: 10px; }
}
@media (max-width: 560px) {
  .members { grid-template-columns: 1fr; }
  .people  { grid-template-columns: 1fr 1fr; }
  .brand small { display: none; }
}
