/* ============================================
   PROJEKT: Saskia on Tour e.V.
   Mobile-First – Basis = Smartphone
   CI: angelehnt an Willems on Tour (Grün/Gelb)
   ============================================ */

:root {
  --color-primary: #7AB929;
  --color-primary-dark: #5E8E1C;
  --color-secondary: #F7F5EE;
  --color-accent: #FDB913;
  --color-text: #1D1D1B;
  --color-muted: #5A5A58;
  --color-bg: #ffffff;
  --color-border: #E5E3DC;

  --font-heading: 'Poppins', 'Trebuchet MS', Arial, sans-serif;
  --font-body: 'Trebuchet MS', Arial, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  --radius: 8px;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --container-max: 1140px;
}

/* --- Reset & Basis --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.075rem);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-primary); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
}
h1 { font-size: clamp(1.875rem, 4vw + 1rem, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem); margin-top: var(--space-md); }
h3 { font-size: clamp(1.2rem, 1.2vw + 0.8rem, 1.5rem); }

p { margin: 0 0 var(--space-sm); }

strong { color: var(--color-primary-dark); }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  min-height: 44px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  transition: background .2s, border-color .2s, transform .1s;
  cursor: pointer;
}
.btn:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-text); }
.btn--accent:hover { background: #e5a50c; border-color: #e5a50c; color: var(--color-text); }
.btn--ghost { background: transparent; color: var(--color-primary-dark); }
.btn--ghost:hover { background: var(--color-primary); color: #fff; }

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  max-width: var(--container-max);
  margin: 0 auto;
}
.site-logo img { height: 56px; width: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--color-text); }

.nav-main {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(82vw, 320px);
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: translateX(100%);
  transition: transform .3s ease;
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
}
.nav-main.is-open { transform: translateX(0); }
.nav-main ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.nav-main a {
  display: block;
  padding: 0.85rem 0.75rem;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 500;
  border-radius: var(--radius);
}
.nav-main a:hover,
.nav-main a.is-active { background: var(--color-secondary); color: var(--color-primary-dark); }

.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  z-index: 15;
}
.nav-backdrop.is-visible { opacity: 1; pointer-events: auto; }

/* --- Hero --- */
.hero {
  position: relative;
  padding: 3rem 0 2.5rem;
  background:
    linear-gradient(180deg, #fff 0%, var(--color-secondary) 100%);
}
.hero__grid { display: grid; gap: 2rem; }
.hero__text p.lead {
  font-size: clamp(1.05rem, 0.5vw + 1rem, 1.25rem);
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}
.hero__eyebrow {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero__image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* --- Sections --- */
section { padding: var(--space-lg) 0; }
section.is-tinted { background: var(--color-secondary); }
.section-head { max-width: 720px; margin: 0 0 2rem; }
.section-head p { color: var(--color-muted); }

.eyebrow {
  display: inline-block;
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* --- Cards / Grids --- */
.grid { display: grid; gap: 1.5rem; }
.grid--cards { grid-template-columns: 1fr; }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-sm); }
.card__icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(122, 185, 41, 0.12);
  border-radius: 50%;
  margin-bottom: 1rem;
}
.card__icon svg { width: 26px; height: 26px; stroke: var(--color-primary-dark); }
.card h3 { margin-top: 0; }
.card--feature { border-top: 4px solid var(--color-primary); }

/* --- Projekt-Karten --- */
.project-card {
  display: grid;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.project-card__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.project-card__body { padding: 1.25rem 1.5rem 1.75rem; }
.project-card .badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

/* --- Vorstand-Liste --- */
.board {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
.board__item {
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}
.board__item strong { display: block; font-size: 1.1rem; color: var(--color-text); }
.board__item span { color: var(--color-muted); font-size: 0.95rem; }

/* --- Zahlen/Stat-Block --- */
.stats { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 2rem 0; }
.stat { text-align: center; padding: 1.5rem 1rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat__num {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1;
  margin-bottom: 0.3rem;
  display: block;
}
.stat__label { color: var(--color-muted); font-size: 0.95rem; }

/* --- CTA-Band --- */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-lg) 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.92); }
.cta-band .btn { background: #fff; color: var(--color-primary-dark); border-color: #fff; }
.cta-band .btn:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-text); }

/* --- Formular --- */
.form-feedback {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.form-feedback--success { background: rgba(122, 185, 41, 0.15); color: var(--color-primary-dark); border-left: 4px solid var(--color-primary); }
.form-feedback--error { background: #fdecea; color: #7a1b15; border-left: 4px solid #c0392b; }

.form label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: 0.3rem;
  margin-top: 1rem;
}
.form input[type="text"],
.form input[type="email"],
.form input[type="number"],
.form textarea,
.form select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  min-height: 44px;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(122,185,41,0.15);
}
.form textarea { min-height: 160px; resize: vertical; }
.form__hint { font-size: 0.85rem; color: var(--color-muted); margin-top: 0.3rem; }
.form__check { display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 1.25rem; font-size: 0.95rem; }
.form__check input { margin-top: 0.25rem; }
.form__actions { margin-top: 1.75rem; }

/* --- Info-Block (Bank/Kontakt) --- */
.info-block {
  background: var(--color-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.info-block h3 { margin-top: 0; color: var(--color-primary-dark); }
.info-block dl { margin: 0; display: grid; gap: 0.35rem; }
.info-block dt { font-weight: 600; }
.info-block dd { margin: 0 0 0.5rem; font-family: 'Courier New', monospace; }

/* --- Footer --- */
.site-footer {
  background: #1D1D1B;
  color: #cfcbc0;
  padding: var(--space-lg) 0 1.5rem;
  margin-top: var(--space-xl);
  font-size: 0.95rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--color-accent); }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.site-footer__meta {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #8a877f;
}

/* --- Cookie-Hinweis (Stufe 1) --- */
.cookie-hinweis {
  position: fixed;
  bottom: 1rem; left: 1rem; right: 1rem;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  z-index: 30;
  font-size: 0.9rem;
}
.cookie-hinweis p { margin: 0 0 0.75rem; }
.cookie-hinweis .btn { padding: 0.5rem 1rem; min-height: 38px; font-size: 0.9rem; }

/* --- Utility --- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ============================================
   TABLET (ab 768px)
   ============================================ */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-main {
    position: static;
    width: auto;
    transform: none;
    box-shadow: none;
    padding: 0;
    background: transparent;
    overflow: visible;
  }
  .nav-main ul { flex-direction: row; gap: 0.25rem; }
  .nav-main a { padding: 0.5rem 0.9rem; font-size: 0.95rem; }
  .nav-backdrop { display: none; }

  .hero { padding: 4.5rem 0 4rem; }
  .hero__grid { grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }

  section { padding: var(--space-xl) 0; }
  .grid--cards { grid-template-columns: repeat(2, 1fr); }
  .board { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }

  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
  .site-footer__meta { font-size: 0.9rem; }

  .site-logo img { height: 64px; }
}

/* ============================================
   DESKTOP (ab 992px)
   ============================================ */
@media (min-width: 992px) {
  .grid--cards { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 5.5rem 0 5rem; }
  .hero__grid { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-main { transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- Print --- */
@media print {
  .site-header, .site-footer, .cookie-hinweis, .nav-toggle { display: none; }
  body { color: #000; background: #fff; }
  a::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
