/* Keinkauf e. V. — theme stylesheet */

:root {
  --green:       #3f7d3f;
  --green-dark:  #2f5f2f;
  --green-light: #eaf3ea;
  --ink:         #1e241e;
  --muted:       #5c6b5c;
  --paper:       #ffffff;
  --paper-2:     #f6f8f5;
  --dark:        #20291f;
  --dark-2:      #2a352a;
  --line:        #e2e7df;
  --max:         1080px;
  --radius:      10px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 18px;
}

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

a { color: var(--green-dark); text-underline-offset: 2px; }
a:hover { color: var(--green); }

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--dark);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 3px solid var(--green);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: #fff; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }
.brand-sub { font-size: .72rem; color: #b9c6b4; text-transform: uppercase; letter-spacing: .12em; }

.site-nav ul { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a {
  color: #e9efe6; text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: .5rem .8rem; border-radius: 6px; display: block;
}
.site-nav a:hover, .site-nav a.active { background: var(--dark-2); color: #fff; }
.nav-shop { color: #cfe0c8 !important; }

.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--green-light), #f9fbf8 70%);
  border-bottom: 1px solid var(--line);
  margin: 0 -9999px 2.5rem; padding: 0 9999px;
}
.hero-inner {
  max-width: var(--max); margin: 0 auto; padding: 3.5rem 1.25rem 3rem;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center;
}
.hero-media img {
  width: 100%; height: 100%; max-height: 380px; object-fit: cover;
  border-radius: var(--radius); box-shadow: 0 10px 30px rgba(30,50,20,.15);
}
@media (max-width: 780px) {
  .hero-inner { grid-template-columns: 1fr; gap: 1.75rem; padding-top: 2.5rem; }
  .hero-media { order: -1; }
  .hero-media img { max-height: 240px; }
}
.hero-kicker { color: var(--green-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; margin: 0 0 .75rem; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; margin: 0 0 1rem; letter-spacing: -0.02em; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-lead { font-size: 1.25rem; max-width: 40ch; color: var(--muted); margin: 0 0 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }

.btn {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none;
  padding: .7rem 1.3rem; border-radius: 999px; font-weight: 700;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--green-dark); border: 2px solid var(--green); padding: .58rem 1.2rem; }
.btn-ghost:hover { background: var(--green); color: #fff; }

/* ---------- Content ---------- */
main { padding-bottom: 3.5rem; }
.page-body { padding-top: 1rem; }
.prose { max-width: 72ch; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; margin: .2em 0 .6em; letter-spacing: -0.02em; }
.prose h2 { font-size: 1.5rem; margin: 2em 0 .5em; padding-top: .3em; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .4em; color: var(--green-dark); }
.prose p, .prose li { color: #2b332b; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .35em 0; }
.prose blockquote {
  margin: 1.5em 0; padding: .5em 1.25em; border-left: 4px solid var(--green);
  background: var(--paper-2); font-style: italic; color: var(--muted);
}
.prose table { border-collapse: collapse; width: 100%; margin: 1.5em 0; font-size: .96rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .75rem; text-align: left; }
.prose th { background: var(--green-light); }
.prose code { background: var(--paper-2); padding: .1em .35em; border-radius: 4px; font-size: .9em; }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.breadcrumb { font-size: .95rem; margin: 0 0 .5rem; }
.post-meta { color: var(--muted); font-size: .95rem; margin-top: -.4rem; }

/* ---------- News teaser (home) ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2rem 0 1rem; }
.section-head h2 { margin: 0; font-size: 1.6rem; }
.more-link { font-weight: 700; text-decoration: none; white-space: nowrap; }
.more-link:hover { text-decoration: underline; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .15s, transform .15s;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: 0 6px 20px rgba(30,50,20,.08); transform: translateY(-2px); }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 1.1rem 1.25rem 1.25rem; }
.card time, .post-item time { color: var(--green-dark); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.card h3 { margin: .35rem 0 .5rem; font-size: 1.15rem; line-height: 1.25; }
.card h3 a { text-decoration: none; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Post list (Aktuelles) ---------- */
.post-list { margin-top: 2rem; display: grid; gap: 1.5rem; }
.post-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.post-item.has-media { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; padding: 0; overflow: hidden; }
.post-media { display: block; overflow: hidden; }
.post-media img { width: 100%; height: 100%; min-height: 160px; object-fit: cover; display: block; }
.post-item.has-media .post-item-body { padding: 1.5rem 1.5rem 1.5rem 0; }
.post-item h2 { margin: .3rem 0 .5rem; font-size: 1.35rem; line-height: 1.2; }
.post-item h2 a { text-decoration: none; }
.post-item p { margin: 0 0 .75rem; color: var(--muted); }
@media (max-width: 620px) {
  .post-item.has-media { grid-template-columns: 1fr; }
  .post-item.has-media .post-item-body { padding: 1.25rem; }
  .post-media img { min-height: 200px; }
}

/* Article lead + in-content images */
.post-lead { margin: 1.25rem 0 1.5rem; }
.post-lead img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); display: block; }
.prose img { border-radius: var(--radius); margin: 1.25rem 0; }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { color: var(--muted); font-size: .9rem; margin-top: .4rem; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #cdd6c8; margin-top: 3rem; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; padding: 2.75rem 1.25rem 1.75rem; }
.footer-col h3 { color: #fff; font-size: 1rem; margin: 0 0 .6rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-col p { margin: .25rem 0; line-height: 1.6; }
.footer-col a { color: #d7e4d0; }
.footer-col a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: .3rem 0; }
.footer-legal { border-top: 1px solid #3a453a; padding: 1rem 1.25rem 1.75rem; }
.footer-legal p { margin: 0; font-size: .85rem; color: #93a08e; }

/* ---------- Responsive nav ---------- */
@media (max-width: 760px) {
  .nav-toggle-label {
    display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem;
  }
  .nav-toggle-label span { width: 26px; height: 3px; background: #fff; border-radius: 2px; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--dark-2);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .5rem; gap: .1rem; }
  .site-nav a { padding: .8rem 1rem; }
  .nav-toggle:checked ~ .site-nav { max-height: 24rem; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .hero-lead { font-size: 1.1rem; }
}
