:root {
  --base-fs: clamp(0.9rem, calc(1rem + 0.1vw), 1.9rem);
  --fs-1: clamp(1rem, calc(1.15rem + 0.13vw), 1.23rem);
  --fs-2: clamp(1.25rem, calc(1.2rem + 0.25vw), 1.5rem);
  --fs-3: clamp(1.56rem, calc(1.48rem + 0.44vw), 2rem);
  --fs-4: clamp(1.95rem, calc(1.81rem + 0.71vw), 2.66rem);
}

/* :root {
  --
  --surface-

  --font-color-main: rgba(255, 255, 255, 0.72);
  --font-color-medium: rgba(255, 255, 255, 0.6);
  --font-color-disabled: rgba(0, 0, 0, 0.38);

  --font-on-primary-color-main: rgba(37, 37, 37, 0.871);
  --font-on-primary-color-dark-main: rgba(255, 255, 255, 0.87);
  --font-on-primary-color-dark-medium: rgba(255, 255, 255, 0.6);
  --font-on-primary-color-medium: rgba(37, 37, 37, 0.66);
  --font-on-primary-color-disabled: rgba(255, 255, 255, 0.38);

  --hover-
  --focus-
  --focus-color-solid: #424242;

  --background-color-disabled: rgba(255, 255, 255, 0.12);
  --background-color-level-4dp: rgba(255, 255, 255, 0.09);
  --background-color-level-16dp-solid: #fff;
  --background-color-card: var(--surface-color);
  --background-color-slight-emphasis: rgba(255, 255, 255, 0.05);

  --separator-

  --error-

  --slider-track-
  --switch-thumb-off-

  --primary-
  --primary-color-dark: #000;
  --primary-color-numeric: 179, 157, 219;
  --primary-color-raised-hover-solid: transparent;
  --primary-color-raised-focus-solid: #dbc5ff;

  --secondary-
  --secondary-color-hover-solid: #9200cc;
  --secondary-color-focus-solid: #9200cc;
  --secondary-container-
  --font-on-secondary-container-

} */
:root {
  --navbar-height: 120px;
}
:root[theme="light"] {
  /* Primärfarben: */
  /* --md-sys-color-primary: #9ac467; */
  --md-sys-color-primary: #336699;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #336699;
  --md-sys-color-on-primary-container: #ffffff;
  /* Sekundärfarben: */
  --md-sys-color-secondary: #9ACE5C; /* ja */
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #9ac467;
  --md-sys-color-on-secondary-container: #ffffff;
  /* Tertiärfarben: */
  --md-sys-color-tertiary: #4e4e4e;
  --md-sys-color-on-tertiary: #ffffff;
  --md-sys-color-tertiary-container: #4e4e4e;
  --md-sys-color-on-tertiary-container: #ffffff;
  /* Fehlerfarben: */
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-on-error: #ffffff;
  --md-sys-color-error-container: #ffdad6;
  --md-sys-color-on-error-container: #410002;
  /* Hintergrundfarben: */
  --md-sys-color-background: #ffffff; /* ja */
  --md-sys-color-on-background: #336699; /* ja */
  --md-sys-color-background-variant: #f3f5fa; /* ja */
  /* Oberflächenfarben: */
  --md-sys-color-surface: #DADFED;
  --md-sys-color-on-surface: #336699;
  --md-sys-color-surface-variant: #c3cfe6;
  --md-sys-color-on-surface-variant: #336699;
  --md-sys-color-inverse-surface: #2e3133;
  --md-sys-color-inverse-on-surface: #f0f0f3;
  --md-sys-color-inverse-primary: #006495;
  --md-sys-color-surface-tint: #336699;
  /* Schattierungen und Konturenfarben */
  --md-sys-color-scrim: #000000;
  --md-sys-color-shadow: #000000;
  --md-sys-color-outline: #72787e;
  --md-sys-color-outline-light: #fff;
  --md-sys-color-outline-variant: #c1c7ce;
}

@font-face {
  font-family: "Poppins light";
  font-display: swap;
  src: url("../fonts/poppins-light.woff2") format("woff2");
  font-display: fallback;
}
@font-face {
  font-family: "Poppins regular";
  font-display: swap;
  src: url("../fonts/poppins-regular.woff2") format("woff2");
  font-display: fallback;
}

body {
  font-family: "Poppins light", Helvetica, Arial, Lucida, sans-serif;
  font-size: var(--base-fs);
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}
:is(h1, h2, h3, .h1, .h2, .h3) {
  font-family: "Poppins regular", Helvetica, Arial, Lucida, sans-serif;
  overflow-wrap: break-word;
  margin-top: 0px;
}

h1,
.h1 {
  font-size: var(--fs-4);
  line-height: 1.2;
}

h2,
.h2 {
  font-size: var(--fs-3);
  line-height: 1.3;
}

h3,
.h3 {
  font-size: var(--fs-2);
  line-height: 1.4;
}

p {
  font-size: var(--fs-1);
  line-height: 1.8;
  overflow-wrap: break-word;
}

span {
    line-height: 1.4;
}

main a:not(:has(> .card-panel)):not(.btn) {
    color: var(--md-sys-color-on-surface);
    text-decoration: underline var(--md-sys-color-secondary) 3px;
}

.btn.filled, .filled.btn-small, .filled.btn-large {
    color: var(--md-sys-color-tertiary);
    background-color: var(--md-sys-color-secondary);
}

.btn.filled:hover, .filled.btn-small:hover, .filled.btn-large:hover {
    color: var(--md-sys-color-primary);
    background-color: 
color-mix(in srgb, var(--md-sys-color-secondary), var(--md-sys-color-on-secondary) 16%);
}

ul {
  text-align: left;
}

li::marker {
  color: var(--md-sys-color-secondary);
}

@media only screen and (max-width: 600px) {
  .brand-logo > img {
    height: 54% !important;
  }
}

@media only screen and (max-width: 992px) {
  footer,
  footer li {
    text-align: center;
  }
  .footer-links,
  .footer-links li {
    text-align: center !important;
  }
}
nav {
  background-color: #fff;
  
}

nav a {
    color: var(--md-sys-color-on-background);
}

nav .brand-logo {
  height: 100%;
  display: flex !important;
  justify-content: center;
  align-items: center;
  > span {
    font-size: 15px;
    margin-left: 30px;
  }
}

nav .brand-logo > span > img {
  height: 44px;
}

nav ul:not(.dropdown-content)>li>a {
    font-size: clamp(1rem, 1vw + 0.25rem, 1.2rem);
    color: var(--md-sys-color-on-background);
}

nav ul:not(.dropdown-content)>li>a:hover:not(.active) {
    background-color: var(--md-sys-color-primary) !important;
    color: #fff !important;
}

nav .dropdown-trigger.active {
    background-color: var(--md-sys-color-primary) !important;
    color: #fff;
}

nav .dropdown-trigger::after {
  content: "▾";
}

nav .dropdown-content li > a {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  &:hover {
    background-color: var(--md-ref-palette-primary70);
  }
}

/* Benutzerdefinierter Fokusrahmen */
nav .dropdown-trigger:focus-visible,
nav .dropdown-content:focus-visible {
  outline: none; /* Oder eine andere Farbe nach Wahl */
}

nav .collapsible .collapsible-header::after {
  content: "▾";
  width: auto;
}

nav .collapsible .active .collapsible-header::after {
  content: "▴";
}

nav .sidenav {
  position: relative;
  width: 100%;
  transform: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease-out;
  background-color: #fff;
  color: var(--md-sys-color-on-surface) !important;
}

nav .sidenav a {
    color: var(--md-sys-color-on-surface) !important;
    font-size: 1.2rem  !important;
    border-radius: 0px;
  }

nav .sidenav.active {
  height: auto;
  padding-bottom: 14px;
}

nav .sidenav li {
  width: 100%;
  > a {
    font-size: var(--base-fs);
    display: flex !important;
  }
}

nav .sidenav .collapsible-header {
  margin: 0 12px;
  border-radius: 0px;
  font-size: 1.2rem;
  &:hover {
    background-color: var(--md-sys-color-primary) !important;
    color: #fff !important;
  }
  .active {
    background-color: transparent !important;
  }
}

nav .active-link {
    background-color: var(--md-sys-color-primary);
    > a {
        color: var(--md-sys-color-on-primary) !important;
    }
    
}

nav .callbtn {
    position: absolute;
    right: 0px;
    top: 40vh;
    height: 50px;
    width: 50px;
    text-align: center;
    border-bottom-left-radius: 12px;
    border-top-left-radius: 12px;
    background-color: var(--md-sys-color-secondary);
    z-index: 999999;
}

header .hero_section {
    height: 370px;
    width: 100%;
    overflow: hidden;
    position: relative; 
    display: flex;
    justify-content: center;
    align-items: center;
}

header .hero_section > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px);
}

/* header .hero_section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 102, 153, 0.4); 
    mix-blend-mode: color; 
    pointer-events: none; 
    z-index: 1; 
} */

header .hero_section_content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Zentriert den Inhalt absolut */
    text-align: center;
    font-size: 18px;
    width: 90%;
    color: #fff;
}

header .hero_section_content .h1 {
    font-weight: bold;
    font-size: 50px;
    color: var(--md-sys-color-primary);
    text-shadow:  1px  1px 1px var(--md-sys-color-secondary),
                  1px -1px 1px var(--md-sys-color-secondary),
                 -1px  1px 1px var(--md-sys-color-secondary),
                 -1px -1px 1px var(--md-sys-color-secondary);
}

main {
  flex: 1 0 auto;
}

section {
  text-align: center;
  padding-bottom: 100px !important;
  padding-top: 100px !important;
}

section:nth-child(even) {
  background-color: var(--md-sys-color-background-variant);
}

section.category {
    background-color: var(--md-sys-color-primary);
    padding: 0px !important;
  }

  section.category .item {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    > span {
        display: none;
    }
  &:hover {
    cursor: pointer;
    background-color: var(--md-sys-color-secondary);
    filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, .5));
    color: #fff;
    > img {
        display: none;
    }
    > span {
        display: block;
    }
  }
}

  section.category img {
    width: 40%;
  }

section.about img {
  width: 80%;
  max-width: 300px;
}

section.service {
    padding: 0 20px;
  }

section.service img {
    width: 60%;
    max-width: 180px;
  }

section.contact {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

section.contact p {
  margin: 0;
}

section.contact a {
    color: #fff !important;
  }

section.contact img {
  width: 14vw;
  min-width: 150px;
  max-width: 200px;
  padding: 20px;
}

main .impressum-section dt {
    font-weight: bold;
    color: var(--md-sys-color-secondary);
    font-size: 1.2em;
}

main .impressum-section dd {
    margin-left: 0px;
    margin-bottom: 26px;
    font-size: 1em;
}

main .section.highlight {
    display: grid;
    place-items: center;
    padding: 10px;
    min-height: 30vh;
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

.card-panel {
    position: relative; /* Wichtig für die absolute Positionierung des Hintergrunds */
    min-height: 200px;
    cursor: pointer;
    color: var(--md-sys-color-on-background);
    transition: all 0.2s ease-in-out;
    border: 2px solid var(--md-sys-color-secondary);
}

.card-panel.big {
    padding: 0px;
    align-items: flex-end;
    min-height: 320px;
}

.card-panel:hover {
    transform: scale(1.04);
  }

  .card-panel.big .card-panel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
    -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
    filter: grayscale(100%);
    transition: filter 0.5s ease; /* Übergangseffekt */
    border-radius: 12px;
}

.card-panel.big:hover .card-panel-background {
    -webkit-filter: grayscale(0); /* Safari 6.0 - 9.0 */
    filter: grayscale(0);
}

.card-panel.big .card-panel-content {
    color: var(--md-sys-color-on-primary);
    position: relative;
    z-index: 2;
    background-color: var(--md-sys-color-secondary);
    width: 100%;
    border-radius: 12px;
}

.card-panel.big .card-panel-content h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0px;
}

.vhcenter {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-copyright {
  background-color: var(--md-sys-color-tertiary-container);
  ul li {
    display: inline-block;
  }
}
.page-footer {
  margin-top: 0;
  background-color: var(--md-sys-color-tertiary);
  color: var(--md-sys-color-on-tertiary);
  padding-top: 100px;
  border: none;
}
.page-footer a {
  color: var(--md-sys-color-secondary);
}

.footer-links,
.footer-links li {
  text-align: right;
}

.footer-logo img {
  width: 80%;
  max-width: 350px;
}

.footer-address p {
  margin: 10px;
  text-align: center;
}





.words:before {
    position: relative;
    display: inline-block;
    content: " ";
  }
  
  .words {
    position: relative;
    display: block;
    margin-bottom: 60px;
    width: 100%;
  }
  
  .words--3 span {
    -webkit-animation-duration: 7.5s;
    animation-duration: 7.5s;
  }
  
  .words--3 span:nth-child(2) {
    -webkit-animation-delay: 2.5s;
    animation-delay: 2.5s;
  }
  
  .words--3 span:nth-child(3) {
    -webkit-animation-delay: 5s;
    animation-delay: 5s;
  }
  
  .words span {
    position: absolute;
    left: 0px;
    overflow: hidden;
    -webkit-animation-delay: 0s;
    animation-delay: 0s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-name: flipWords;
    animation-name: flipWords;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    color: var(--secondary-color);
    font-size: 36px;
    font-weight: 600;
    line-height: 1.5em;
    opacity: 0;
    width: 100%;
  }
  
  @keyframes flipWords {
    0% {
      opacity: 0;
    }
    5% {
      opacity: 0;
      transform: translateY(-20px);
    }
    10% {
      opacity: 1;
      transform: translateY(0);
    }
    25% {
      opacity: 1;
      transform: translateY(0);
    }
    30% {
      opacity: 0;
      transform: translateY(20px);
    }
    80% {
      opacity: 0;
    }
    100% {
      opacity: 0;
    }
  }

  .mark {
    position: relative;
    display: inline-block;
    background: none;
    z-index: 1;
    width: 100%;
    padding: 4px;
  }
  
  .mark-stroke {
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    z-index: -1;
    overflow: hidden;
    margin: auto;
    padding: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke-width: 54px;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 800ms ease-in-out;
    will-change: stroke-dashoffset;
    pointer-events: none;
  }
  
  .mark-stroke:nth-child(even) {
    width: 105.5%;
    height: 104%;
    transform: skewX(-17deg);
    stroke: #86ac5a;
  }
  
  .mark-stroke:nth-child(odd) {
    width: 104%;
    transform: skewX(-12deg);
    stroke: #9ac667;
  }
  
  .mark > svg.animate {
    stroke-dashoffset: 0;
  }