/* ============================================================
   Tina Sommerfeld — Startseite
   (setzt css/base.css voraus)
   ============================================================ */

.lead { max-width: 60ch; }

/* ---------- Header (transparent, wird beim Scrollen creme) ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.header.solid { background: var(--cream); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: var(--space-4) 0; }
.logo { height: 76px; width: auto; display: block; }
.links { display: flex; flex-wrap: wrap; gap: var(--space-4); font-size: var(--fs-body-sm); font-weight: var(--fw-medium); }
.links a { color: var(--earth); text-shadow: 0 1px 4px rgba(251, 246, 239, 0.75); }
.links a:hover { color: var(--primary); }
.header.solid .links a { text-shadow: none; }

/* ---------- Hero ---------- */
.hero-full {
  position: relative;
  min-height: max(100vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 150px;
  padding-bottom: var(--space-7);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; display: block; }
.hero-topveil {
  position: absolute; top: 0; left: 0; right: 0; height: 150px;
  background: linear-gradient(to bottom, rgba(251, 246, 239, 0.7), rgba(251, 246, 239, 0));
  z-index: 1; pointer-events: none;
}
.hero-wrap { position: relative; z-index: 2; width: 100%; }
.hero-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  max-width: 440px;
}
.hero-card .h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }

/* ---------- Intro ---------- */
.intro-text { display: flex; flex-direction: column; align-items: center; gap: var(--space-5); text-align: center; }
.intro-text p { margin: 0; }
.intro-lead { font-size: var(--fs-h3); color: var(--primary); margin: 0; }

/* ---------- Split-Sektionen (Text + Foto) ---------- */
.split { display: grid; grid-template-columns: 1fr; align-items: stretch; }
.split-photo { position: relative; min-width: 0; min-height: 420px; overflow: hidden; background: var(--cream-deep); }
.split-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.split-text { min-width: 0; padding: var(--space-8) var(--space-5); display: flex; flex-direction: column; gap: var(--space-5); }
.split-text p { margin: 0; }

/* ---------- Methode (Phasen) ---------- */
.phases { display: grid; grid-template-columns: 1fr; gap: var(--space-5); margin-top: var(--space-8); }
.phase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.phase .num { font-family: var(--font-serif); font-size: var(--fs-h1); color: var(--accent); font-weight: var(--fw-semibold); line-height: 1; }
.phase h3 { margin: var(--space-4) 0 var(--space-3); }
.phase p { margin: 0; color: var(--text-muted); }
.phases.terra .phase { background: var(--primary); border-color: var(--primary-deep); }
.phases.terra .h3 { color: var(--text-on-dark); }
.phases.terra .phase p { color: var(--text-on-dark); }
.phases.terra .num { color: var(--accent-tint); }

/* ---------- Angebots-Karten ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: var(--space-5); margin-top: var(--space-7); align-items: stretch; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-align: center;
  align-items: center;
  scroll-margin-top: 110px;
}
.card p { color: var(--text-muted); margin: 0; flex: 1; }
.card .btn { align-self: center; margin-top: var(--space-3); }
.card-feature { background: var(--primary-tint); border: 1px solid var(--accent); box-shadow: var(--shadow-md); }
.tag {
  align-self: center;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--primary-deep);
  background: var(--accent-tint);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.9rem;
}

/* ---------- Mobil: Header im Fluss, Hero als Bild-Band + Karte ---------- */
@media (max-width: 767px) {
  .header { position: sticky; background: var(--cream); border-bottom: 1px solid var(--border); }
  .links a { text-shadow: none; }
  .logo { height: 60px; }
  .hero-full { display: block; min-height: 0; padding: 0 0 var(--space-7); background: var(--cream); }
  .hero-media { position: relative; inset: auto; height: 420px; }
  .hero-topveil { display: none; }
  .hero-card { max-width: none; margin-top: calc(-1 * var(--space-6)); }
}

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  .hero-card { max-width: 460px; padding: var(--space-7); margin-left: calc(-1 * var(--space-4)); }
  .intro-lead { font-size: var(--fs-h2); }
  .split { grid-template-columns: 1fr 1fr; }
  .split-text { padding: var(--space-9) var(--space-8); max-width: 640px; }
  .phases { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .logo { height: 84px; }
  .links { gap: var(--space-6); }
}
