/* =========================================================
   MicroMind Goal First – hellgrüne Premium-Oberfläche
   ========================================================= */

:root {
  --gf-ink: #143a2a;
  --gf-text: #586c61;
  --gf-green: #6fae45;
  --gf-green-deep: #235e3f;
  --gf-green-soft: #eaf5df;
  --gf-line: rgba(48, 91, 65, .12);
  --gf-card: rgba(255, 255, 255, .82);
  --gf-gold: #c7a04e;
}

/* Header stabil halten */
.site-header {
  min-height: 96px !important;
  background: rgba(250, 253, 248, .92) !important;
  border-bottom: 1px solid rgba(38, 83, 58, .09) !important;
  backdrop-filter: blur(18px);
}

.site-header .nav-wrap {
  min-height: 96px !important;
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 28px !important;
}

.site-header .brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: max-content !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.site-header .brand-mark {
  width: 146px !important;
  height: 88px !important;
  flex: 0 0 146px !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.site-header .brand-mark img {
  width: 146px !important;
  height: 88px !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter:
    drop-shadow(0 7px 12px rgba(18, 55, 39, .10))
    drop-shadow(0 0 8px rgba(199, 160, 78, .10)) !important;
}

.site-header .brand-copy {
  display: none !important;
}

.site-header .main-nav {
  justify-content: center !important;
  gap: clamp(18px, 2vw, 34px) !important;
}

.site-header .main-nav a {
  white-space: nowrap;
}

.site-header .nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

/* Hero */
.goal-first-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 38px;
  background:
    radial-gradient(circle at 22% 30%, rgba(167, 220, 125, .14), transparent 30%),
    radial-gradient(circle at 82% 36%, rgba(210, 231, 191, .22), transparent 34%),
    linear-gradient(180deg, #fbfdf9 0%, #f7fbf3 100%);
}

.goal-first-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .46;
  background:
    radial-gradient(circle, rgba(112, 174, 69, .26) 0 2px, transparent 3px)
      12% 24% / 230px 230px,
    radial-gradient(circle, rgba(199, 160, 78, .28) 0 2px, transparent 3px)
      76% 16% / 270px 270px;
}

.goal-first-shell {
  position: relative;
  z-index: 1;
}

.goal-first-intro {
  max-width: 860px;
  margin: 0 auto 28px;
  text-align: center;
}

.goal-first-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 19px;
  padding: 8px 15px;
  border: 1px solid rgba(93, 151, 60, .18);
  border-radius: 999px;
  color: #507e35;
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.goal-first-eyebrow i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #75b74c;
  box-shadow: 0 0 0 6px rgba(117, 183, 76, .10);
  animation: gfPulse 2.8s ease-in-out infinite;
}

.goal-first-intro h1 {
  margin: 0;
  color: var(--gf-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -.035em;
}

.goal-first-intro p {
  max-width: 680px;
  margin: 13px auto 0;
  color: var(--gf-text);
  font-size: 18px;
  line-height: 1.6;
}

/* Hauptsuche */
.goal-search-panel {
  max-width: 1120px;
  margin: 0 auto 30px;
  padding: 15px;
  border: 1px solid rgba(43, 86, 60, .11);
  border-radius: 32px;
  background: rgba(255, 255, 255, .84);
  box-shadow:
    0 24px 55px rgba(40, 65, 48, .11),
    inset 0 1px 0 rgba(255,255,255,.96);
}

.goal-search-panel form {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 8px;
}

.goal-search-icon {
  display: grid;
  place-items: center;
  color: #3c5f4b;
  font-size: 27px;
}

.goal-search-panel input {
  width: 100%;
  min-width: 0;
  height: 70px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: var(--gf-ink);
  background: transparent;
  font-size: 18px;
}

.goal-search-panel input::placeholder {
  color: #89968f;
}

.goal-search-panel button {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 22px;
  color: #29452f;
  background: linear-gradient(145deg, #dceecb, #c7e0aa);
  box-shadow:
    0 11px 23px rgba(93, 151, 60, .18),
    inset 0 1px 0 rgba(255,255,255,.72);
  font-size: 28px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.goal-search-panel button:hover {
  transform: translateY(-2px) scale(1.035);
  box-shadow:
    0 15px 28px rgba(93, 151, 60, .24),
    inset 0 1px 0 rgba(255,255,255,.8);
}

/* Vier Hauptziele */
.goal-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  max-width: 1320px;
  margin: 0 auto 22px;
}

.goal-card {
  position: relative;
  min-height: 148px;
  padding: 24px 22px;
  overflow: hidden;
  border: 1px solid rgba(45, 88, 62, .10);
  border-radius: 25px;
  color: var(--gf-ink);
  background: var(--gf-card);
  box-shadow:
    0 15px 32px rgba(47, 68, 54, .08),
    inset 0 1px 0 rgba(255,255,255,.94);
  text-decoration: none;
  transition:
    transform .22s cubic-bezier(.2,.8,.2,1),
    border-color .22s ease,
    box-shadow .22s ease;
}

.goal-card::before {
  content: "";
  position: absolute;
  top: -35%;
  left: -60%;
  width: 42%;
  height: 180%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent);
  opacity: 0;
}

.goal-card:hover {
  transform: translateY(-6px) scale(1.035);
  border-color: rgba(113, 174, 70, .34);
  box-shadow:
    0 24px 45px rgba(47, 68, 54, .14),
    0 0 0 5px rgba(113, 174, 70, .055),
    inset 0 1px 0 #fff;
}

.goal-card:hover::before {
  opacity: 1;
  animation: gfSweep 1s ease both;
}

.goal-card-icon {
  display: grid;
  place-items: center;
  width: 57px;
  height: 57px;
  margin-bottom: 17px;
  border: 1px solid rgba(105, 165, 66, .15);
  border-radius: 50%;
  color: #78aa4c;
  background: radial-gradient(circle, #f9fdf5 0%, #edf6e5 100%);
  font-size: 28px;
  box-shadow: inset 0 1px 0 #fff;
}

.goal-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.goal-card span {
  display: block;
  color: #66776e;
  font-size: 14px;
  line-height: 1.45;
}

.goal-card b {
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: #77aa4a;
  font-size: 21px;
}

/* AI-Leiste */
.goal-ai-strip {
  display: grid;
  grid-template-columns: 350px repeat(3, 1fr) auto;
  align-items: center;
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto 20px;
  padding: 20px 24px;
  border: 1px solid rgba(44, 87, 61, .10);
  border-radius: 26px;
  background: rgba(255,255,255,.76);
  box-shadow:
    0 15px 34px rgba(47,68,54,.07),
    inset 0 1px 0 rgba(255,255,255,.94);
}

.goal-ai-brand {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 15px;
}

.goal-ai-symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
}

.goal-ai-symbol::before,
.goal-ai-symbol::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(105, 165, 66, .20);
  border-radius: 50%;
  animation: gfSpin 15s linear infinite;
}

.goal-ai-symbol::before {
  inset: 3px;
}

.goal-ai-symbol::after {
  inset: -6px;
  border-style: dashed;
  animation-direction: reverse;
  animation-duration: 21s;
}

.goal-ai-symbol img {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.goal-ai-brand strong {
  display: block;
  color: #669e42;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.goal-ai-brand small,
.goal-ai-feature small {
  color: #6d7c73;
  line-height: 1.4;
}

.goal-ai-feature {
  padding-left: 20px;
  border-left: 1px solid rgba(44, 87, 61, .10);
}

.goal-ai-feature strong {
  display: block;
  margin-bottom: 5px;
  color: var(--gf-ink);
  font-size: 13px;
}

.goal-ai-button {
  padding: 12px 18px;
  border: 1px solid rgba(105,165,66,.16);
  border-radius: 999px;
  color: #557c38;
  background: #f8fcf4;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

/* Vertrauensleiste */
.goal-trust-strip {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  max-width: 1320px;
  margin: 0 auto;
  border-top: 1px solid rgba(44,87,61,.09);
  border-bottom: 1px solid rgba(44,87,61,.09);
}

.goal-trust-item {
  min-height: 88px;
  padding: 18px 20px;
  border-right: 1px solid rgba(44,87,61,.08);
}

.goal-trust-item:last-child {
  border-right: 0;
}

.goal-trust-item strong {
  display: block;
  color: var(--gf-ink);
  font-size: 14px;
}

.goal-trust-item span {
  display: block;
  margin-top: 5px;
  color: #728078;
  font-size: 12px;
  line-height: 1.4;
}

.goal-trust-item em {
  color: #76a94b;
  font-style: normal;
  font-size: 18px;
}

/* Alte Hero-Komponenten sicher neutralisieren */
.goal-first-hero + .hero-marquee {
  display: none !important;
}

@keyframes gfPulse {
  0%, 100% { opacity: .6; transform: scale(.88); }
  50% { opacity: 1; transform: scale(1.16); }
}

@keyframes gfSweep {
  from { left: -60%; }
  to { left: 135%; }
}

@keyframes gfSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1100px) {
  .site-header .nav-wrap {
    grid-template-columns: 190px minmax(0, 1fr) auto !important;
    gap: 18px !important;
  }

  .site-header .brand-mark,
  .site-header .brand-mark img {
    width: 125px !important;
    flex-basis: 125px !important;
  }

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

  .goal-ai-strip {
    grid-template-columns: 1fr 1fr;
  }

  .goal-ai-button {
    justify-self: start;
  }

  .goal-trust-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header .nav-wrap {
    grid-template-columns: 1fr auto !important;
  }

  .site-header .main-nav,
  .site-header .nav-actions {
    grid-column: 1 / -1;
  }

  .goal-first-hero {
    padding-top: 38px;
  }

  .goal-first-intro {
    text-align: left;
  }

  .goal-first-intro h1 {
    font-size: clamp(38px, 11vw, 53px);
  }

  .goal-first-intro p {
    font-size: 16px;
  }

  .goal-search-panel form {
    grid-template-columns: 38px minmax(0, 1fr) 58px;
  }

  .goal-search-panel input {
    height: 58px;
    font-size: 15px;
  }

  .goal-search-panel button {
    width: 54px;
    height: 54px;
    border-radius: 18px;
  }

  .goal-cards,
  .goal-ai-strip,
  .goal-trust-strip {
    grid-template-columns: 1fr;
  }

  .goal-ai-feature,
  .goal-trust-item {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(44,87,61,.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .goal-first-hero *,
  .goal-first-hero *::before,
  .goal-first-hero *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}

/* ===== MICROMIND PREMIUM CATEGORY CARDS UPGRADE START ===== */

/* Gesamte Karten hochwertiger */
.goal-cards {
  gap: 22px !important;
  margin-top: 6px !important;
}

.goal-card {
  position: relative !important;
  min-height: 210px !important;
  padding: 26px 24px 24px !important;
  border-radius: 28px !important;
  border: 1px solid rgba(52, 88, 63, .08) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(252,253,250,.88) 100%) !important;
  box-shadow:
    0 18px 40px rgba(31, 55, 38, .08),
    0 4px 14px rgba(31, 55, 38, .04),
    inset 0 1px 0 rgba(255,255,255,.98) !important;
  overflow: hidden !important;
  transition:
    transform .24s cubic-bezier(.2,.8,.2,1),
    box-shadow .24s ease,
    border-color .24s ease !important;
}

.goal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(198, 224, 174, .18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(212, 227, 191, .12), transparent 24%);
}

.goal-card:hover {
  transform: translateY(-7px) scale(1.018) !important;
  border-color: rgba(108, 159, 73, .22) !important;
  box-shadow:
    0 26px 54px rgba(31, 55, 38, .12),
    0 10px 24px rgba(31, 55, 38, .06),
    0 0 0 5px rgba(170, 205, 134, .10),
    inset 0 1px 0 rgba(255,255,255,.98) !important;
}

/* Kreise deutlich hochwertiger */
.goal-card-icon {
  position: relative !important;
  width: 76px !important;
  height: 76px !important;
  margin-bottom: 20px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  border: 1px solid rgba(116, 162, 79, .16) !important;
  color: #2e5c42 !important;
  font-size: 29px !important;
  font-weight: 700 !important;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.98) 0%, rgba(244,249,238,.98) 34%, rgba(230,239,220,.98) 72%, rgba(214,228,200,.98) 100%) !important;
  box-shadow:
    0 14px 28px rgba(66, 97, 67, .10),
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 -10px 20px rgba(181, 205, 158, .14) !important;
  z-index: 1;
}

.goal-card-icon::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(145, 184, 113, .16);
  opacity: .9;
}

.goal-card-icon::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  right: -2px;
  bottom: 2px;
  border-radius: 50%;
  background: linear-gradient(145deg, #d4b25f, #b78f36);
  box-shadow:
    0 0 0 4px rgba(255,255,255,.94),
    0 6px 12px rgba(183, 143, 54, .18);
}

/* Pro Kategorie leichte Farbvariante */
.goal-card:nth-child(1) .goal-card-icon {
  background:
    radial-gradient(circle at 30% 28%, #ffffff 0%, #f3faec 34%, #e3f0d8 72%, #d8e9c8 100%) !important;
}

.goal-card:nth-child(2) .goal-card-icon {
  background:
    radial-gradient(circle at 30% 28%, #ffffff 0%, #f6fbef 34%, #e6f0dd 72%, #dbe8d1 100%) !important;
}

.goal-card:nth-child(3) .goal-card-icon {
  background:
    radial-gradient(circle at 30% 28%, #ffffff 0%, #f5faef 34%, #e5efdb 72%, #d8e6cb 100%) !important;
}

.goal-card:nth-child(4) .goal-card-icon {
  background:
    radial-gradient(circle at 30% 28%, #ffffff 0%, #f7fbf2 34%, #e8f2df 72%, #dce8cf 100%) !important;
}

/* Typografie schöner */
.goal-card strong {
  position: relative;
  z-index: 1;
  display: block !important;
  margin-bottom: 10px !important;
  color: #183d2d !important;
  font-size: 19px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: -.015em !important;
}

.goal-card span:not(.goal-card-icon) {
  position: relative;
  z-index: 1;
  display: block !important;
  color: #66776e !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  max-width: 95% !important;
}

/* Pfeil unten rechts eleganter */
.goal-card b {
  position: absolute !important;
  right: 20px !important;
  bottom: 18px !important;
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  color: #6fa646 !important;
  background: rgba(231, 243, 217, .72) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 6px 12px rgba(87, 124, 66, .10) !important;
}

/* sanfte obere Zierlinie */
.goal-card .mm-card-topline {
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(165, 194, 131, .45), transparent);
}

/* mobil */
@media (max-width: 1100px) {
  .goal-card {
    min-height: 190px !important;
  }

  .goal-card-icon {
    width: 70px !important;
    height: 70px !important;
    font-size: 26px !important;
  }
}

@media (max-width: 760px) {
  .goal-card {
    min-height: 178px !important;
    padding: 22px 20px 22px !important;
    border-radius: 24px !important;
  }

  .goal-card-icon {
    width: 66px !important;
    height: 66px !important;
    margin-bottom: 16px !important;
    font-size: 24px !important;
  }

  .goal-card strong {
    font-size: 18px !important;
  }

  .goal-card span:not(.goal-card-icon) {
    font-size: 14px !important;
  }
}

/* ===== MICROMIND PREMIUM CATEGORY CARDS UPGRADE END ===== */
