/* ========================
   Globale Browser-Defaults
======================== */
:root {
    accent-color: #e53935;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

/* Anker-Sprünge unter den Sticky-Header schieben */
:target,
h1, h2, h3,
.h1, .h2, .h3 {
    scroll-margin-top: 100px;
}

.h3, a, body, h3, p {
    font-style: normal;
}

.iconAccent a, .iconAccent i:before {
    display: inline-block;
}

.proContra .contra:before,
.proContra .pro:before {
    font-weight: 700;
    font-size: 1.25em;
    vertical-align: bottom;
}

#mmenu,
#mmenu #mmenu_middle {
    background: #141414 !important;
}

/* ========================
   Schriftarten
======================== */
@font-face {
    font-family: chaneyregular;
    src: url('/files/cto_layout/fonts/chaney/chaney-regular-webfont.eot');
    src: url('/files/cto_layout/fonts/chaney/chaney-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('/files/cto_layout/fonts/chaney/chaney-regular-webfont.woff2') format('woff2'),
         url('/files/cto_layout/fonts/chaney/chaney-regular-webfont.woff') format('woff'),
         url('/files/cto_layout/fonts/chaney/chaney-regular-webfont.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Manrope;
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: local(''),
         url('/files/cto_layout/fonts/manrope-orig/Manrope-ExtraBold.woff2') format('woff2'),
         url('/files/cto_layout/fonts/manrope-orig/Manrope-ExtraBold.ttf') format('truetype');
}

@font-face {
    font-family: Manrope;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local(''),
         url('/files/cto_layout/fonts/manrope-orig/Manrope-Regular.woff2') format('woff2'),
         url('/files/cto_layout/fonts/manrope-orig/Manrope-Regular.ttf') format('truetype');
}

/* ========================
   Typografie & Farben
======================== */
body, p {
    font-family: Manrope;
    font-size: 18px;
    line-height: 1.7;
    color: #1a1a1a;
    text-wrap: pretty;
}

p {
    margin-bottom: 1.4em;
}

a {
    font-family: inherit;
    font-size: inherit;
}

.color-second, .second-color, body.funktion-one a {
    color: #6e50b3;
}

.proColor, .textPro {
    color: #34a853;
}

/* Headlines — fluid scaling mit H1/H2-Hierarchie
   Wirkt NUR auf normale Inline-H1/H2.
   Hero-Headlines (.hero-overlay h1, .ce_headerimage h1)
   bleiben durch ihre spezifischeren Selektoren unverändert.
*/
.h1, .h2, h1, h2 {
    font-family: chaneyregular;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.005em;
    margin-bottom: 0.5em;
    hyphens: manual;
    overflow-wrap: break-word;
    word-break: normal;
    text-wrap: balance;
}

h1, .h1 {
    font-size: clamp(1.4rem, 3.5vw + 0.6rem, 3.2rem);  /* ~25px → 58px */
    margin-top: 0.8em;
}

h2, .h2 {
    font-size: clamp(1.2rem, 2vw + 0.5rem, 2rem);  /* ~22px → 36px */
    margin-top: 1.8em;
}

/* Erstes H1/H2 im Newsreader-Block: kein Top-Margin
   (verhindert die "Luft" oben im Blog-Detail über dem Subtitle) */
.mod_newsreader > h1:first-child,
.mod_newsreader > h2:first-child,
.mod_newsreader > .layout_full > h1:first-child,
.mod_newsreader > .layout_full > h2:first-child {
    margin-top: 0;
}

.h3, h3 {
    font-size: 1.5rem;
    font-family: Manrope;
    line-height: 1.25;
    text-wrap: balance;
}

/* ========================
   Container Queries: Blog-Reader
   Headlines im Blog skalieren mit der Container-Breite.
   Maximum bewusst kleiner als bei Service-Pages,
   weil Blog-Titel oft länger sind.
======================== */
.mod_newsreader {
    container-type: inline-size;
    container-name: blogreader;
}

.mod_newsreader h1 {
    font-size: clamp(1.2rem, 4cqi + 0.3rem, 2.4rem);  /* ~22px → 43px */
}

.mod_newsreader h2 {
    font-size: clamp(1.05rem, 2.8cqi + 0.3rem, 1.7rem);  /* ~19px → 31px */
}

.twoColumns {
    columns: 2;
}

.threeColumns {
    columns: 3;
}

.break {
    display: block;
}

#footer a.phoneLink {
    font-size: 3rem;
    color: #f22;
}

.socialWrapperFooter a {
    font-size: 2rem;
    color: #f22;
    margin-right: 15px;
}

.backgroundTextAccent {
    background: #f22;
    color: #fff;
    border-radius: 20px;
    padding: 2px 10px;
}

.plC-25 {
    padding-left: 25px;
}

.prC-25 {
    padding-right: 25px;
}

#main p a {
    font-weight: 800;
}

.xbeforeHeadline h3:before {
    font-family: fontAwesome;
    content: "\f00d";
    color: #f22;
    margin-right: 10px;
}

.checkbeforeHeadline h3:before {
    font-family: fontAwesome;
    content: "\f00c";
    color: #34a853;
    margin-right: 10px;
}

.ce_headerimage.heightVH {
  height: calc(100vh - 163px) !important;
}

.iconAccent i:before {
    color: #f22;
    width: 28px;
    font-size: 1.3rem;
    margin-right: 40px;
    vertical-align: bottom;
}

.iconAccent .ce_iconbox_icon {
    margin-right: 10px;
}

ul.checkIcon {
    padding-left: 0;
}

ul.checkIcon li {
    list-style-type: none !important;
}

ul.checkIcon li:before {
    content: "\f00c";
    font-family: fontAwesome;
    color: green;
    font-size: 20px;
    margin-right: 6px;
}

.ce_testimonial .name {
    font-weight: 600;
    font-size: 1.2rem;
}

.ce_testimonial .additional {
    font-style: italic;
    font-size: 1rem;
    color: rgba(0, 0, 0, .2);
}

.mod_faqpage .h3, .mod_faqpage h3 {
    font-size: 1.5rem;
    margin-left: 1px;
}

.mod_faqpage section {
    width: 100%;
    padding: 10px 0;
}

.mod_faqpage .info {
    font-style: italic;
    font-size: .9rem;
    color: rgba(0, 0, 0, .4);
}

.privacy_buttons input {
    font-size: 1.1rem;
    font-weight: 400;
    font-family: Manrope;
    background: #00b67a !important;
}

.mod_privacy_optin .privacy_popup {
    top: 5%;
}

/* ========================
   Media Queries
======================== */

/* Tablets & kleine Desktops */
@media (max-width: 1024px) {
    .threeColumns {
        columns: 2;
    }

    #footer a.phoneLink {
        font-size: 2.25rem;
    }

    .ce_headerimage .subline {
        font-size: 1.5rem;
    }
}

/* Mobil – ab Tablet-quer */
@media (max-width: 768px) {
    body, p {
        font-size: 16px;
    }

    .mod_privacy_optin .privacy_popup {
        left: 50% !important;
        transform: translateX(-50%) !important;
        -webkit-transform: translateX(-50%);
    }

    .mod_quickmenu {
        display: block !important;
    }
}

/* Mobil hochkant */
@media (max-width: 767px) {
    .column.gridReverseB {
        order: -1;
    }

    .ce_headerimage .subline,
    .h3, h3 {
        font-size: 1.25rem;
    }
}

/* Sehr kleine Geräte */
@media (max-width: 600px) {
    .ce_headerimage .subline,
    .h3, h3 {
        font-size: 1.15rem;
    }

    .threeColumns,
    .twoColumns {
        columns: 1;
    }
}

/* Phones, klein */
@media (max-width: 424px) {
    .mod_privacy_optin h2 {
        font-size: 20px;
    }

    br,
    br:after {
        content: ' ';
    }
}

/* ========================
   Mobile-Menü Anpassungen
======================== */

/* Hintergrundfarbe des Menüs sicherstellen */
#mmenu, #mmenu #mmenu_middle {
    background: #141414 !important;
}

/* Schriftfarbe des Menüs sicherstellen */
#mmenu nav a {
    color: white !important;
}

/* Fix für das Burger-Menü */
.mmenu_trigger {
    background: transparent !important;
}

/* Linien im Burger-Menü auf Weiß setzen */
.mmenu_trigger .burger .burger_lines,
.mmenu_trigger .burger .burger_lines:after,
.mmenu_trigger .burger .burger_lines:before {
    background: white !important;
}

/* Falls es ein Hover- oder aktiver Zustand gibt, der das Menü rot färbt */
.mmenu_trigger:hover,
.mmenu_trigger:focus,
.mmenu_trigger:active {
    background: transparent !important;
}

/* Falls eine Border oder Box-Shadow das Problem ist */
.mmenu_trigger .burger {
    border: none !important;
    box-shadow: none !important;
}

/* Falls irgendwo eine Rot-Farbe definiert ist */
.mmenu_trigger, .mmenu_trigger .burger, .mmenu_trigger .burger_lines {
    color: white !important;
    border-color: white !important;
}

/* ========================
   Bild-Effekte
======================== */
.graues-bild {
    filter: grayscale(100%) !important;
    transition: filter 1.4s ease-in-out;
}

/* Sobald die Klasse .visible gesetzt wird, wird das Bild bunt */
.graues-bild.visible {
    filter: grayscale(0%) !important;
}

/* Falls das Bild nur den Schatten haben soll (ohne Graustufen) */
.shadow-effekt {
    box-shadow: 4px 6px 25px rgba(0, 0, 0, 0.25), 2px 3px 10px rgba(0, 0, 0, 0.15);
}

/* Falls beides kombiniert wird */
.graues-bild.shadow-effekt {
    filter: grayscale(100%) !important;
    box-shadow: 4px 6px 25px rgba(0, 0, 0, 0.25), 2px 3px 10px rgba(0, 0, 0, 0.15);
}

/* Sobald das Bild sichtbar wird & Schatten hat */
.graues-bild.visible.shadow-effekt {
    filter: grayscale(0%) !important;
    box-shadow: 4px 6px 25px rgba(0, 0, 0, 0.25), 2px 3px 10px rgba(0, 0, 0, 0.15);
}

/* ========================
   Buttons (Second Color)
======================== */
.second-button-color button,
.second-button-color input[type="submit"],
.second-button-color a.btn {
    background: #6e50b3 !important;
    color: white !important;
    border: none !important;
}

.second-button-color button:hover,
.second-button-color input[type="submit"]:hover,
.second-button-color a.btn:hover {
    background: rgba(110, 80, 179, 0.8) !important;
}

/* ========================
   Multi-Accordion (Handorgel) dunkel
======================== */
.mein-akkordeon.content-accordion {
  background-color: #000 !important;
}

.mein-akkordeon.content-accordion .handorgel__header__button {
  background-color: #111 !important;
  color: #fff !important;
  border-bottom: 1px solid #444 !important;
}

.mein-akkordeon.content-accordion .handorgel__header__button[aria-expanded="true"] {
  background-color: #222 !important;
}

.mein-akkordeon.content-accordion .handorgel__content {
  background-color: #222 !important;
  color: #eee !important;
  border-bottom: 1px solid #444 !important;
}

.mein-akkordeon.content-accordion .handorgel__content__inner {
  padding: 1rem 1.5rem;
}

.ce_fancy_divider {
    display: block!important;
}

/* ========================
   Quickmenü mobil
======================== */
@media (max-width: 1000px) {

  /* Quickmenü-Container */
  .mod_quickmenu {
    position: relative !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    top: -15px;
    right: 34px;
    height: auto !important;
    margin: 0 !important;
    padding: 0.3rem 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    z-index: 9999;
  }

  /* Quickmenü-Liste horizontal */
  .mod_quickmenu ul {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* Einzelne Buttons */
  .mod_quickmenu li.content {
    display: flex;
    margin: 0;
  }

  /* Link-Box Styling */
  .mod_quickmenu li.content a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    font-size: 1.2rem;
    text-decoration: none;
    color: #c40000;
    border-radius: 0.2rem;
    border: none;
  }

  /* Icons sichtbar, Text ausgeblendet */
  .mod_quickmenu li.content a span {
    display: none;
  }

  /* Icon-Größe + Farbe */
  .mod_quickmenu li.content a i {
    font-size: 0.8rem;
    color: #c40000 !important;
    line-height: 1;
    margin: 1;
  }

  /* Hover-Farbe */
  .mod_quickmenu li.content a:hover i {
    color: #9e2eb7 !important;
  }

  /* Body darf Überlauf anzeigen */
  body {
    overflow: visible !important;
  }

  #stickyheader {
    top: 0 !important;
  }

  .mod_quickmenu li a {
    width: 40px !important;
    max-width: 40px !important;
    min-width: 40px !important;
    transition: none !important;
  }

  .mod_quickmenu li a:hover {
    width: 40px !important;
    max-width: 40px !important;
    min-width: 40px !important;
    background-color: rgba(255,255,255,1) !important;
    color: inherit !important;
    border-color: rgb(100,100,100) !important;
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
  }
}

/* ========================
   Sticky-Header Desktop
======================== */
@media (min-width: 1000px) {
  #stickyheader {
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background-color 0.3s ease;
  }

  #stickyheader .header.cloned {
    background-color: transparent !important;
  }
}

/* ========================
   Hero (Header-Image-Variante)
======================== */
.hero-image-wrapper {
  position: relative;
  height: calc(100vh - 163px);
  overflow: hidden;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  max-width: none;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 48%;
  transform: translate(-50%, -50%);
  text-align: left;
  z-index: 1;
  padding: 1rem 2rem;
  color: #ffffff;
  pointer-events: none;
  max-width: 1200px;
  width: 90vw;
}

.hero-overlay h1 {
  font-size: 4rem;
  margin: 0 0 0.5rem;
  color: #ffffff !important;
  line-height: 1.2;
}

.hero-overlay p {
  font-size: 1.9rem;
  margin: 0;
  color: #ffffff;
}

/* Hero — Mobile-Optimierung */
@media (max-width: 768px) {
  .hero-image-wrapper {
    height: 77vh;
  }

  .hero-overlay {
    left: 45%;
    transform: translate(-50%, -50%);
    text-align: left;
    padding: 1rem;
    max-width: 350px;
    width: 90vw;
  }

  .hero-overlay h1 {
    font-size: 1.4rem;
  }

  .hero-overlay p {
    font-size: 1.0rem;
  }
}

/* ========================
   Diverses
======================== */
#cboxTitle {
  display: none !important;
}

form .my-fieldset {
    border: 0px solid #eee;
    border: none;
}

label.fett-label {
    font-weight: bold;
}

.honeypot {
  display: none;
}

/* Leeren Pageimage-Slider nur auf Mobile ausblenden
   (auf Desktop bleibt er als Spacer für den fixed Sticky-Header,
   damit der Header nicht den ersten Content überdeckt) */
@media (max-width: 999px) {
    #slider .mod_pageimage.block > .inside.height-xxs {
        display: none;
    }
}

/* ========================
   Accessibility: Reduzierte Bewegung (mild)
   Schaltet nur lange dekorative Animationen ab.
   Kurze UI-Transitions (Hover, Sticky-Header etc.) bleiben,
   damit die Seite nicht "tot" wirkt.
======================== */
@media (prefers-reduced-motion: reduce) {
    .graues-bild {
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}