/* ============================================================
   Immobilien-Service Luckei – Effekt-Schicht
   Ergänzt style.css. Verwendet AUSSCHLIESSLICH die dort
   definierten Farbvariablen – keine neuen Farben.
   ============================================================ */

/* ---------- Scroll-Reveal (per js/effects.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* ---------- Hero-Einblendung beim Laden ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.anim-stagger > * { animation: fadeUp .75s ease both; }
.anim-stagger > *:nth-child(1) { animation-delay: .05s; }
.anim-stagger > *:nth-child(2) { animation-delay: .18s; }
.anim-stagger > *:nth-child(3) { animation-delay: .31s; }
.anim-stagger > *:nth-child(4) { animation-delay: .44s; }
.anim-stagger > *:nth-child(5) { animation-delay: .57s; }
.anim-stagger > *:nth-child(6) { animation-delay: .70s; }

/* ---------- Hero mit Titelbild (Startseite) ----------
   Teal-Verlauf von links (Textschutz) über dem Titelbild;
   rechts scheint das Gebäude durch. Farben = --teal-dark. */
.hero.hero-img {
  background:
    linear-gradient(100deg,
      #005845 0%,
      rgba(0,88,69,.93) 34%,
      rgba(0,88,69,.72) 56%,
      rgba(0,88,69,.30) 78%,
      rgba(0,88,69,.12) 100%),
    url('../images/titelbild.jpg') right center / cover no-repeat;
}
@media (max-width: 900px) {
  /* Kleinere Schirme: stärkerer Verlauf, Text bleibt gut lesbar */
  .hero.hero-img {
    background:
      linear-gradient(115deg,
        #005845 0%,
        rgba(0,88,69,.94) 55%,
        rgba(0,88,69,.72) 100%),
      url('../images/titelbild.jpg') right center / cover no-repeat;
  }
}

/* ---------- Schwebende Deko-Kreise (Hero) ---------- */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}
.hero::before, .tv-hero::before { animation: floatSlow 9s ease-in-out infinite; }
.hero::after  { animation: floatSlow 12s ease-in-out infinite reverse; }

/* ---------- Gold-Marker für Schlüsselwörter ---------- */
.hl-gold {
  background: linear-gradient(transparent 60%, rgba(200,150,30,.30) 60%);
  padding: 0 3px;
  border-radius: 2px;
}
.hero .hl-gold, .page-hero .hl-gold {
  background: linear-gradient(transparent 60%, rgba(200,150,30,.45) 60%);
}

/* ---------- Navbar: Schatten verstärkt sich beim Scrollen ---------- */
.navbar { transition: box-shadow .3s ease; }
.navbar.scrolled { box-shadow: 0 4px 28px rgba(0,88,69,.18); }

/* ---------- Karten-Feinschliff ---------- */
.service-icon, .why-icon, .qualifier-icon, .contact-icon {
  transition: transform .3s ease;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-4deg); }
.why-item:hover .why-icon         { transform: scale(1.08); }
.qualifier-item:hover .qualifier-icon { transform: scale(1.08); }

/* ---------- Nutzen-Blöcke (Startseite) ---------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 44px;
}
.benefit-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 14px;
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.benefit-card::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: var(--teal-light);
  opacity: .55;
  transition: transform .5s ease;
}
.benefit-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); border-color: var(--teal-mid); }
.benefit-card:hover::after { transform: scale(1.35); }
.benefit-card > * { position: relative; z-index: 1; }
.benefit-kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 12px;
}
.benefit-card .benefit-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  color: var(--white);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  transition: transform .3s ease;
}
.benefit-card:hover .benefit-icon { transform: scale(1.08) rotate(-4deg); }
.benefit-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.benefit-card p  { font-size: .9rem; color: var(--text-light); line-height: 1.75; }
.benefit-card .benefit-proof {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--gray);
  font-size: .82rem;
  color: var(--teal-dark);
  font-weight: 600;
}

/* ---------- Zahlen-Band (Startseite) ---------- */
.stat-band {
  background: var(--white);
  border-top: 1px solid var(--gray);
  border-bottom: 1px solid var(--gray);
  padding: 34px 0;
}
.stat-band-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-item .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal-dark);
  line-height: 1.1;
}
.stat-item .stat-num em { color: var(--gold); font-style: normal; }
.stat-item .stat-lbl {
  font-size: .8rem;
  color: var(--text-light);
  margin-top: 4px;
  font-weight: 600;
}

/* ---------- Schritt-Folge („So funktioniert's / So geht es weiter") ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 36px;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 12px;
  padding: 28px 24px 24px;
  position: relative;
  transition: all var(--transition);
}
.step:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.step-num {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,88,69,.25);
}
.step h3 { font-size: .98rem; margin-bottom: 8px; }
.step p  { font-size: .86rem; color: var(--text-light); line-height: 1.7; margin: 0; }
.step .step-hint {
  display: inline-block;
  margin-top: 12px;
  font-size: .76rem;
  font-weight: 700;
  color: var(--gold);
}
@media (min-width: 720px) {
  .steps-connected .step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -19px; top: 32px;
    color: var(--sage);
    font-size: 1.3rem;
    font-weight: 700;
    z-index: 2;
  }
}

/* ---------- Szenario-Vergleich (Teilverwaltung) ---------- */
.scenario-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 32px;
}
@media (max-width: 780px) { .scenario-wrap { grid-template-columns: 1fr; } }
.scenario-card {
  border-radius: 14px;
  padding: 30px 28px;
  line-height: 1.75;
  position: relative;
  overflow: hidden;
}
.scenario-card.ohne {
  background: var(--gray-light);
  border: 1px solid var(--gray);
}
.scenario-card.mit {
  background: linear-gradient(135deg, var(--teal-dark), var(--sage-dark));
  color: var(--white);
  box-shadow: var(--shadow);
}
.scenario-card.mit::before {
  content: '';
  position: absolute;
  top: -70px; right: -70px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.scenario-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.scenario-card.ohne .scenario-tag { background: var(--gray); color: var(--text-light); }
.scenario-card.mit  .scenario-tag { background: var(--gold); color: var(--white); }
.scenario-card h3 { font-size: 1rem; margin-bottom: 10px; }
.scenario-card.mit h3 { color: var(--white); }
.scenario-card p { font-size: .9rem; margin: 0 0 10px; }
.scenario-card.ohne p { color: var(--text-light); }
.scenario-card.mit  p { color: rgba(255,255,255,.88); }
.scenario-card ul { list-style: none; padding: 0; margin: 12px 0 0; }
.scenario-card li {
  font-size: .88rem;
  padding: 6px 0 6px 26px;
  position: relative;
}
.scenario-card.ohne li::before { content: '✗'; position: absolute; left: 2px; color: var(--sage-dark); font-weight: 700; }
.scenario-card.ohne li { color: var(--text-light); }
.scenario-card.mit li::before { content: '✓'; position: absolute; left: 2px; color: var(--gold); font-weight: 700; }
.scenario-card.mit li { color: rgba(255,255,255,.9); }

/* ---------- Erklär-Box „Was ist Teilverwaltung?" ---------- */
.explain-box {
  background: var(--white);
  border: 1px solid var(--gray);
  border-left: 5px solid var(--gold);
  border-radius: 14px;
  padding: 36px 40px;
  box-shadow: var(--shadow);
}
@media (max-width: 600px) { .explain-box { padding: 26px 22px; } }
.explain-box h2 { font-size: 1.35rem; margin-bottom: 14px; }
.explain-box p  { font-size: .97rem; line-height: 1.85; margin-bottom: 12px; }
.explain-box p:last-child { margin-bottom: 0; }

/* ---------- Leistungs-Blöcke: Vorteil-Satz ---------- */
.leistung-vorteil {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--teal-light);
  border-radius: var(--radius);
  padding: 13px 18px;
  margin-bottom: 16px;
}
.leistung-vorteil strong { color: var(--teal-dark); }
.leistung-block { transition: box-shadow var(--transition), transform var(--transition); }
.leistung-block:hover { transform: translateY(-2px); }

/* ---------- Hervorgehobener Teilverwaltungs-Block (Leistungen) ---------- */
.leistung-featured {
  border: 2px solid var(--teal-dark);
  position: relative;
  overflow: hidden;
}
.leistung-featured::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--teal-light);
  opacity: .6;
  pointer-events: none;
}
.leistung-featured > * { position: relative; z-index: 1; }
.featured-flag {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ---------- Pulsierender CTA-Akzent (dezent) ---------- */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(200,150,30,.25); }
  50%      { box-shadow: 0 4px 28px rgba(200,150,30,.5); }
}
.btn-glow { animation: glowPulse 3.2s ease-in-out infinite; }
.btn-glow:hover { animation: none; }

/* ---------- Zitat-Einstieg (Über uns) ---------- */
.intro-quote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.intro-quote blockquote {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 700;
  color: var(--teal-dark);
  line-height: 1.55;
  margin: 0 0 14px;
}
.intro-quote blockquote::before { content: '„'; color: var(--gold); font-size: 1.4em; }
.intro-quote blockquote::after  { content: '"'; color: var(--gold); font-size: 1.4em; }
.intro-quote cite {
  font-style: normal;
  font-size: .88rem;
  color: var(--text-light);
  font-weight: 600;
}

/* ---------- WhatsApp-/Kontaktweg-Buttons ---------- */
.contact-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.contact-quick a {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1.5px solid var(--gray);
  border-radius: 12px;
  padding: 16px 18px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--teal-dark);
  transition: all var(--transition);
}
.contact-quick a:hover {
  border-color: var(--teal-mid);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.contact-quick .cq-icon {
  width: 40px; height: 40px;
  background: var(--teal-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-quick small {
  display: block;
  font-size: .74rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ---------- Reduzierte Bewegung respektieren ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .anim-stagger > * { animation: none; }
  .hero::before, .hero::after, .tv-hero::before { animation: none; }
  .btn-glow { animation: none; }
  * { transition-duration: .01ms !important; }
}
