/* =========================================================
   GRUNDLAGEN
========================================================= */

.entry-title {
  display: none;
}

/* =========================================================
   HERO
========================================================= */

.hero-headline {
  font-size: 2rem;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #111;
}

/* Layout */
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  align-items: center;
  padding: 0 20px;
}

/* Text */
.hero-content p {
  font-family: 'Karla', sans-serif;
  font-size: 1em;
  line-height: 1.6;
  color: #222;
  margin-bottom: 36px;
  max-width: 520px;
}

/* Button */
.hero-button {
  display: inline-block;
  background-color: #CD071E;
  color: #ffffff;
  font-family: 'Karla', sans-serif;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 1px;
  transition: transform 0.25s ease;
}

.hero-button:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

/* Bild */
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive Hero */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-content p {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-onboarding {
  margin-bottom: 1px;
}

/* =========================================================
   SECTION: MODULE
========================================================= */

.section-modules {
  text-align: center;
}

.module-headline {
  font-family: 'Karla', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  text-align: center;
}

.module-intro {
  max-width: 720px;
  margin: 0 auto 32px;
  font-family: 'Karla', sans-serif;
  font-size: 1em;
  line-height: 1.6;
  color: #222;
  text-align: center;
}

/* =========================================================
   MODULE GRID
========================================================= */

.module-grid-single {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.module-grid-single .module {
  max-width: 340px;
  width: 100%;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 18px;
}

.module {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 28px 26px;
  border-radius: 8px;
  text-align: center;
  font-family: 'Karla', sans-serif;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.module-icon {
  display: block;
  margin: 0 auto 16px;
  width: 56px;
  height: 56px;
  transition: transform 0.25s ease;
}

.module-icon-symbol {
  font-family: 'Material Symbols Outlined';
  font-size: 40px;
  color: #CD071E;
  display: block;
  margin: 0 auto 12px !important;
  text-align: center;
  line-height: 1;
}

.module h3 {
  font-family: 'Karla', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0 !important;
  margin-bottom: 14px;
  color: #111;
}

.module p {
  font-family: 'Karla', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #222;
  margin-bottom: 0;
}

.module:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.module:hover .module-icon {
  transform: scale(1.05);
}

/* Responsive Module Grid */
@media (max-width: 900px) {
  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .module-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   SCROLL REVEAL
========================================================= */

.section-modules {
  opacity: 1;
  transform: none;
}

.js .scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   TEXT / BILD SECTION – BASIS
========================================================= */

.section-text-image {
  padding: 44px 20px;
  margin-top: 1px;
}

.text-image-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.text-block {
  text-align: left;
}

.text-block h2 {
  font-family: 'Karla', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
}

.text-block p {
  font-family: 'Karla', sans-serif;
  font-size: 1em;
  line-height: 1.6;
  color: #222;
}

.image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Responsive Text/Bild */
@media (max-width: 900px) {
  .text-image-grid {
    grid-template-columns: 1fr;
  }

  .image-block {
    order: -1;
  }
}

/* =========================================================
   SLIDE-IN BILDER
========================================================= */

.js .scroll-reveal .slide-in-right {
  transform: translateX(16px);
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .scroll-reveal.is-visible .slide-in-right {
  transform: translateX(0);
  opacity: 1;
}

.js .scroll-reveal .slide-in-left {
  transform: translateX(-16px);
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .scroll-reveal.is-visible .slide-in-left {
  transform: translateX(0);
  opacity: 1;
}

/* =========================================================
   SECTION-SPEZIFISCHE LAYOUTS
========================================================= */

.section-leistungen .text-image-grid {
  grid-template-columns: 0.95fr 1.05fr;
}

.section-text-image--reverse .text-image-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.section-kosten .text-image-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

/* =========================================================
   CLUSTER
========================================================= */

.cluster {
  padding-top: 28px;
  padding-bottom: 28px;
}

.cluster + .cluster {
  padding-top: 12px;
}

/* =========================================================
   MOBILE: KEINE SCROLL-EFFEKTE
========================================================= */

@media (max-width: 900px) {

  .js .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .js .scroll-reveal .slide-in-right,
  .js .scroll-reveal .slide-in-left {
    opacity: 1 !important;
    transform: none !important;
  }

  .section-modules {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================================================
   MOBILE: TEXT/BILD SAUBER UNTEREINANDER
========================================================= */

@media (max-width: 900px) {

  .section-text-image .text-image-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .section-text-image .image-block {
    order: -1;
  }

  .section-text-image .text-block {
    max-width: 100%;
  }
}