/* ════════════════════════════
   HERO.CSS — Visitenkarten-Look
   Ergänzt style.css um das Artischocken-Pattern und die
   freistehende weiße Logo-Karte (1:1 wie die echte Visitenkarte).
════════════════════════════ */

/* ── Banner-Hintergrund ──
   Ruhigeres Bild auf großen Screens: die Fläche liegt im Uni-Grün des
   Artischocken-Musters, das Muster selbst sitzt nur als deutlich größer
   gezoomtes "Quarree" hinter der Logo-Karte und läuft zu den Rändern weich
   ins Uni-Grün aus. */
.brand-banner {
  background-color: var(--pattern-green);
  background-image: none;
  border-bottom: none;
  overflow: hidden;
}
.brand-banner::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 50%;
  width: min(1000px, calc(100% - 3rem));
  transform: translateX(-50%);
  background-image: url("../images/artichoke-watercolor.webp");
  background-size: 620px auto;
  background-position: center;
  background-repeat: repeat;
  -webkit-mask-image:
    linear-gradient(90deg,  transparent 0, #000 15%, #000 85%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 20%, #000 80%, transparent 100%);
  mask-image:
    linear-gradient(90deg,  transparent 0, #000 15%, #000 85%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 20%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  pointer-events: none;
}

/* ── Logo-Fläche wird zur freistehenden weißen Karte ── */
.brand-banner-content {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 1.75rem;
  padding: 2.25rem 3.5rem 2rem;
  box-shadow: 0 20px 50px rgba(20,50,15,.22), 0 2px 10px rgba(20,50,15,.08);
}

@media (max-width: 900px) {
  .brand-banner::before { background-size: 420px auto; }
}
@media (max-width: 600px) {
  .brand-banner::before {
    top: .75rem; bottom: .75rem;
    width: calc(100% - 1.5rem);
    background-size: 300px auto;
  }
  .brand-banner-content { padding: 1.5rem 1.75rem; border-radius: 1.25rem; }
}

/* ════════════════════════════
   HOMEPAGE HERO — Visitenkarten-Look, verschmolzen mit dem Banner
════════════════════════════ */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--g3) 20%, var(--g2) 50%, var(--g3) 80%, transparent);
  z-index: 3;
}
.hero-pattern-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 640px at 6% -8%, rgba(255,255,255,.65) 0%, transparent 62%),
    radial-gradient(ellipse 1000px 800px at 104% 108%, var(--g4) 0%, transparent 58%),
    linear-gradient(155deg, var(--pale) 0%, #dfeed3 50%, var(--pale) 100%);
}

/* Persönliche Ansprache direkt über den beiden Buttons */
.hero-lead-personal {
  margin-bottom: 1.5rem !important;
}
.hero-lead-artichoke {
  width: clamp(52px, 5vw, 72px);
  height: auto;
  margin: 0 0 1.25rem;
  transform: rotate(-6deg);
  filter: drop-shadow(0 8px 18px rgba(20,40,15,.16));
}

/* ── Die beiden aufklappbaren Hero-Buttons ── */
.hero-features {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-bottom: 2rem;
  max-width: 460px;
}
.hero-feature {
  background: var(--white);
  border: 1.5px solid var(--violet-2);
  border-radius: .9rem;
  box-shadow: 0 4px 16px rgba(113,66,116,.09);
  opacity: 0;
  transform: translateY(18px);
  transition: transform .5s cubic-bezier(.16,1,.3,1) var(--reveal-delay, 0ms),
              opacity .5s ease var(--reveal-delay, 0ms),
              box-shadow .2s, border-color .2s;
}
.hero-feature.is-visible { opacity: 1; transform: none; }
.hero-feature.is-visible:hover {
  border-color: var(--violet);
  box-shadow: 0 10px 26px rgba(113,66,116,.18);
}
.hero-feature > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.25rem;
  cursor: pointer;
  list-style: none;
  border-radius: .8rem;
}
.hero-feature > summary::-webkit-details-marker { display: none; }
.hero-feature > summary:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}
.hf-head { display: flex; flex-direction: column; gap: .15rem; }
.hero-feature strong { color: var(--text); font-size: .88rem; font-weight: 500; }
.hf-sub { color: var(--text-3); font-size: .78rem; font-weight: 300; }
.hf-more {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .74rem;
  font-weight: 500;
  color: var(--violet);
}
.hf-more::after {
  content: '';
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .25s ease;
}
.hero-feature[open] .hf-more::after { transform: translateY(1px) rotate(-135deg); }
.hf-more-close { display: none; }
.hero-feature[open] .hf-more-open { display: none; }
.hero-feature[open] .hf-more-close { display: inline; }
.hero-feature > p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  font-size: .84rem;
  line-height: 1.75;
  font-weight: 300;
  color: var(--text-2);
  border-top: 1px solid var(--violet-pale);
  padding-top: .95rem;
  margin-top: -.15rem;
}

/* ── Schlagwort-Banner in Artischocken-Violett (volle Seitenbreite) ── */
.keyword-band {
  background: linear-gradient(100deg, var(--violet) 0%, var(--violet-2) 55%, var(--violet) 100%);
  overflow: hidden;
  padding: 1.1rem 0;
}
.keyword-band-track {
  display: flex;
  justify-content: center;
  width: 100%;
}
.keyword-band-list {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 3.25rem);
  padding: 0 clamp(1.5rem, 3vw, 2.5rem);
  flex-shrink: 0;
}
.keyword-band-list li {
  font-size: clamp(.78rem, 1.2vw, .92rem);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.94);
  white-space: nowrap;
  position: relative;
}
.keyword-band-list li + li::before {
  content: '';
  position: absolute;
  left: calc(clamp(1.5rem, 3.5vw, 3.25rem) / -2);
  top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  transform: translate(-50%, -50%);
}
/* Auf breiten Screens reicht eine ruhige, zentrierte Zeile */
.keyword-band-track > .keyword-band-list + .keyword-band-list { display: none; }

/* Auf schmalen Screens läuft das Band, statt umzubrechen */
@media (max-width: 900px) {
  .keyword-band-track {
    justify-content: flex-start;
    width: max-content;
    animation: keywordMarquee 26s linear infinite;
  }
  .keyword-band-track > .keyword-band-list + .keyword-band-list { display: flex; }
}
@keyframes keywordMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .keyword-band-track { animation: none; }
}

@media (max-width: 600px) {
  .hero-features { max-width: none; }
}

/* ── Closing CTA (Startseite) ── */
.closing-cta {
  background: linear-gradient(135deg, var(--g3), var(--pattern-green) 55%, #7fbd6f);
  padding: 4.5rem 2.5rem;
  text-align: center;
}
.closing-cta-inner { max-width: 620px; margin: 0 auto; }
.closing-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: #1c3a16;
  margin-bottom: .85rem;
}
.closing-cta p {
  font-size: .95rem;
  line-height: 1.7;
  color: #23411c;
  font-weight: 400;
  margin-bottom: 2rem;
}
.closing-cta .btn-hero-primary { display: inline-block; }

/* ── Schwerpunkte: Gruppen-Überschriften & Vorträge-Sektion ── */
.sp-group-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.sp-group-title--spaced { margin-top: 3.5rem; }
.sp-grid--two { grid-template-columns: repeat(2, 1fr); }

/* Violett aus dem Artischockenmuster — hebt den Vortrags-Block sichtbar
   von der Ernährungsberatung ab und ist heller als das Dunkelgrün. */
.vortraege-section {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  border-radius: 1.5rem;
  padding: 3rem 3.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}
.vortraege-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.vortraege-body .label { color: #e6cff0; }
.vortraege-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1rem;
}
.vortraege-body p {
  font-size: .9rem;
  line-height: 1.8;
  color: rgba(255,255,255,.82);
  font-weight: 300;
  margin-bottom: 1rem;
}
.vortraege-body .btn-outline-green {
  color: var(--white);
  border-color: rgba(255,255,255,.5);
  margin-top: .5rem;
}
.vortraege-body .btn-outline-green:hover { background: rgba(255,255,255,.12); }

@media (max-width: 900px) {
  .sp-grid--two { grid-template-columns: 1fr; }
  .vortraege-section { grid-template-columns: 1fr; text-align: center; }
  .vortraege-icon { margin: 0 auto; }
}
