html {
  scroll-behavior: smooth;
}

/* ===== Seite fix links und rechts halten ===== */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}


/* Scroll to Top -Icon */
.scrollToTop-icon {
  background-image: url(/images/Template/go-to-top.svg);
  background-size: 25px 25px;
}




/* Telefon- und Mail-Icon im Hauptmenü etwas absenken */
#wrapper-top-menu a[href^="tel:"] img,
#wrapper-top-menu a[href^="mailto:"] img {
  position: relative;
  top: 6px;
}


/* ===== Fixer Header ===== */
#wrapper-top-menu {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  width: 100%;
  z-index: 9999;
  transition: none;                /* wird erst nach dem ersten Scroll aktiviert */
  will-change: top;
}
#wrapper-top-menu.scrolled {
  transition: top 0.45s ease-in-out;
}

/* Versteckt (runter scrollen) – komplett raus aus dem Viewport */
#wrapper-top-menu:not(.show-top) {
  top: -120px; /* etwas größer als Headerhöhe, damit sicher weg */
}
/* Sichtbar (hoch scrollen / initial) */
#wrapper-top-menu.show-top {
  top: 0;
}

/* Spacer (wird per JS direkt nach dem Header eingefügt) */
#header-spacer { height: 0; }


/* =========================================
   CUT & COLORS – LOGO MIT SCROLL-EFFEKT
   ========================================= */

:root {
    --logo-max: 80px; /* Größe ganz oben */
    --logo-min: 30px; /* Größe beim Scrollen */
}

/* Grundzustand des Logos */

#wrapper-top-menu [data-position="Main-Logo"] img,
#wrapper-top-menu [data-position="main-logo"] img,
#wrapper-top-menu .main-logo img,
#wrapper-top-menu .module.main-logo img {
    display: block;

    width: auto !important;
    height: var(--logo-min) !important;

    max-width: 100% !important;

    transition: height 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Großes Logo am Seitenanfang */

body.at-top #wrapper-top-menu [data-position="Main-Logo"] img,
body.at-top #wrapper-top-menu [data-position="main-logo"] img,
body.at-top #wrapper-top-menu .main-logo img,
body.at-top #wrapper-top-menu .module.main-logo img {
    height: var(--logo-max) !important;
}

/* Kleines Logo beim Scrollen */

body:not(.at-top) #wrapper-top-menu [data-position="Main-Logo"] img,
body:not(.at-top) #wrapper-top-menu [data-position="main-logo"] img,
body:not(.at-top) #wrapper-top-menu .main-logo img,
body:not(.at-top) #wrapper-top-menu .module.main-logo img {
    height: var(--logo-min) !important;
}


/* ===== (Optional) Dein bestehendes Top-Menü-Layout – wie gehabt ===== */

/* Alle Module in der Position mainmeu-top nebeneinander darstellen */
[data-position="mainmeu-top"] {
  display: flex;
  justify-content: center; /* <-- Zentrierung horizontal */
  align-items: center;
  gap: 15px; /* Abstand zwischen den Modulen */
}

/* Module selbst ohne zusätzliche Block-Umbrüche */
[data-position="mainmeu-top"] .tck-module {
  margin: 0;
}

/* Dropdown-Optik wie Menüpunkt */
[data-position="mainmeu-top"] select {
  padding: 6px 12px;
  font-family: inherit;
  font-weight: 400;
  border: none;
  background: transparent;
  color: inherit;
  height: 40px; /* an Menüleiste anpassen */
  cursor: pointer;
}

/* Hover-/Fokus-Effekt passend zum Menü */
#mainmeu-top select:focus,
#mainmeu-top select:hover {
  outline: none;
  background-color: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
}

[data-position="mainmeu-top"] label {
  text-transform: uppercase;  /* Großbuchstaben */
  color: #a6a6a6;              /* Schriftfarbe */
  margin-right: 5px;           /* Abstand zum Dropdown */
}





/* ==========================================================
   MOBILE HAEDER
   ========================================================== */


/* ==========================================================
   MOBILE HEADER + CTA
   ========================================================== */

/* Variablen */
:root{
  --m-offset: 0px;      /* wird per JS gesetzt: CTA-Höhe (TOP), sonst 0 */
  --m-logo-max: 60px;  /* Logo-Höhe ganz oben */
  --m-logo-min: 35px;   /* Logo-Höhe im Scrollzustand */
}

/* ========== CTA-Bar ganz oben ========== */
/*#wrapper-Super-Top-call-to-Action-Mobile{
  position: fixed;
  top: 0; left: 0; right: 0;
  /*z-index: 10020;  /* über dem Mobile-Header */
  /*transition: transform .25s ease, opacity .25s ease;
  will-change: transform, opacity;
}*/

/* CTA-Inhalt: keine Zufallsmargins */
#wrapper-Super-Top-call-to-Action-Mobile p{
  margin: 0;
}

/* Sobald NICHT ganz oben: CTA ausblenden */
body.m-topbar-hidden #wrapper-Super-Top-call-to-Action-Mobile{
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* ========== Mobiler Header (unter CTA “ankleben”) ========== */
#wrapper-Super-Top-Menu{
  position: fixed;
  top: var(--m-offset);  /* <- Abstand = CTA-Höhe im TOP-Zustand */
  left: 0; right: 0;
  width: 100%;
  z-index: 10010;        /* unter CTA */
  transition: none;      /* erst nach Scroll animieren */
  will-change: top;
}

/* Transition aktivieren, sobald gescrolled wurde */
#wrapper-Super-Top-Menu.m-scrolled{
  transition: top .28s ease-in-out;
}

/* Runterscrollen -> Header ausblenden (aus dem Viewport fahren) */
#wrapper-Super-Top-Menu:not(.m-show-top){
  top: calc(var(--m-offset) - 120px); /* sicher raus */
}

/* Sichtbar (hochscrollen / initial) */
#wrapper-Super-Top-Menu.m-show-top{
  top: var(--m-offset);
}

/* Optionaler Spacer (falls genutzt) */
#header-spacer-mobile{ height: 0; }

/* ========== MOBILES LOGO – skalieren (erzwingt Greifen) ========== */
/* Empfohlen: Modul-Klassensuffix im Logo-Modul: " mobile-logo" (mit Leerzeichen) */
#wrapper-Super-Top-Menu .mobile-logo img,
#wrapper-Super-Top-Menu [data-position="mobile-Logo"] img,
#wrapper-Super-Top-Menu [data-position="mobile-logo"] img{
  height: var(--m-logo-min) !important;   /* klein im Scrollzustand */
  width: auto !important;
  max-height: none !important;
  display: block;
  transition: height .45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ganz oben -> groß */
body.m-at-top #wrapper-Super-Top-Menu .mobile-logo img,
body.m-at-top #wrapper-Super-Top-Menu [data-position="mobile-Logo"] img,
body.m-at-top #wrapper-Super-Top-Menu [data-position="mobile-logo"] img{
  height: var(--m-logo-max) !important;
}

/* P-/Wrapper-Abstände im Logo-Modul neutralisieren (verhindert Restabstände) */
#wrapper-Super-Top-Menu .mobile-logo p,
#wrapper-Super-Top-Menu [data-position="mobile-Logo"] p,
#wrapper-Super-Top-Menu [data-position="mobile-logo"] p{
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

/* =========================================
   STARTSEITE
   ========================================= */
.cc-startseite .sppb-row-container {
    padding-left: 0;
    padding-right: 0;
}



/* =========================================
   Filialübersicht
   ========================================= */

/* Bild und Text nebeneinander */
.filialen-ansicht .blog-item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #F3F3F3;
  color: #333333;
  border: none;
  outline: none;
}

/* Jeder zweite Beitrag: Bild rechts */
.filialen-ansicht .blog-item:nth-child(even) {
  flex-direction: row-reverse;
}

/* Bildbereich */
.filialen-ansicht .blog-item > .item-image {
  flex: 0 0 50%;
  width: 50%;
  float: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: none;
  outline: none;
}

.filialen-ansicht .blog-item > .item-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Alten Bildrahmen deaktivieren */
.filialen-ansicht .blog-item > .item-image::after {
  content: none;
}

/* Textbereich: immer deckend hellgrau */
.filialen-ansicht .blog-item > .item-content {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  padding: 35px;
  background: #F2F2F2;
  color: #333333;
  border: none;
  outline: none;
}

/* Nur Abstände der Bundesland-Überschrift */
/*.filialen-ansicht .filialen-bundesland-title {
  margin: 0;
  padding: 35px 0;
}*/

.filialen-ansicht .filialen-bundesland {
  margin: 0;
  padding: 0;
}

/* Mobil: immer Bild oben und Text darunter */
@media (max-width: 767px) {
  .filialen-ansicht .blog-item,
  .filialen-ansicht .blog-item:nth-child(even) {
    flex-direction: column;
  }

  .filialen-ansicht .blog-item > .item-image {
    flex: auto;
    width: 100%;
  }

  .filialen-ansicht .blog-item > .item-image img {
    height: auto;
  }

  .filialen-ansicht .blog-item > .item-content {
    padding: 25px;
  }
}




/* =========================================
   CUT & COLORS – FLYOUT MENU
   ========================================= */

/* Filiallinks */

#Main-Menu li.cc-filiale > a.maximenuck {
    display: block;
    box-sizing: border-box;
    background-color: #222222;
    color: #DDDDDD;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.5rem 0.75rem !important;
    transition: background-color 0.2s ease,
                color 0.2s ease;
}

/* Hover-Effekt */

#Main-Menu li.cc-filiale > a.maximenuck:hover {
    background-color: #E60020;
    color: #FFFFFF;
}

/* Abstände der Filialflächen */

#Main-Menu li.cc-filiale {
    padding-left: 0 !important;
    margin: 0 0 0.375rem 0 !important;
}

/* Einrückung der dritten Menüebene entfernen */

#Main-Menu li.nodropdown > div.floatck {
    margin: 0 !important;
}



/* =========================================
   MH – FIXIERTER HINTERGRUND
   ALTERNATIVE FÜR MOBILE BROWSER
   ========================================= */



/*body::before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;

    background-image: url('/images/Template-CuC/MH-Web-Backround.svg');
    background-size: 100% auto;
    background-position: center bottom;
    background-repeat: no-repeat;

    pointer-events: none;
    z-index: -1;
}*/



/* =========================================
   MONTSERRAT – LOKALE SCHRIFTEN
   ========================================= */

/* Montserrat Light – 300 */
@font-face {
    font-family: 'Montserrat';
    src: url('/images/MyFonts/Montserrat-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Montserrat Regular – 400 */
@font-face {
    font-family: 'Montserrat';
    src: url('/images/MyFonts/Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Montserrat Medium – 500 */
@font-face {
    font-family: 'Montserrat';
    src: url('/images/MyFonts/Montserrat-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Montserrat Bold – 700 */
@font-face {
    font-family: 'Montserrat';
    src: url('/images/MyFonts/Montserrat-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   TYPOGRAFIE
   ========================================= */

/* Fließtext */
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: #333333;
}

/* Überschriften H1 bis H6 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Fettschrift und Hervorhebungen */
strong, b {
    font-weight: 700;
}



/* =========================================
   TYPOGRAFIE – DESKTOP
   ========================================= */

body {
    font-size: 1rem;
    line-height: 1.6;
}

h1 {
font-size: 2.5rem;
  line-height: 1.2;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.0rem;
    line-height: 1.25;
      margin-top: 1.3rem;
    margin-bottom: 0.6rem;
}

h3 {
    font-size: 1.8rem;
    line-height: 1.3;
}

h4 {
    font-size: 1.4rem;
}

h5 {
    font-size: 1.2rem;
}

h6 {
    font-size: 1rem;
}

/* =========================================
   TABLET – BIS 1024 PX
   ========================================= */

@media (max-width: 1024px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
}

/* =========================================
   SMARTPHONE – BIS 767 PX
   ========================================= */

@media (max-width: 767px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.1rem; }
}


/* =========================================
   MH – SVG ICONS
   ========================================= */

.MH-Icon {
    width: 1.2em;
    height: 1.2em;
    display: inline-block;
    vertical-align: -0.12em;
    object-fit: contain;
}





/* =========================================
   MH – ADRESSE MIT SVG ICON
   ========================================= */

.MH-Adresse {
    display: grid !important;
    grid-template-columns: 1.2em minmax(0, 1fr);
    column-gap: 0.4em;
    align-items: start;
    width: fit-content;
    max-width: 100%;

    /* Schrift wie regulärer Fließtext */
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    color: #333333;
}

/* SVG-Icon */
.MH-Adresse .MH-Icon {
    width: 1.2em !important;
    height: 1.2em !important;
    display: block !important;
    margin: 0 !important;
    margin-top: 0.2em !important;
    float: none !important;
}

/* Anschrift */
.MH-Adresse > div {
    min-width: 0;
    font-size: inherit;
    line-height: inherit;
}


/* =========================================
   MH – ÖFFNUNGSZEITEN
   ========================================= */

.MH-Zeiten {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 1em;
    row-gap: 0.25em;

    width: fit-content;
    max-width: 100%;

    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    color: #333333;
}

/* Hochgestellte Minuten */
.MH-Zeiten sup {
    font-size: 0.65em;
    vertical-align: super;
    line-height: 0;
}

/* Smartphone */
@media (max-width: 480px) {
    .MH-Zeiten {
        column-gap: 0.5em;
        font-size: 0.875rem;
    }
}


/* =========================================
   MH – COPYRIGHT FOOTER
   ========================================= */

.MH-Copyright {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: #333333;
    text-align: center;
}




