/* Greenkeeperz e.V. — eigenes Stylesheet, keine Fremdabhaengigkeiten */

:root {
  --ink:        #000016;
  --ink-soft:   #1b1d2e;
  --green:      #4ca77c;
  --green-dark: #2f7a57;
  --green-deep: #1d4f38;
  --green-tint: #eef7f2;
  --paper:      #ffffff;
  --sand:       #f6f7f4;
  --line:       #e2e5df;
  --text:       #15171f;
  --muted:      #5b616b;

  --wrap:  1160px;
  --narrow: 760px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 22, .04), 0 8px 28px rgba(0, 0, 22, .06);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

.wrap   { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.narrow { max-width: var(--narrow); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { flex: 0 0 auto; display: block; }
.brand img { height: 42px; width: auto; }

.nav { margin-left: auto; }
.nav + .nav-cta { margin-left: 14px; }
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.nav a {
  display: block; padding: 9px 13px; border-radius: 9px;
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.nav a:hover { background: var(--green-tint); color: var(--green-deep); }
.nav a[aria-current="page"] { color: var(--green-dark); background: var(--green-tint); }

.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: .97rem; text-decoration: none; border: 1.5px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-outline { border-color: var(--green); color: var(--green-dark); }
.btn-outline:hover { background: var(--green-tint); }
.nav-cta { flex: 0 0 auto; }

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

/* ---------- Hero ---------- */

.hero {
  position: relative; color: #fff;
  background: var(--ink);
  min-height: clamp(420px, 58vh, 620px);
  display: grid; align-items: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(0, 0, 22, .88) 0%, rgba(0, 0, 22, .66) 48%, rgba(0, 0, 22, .3) 100%);
}
.hero-body { position: relative; padding: 84px 0; max-width: 720px; }
.hero .eyebrow { color: #9fdcbe; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.12rem; color: rgba(255, 255, 255, .88); max-width: 58ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.eyebrow {
  display: block; font-size: .82rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--green-dark); margin-bottom: 14px;
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-sand { background: var(--sand); }
.section-ink { background: var(--ink); color: rgba(255, 255, 255, .84); }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .eyebrow { color: #9fdcbe; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-ink .section-head p { color: rgba(255, 255, 255, .78); }

.split {
  display: grid; gap: clamp(32px, 5vw, 64px); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr .95fr; }
  .split-media-first > .split-media { order: -1; }
}
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.media-stack { display: grid; gap: 18px; }

/* ---------- Listen ---------- */

.ticks { list-style: none; margin: 0 0 1.6em; padding: 0; }
.ticks li { position: relative; padding-left: 34px; margin-bottom: 11px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-tint);
  border: 1.5px solid var(--green);
}
.ticks li::after {
  content: ""; position: absolute; left: 6.5px; top: .78em;
  width: 7px; height: 3.5px; border-left: 2px solid var(--green-dark);
  border-bottom: 2px solid var(--green-dark);
  transform: rotate(-45deg);
}
.section-ink .ticks li::before { background: rgba(76, 167, 124, .18); }
.section-ink .ticks li::after { border-color: #9fdcbe; }

/* ---------- Karten & Stats ---------- */

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
}
.card h3 { margin-bottom: .45em; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card-icon {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 18px;
  background: var(--green-tint); color: var(--green-deep);
  display: grid; place-items: center;
}
.card-icon svg { width: 22px; height: 22px; }

.stats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.stat {
  background: var(--green-tint); border: 1px solid rgba(76, 167, 124, .32);
  border-radius: var(--radius); padding: 30px 26px; text-align: center;
}
.stat .value {
  display: block; font-size: clamp(2.1rem, 4.6vw, 2.9rem);
  font-weight: 700; letter-spacing: -.03em; color: var(--green-deep); line-height: 1.05;
}
.stat .label { display: block; margin-top: 8px; font-weight: 600; color: var(--ink); }
.stat .note { display: block; margin-top: 4px; font-size: .9rem; color: var(--muted); }

/* ---------- CTA-Band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--green-deep) 0%, var(--green-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: clamp(34px, 5vw, 54px);
  display: grid; gap: 26px; align-items: center;
}
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { color: rgba(255, 255, 255, .87); margin: 0; max-width: 62ch; }
.cta-band .btn-primary { background: #fff; color: var(--green-deep); }
.cta-band .btn-primary:hover { background: var(--green-tint); color: var(--green-deep); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.faq details[open] { border-color: rgba(76, 167, 124, .5); }
.faq summary {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; cursor: pointer; font-weight: 600; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; flex: 0 0 auto;
  width: 10px; height: 10px; border-right: 2px solid var(--green-dark);
  border-bottom: 2px solid var(--green-dark); transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { background: var(--green-tint); }
.faq .num {
  flex: 0 0 auto; font-variant-numeric: tabular-nums; font-size: .85rem;
  font-weight: 700; color: var(--green-dark); letter-spacing: .04em;
}
.faq .answer { padding: 0 24px 22px 64px; color: var(--muted); }
.faq .answer p:last-child, .faq .answer ul:last-child { margin-bottom: 0; }

/* ---------- Prosa (Rechtstexte) ---------- */

.page-head { background: var(--sand); border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 84px) 0 clamp(34px, 5vw, 54px); }
.page-head h1 { margin-bottom: .2em; }
.page-head .lede { color: var(--muted); font-size: 1.05rem; margin: 0; }

.prose { padding: clamp(44px, 6vw, 76px) 0 clamp(56px, 8vw, 96px); }
.prose h2 {
  font-size: 1.32rem; margin-top: 2.4em; padding-top: 1.6em;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.05rem; margin-top: 1.9em; }
.prose ul, .prose ol { padding-left: 1.35em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose .subtle { color: var(--muted); font-size: .95rem; }

.para { margin: 0 0 1.1em; }
.para > span { display: block; padding-left: 2.6em; text-indent: -2.6em; }

.callout {
  background: var(--green-tint); border: 1px solid rgba(76, 167, 124, .35);
  border-left: 4px solid var(--green); border-radius: 10px;
  padding: 20px 24px; margin: 1.8em 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--green-deep); }

.contact-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin: 1.6em 0 2em; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.contact-card h3 { font-size: 1.02rem; margin-bottom: .5em; }
.contact-card p { margin: 0; font-size: .95rem; color: var(--muted); }
.contact-card a { word-break: break-word; }

.dl-list { list-style: none; margin: 1.4em 0 0; padding: 0; display: grid; gap: 10px; }
.dl-list a {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 11px;
  padding: 16px 20px; text-decoration: none; color: var(--text); font-weight: 500;
}
.dl-list a:hover { border-color: var(--green); background: var(--green-tint); }
.dl-list .tag {
  flex: 0 0 auto; font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  background: var(--ink); color: #fff; border-radius: 5px; padding: 3px 7px;
}
.dl-list .size { margin-left: auto; flex: 0 0 auto; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.board { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 1.2em 0 1.8em; }
.board div { background: var(--sand); border-radius: 11px; padding: 18px 20px; }
.board strong { display: block; }
.board span { font-size: .9rem; color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .74); padding: clamp(52px, 7vw, 78px) 0 32px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer img.footer-logo { height: 36px; width: auto; margin-bottom: 20px; }
.site-footer h3 { color: #fff; font-size: .82rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-variant-numeric: tabular-nums; }
.social { display: flex; gap: 12px; margin-top: 18px; }
.social a {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  display: grid; place-items: center;
}
.social a:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }
.social svg { width: 19px; height: 19px; }
.footer-bottom {
  margin-top: clamp(38px, 5vw, 56px); padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center;
  font-size: .88rem; color: rgba(255, 255, 255, .6);
}
.footer-bottom .age { margin-left: auto; }

/* ---------- Mobile-Navigation ---------- */

@media (max-width: 900px) {
  .nav-toggle-label {
    display: grid; place-items: center; margin-left: auto; order: 2;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  }
  .nav-toggle-label span { position: relative; }
  .nav-toggle-label span::before, .nav-toggle-label span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-label span::before { top: -6px; }
  .nav-toggle-label span::after  { top: 6px; }

  .nav { order: 4; flex-basis: 100%; margin-left: 0; display: none; }
  .nav-toggle:checked ~ .nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 16px; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { order: 3; margin-left: 12px; }
  .nav-cta .btn { padding: 11px 18px; font-size: .9rem; }
  .header-inner { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav-cta { display: none; }
  .faq .answer { padding-left: 24px; }
  .footer-bottom .age { margin-left: 0; flex-basis: 100%; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .cta-band, .nav { display: none; }
  body { font-size: 11pt; }
  .faq details { border: 0; }
  .faq .answer { display: block; padding-left: 0; }
}

/* ---------- Eingebettetes Antragsformular ---------- */

.form-embed {
  margin-top: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow);
  min-height: 180px;
}
/* Der Frame meldet seine Hoehe nicht per postMessage und ist mit height:100%
   gesetzt — der Container muss die Hoehe daher vorgeben. Werte anpassbar. */
.form-embed #cannanas { height: 0; }
.form-embed.is-loaded #cannanas { height: 760px; }
@media (max-width: 700px) { .form-embed.is-loaded #cannanas { height: 680px; } }
.form-embed iframe { width: 100%; border: 0; display: block; }
.form-fallback { margin: 0; color: var(--muted); }

/* ---------- Formular-Sperre bis zur Einwilligung ---------- */

.form-gate { text-align: center; padding: 8px 0; }
.form-gate h3 { margin-bottom: .5em; }
.form-gate p { color: var(--muted); max-width: 56ch; margin-inline: auto; }
.form-gate .btn { margin-top: 6px; }
.form-gate-note { font-size: .92rem; margin-top: 18px; margin-bottom: 0; }

/* ---------- Einwilligungs-Banner ---------- */

.consent {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 32px rgba(0, 0, 22, .13);
}
.consent[hidden] { display: none; }
.consent-inner {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 22px; display: grid; gap: 20px; align-items: center;
}
@media (min-width: 860px) { .consent-inner { grid-template-columns: 1fr auto; } }
.consent h2 { font-size: 1.05rem; margin-bottom: .4em; }
.consent p { margin: 0; font-size: .95rem; color: var(--muted); max-width: 78ch; }
/* Beide Optionen gleich gross und gleich auffaellig — keine Dark Patterns */
.consent-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.consent-actions .btn { min-width: 148px; text-align: center; font-weight: 600; }

.consent-settings {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: rgba(255, 255, 255, .82); text-decoration: none;
}
.consent-settings:hover { color: #fff; text-decoration: underline; }

/* ---------- Telefonnummer als Bild ---------- */

/* Hoehe in em, damit die Nummer mit der Schriftgroesse skaliert. Die Ziffern
   nehmen 47 % der Bildhoehe ein, die Grundlinie sitzt 17 % ueber dem
   Bildunterrand — daher der Versatz. */
.tel-img {
  display: inline-block;
  height: 1.5em;
  width: auto;
  vertical-align: -.26em;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.contact-card .tel-img { height: 1.45em; vertical-align: -.25em; }

@media print {
  .tel-img { height: 1.4em; }
}
