/**
 * Hero Section – Dein Selbstversorger
 * Modern, warm, naturverbunden mit sanften Animationen
 * 
 * @since 1.0.0
 * DSGVO-ready: Nur lokale Assets, keine externen Ressourcen
 */

/* ===================================================================
   HERO SEKTION – CONTAINER & LAYOUT
   =================================================================== */

.hero-section-wrapper {
  position: relative;

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  min-height: 680px;
  height: 100vh;
  max-height: 900px;

  overflow: hidden;
  background: linear-gradient(135deg, #fdfaf4 0%, #efe4d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.hero-section-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  display: none;
}

.hero-section-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  display: none;
}

/* Respektiere prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero-section-wrapper * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===================================================================
   BACKGROUND EBENEN – Parallax-Effekt
   =================================================================== */

.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-attachment: fixed;
  z-index: 1;
  display: none;
}

/* Layer 1: Deaktiviert */
.hero-bg-layer.layer-1 {
  display: none;
}

/* Layer 2: Deaktiviert */
.hero-bg-layer.layer-2 {
  display: none;
}

/* Layer 3: Deaktiviert */
.hero-bg-layer.layer-3 {
  display: none;
}

.hero-bg-layer.layer-3::before {
  display: none;
}

.hero-bg-layer.layer-3::after {
  display: none;
}

/* ===================================================================
   CONTENT CONTAINER – Das Herzstück
   =================================================================== */

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 780px;
  width: 88%;
  margin: 0 auto;
  padding: 90px 46px 70px 46px; /* Tiefer und luftiger sitzen */
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

/* Respektiere prefers-reduced-motion bei Content */
@media (prefers-reduced-motion: reduce) {
  .hero-content h1,
  .hero-content .hero-intro,
  .hero-content .hero-cta-buttons,
  .hero-content .hero-trust-statement {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ===================================================================
   ÜBERSCHRIFT – H1 mit Tiefenwirkung
   =================================================================== */

.hero-content h1 {
  font-size: 3.0rem;
  line-height: 1.2;
  color: #5a4d3f;
  margin: 0 0 35px 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  
  /* Subtile Schatten für elegante Tiefenwirkung */
  text-shadow: 
    1px 1px 2px rgba(93, 77, 60, 0.10),
    2px 2px 6px rgba(93, 77, 60, 0.06);
  
  animation: fade-in-down 1.0s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

/* ===================================================================
   INTRO-TEXT – Warm und einladend
   =================================================================== */

.hero-content .hero-intro {
  font-size: 1.2rem;
  line-height: 1.75;
  color: #6a5d4f;
  margin: 0 0 45px 0;
  max-width: 650px;
  font-weight: 400;
  letter-spacing: 0.002em;
  
  animation: fade-in-up 1.0s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  animation-delay: 0.4s;
}

/* ===================================================================
   BUTTONS – CTA mit eleganten Hover-States
   =================================================================== */

.hero-cta-buttons {
  display: flex;
  gap: 18px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 48px 0;
  
  animation: fade-in-up 1.0s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

.hero-btn {
  padding: 16px 34px;
  font-size: 1.0rem;
  font-weight: 500;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.28s ease;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.005em;
  box-shadow: 0 6px 20px rgba(94, 78, 56, 0.10);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  .hero-btn {
    transition: none;
  }
}

/* Primary Button – Natürliches Gartengrün, weniger technisch */
.hero-btn.primary {
  background: linear-gradient(135deg, #7a8a6d 0%, #6a7b5d 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-btn.primary:hover {
  background: linear-gradient(135deg, #8a9f7f 0%, #79896f 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(94, 78, 56, 0.14);
}

.hero-btn.primary:active {
  transform: translateY(0px);
  box-shadow: 0 4px 10px rgba(94, 78, 56, 0.10);
}

/* Secondary Button – Eleganter, natürlicher */
.hero-btn.secondary {
  background: rgba(255, 250, 242, 0.94);
  color: #6b5f4e;
  border: 1px solid rgba(107, 93, 75, 0.25);
  backdrop-filter: blur(10px);
}

.hero-btn.secondary:hover {
  background: rgba(255, 250, 242, 0.98);
  color: #5f5243;
  border-color: rgba(107, 93, 75, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(94, 78, 56, 0.10);
}

.hero-btn.secondary:active {
  transform: translateY(0px);
  box-shadow: 0 4px 10px rgba(94, 78, 56, 0.08);
}

/* ===================================================================
   TRUST STATEMENT – Kleiner, beruhigender Text
   =================================================================== */

.hero-content .hero-trust-statement {
  font-size: 0.95rem;
  color: #675b4d;
  margin-top: 35px;
  font-weight: 400;
  line-height: 1.75;
  max-width: 550px;
  opacity: 0.9;
  
  animation: fade-in-up 1.0s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  animation-delay: 0.8s;
}

/* ===================================================================
   MASKOTTCHEN PLATZHALTER – Flexible Positionierung
   =================================================================== */

.hero-mascot-container {
  position: absolute;
  bottom: -10px;
  right: 10px;

  width: 430px;
  height: 430px;

  z-index: 8;

  animation: float-subtle 10s ease-in-out infinite;
}

.hero-mascot-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.08));

  /* Sanfte 3D-ähnliche Tiefenwirkung - Richtung Text schauen */
  transform: perspective(1200px) rotateY(8deg) rotateX(-2deg) scale(1.02);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-mascot-container:hover .hero-mascot-image {
  transform: perspective(1200px) rotateY(12deg) rotateX(-1deg) scale(1.08);
}

/* ===================================================================
   ANIMATIONS – Nur CSS, keine externen Libraries
   =================================================================== */

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-subtle {
  0%, 100% {
    transform: translateY(0px) rotateZ(-1deg);
  }
  50% {
    transform: translateY(-15px) rotateZ(1deg);
  }
}

@keyframes drift-slow {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, 30px);
  }
}

@keyframes drift-slow-reverse {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-20px, -30px);
  }
}

@keyframes subtle-texture-shift {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.5;
  }
}

/* ===================================================================
   PARALLAX SCROLL EFFEKT – JavaScript-gesteuert
   Siehe hero-animations.js
   =================================================================== */

.hero-parallax-layer {
  will-change: transform;
}

/* ===================================================================
   RESPONSIVE DESIGN – Mobile First
   =================================================================== */

/* Tablets und kleine Desktops */
@media (max-width: 768px) {
  .hero-section-wrapper {
    min-height: 600px;
    height: auto;
    max-height: none;
  }

  .hero-content {
    margin: 0 auto; /* Wieder zentrieren auf Tablet */
    text-align: center;
    align-items: center;
    margin-right: 0; /* Kein rechter Rand mehr */
    padding: 40px 20px;
  }

  .hero-content h1 {
    font-size: 2.0rem;
    margin-bottom: 25px;
  }

  .hero-content .hero-intro {
    font-size: 1.05rem;
    margin-bottom: 35px;
  }

  .hero-cta-buttons {
    gap: 16px;
    margin: 40px 0;
  }

  .hero-btn {
    padding: 16px 28px;
    font-size: 0.95rem;
  }

  /* Maskottchen dezenter */
  .hero-mascot-container {
  width: 160px;
  height: 160px;

  left: auto !important;
  right: -18px !important;
  bottom: 320px !important;

  opacity: 0.92;
  z-index: 7;
}
}

/* Smartphones */
@media (max-width: 600px) {
  .hero-section-wrapper {
    min-height: 500px;
  }

  .hero-content {
    padding: 30px 16px;
    text-align: center;
    align-items: center;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .hero-content .hero-intro {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 28px;
  }

  .hero-cta-buttons {
    flex-direction: column;
    gap: 12px;
    margin: 32px 0;
  }

  .hero-btn {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.9rem;
  }

  /* Maskottchen klein und dezent */
  .hero-mascot-container {
  width: 140px;
  height: 140px;

  left: auto !important;
  right: -15px !important;
  bottom: 310px !important;

  opacity: 0.92;
  z-index: 7;
}

  /* Background Layer 3 Effekte reduzieren */
  .hero-bg-layer.layer-3::before {
    width: 400px;
    height: 400px;
    right: -200px;
    top: -100px;
  }

  .hero-bg-layer.layer-3::after {
    width: 350px;
    height: 350px;
    left: -175px;
    bottom: -50px;
  }

  /* Trust Statement kleiner */
  .hero-content .hero-trust-statement {
    font-size: 0.85rem;
    margin-top: 20px;
  }
}

/* Sehr kleine Smartphones */
@media (max-width: 375px) {
  .hero-mascot-container {
  width: 125px;
  height: 125px;

  left: auto !important;
  right: -14px !important;
  bottom: 285px !important;

  opacity: 0.9;
  z-index: 7;
}
}

/* ===================================================================
   ACCESSIBILITY – Fokus, Kontrastoptimierung
   =================================================================== */

.hero-btn:focus {
  outline: 2px solid #6b8f5a;
  outline-offset: 2px;
}

.hero-btn:focus-visible {
  outline: 2px solid #6b8f5a;
  outline-offset: 2px;
}

/* ===================================================================
   UNTERSTÜTZUNG FÜR DUNKLEN MODUS (Optional)
   =================================================================== */

@media (prefers-color-scheme: dark) {
  .hero-section-wrapper {
    background: linear-gradient(135deg, #fdfaf4 0%, #efe4d6 100%);
  }

  .hero-bg-layer.layer-1 {
    background: linear-gradient(
      160deg,
      #fffaf5 0%,
      #fdf3eb 16%,
      #f5eae1 35%,
      #ede8de 52%,
      #e8e3d7 70%,
      #e3ddd0 86%,
      #e0dac9 100%
    );
  }

  .hero-content h1 {
    color: #5a4d3f;
  }

  .hero-content .hero-intro {
    color: #6a5d4f;
  }

  .hero-content .hero-trust-statement {
    color: #675b4d;
  }
}



/* ===================================================================
   HERO – EIGENER DARKMODE
   =================================================================== */

body.ds-darkmode .hero-section-wrapper {
  background: #10180f !important;
  border: none !important;
  box-shadow: none !important;
}

body.ds-darkmode .hero-content h1 {
  color: #efe3cf !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

body.ds-darkmode .hero-content .hero-intro {
  color: #d8c8ad !important;
}

body.ds-darkmode .hero-content .hero-trust-statement {
  color: #c5b394 !important;
}

body.ds-darkmode .hero-btn.primary {
  background: #5f7150;
  color: #f3eadb;
  border: 1px solid rgba(214, 188, 120, 0.14);

  box-shadow:
    0 4px 16px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

body.ds-darkmode .hero-btn.primary:hover {
  background: #6c7f5b;
  transform: translateY(-1px);
}

body.ds-darkmode .hero-btn.secondary {
  background: rgba(255,255,255,0.02);
  color: #d8c9a8;

  border: 1px solid rgba(214,188,120,0.18);

  box-shadow:
    0 4px 14px rgba(0,0,0,0.18);
}

body.ds-darkmode .hero-btn.secondary:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(214,188,120,0.28);
}











.hero-section-wrapper {
  position: relative;

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

  min-height: 680px;
  height: 100vh;
  max-height: 900px;

  overflow: hidden;
  background: linear-gradient(135deg, #fdfaf4 0%, #efe4d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}