/*====HTML Background====*/
html, body {
  background-color: #000;
  margin: 0;
}

/* Jede Box ist ein Flex-Container mit fixer Gesamthöhe (anpassbar!) */
.image-box-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--boxes-background);
  overflow: hidden; /* verhindert verzerrte Layouts */
}

/* Bildbereich mit festen Anteil, hier 250px Höhe (anpassbar) */
.image-box-image {
  height: 250px;        /* Höhe aller Bilder in der Zeile */
  overflow: hidden;
}

.image-box-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* sorgt für gleiche Bildhöhe UND sauberen Beschnitt */
  display: block;
}

/* Textbereich nimmt den Rest ein */
.image-box-text {
  padding: 1.5rem;
  color: var(--boxes-text-color);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;          /* sorgt für gleiche Texthöhen */
}

/* Überschrift */
.image-box-text h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-family: var(--font2);
}


/*======Border entfernen (Striche nach Überschrift)========*/
h1::after,
h2::after,
h3::after,
h4::after,
h5::after,
h6::after {
    content: none !important;
    display: none !important;
}


/*===========Videoplayer 1920x400 Mit Abstand=========*/
.video-hero-wrapper {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto 80px;   /* ↑ ↓ Abstand, links/rechts zentriert */
}

.video-hero-wrapper video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/*==========Videoplayer header===========*/
.video-hero-header {
  width: 100%;
  max-width: 1920px;
  margin: 0;   /* ↑ ↓ Abstand, links/rechts zentriert */
}

.video-hero-header video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}


h1, h2, h3, h4, h5, h6 {
  font-family: "Sora", sans-serif !important;
}

h4 {
  color: var(--mateColor4) !important;
}

.ce_ct_priceBox .inside > h2 {
  font-size: 1.8rem;
  line-height: 110%;
  color: var(--mateColor3-text-color);
}

/*============Trennstrich========*/
.divider {
  border: none;
  height: 1px;
  background-color: var(--mateColor4);
  margin: 3rem 0;
}

.divider-fade {
  border: none;
  height: 1px;
  width: 100%;
  margin: 3rem 0;

  background: linear-gradient(
    to right,
    transparent,
    var(--mateColor4),
    transparent
  );
}

/*======Bänder======*/

/* Weißer Full-Width-Artikel */
.white-band {
  background: #ffffff;
  padding: clamp(4rem, 8vw, 8rem) 0;
}
/* Weißer Full-Width-Artikel */
.sec-band {
  background: #EDEDED;
  padding: clamp(4rem, 8vw, 8rem) 0;
}

/* grauer Full-Width-Artikel */
.grey-band {
  background: #575757;
  padding: clamp(4rem, 8vw, 8rem) 0;
}

/* Schwarzer Full-Width-Artikel */
.black-band {
  background: #000;
  padding: clamp(4rem, 8vw, 8rem) 0;
}

/*============Spacer==========*/
.ce-spacer {
  display: none;
}

@media (min-width: 769px) {
  .ce-spacer {
    display: block;
  }

  .spacer-s { width: 10%; }
  .spacer-m { width: 20%; }
  .spacer-l { width: 30%; }
}


.parallax-section2 {
  --parallax-headline-background-color: transparent;
}

/*======OWN MODAL========*/
/* =========================================================
   AUTO MODAL – BASIS
   ========================================================= */

.auto-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;

  align-items: center;
  justify-content: center;
}

.auto-modal.active {
  display: flex;
}

/* =========================================================
   OVERLAY
   ========================================================= */

.auto-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* =========================================================
   MODAL BOX
   ========================================================= */

.auto-modal-content {
  position: relative;
  z-index: 1;

  max-width: 600px;
  width: calc(100% - 2rem);

  background: #212121;
  color: #fff;

  padding: 2.5rem;
  border-radius: 12px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   CLOSE BUTTON (Material Icons)
   ========================================================= */

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;

  background: none;
  border: none;
  padding: 0;

  color: #aaa;
  cursor: pointer;
}

.close-modal:hover {
  color: var(--mateColor4, #ff2aa1);
}

.close-modal .material-icons {
  font-size: 30px;
  line-height: 30px;
}

/* =========================================================
   TYPO
   ========================================================= */

.auto-modal-content h2 {
  margin-top: 0;
}

.auto-modal-content p {
  margin-bottom: 0;
}

/* Text im Modal auswählbar erzwingen */
.modal-content,
.modal-content *,
.auto-modal-content,
.auto-modal-content * {
  -webkit-user-select: text !important;
  user-select: text !important;
}

/* Markierung: Hintergrund = mateColor4, Text = schwarz */
.modal-content ::selection,
.auto-modal-content ::selection {
  background: var(--mateColor4) !important;
  color: #000 !important;
}

/* Firefox */
.modal-content ::-moz-selection,
.auto-modal-content ::-moz-selection {
  background: var(--mateColor4) !important;
  color: #000 !important;
}


/*=======Float Mailto link======*/

.mailto-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.mailto-float img {
  width: 130px;          /* Größe nach Geschmack */
  height: auto;
  display: block;
  cursor: pointer;
}

/* optional: Hover-Effekt */
.mailto-float:hover img {
  transform: scale(1.05);
}
