/**
 * Startseite – Einstiegs-Sektion
 * "Womit möchtest du beginnen?"
 * 
 * Hochwertige Einstiegskarten für Besucher
 * Modern, warm, naturverbunden, ruhig
 * 
 * @since 1.0.0
 * DSGVO-ready: Nur lokale Assets, keine externen Ressourcen
 */

/* ===================================================================
   SECTION – CONTAINER & LAYOUT
   =================================================================== */

.ds-home-einstieg {
  width: 100%;
  max-width: 100%;
  padding: 80px 20px;
  margin: 0;
  /* Warmer, hochwertiger Hintergrund: sanfter Gradient */
  background: linear-gradient(180deg, #faf6f0 0%, #f8f3eb 100%);
  color: var(--ds-text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

/* Subtler Übergangseffekt vom Hero zur Einstiegs-Sektion */
.ds-home-einstieg::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(180deg, rgba(239, 228, 214, 0.3) 0%, transparent 100%);
  pointer-events: none;
}

/* Innen-Container mit max-width für bessere Lesbarkeit */
.ds-home-einstieg-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================================================================
   TITEL & INTRO TEXT
   =================================================================== */

.ds-home-einstieg-header {
  text-align: center;
  margin-bottom: 60px;
  animation: ds-fade-in 0.8s ease-out 0.1s both;
  position: relative;
  z-index: 1;
}

.ds-home-einstieg-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 24px 0;
  padding: 0;
  letter-spacing: -0.02em;
  color: var(--ds-text-main);
  /* Subtile Tiefe durch Text-Schatten */
  text-shadow: 0 2px 4px rgba(36, 48, 33, 0.05);
}

.ds-home-einstieg-intro {
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: var(--ds-text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* ===================================================================
   KARTEN – GRID LAYOUT
   =================================================================== */

.ds-home-einstieg-cards {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 34px;
  margin-top: 70px;
  position: relative;
  z-index: 1;
  align-items: stretch;
}

/* Auf größeren Screens: genau 4 Spalten */
/* Desktop */
@media (min-width: 1024px) {
  .ds-home-einstieg-cards {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
  }
}



/* ===================================================================
   EINZELNE KARTE
   =================================================================== */

.ds-home-einstieg-card {
  display: flex;
  flex-direction: column;
  /* Warmer, subtiler Kartengrund statt pure Weiß */
  background:
  linear-gradient(
    180deg,
    rgba(252,249,244,0.96) 0%,
    rgba(246,240,232,0.98) 100%
  );
  border: 1px solid rgba(140, 125, 105, 0.10);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow:
  0 8px 24px rgba(60, 45, 25, 0.04);
  transition: all 0.35s cubic-bezier(0.23, 1, 0.320, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  min-height: 320px;
}

/* Hover-Effekt: sanftes Hochfahren und Schattenvergrößerung */
.ds-home-einstieg-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(139, 121, 100, 0.12);
  border-color: rgba(82, 115, 77, 0.35);
}

/* Fokus für Tastatur-Navigation */
.ds-home-einstieg-card:focus-visible {
  outline: 3px solid var(--ds-accent);
  outline-offset: 2px;
}

/* Scroll-Reveal: Karten erscheinen erst beim Scrollen */
.ds-home-einstieg-card {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease,
    box-shadow 0.35s cubic-bezier(0.23, 1, 0.320, 1),
    border-color 0.35s cubic-bezier(0.23, 1, 0.320, 1),
    background 0.35s cubic-bezier(0.23, 1, 0.320, 1);
}

.ds-home-einstieg-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ds-home-einstieg-card:nth-child(1) {
  transition-delay: 0.05s;
}

.ds-home-einstieg-card:nth-child(2) {
  transition-delay: 0.13s;
}

.ds-home-einstieg-card:nth-child(3) {
  transition-delay: 0.21s;
}

.ds-home-einstieg-card:nth-child(4) {
  transition-delay: 0.29s;
}

/* ===================================================================
   KARTEN-ICON
   =================================================================== */

.ds-home-einstieg-card-icon {
  width: 150px;
  height: 150px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 30px;

  border-radius: 34px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.60) 0%,
      rgba(248,244,236,0.90) 100%
    );

  border: 1px solid rgba(120, 110, 90, 0.08);

  box-shadow:
    0 12px 30px rgba(60, 45, 25, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.55);

  overflow: hidden;

  transition:
    transform 0.45s cubic-bezier(0.23, 1, 0.320, 1),
    box-shadow 0.45s ease,
    background 0.45s ease;
}

/* Hover */

.ds-home-einstieg-card:hover .ds-home-einstieg-card-icon {
  transform: scale(1.04);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.75) 0%,
      rgba(241,233,223,0.95) 100%
    );

  box-shadow:
    0 18px 40px rgba(60, 45, 25, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.65);
}

/* ===================================================================
   ICON BILDER
   =================================================================== */

.ds-home-einstieg-card-icon img {
  width: 120%;
  height: 120%;

  object-fit: contain;

  display: block;
}

/* ===================================================================
   HAUPTKARTE – SELBSTVERSORGER-WEG
   =================================================================== */

.ds-home-einstieg-card:first-child {
  background:
    linear-gradient(
      145deg,
      #fcf8f1 0%,
      #f6efe3 100%
    );

  border-color: rgba(125, 145, 104, 0.22);

  box-shadow:
    0 10px 26px rgba(90, 74, 55, 0.08);

  padding: 38px 34px;

  transform: translateY(22px);
}

.ds-home-einstieg-card:first-child.is-visible {
  transform: translateY(-8px);
}

.ds-home-einstieg-card:first-child:hover {
  transform: translateY(-14px);

  box-shadow:
    0 18px 34px rgba(90, 74, 55, 0.12);
}

.ds-home-einstieg-card:first-child .ds-home-einstieg-card-title {
  font-size: 25px;
  line-height: 1.25;
}

.ds-home-einstieg-card:first-child .ds-home-einstieg-card-text {
  font-size: 16px;
}

/* Erste Karte minimal größer */

.ds-home-einstieg-card:first-child .ds-home-einstieg-card-icon {
  width: 168px;
  height: 168px;

  border-radius: 38px;
}

.ds-home-einstieg-card:first-child .ds-home-einstieg-card-icon img {
  width: 130%;
  height: 130%;
}

.ds-home-einstieg-card:first-child .ds-home-einstieg-card-cta {
  margin-top: 30px;

  font-size: 14px;

  letter-spacing: 0.1em;
}

/* Tablet: 2 Spalten */
@media (min-width: 768px) and (max-width: 1023px) {
  .ds-home-einstieg-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}


/* ===================================================================
   ANIMATIONS
   =================================================================== */

/* Fade In */
@keyframes ds-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Fade In + Hochgleiten */
@keyframes ds-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================================================
   DARKMODE SUPPORT
   =================================================================== */

body.ds-darkmode .ds-home-einstieg {
  background: #10180f;
}

body.ds-darkmode .ds-home-einstieg::before {
  background: linear-gradient(180deg, rgba(16, 24, 15, 0.95) 0%, transparent 100%);
}

body.ds-darkmode .ds-home-einstieg-title {
  color: #efe3cf;
}

body.ds-darkmode .ds-home-einstieg-intro {
  color: #d8c8ad;
}

body.ds-darkmode .ds-home-einstieg-card {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(214, 188, 120, 0.14);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

body.ds-darkmode .ds-home-einstieg-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(214, 188, 120, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

body.ds-darkmode .ds-home-einstieg-card-icon {
  background: rgba(255, 255, 255, 0.04);
}

body.ds-darkmode .ds-home-einstieg-card-title {
  color: #efe3cf;
}

body.ds-darkmode .ds-home-einstieg-card-text {
  color: #d8c8ad;
}

body.ds-darkmode .ds-home-einstieg-card-cta {
  color: #d8c9a8;
}

/* ===================================================================
   RESPONSIVE – MOBILE
   =================================================================== */

@media (max-width: 767px) {
  .ds-home-einstieg {
    padding: 70px 16px;
  }

  .ds-home-einstieg-inner {
    padding: 0 8px;
  }

  .ds-home-einstieg-header {
    margin-bottom: 50px;
  }

  .ds-home-einstieg-title {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .ds-home-einstieg-intro {
    font-size: 15px;
    max-width: 100%;
  }

  .ds-home-einstieg-cards {
    gap: 24px;
    margin-top: 48px;
  }

  .ds-home-einstieg-cards {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
}

 .ds-home-einstieg-card-icon {
  width: 110px;
  height: 110px;

  margin-bottom: 20px;
}

  .ds-home-einstieg-card-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .ds-home-einstieg-card-text {
    font-size: 14px;
    line-height: 1.6;
  }

  .ds-home-einstieg-card-cta {
    margin-top: 18px;
  }
}

/* ===================================================================
   RESPECTS prefers-reduced-motion
   =================================================================== */

@media (prefers-reduced-motion: reduce) {
  .ds-home-einstieg-card,
  .ds-home-einstieg-header {
    animation: none !important;
    transition: none !important;
  }

  .ds-home-einstieg-card:hover {
    transform: none;
  }

  .ds-home-einstieg-card:hover .ds-home-einstieg-card-icon {
    transform: none;
  }

  .ds-home-einstieg-card:hover .ds-home-einstieg-card-cta::after {
    transform: none;
  }
}



.ds-home-einstieg {
	position: relative;

	width: 100vw !important;
	max-width: none !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;

	overflow: hidden;
	background: linear-gradient(135deg, #fdfaf4 0%, #efe4d6 100%);
}