/* ===== Vorsorgeteam24 – Landing Page ===== */
/* Farben: Main #0388D3 | Grün #5EA667 | Gelb #EFCD14 | Rot #A51F37 | Hintergrund #ffffff */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ----- Site Header (nur Logo, zentriert, größer) ----- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e8ecf0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo-link {
  display: block;
  line-height: 0;
}

.header-logo-img {
  display: block;
  max-height: 40px;
  width: auto;
  margin: 30px auto;
  transition: max-height 0.25s ease, margin 0.25s ease;
}

/* Beim Scrollen: Logo kleiner (35px) */
body.header-scrolled .site-header .header-logo-img {
  max-height: 25px;
  margin: 0px auto;
}

@media (max-width: 600px) {
  .header-inner { padding: 1rem; }
  .header-logo-img { max-height: 30px; }
  body.header-scrolled .site-header .header-logo-img { max-height: 35px; }
}

/* ----- Logo-Bar unter dem Header: 5 Logos sichtbar, Wechsel alle 3 Sekunden ----- */
.logo-bar {
  background: #fff;
  border-bottom: 1px solid #e8ecf0;
  padding: 1rem 0;
  overflow: hidden;
}

.logo-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  overflow: hidden;
}

.logo-bar-track {
  display: flex;
  width: 400%;
  animation: logo-bar-step 12s ease-in-out infinite;
}

.logo-bar-slide {
  flex: 0 0 25%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1rem;
  padding: 0 0.5rem;
  min-width: 0;
}

.logo-bar-slide img {
  flex: 1 1 0;
  min-width: 0;
  max-width: 120px;
  height: 60px;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.9;
}

/* 4 Slides, je 3 Sekunden sichtbar, dann Übergang zum nächsten */
@keyframes logo-bar-step {
  0%   { transform: translateX(0); }
  22%  { transform: translateX(0); }
  25%  { transform: translateX(-25%); }
  47%  { transform: translateX(-25%); }
  50%  { transform: translateX(-50%); }
  72%  { transform: translateX(-50%); }
  75%  { transform: translateX(-75%); }
  97%  { transform: translateX(-75%); }
  100% { transform: translateX(0); }
}

@media (max-width: 768px) {
  .logo-bar-inner { max-width: 100%; }
  .logo-bar-slide img { height: 28px; max-width: 90px; }
}

@media (max-width: 480px) {
  .logo-bar { padding: 0.75rem 0; }
  .logo-bar-slide { gap: 0.5rem; }
  .logo-bar-slide img { height: 24px; max-width: 72px; }
}

/* ----- Hero: Bild volle Breite im Hintergrund, Text im Container davor ----- */
.landing-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 10rem 1.5rem;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero-content {
  max-width: 560px;
}

.hero-logo {
  display: block;
  max-width: 220px;
  max-height: 80px;
  width: auto;
  height: auto;
  margin-bottom: 1.5rem;
  object-fit: contain;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #0388D3;
  margin: 0 0 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(255,255,255,0.9);
}

.hero-title-line1 {
  display: block;
  font-weight: 700;
}

.hero-title-line2 {
  display: block;
  color: #1a1a1a;
  text-shadow: 0 1px 2px rgba(255,255,255,0.9);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #2c3e50;
  margin: 0 0 1.75rem;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(255,255,255,0.85);
}

.hero-subtitle strong {
  color: #0388D3;
}

@media (max-width: 900px) {
  .hero-content {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .landing-hero {
    min-height: 320px;
    padding: 5rem 1rem;
  }
  .hero-logo {
    max-width: 180px;
    max-height: 64px;
    margin-bottom: 1.25rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
}

.btn-cta {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: #0388D3;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(3, 136, 211, 0.35);
}

.btn-cta:hover {
  background: #0270b3;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3, 136, 211, 0.4);
}

.btn-cta:active {
  transform: translateY(0);
}

/* ----- Content Sections ----- */
.landing-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.landing-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0388D3;
  text-align: center;
  margin: 0 0 2.5rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.benefit-item {
  padding: 1.5rem 1rem;
}

.benefit-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
}

.benefit-item:nth-child(1) .benefit-icon { background: #5EA667; color: #fff; }
.benefit-item:nth-child(2) .benefit-icon { background: #0388D3; color: #fff; }
.benefit-item:nth-child(3) .benefit-icon { background: #EFCD14; color: #1a1a1a; }

.benefit-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 0.5rem;
}

.benefit-item p {
  font-size: 0.95rem;
  color: #5a6c7d;
  margin: 0;
  line-height: 1.5;
}

.steps-ablauf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: ablauf;
}

.step-ablauf {
  text-align: center;
  position: relative;
  counter-increment: ablauf;
}

.step-ablauf::before {
  content: counter(ablauf);
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: #0388D3;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 48px;
}

.step-ablauf h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 0.4rem;
}

.step-ablauf p {
  font-size: 0.9rem;
  color: #5a6c7d;
  margin: 0;
  line-height: 1.5;
}

.section-alt {
  background: rgba(3, 136, 211, 0.04);
}

@media (max-width: 768px) {
  .benefits-grid,
  .steps-ablauf {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .landing-section { padding: 3rem 1rem; }
}

/* ----- Formular-Bereich ----- */
.form-section {
  padding: 3rem 1rem 2rem;
  background: #ffffff;
}

#anfrage-formular {
  scroll-margin-top: 1rem;
}

@media (max-width: 768px) {
  #anfrage-formular {
    scroll-margin-top: 3rem;
  }
}

.form-section .wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

/* ----- Site Footer ----- */
.site-footer {
  background: #0388D3;
  color: rgba(255, 255, 255, 0.9);
  padding: 1.5rem 1.5rem;
  margin-top: auto; /* Sticky Footer: bleibt unten, wenn Inhalt kurz ist */
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.9rem;
}

.footer-inner a {
  color: #fff;
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

.footer-sep {
  margin: 0 0.5rem;
  opacity: 0.8;
}
