html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: 'din2014';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/din2014-regular.ttf') format('truetype');
}

@font-face {
  font-family: 'din2014';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/din2014-demibold.ttf') format('truetype');
}

@font-face {
  font-family: 'din2014';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/din2014-demibolditalic.ttf') format('truetype');
}

@font-face {
  font-family: 'din2014';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/din2014-bold.ttf') format('truetype');
}

@font-face {
  font-family: 'din2014';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/din2014-extrabold.ttf') format('truetype');
}

/* Layout und Styling wird von Tailwind CSS übernommen.
   Hier nur projektspezifische Ergänzungen einfügen. */

/* ===== Letter Spacing (Original-Werte) ===== */
h1 { letter-spacing: 3.5px; }
h2 { letter-spacing: 2.5px; }
p  { letter-spacing: 2px; }
li { letter-spacing: 1.5px; }
nav a { letter-spacing: 1.5px; }
nav button { letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; }
/* ===== Persönliches Angebot Button ===== */
.angebotdiv {
  max-width: 428px;
  background: rgb(89, 187, 206);
  width: fit-content;
  margin-left: 0;
  z-index: 9999999;
  cursor: pointer;
  transition: background-color 0.35s ease;
}
.angebotdiv:hover { background: rgb(169, 202, 60); }

.persoenliches-angebot {
  width: 25vw;
  max-width: 240px;
  height: auto;
  aspect-ratio: 434.45 / 89.26;
  background-image: url('images/B_Persoenliches-Angebot_blau.svg');
  background-repeat: no-repeat;
  background-size: contain;
  position: relative;
}
.persoenliches-angebot::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/B_Persoenliches-Angebot_gruen.svg');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.angebotdiv:hover .persoenliches-angebot::after { opacity: 1; }

.persoenliches-angebot2 {
  background-image: url('images/B_Angebot_blau.svg');
  background-repeat: no-repeat;
  position: relative;
}
.persoenliches-angebot2::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/B_Angebot_gruen.svg');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.angebotdiv:hover .persoenliches-angebot2::after { opacity: 1; }

/* Nicht-sticky: Position unterhalb der Nav, kompakte Version ausblenden */
.element-is-not-sticky.angebotdiv { margin-top: 120px; }
.element-is-not-sticky .angebot { display: none; }

/* Sticky: volle Version ausblenden, kompakte einblenden */
.element-is-sticky .angebot2 { display: none; }
.element-is-sticky .angebot {
  display: inline;
  border-radius: 0px 8px 8px 0px;
  padding: 0px 55px 149px 0px;
}
.element-is-sticky.angebotdiv {
  position: fixed;
  top: 90px;
  left: -5px;
  margin-top: 0;
  margin-left: 0 !important;
  transform: none;
  border-radius: 0px 8px 8px 0px;
  padding: 0 !important;
  width: fit-content !important;
}

@media only screen and (max-width: 987px) {
  #hero-section {
    background-image: none !important;
    background-color: #eaeaea !important;
  }
}

@media only screen and (max-width: 767px) {
  .persoenliches-angebot { width: 192px; }
}

/* ===== Minimum 60px left/right page margin ===== */
section > .mx-auto,
footer > .mx-auto {
  padding-left: max(60px, 1.5rem) !important;
  padding-right: max(60px, 1.5rem) !important;
}
#header-inner {
  padding-left: max(60px, 2rem) !important;
  padding-right: max(60px, 2rem) !important;
}

/* ===== Header ===== */
#main-header {
  background-color: rgba(255,255,255,0);
  z-index: 10000001;
}
#main-header.scrolled {
  background-color: rgba(255,255,255,0.95);
  backdrop-filter: blur(1px);
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
#main-header.scrolled #header-inner {
  padding-top: 6px;
  padding-bottom: 6px;
}

/* ===== Logos ===== */
#logo-main {
  height: 80px;
  width: auto;
  transition: all 0.5s;
}
#logo-small {
  height: 50px;
  width: auto;
  display: none;
  transition: all 0.5s;
}
#main-header.scrolled #logo-main { display: none; }
#main-header.scrolled #logo-small { display: block; }

/* ===== Nav Dropdowns ===== */
.nav-dropdown {
  z-index: 10000000;
  border-top: 3px solid #a9ca3c;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -11px;
  left: 0;
  right: 0;
  height: 11px;
}

/* Main nav — underline animation */
.desktop-nav > a,
.desktop-nav > div > button {
  position: relative;
}

/* Chevron rotation on hover */
.nav-chevron {
  transition: transform 0.3s ease;
}
.group:hover .nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown items */
.nav-dd-item {
  display: block;
  padding: 9px 20px;
  font-size: 1rem;
  font-weight: 500;
  text-transform: none;
  color: #374151;
  letter-spacing: 1.5px;
  border-left: 3px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, padding 0.15s ease;
}
.nav-dd-item:hover {
  border-left-color: #a9ca3c;
  background: #f7faea;
  color: #8aaa1e;
  padding-left: 26px;
  padding-right: 14px;
}

/* ===== Mobile Menu ===== */
#mobile-menu { z-index: 10000000; }
.mobile-acc-btn { letter-spacing: 1.5px; }
.mobile-nav-link { letter-spacing: 1.5px; }

/* ===== Hero ===== */
#hero-section {
  background-image: url('images/MainHeroNewOpt.webp');
  background-size: cover;
  background-position: top right;
  background-repeat: no-repeat;
  margin-top: 0;
}
.hero-content { text-align: left; }
.hero-text-block { max-width: clamp(300px, 60vw, 1110px); }
#hero-section h1 { font-size: clamp(2rem, 3.5vw, 5rem); }
.hero-intro { font-size: clamp(1.125rem, 0.9375vw, 2.25rem); }
.btn-broschuere {
  letter-spacing: 1.8px;
  font-size: 18px;
  padding: 15px 30px 13px;
  border-radius: 15px;
}
.hero-badge {
  width: clamp(108px, 5.625vw, 220px);
  height: auto;
}

/* ===== Greenline Divider ===== */
.greenline-divider {
  height: 3px;
  max-height: 3px;
  background: #fff url('images/greenline.jpg') no-repeat 100% 50%;
  background-size: 100% 100%;
}

/* ===== Partner Slider ===== */
.partner-slider { overflow: hidden; }
.partner-slider .swiper-slide img { width: 100%; height: 87px; object-fit: contain; }

/* ===== Footer Divider ===== */
.footer-divider {
  height: 3px;
  background: linear-gradient(90deg, rgba(169,202,60,0) 0%, rgb(169,202,60) 50%, rgba(169,202,60,0) 100%);
}
.footer-copyright {
  letter-spacing: 1.5px;
}

/* ===== Produktmodule Honeycomb ===== */
.produkt-module-wrapper {
  max-width: 1210px;
  margin: 0 auto;
}

/* ===== Waben-Row (Starterpaket / 30-Tage) ===== */
.waben-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-bottom: 28px;
}
.waben-hexa {
  width: 140px;
  height: auto;
  transition: transform 0.2s, opacity 0.2s;
}
.waben-hexa:hover { transform: scale(1.06); }
#starterpaket-trigger { opacity: 1; }

/* ===== Starter-Paket Modal Form ===== */
.starter-field { display: flex; flex-direction: column; gap: 0; margin-bottom: 0; }
.starter-label { font-size: 14px; font-weight: 700; letter-spacing: 1.5px; color: #232a54; text-transform: none; display: block; }
.starter-input {
  width: 100%; border: 0.8px solid #ebebeb; background: #f0f0f0;
  padding: 10px 14px; font-size: 13px; font-family: inherit;
  color: #a7a6a6; box-sizing: border-box; border-radius: 6px;
  outline: none; height: 38px; margin-bottom: 14px;
  box-shadow: inset 0 0 4px #ddd;
}
.starter-input:focus { border-color: #ccc; box-shadow: inset 0 0 4px #ccc; }

/* 30-Tage-Testen Modal – Schrittüberschriften */
#t30-container h2 { font-size: 1.1rem !important; }
#t30-container h3 { font-size: 0.8rem !important; }

.modulkachelreihe1 {
  display: flex;
  justify-content: center;
  margin-left: -63px;
}
.modulkachelreihe2 {
  display: flex;
  justify-content: center;
  margin-top: -72px;
  margin-left: 4px;
}
.kachelpaar {
  float: left;
}
.kachelbadge {
  position: relative;
  z-index: 9999;
  float: left;
  margin-right: -100px;
  margin-top: 20px;
  width: 168px;
  height: auto;
  cursor: pointer;
}
.modulkachel {
  position: relative;
  height: 306px;
  width: 272px;
  margin: 0 auto;
  float: left;
  transition: transform 0.8s;
}
.modulkachel:hover {
  transform: scale(1.05);
}
.modulkachel a {
  display: block;
  position: relative;
  width: 272px;
  height: 306px;
  overflow: hidden;
}
.modulkachel img {
  position: absolute;
  left: 5px;
  top: 5px;
  width: calc(100% - 10px);
  height: auto;
  transition: opacity 1s ease-in-out;
}
.modulkachel img.top { opacity: 1; }
.modulkachel:hover img.top { opacity: 0; }
.modulkachel img.bottom { opacity: 0; }
.modulkachel:hover img.bottom { opacity: 1; }

/* ===== Newsletter ===== */
.newsletter-subtext {
  font-size: 15px;
  color: #555555;
  text-align: center;
  margin-bottom: 32px;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.newsletter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.newsletter-input {
  background: #ffffff;
  color: rgb(167, 166, 166);
  border: 1px solid #ffffff;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 15px;
  width: 300px;
  max-width: 100%;
  outline: none;
  font-family: inherit;
  height: 42px;
  box-sizing: border-box;
}
.newsletter-input::placeholder {
  color: rgb(167, 166, 166);
}
.newsletter-btn {
  background: #232a54;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 1.5px;
  transition: opacity 0.2s;
  height: 42px;
  box-sizing: border-box;
}
.newsletter-btn:hover {
  opacity: 0.85;
}
.newsletter-feedback {
  margin-top: 16px;
  font-size: 15px;
  letter-spacing: 1px;
  min-height: 24px;
}
.newsletter-feedback.success { color: #232a54; font-weight: 700; }
.newsletter-feedback.error   { color: #c0392b; }
.newsletter-consent {
  max-width: 500px;
  font-size: 20px;
  color: #000000;
  letter-spacing: 0.1em;
  line-height: 1.5;
  margin: 0 auto;
  text-align: left;
}
.newsletter-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.newsletter-consent input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.newsletter-consent a {
  color: #000000;
  text-decoration: underline;
}

/* ===== Testimonials ===== */
.testimonial-slider {
  overflow: visible;
  padding-bottom: 48px !important;
}
.testimonial-slide {
  display: flex;
  align-items: center;
  gap: 3rem;
  text-align: left;
}
.testimonial-logo {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial-logo img {
  max-width: 400px;
  width: 100%;
  height: auto;
}
.testimonial-quote p {
  font-size: 20px;
  color: #232a54;
  line-height: 35px;
  letter-spacing: 2px;
}
.testimonial-pagination {
  bottom: 0 !important;
}
.testimonial-pagination .swiper-pagination-bullet {
  background: #232a54;
  opacity: 0.3;
}
.testimonial-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: #232a54;
}
@media (max-width: 768px) {
  .testimonial-slide {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .testimonial-logo {
    flex: none;
    width: 100%;
  }
}

/* ===== Branchen ===== */
.full {
  display: flex;
  flex-flow: wrap;
  place-content: center space-between;
  align-items: center;
  width: 100%;
}
.full .viertel a {
  display: block;
  position: relative;
  width: 100%;
}
.full > .viertel > a > .normal {
  opacity: 1;
  transform: scale(0.95);
  transition: opacity 1s, transform 1s;
  position: relative;
  width: 100%;
  height: auto;
  display: block;
}
.full > .viertel > a:hover > .normal {
  opacity: 0;
  transform: scale(1);
  transition: opacity 1s, transform 1s;
}
.full > .viertel > a > .onhover {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1s, transform 1s;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}
.full > .viertel > a:hover > .onhover {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1s, transform 1s;
}
@media screen and (max-width: 425px) {
  .viertel { width: 100%; }
}
@media screen and (min-width: 426px) and (max-width: 768px) {
  .viertel { width: 50%; }
}
@media screen and (min-width: 769px) {
  .viertel { width: 25%; }
}

/* ===== Vorteile ===== */
.vorteil-list-wrapper {
  display: flex;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}
.vorteil-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.vorteil-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.vorteil-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  margin-top: 2px;
}
.vorteil-title {
  font-size: 28px;
  font-weight: 800;
  color: #232a54;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: normal;
}
.vorteil-desc {
  font-size: 20px;
  color: rgb(167, 166, 166);
  letter-spacing: 2px;
  margin-top: 6px;
}
@media (max-width: 768px) {
  .vorteil-list-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .vorteil-list {
    width: 100%;
    max-width: 400px;
  }
}

/* ===== Produktmodule Responsive ===== */
@media (max-width: 1210px) {
  /* Dissolve honeycomb rows into a single flat flex flow */
  .modulkachelreihe1,
  .modulkachelreihe2 {
    display: contents;
  }
  .kachelpaar {
    display: contents;
  }
  .kachelbadge {
    /* Mirror exact desktop offset: 68px left of hex, 20px from top */
    float: none;
    position: absolute;
    top: 20px;
    left: -68px;
    margin: 0;
    z-index: 9999;
  }
  .produkt-module-wrapper {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 544px; /* 2 × 272px — exactly 2 per row */
  }
  .modulkachel {
    float: none;
    flex: 0 0 272px;
  }
}

@media (max-width: 664px) {
  /* 1 hexagon per row */
  .produkt-module-wrapper {
    max-width: 272px; /* 1 × 272px */
  }
}