/* ============================================================
   ConSpect systemische Jugendhilfe – zentrales Stylesheet
   Farbwelt: Petrolblau / Maigrün / Sand  ·  Signatur: Pinselstrich
   ============================================================ */

/* ---------- Lokale Fonts (DSGVO-konform, kein Google-CDN) ---------- */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-sans-3-v19-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/source-sans-3-v19-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/source-sans-3-v19-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/caveat-v23-latin-600.woff2') format('woff2');
}

/* ---------- Design-Tokens ---------- */
:root {
  --blau: #16384a;
  --blau-tief: #0e2733;
  --blau-hell: #e8eef1;
  --gruen: #8cbf45;
  --gruen-dunkel: #5f8f27;
  --gruen-hell: #eef5e2;
  --sand: #f6f2ea;
  --sand-tief: #ece5d8;
  --weiss: #ffffff;
  --text: #26343d;
  --text-soft: #4c5c66;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 56, 74, 0.10);
  --maxw: 1140px;
  --font: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --hand: 'Caveat', 'Segoe Script', cursive;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen-dunkel); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--blau); }
:focus-visible { outline: 3px solid var(--gruen); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--font); color: var(--blau); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.32rem; font-weight: 700; }
p  { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
.lead { font-size: 1.22rem; color: var(--text-soft); max-width: 46em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.bg-sand  { background: var(--sand); }
.bg-blau  { background: var(--blau); color: #dfe9ee; }
.bg-blau h2, .bg-blau h3 { color: var(--weiss); }
.bg-gruen-hell { background: var(--gruen-hell); }
.center { text-align: center; }

/* Eyebrow-Label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .92rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gruen-dunkel); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 34px; height: 8px; border-radius: 4px;
  background: var(--gruen);
  transform: skewX(-18deg);
}
.bg-blau .eyebrow { color: var(--gruen); }

/* Pinselstrich-Unterstreichung (Signatur) */
.brush {
  position: relative; display: inline-block;
}
.brush::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -0.12em;
  height: 0.34em; z-index: -1; border-radius: 3px;
  background: linear-gradient(100deg, var(--gruen) 0%, #a5d05f 60%, rgba(165,208,95,0) 100%);
  transform: skewX(-12deg) rotate(-1deg);
  opacity: .85;
}
.bg-blau .brush::after { opacity: .55; }

/* Handschrift-Leitsatz */
.leitsatz {
  font-family: var(--hand);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--gruen-dunkel);
  transform: rotate(-1.2deg);
  display: inline-block;
}
.bg-blau .leitsatz { color: var(--gruen); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-tief);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto;
}
.logo-link { display: flex; align-items: center; }
.logo-link img { height: 58px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  text-decoration: none; color: var(--blau); font-weight: 600; font-size: 1.02rem;
  padding: 6px 2px; border-bottom: 3px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--gruen); color: var(--blau); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--gruen); }
.nav-cta {
  background: var(--gruen); color: var(--blau-tief) !important; padding: 10px 20px !important;
  border-radius: 999px; border-bottom: none !important; box-shadow: 0 4px 14px rgba(140,191,69,.35);
}
.nav-cta:hover { background: #9ccd57; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--blau); border-radius: 10px;
  padding: 8px 12px; cursor: pointer; color: var(--blau); font-weight: 700; font-size: 1rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--gruen-hell) 0%, transparent 60%),
    linear-gradient(180deg, var(--weiss) 0%, var(--sand) 100%);
  padding: 96px 0 110px;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 15em; }
.hero .lead { margin-top: 8px; }
.hero-strokes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.stroke {
  position: absolute; border-radius: 8px; transform: skewX(-16deg) rotate(-4deg);
}
.stroke.gruen { background: linear-gradient(95deg, var(--gruen), rgba(140,191,69,0)); }
.stroke.blau  { background: linear-gradient(95deg, var(--blau), rgba(22,56,74,0)); opacity: .12; }
.stroke.s1 { width: 420px; height: 26px; right: -60px; top: 120px; }
.stroke.s2 { width: 300px; height: 18px; right: 40px; top: 170px; opacity: .5; }
.stroke.s3 { width: 520px; height: 30px; left: -140px; bottom: 60px; }

/* Zielgruppen-Einstieg */
.zielgruppen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.zg-card {
  background: var(--weiss); border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow); text-decoration: none; color: var(--text);
  border-top: 6px solid var(--gruen); transition: transform .18s ease, box-shadow .18s ease;
  display: block;
}
.zg-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(22,56,74,.16); color: var(--text); }
.zg-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.zg-card .mark { width: 14px; height: 28px; border-radius: 3px; background: var(--blau); position: relative; flex: none; }
.zg-card .mark::before { content:""; position:absolute; left:-9px; top:0; width:5px; height:28px; border-radius:3px; background: var(--gruen); }
.zg-card p { margin: 0; color: var(--text-soft); }
.zg-card .mehr { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--gruen-dunkel); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; border: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gruen { background: var(--gruen); color: var(--blau-tief); box-shadow: 0 6px 18px rgba(140,191,69,.4); }
.btn-gruen:hover { background: #9ccd57; color: var(--blau-tief); }
.btn-blau  { background: var(--blau); color: var(--weiss); }
.btn-blau:hover { background: var(--blau-tief); color: var(--weiss); }
.btn-ghost { background: transparent; color: var(--blau); border: 2px solid var(--blau); }
.btn-ghost:hover { background: var(--blau); color: var(--weiss); }
.bg-blau .btn-ghost { color: var(--weiss); border-color: var(--weiss); }
.bg-blau .btn-ghost:hover { background: var(--weiss); color: var(--blau); }

/* ---------- Karten-Raster ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.card {
  background: var(--weiss); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow); position: relative;
}
.bg-sand .card { box-shadow: 0 8px 24px rgba(22,56,74,.08); }
.card .icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--gruen-hell); margin-bottom: 18px;
}
.card .icon svg { width: 30px; height: 30px; stroke: var(--gruen-dunkel); }
.card .para {
  display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .05em;
  color: var(--blau); background: var(--blau-hell); border-radius: 6px; padding: 3px 10px; margin-bottom: 12px;
}

/* Haltungs-Kreise */
.kreise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.kreis {
  aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 26px;
  background: var(--weiss); box-shadow: var(--shadow); border: 4px solid var(--gruen-hell);
}
.kreis strong { color: var(--blau); font-size: 1.18rem; margin-bottom: 6px; }
.kreis span { font-size: .95rem; color: var(--text-soft); line-height: 1.4; }

/* ---------- Ablauf / Zeitleiste ---------- */
.timeline { list-style: none; margin: 40px 0 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 4px;
  border-radius: 2px; background: linear-gradient(var(--gruen), var(--blau));
}
.timeline li { position: relative; padding: 0 0 34px 82px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .num {
  position: absolute; left: 0; top: 0; width: 58px; height: 58px; border-radius: 50%;
  background: var(--weiss); border: 4px solid var(--gruen); color: var(--blau);
  font-weight: 700; font-size: 1.3rem; display: grid; place-items: center; box-shadow: var(--shadow);
}
.timeline h3 { margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--text-soft); }

/* ---------- Checkliste ---------- */
.checkliste { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 34px; }
.checkliste li { position: relative; padding-left: 38px; font-weight: 600; color: var(--blau); }
.checkliste li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--gruen); color: var(--blau-tief);
  font-weight: 700; display: grid; place-items: center; font-size: .95rem;
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.team-card { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.team-foto {
  background: linear-gradient(140deg, var(--blau) 0%, #245a75 100%);
  display: grid; place-items: center; padding: 22px 0;
  border-bottom: 6px solid var(--gruen);
}
.team-foto .initialen {
  font-size: 4rem; font-weight: 700; color: rgba(255,255,255,.9);
  width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(140,191,69,.25); border: 3px solid var(--gruen);
}
.team-foto img {
  width: 116px; height: 116px; object-fit: cover; display: block;
  border-radius: 10px; border: 3px solid #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}
.team-leitung { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
.team-body { padding: 26px; }
.team-body .rolle { color: var(--gruen-dunkel); font-weight: 700; margin-bottom: 12px; }
.team-body ul { margin: 0; padding-left: 1.1em; color: var(--text-soft); font-size: .98rem; }
.team-body li { margin-bottom: 4px; }

/* ---------- Kontakt ---------- */
.kontakt-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.kontakt-info .zeile { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.kontakt-info .zeile svg { width: 26px; height: 26px; stroke: var(--gruen-dunkel); flex: none; margin-top: 3px; }
form.kontakt-form { background: var(--weiss); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.feld { margin-bottom: 18px; }
.feld label { display: block; font-weight: 600; color: var(--blau); margin-bottom: 6px; }
.feld input, .feld textarea, .feld select {
  width: 100%; padding: 12px 14px; border: 2px solid var(--sand-tief); border-radius: 10px;
  font-family: var(--font); font-size: 1rem; background: var(--weiss); color: var(--text);
}
.feld input:focus, .feld textarea:focus, .feld select:focus { border-color: var(--gruen); outline: none; }
.feld-check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--text-soft); }
.feld-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--gruen-dunkel); }
.form-hinweis { font-size: .9rem; color: var(--text-soft); margin-top: 14px; }

/* ---------- CTA-Band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 22em; margin-left: auto; margin-right: auto; }
.cta-band .btn { margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blau-tief); color: #b9c9d1; padding: 60px 0 30px; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: var(--weiss); font-size: 1.05rem; margin-bottom: 14px; }
.site-footer a { color: #cfe0a8; text-decoration: none; }
.site-footer a:hover { color: var(--gruen); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-logo { height: 46px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .92; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .92rem;
}

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .zg-card { transition: none; }
}

/* ---------- Fließtext-Seiten ---------- */
.prosa { max-width: 46em; }
.prosa h2 { margin-top: 1.6em; }
.prosa h3 { margin-top: 1.3em; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4, .team-grid, .zielgruppen, .kreise { grid-template-columns: repeat(2, 1fr); }
  .kontakt-grid, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4, .team-grid, .zielgruppen, .checkliste, .kreise { grid-template-columns: 1fr; }
  .kreis { aspect-ratio: auto; border-radius: var(--radius); padding: 22px; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--weiss); border-bottom: 1px solid var(--sand-tief); padding: 10px 24px 20px;
    box-shadow: 0 20px 30px rgba(22,56,74,.12);
  }
  .main-nav.offen { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--sand); }
  .nav-cta { margin-top: 12px; text-align: center; }
  .nav-toggle { display: block; }
  .logo-link img { height: 46px; }
}
