/* ============================================================
   Mindful Scout – mindful-scout.de
   Produktwelt von Mindful Work (Chriska Wagner)
   Basis: Schwester-CSS (CKW / Mindful Work), angepasst auf
   Logo-Grün (Dunkelgrün #009541 / Hellgrün #93C01F),
   textgetragen, ein großes Header-Bild.
   ============================================================ */

:root {
  --bg: #fbfcf9;
  --surface: #ffffff;
  --surface-2: #f2f6ee;
  --surface-3: #e7efe1;
  --text: #1c211b;
  --muted: #5f6b5c;
  --line: #dde6d6;

  /* Akzent: Grün aus dem Logo */
  --accent: #009541;        /* Dunkelgrün */
  --accent-dark: #007D37;   /* dunkler für Hover/Text */
  --accent-light: #93C01F;  /* Hellgrün, feine Akzente */
  --accent-soft: #e3f2d6;

  --accent-rgb: 0, 149, 65;
  --accent-light-rgb: 147, 192, 31;

  --radius: 22px;
  --radius-sm: 14px;
  --max: 1220px;
}

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

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(var(--accent-light-rgb), 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f5f8f1 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

/* ---------- Topbar / Navigation ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(251, 252, 249, 0.85);
  border-bottom: 1px solid rgba(28, 33, 27, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  color: var(--text);
}

.brand-logo {
  display: block;
  height: 76px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

nav a {
  position: relative;
  padding-bottom: 2px;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

nav a:hover::after { transform: scaleX(1); }

/* Sandwich-Button (nur mobil sichtbar) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(28, 33, 27, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: 200ms ease;
}

/* ---------- Hero (großes Header-Bild) ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--surface-3);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Platzhalter, solange kein Header-Bild gesetzt ist */
.hero-media.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(var(--accent-rgb),0.05) 0, rgba(var(--accent-rgb),0.05) 14px, transparent 14px, transparent 28px),
    linear-gradient(135deg, #dcebd2 0%, #cfe6c2 100%);
  color: var(--accent-dark);
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
}

/* Lesbarkeits-Verlauf über dem Bild */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(12, 28, 14, 0.72) 0%, rgba(12, 28, 14, 0.46) 42%, rgba(12, 28, 14, 0.08) 78%, rgba(12, 28, 14, 0) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 64px 0 56px;
}

.hero-copy { max-width: 40ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffffff;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: '';
  width: 36px;
  height: 2px;
  background: var(--accent-light);
}

h1 {
  margin: 0 0 18px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 14ch;
  color: #ffffff;
}

.hero-subline {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.3;
  max-width: 34ch;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: 180ms ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(var(--accent-rgb), 0.32);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  border-color: rgba(31, 28, 26, 0.16);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
}

.btn-secondary:hover { background: #fff; }

/* ---------- Sektionen ---------- */
.section { padding: 56px 0; }

.section-alt {
  background: var(--surface-2);
  border-top: 1px solid rgba(28, 33, 27, 0.05);
  border-bottom: 1px solid rgba(28, 33, 27, 0.05);
}

/* Sektion mit dezentem Irrgarten-Verlauf (markeneigenes Motiv) */
.section-maze {
  position: relative;
  background: var(--surface-2);
  border-top: 1px solid rgba(28, 33, 27, 0.05);
  border-bottom: 1px solid rgba(28, 33, 27, 0.05);
  overflow: hidden;
}

.section-maze::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  z-index: 0;
  background-image: url('img/maze-green.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0.12;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 55%, #000 100%);
  pointer-events: none;
}

.section-maze > .container { position: relative; z-index: 1; }

.section-kicker {
  display: block;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

h2 {
  margin: 0 0 18px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.lead {
  font-size: 18px;
  color: #2c322a;
  max-width: 58ch;
  margin: 0 0 24px;
}

.muted { color: var(--muted); max-width: 64ch; }

/* Guide-Fließtext trägt die Sektion allein */
.guide-text {
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.5;
  color: #2c322a;
  max-width: 46ch;
  margin: 0;
}
.guide-text strong {
  font-weight: 700;
  color: var(--accent-dark);
}

/* Prinzipien-Zeile (Adjektive) */
.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 28px;
}

.principle-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.principle-chip::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--accent);
}

/* Vorgehen (Sichten. Abwägen. Entscheiden.) */
.procedure {
  margin-top: 8px;
  padding: 24px 28px;
  background: var(--accent-soft);
  border: 1px solid rgba(var(--accent-light-rgb), 0.4);
  border-radius: var(--radius-sm);
  max-width: 640px;
}

.procedure .proc-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin: 0 0 8px;
}

.procedure .proc-steps {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

/* Cards-Grid (Felder / Routen / Kartenwerk) */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.cards.cards-4 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid rgba(28, 33, 27, 0.09);
  border-radius: var(--radius-sm);
  padding: 24px;
  transition: 180ms ease;
}

a.card, a.card:visited { color: var(--text); text-decoration: none; display: block; }

.card.card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 14px 30px rgba(var(--accent-rgb), 0.1);
}
a.card-link { cursor: pointer; }

.card .card-index {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.08em;
}

.card strong {
  display: block;
  margin: 6px 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.card p { margin: 0; color: var(--muted); font-size: 15px; }

.card .card-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
}

/* Farbcodierte Labyrinth-Kachel im Kartenwerk (FLOW/GLOW/GROW-System) */
.card .card-tile {
  height: 64px;
  width: 64px;
  border-radius: 14px;
  margin-bottom: 16px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 16px rgba(28, 33, 27, 0.12);
}

.card .card-tile.tile-flow { background-image: url('img/tile-flow.png'); }
.card .card-tile.tile-glow { background-image: url('img/tile-glow.png'); }
.card .card-tile.tile-grow { background-image: url('img/tile-grow.png'); }

/* farbiger Akzentstreifen je Systemfarbe (auch auf Programm-/Landingpages nutzbar) */
.card.code-flow { border-top: 3px solid #00B5EC; }
.card.code-glow { border-top: 3px solid #F19100; }
.card.code-grow { border-top: 3px solid #93C01F; }

.section-cta { margin-top: 28px; }

/* Kategorie-Kopf auf der Programmseite: breiter Einleitungsblock */
.cat-head {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  background: var(--surface);
  border: 1px solid rgba(28, 33, 27, 0.09);
  border-radius: var(--radius-sm);
  padding: 28px;
}
.cat-head.code-flow { border-top: 3px solid #00B5EC; }
.cat-head.code-glow { border-top: 3px solid #F19100; }
.cat-head.code-grow { border-top: 3px solid #93C01F; }
.cat-head .card-tile { flex: 0 0 auto; margin-bottom: 0; }
.cat-head .cat-text { flex: 1 1 auto; }
.cat-head h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--text);
}
.cat-head p { margin: 0; color: var(--muted); font-size: 15px; max-width: 62ch; }

@media (max-width: 760px) {
  .cat-head { flex-direction: column; gap: 14px; padding: 22px; }
}

.linklist { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 16px; }
.linklist a {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid rgba(var(--accent-light-rgb), 0.5);
  padding-bottom: 2px;
}
.linklist a:hover { color: var(--accent); }

/* ---------- Wegweiser (CTA-Shell) ---------- */
.cta { padding: 60px 0; }

.cta-shell {
  position: relative;
  background:
    linear-gradient(120deg, rgba(234,246,223,0.90) 0%, rgba(224,240,207,0.72) 46%, rgba(210,234,188,0.42) 100%),
    url('img/maze-wegweiser.jpg');
  background-size: cover, cover;
  background-position: center, center right;
  color: var(--text);
  border-radius: 32px;
  padding: 44px;
  box-shadow: 0 24px 60px rgba(var(--accent-rgb), 0.16);
  overflow: hidden;
}

.cta-shell > * { position: relative; z-index: 1; }
.cta-shell h2 { max-width: 20ch; margin-bottom: 14px; }
.cta-shell p { max-width: 60ch; margin: 0 0 24px; font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 38px;
  background: var(--surface-2);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer p { margin: 0; font-size: 14px; color: var(--muted); }
.site-footer .footer-claim { font-weight: 700; color: var(--text); }

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Rechtsseiten ---------- */
.legal { padding: 60px 0 40px; }
.legal .container { max-width: 780px; }
.legal h1 {
  color: var(--text);
  font-size: clamp(36px, 5vw, 56px);
  max-width: none;
  margin-bottom: 28px;
}
.legal h2 { font-size: 24px; margin-top: 34px; }
.legal p, .legal li { color: #2c322a; font-size: 16px; max-width: 70ch; }
.legal a { color: var(--accent-dark); border-bottom: 1px solid rgba(var(--accent-light-rgb),0.5); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-dark);
}
.back-link:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .topbar-inner { min-height: 76px; }
  .brand-logo { height: 62px; }

  .nav-toggle { display: flex; }
  nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: #fbfcf9;
    border-bottom: 1px solid rgba(28, 33, 27, 0.1);
    transform: translateY(-120%);
    transition: transform 240ms ease;
    box-shadow: 0 20px 40px rgba(28, 33, 27, 0.08);
  }
  nav.open { transform: translateY(0); }
  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  nav li { border-bottom: 1px solid rgba(28, 33, 27, 0.06); }
  nav a { display: block; padding: 16px 0; font-size: 15px; }
  nav a::after { display: none; }

  .hero { min-height: 460px; }
  .hero-inner { padding: 40px 0 36px; }
  .hero::before {
    background: linear-gradient(180deg, rgba(12,28,14,0.35) 0%, rgba(12,28,14,0.55) 60%, rgba(12,28,14,0.72) 100%);
  }
  .section { padding: 40px 0; }
  .cards, .cards.cards-4 { grid-template-columns: 1fr; }
  .cta-shell { padding: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
