@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');
h1,
h2,
p,
a,
button {
  margin: 0;
  padding: 0;
}

/* Grundlegendes Styling bleibt gleich */
html,
body {
  height: 100%;
  font-family: 'Noto Serif', sans-serif;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Minimum height set to viewport height */
  overflow: hidden;
}

.page-container-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  background-color: rgb(211, 211, 211);
}

.header-container {
  background-color: #ffffff;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
    rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

.header-size {
  display: flex;
  justify-content: center;
}

.header-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-kontakt {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-kontakt .kontakt-text {
  display: block;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.header-kontakt-button .kontakt-button {
  align-items: center;
  background-color: #17628a;
  border: 0;
  border-radius: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 10%;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 600;
  justify-content: center;
  line-height: 20px;
  max-width: 480px;
  min-height: 40px;
  min-width: 0px;
  overflow: hidden;
  padding: 0px 20px;
  text-align: center;
  touch-action: manipulation;
  transition: background-color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s,
    box-shadow 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s,
    color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
}

header button:active {
  background: #09223b;
  color: rgb(255, 255, 255, 0.7);
}

header button:disabled {
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.3);
}

.mobile-nav a {
  color: black; /* Textfarbe des Links */
  text-decoration: none; /* Entfernt den Unterstrich */
  display: block;
}

.mobile-nav article {
  text-align: center;
}

.main-content {
  font-family: 'Noto Serif', sans-serif;
  flex: 1;
}

footer {
  display: flex;
  justify-content: space-between;
  font-family: 'Noto Serif', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #6c7a89;
  color: white;
  height: fit-content;
  box-shadow: rgba(50, 50, 93, 0.25) 0px -2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px -1px 3px -1px;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: justify-start;
  background-color: #6c7a89;
  width: 100%;
}

.footer-column1 {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 5vh;
  margin-left: calc(20% + 7px);
}

.footer-column2 {
  display: flex;
  gap: 2rem;
  margin-right: calc(20% - 10px);
  margin-top: 5vh;
  margin-bottom: 20px;
}

.footer-column2 a {
  color: rgb(255, 255, 255); /* Ändert die Textfarbe des Links auf Weiß */
  text-decoration: none; /* Entfernt den Unterstrich */
}

.footer-column2 a:hover {
  color: #084764; /* Optional: Ändert die Farbe beim Hover */
  text-decoration: underline; /* Optional: Fügt den Unterstrich beim Hover wieder hinzu */
}

.footer-column2 .label-produkte:hover,
.footer-column2 .label-dienstleistung:hover {
  color: rgb(255, 255, 255); /* Ändert die Textfarbe des Links auf Weiß */
  text-decoration: none; /* Entfernt den Unterstrich */
}

.ul-nostyle {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.ul-nostyle li {
  padding-bottom: 10px;
  text-align: left;
}

.ul-nostyle li:last-child {
  padding-bottom: 0;
}

.label-homepage,
.label-produkte,
.label-dienstleistung {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.last-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-color: #6c7a89;
  border-top: 0.1rem solid black;
  min-height: 50px;
}

/* Hamburger Menü Styles */
.hamburger {
  display: none; /* Standardmäßig unsichtbar */
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background-color: black;
  margin-bottom: 4px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Handys (Smartphones) */
@media only screen and (max-width: 767px) {
  a,
  p {
    font-size: 16px;
  }

  .page-container-header,
  .logo-other,
  .main-item-badumbau a:first-of-type,
  .main-item-hausnotruf a:first-of-type,
  .desktop-main-hausnotruf,
  .desktop-main-badumbau,
  .submenu-points-all-container,
  .desktop-kontakt {
    display: none;
  }

  header {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
      rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
  }

  .header-container {
    position: fixed; /* Fixiert den Header */
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 100; /* Normaler z-index für den Header */
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
      rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
  }

  .header-size {
    justify-content: space-between;
    margin: 0 10%;
  }

  .hamburger {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease; /* Sanfte Animation beim Ändern der Position */
  }

  .hamburger.active {
    z-index: 1010; /* Über der Menüleiste */
    top: 0; /* Abstand von oben */
  }

  header .hamburger.active span {
    background-color: black; /* Farbe des X */
    transition: all 0.3s ease;
    z-index: 1; /* Über der Menüleiste */
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    background-color: whitesmoke;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    transform: translateX(-100%);
    transition: all 0.5s ease;
    width: 100vw;
    height: 100dvh;
    padding: 15dvh 0 0 0;
    display: grid;
    grid-template-rows: repeat(4, 4vh);
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4rem;
  }

  .mobile-main-hausnotruf,
  .mobile-main-badumbau {
    display: flex;
    align-items: center;
  }

  .main-item-badumbau p:first-of-type,
  .main-item-hausnotruf p:first-of-type,
  .main-item a {
    padding: 0;
    margin-left: 1.5rem;
    text-align: left;
    font-size: 1.275rem;
  }

  .main-item-hausnotruf.open .submenu-points-hausnotruf,
  .main-item-badumbau.open .submenu-points-badumbau {
    display: block;
    background-color: white;
    width: 100vw;
    list-style-type: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 0;
    text-align: left;
    overflow: hidden;
    box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.45) inset;
    z-index: 1;
  }

  .main-item-hausnotruf.open .submenu-points-hausnotruf > a,
  .main-item-badumbau.open .submenu-points-badumbau > a {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Platz zwischen Text und Pfeil */
    padding-right: 0.625rem; /* Abstand für den Pfeil rechts */
    color: #084764;
    font-size: 1.275rem;
  }

  /* Wenn nur einer der Menüpunkte geöffnet ist, rutschen die anderen Menüpunkte um 20vw nach unten */
  .main-item-hausnotruf.open ~ .main-item,
  .main-item-hausnotruf.open ~ .main-item-badumbau,
  .main-item-badumbau.open ~ .main-item {
    transition: all 0.2s ease;
    margin-top: 8vh;
  }

  /* Wenn beide Menüpunkte geöffnet sind, rutschen die anderen Menüpunkte um 40vw nach unten */
  .mobile-nav.both-open .main-item-hausnotruf.open ~ .main-item,
  .mobile-nav.both-open .main-item-badumbau.open ~ .main-item {
    transition: all 0.2s ease;
    margin-top: 16vh;
  }

  .main-item,
  .main-item-badumbau,
  .main-item-hausnotruf {
    position: relative;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
  }

  .main-item-hausnotruf.open .submenu-points-hausnotruf a,
  .main-item-badumbau.open .submenu-points-badumbau a {
    margin: 0.5rem 0 0.5rem 7dvw;
  }

  .submenu-points-hausnotruf,
  .submenu-points-badumbau {
    display: none;
  }

  .arrow {
    display: none !important;
  }

  .mobile-arrow-down {
    display: none;
  }

  .mobile-arrow {
    margin-left: 1rem;
    width: 0;
    height: 0;
    border-left: 0.3125rem solid transparent;
    border-right: 0.3125rem solid transparent;
    border-top: 0.3125rem solid black;
  }

  .main-item-hausnotruf.open .mobile-arrow,
  .main-item-badumbau.open .mobile-arrow {
    transform: rotate(
      -90deg
    ); /* Dreht den Pfeil nach oben, wenn das Submenü geöffnet ist */
  }

  .mobile-nav.show {
    transform: translateX(0); /* Menü anzeigen, wenn es aktiv ist */
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo-footer-other {
    display: none;
  }

  .footer-container {
    gap: 20px;
  }

  .footer-column1,
  .footer-column2 {
    padding: 20px 0;
    margin: 0;
    gap: 20px;
    font-size: 8px;
  }

  .footer-column1 a,
  .footer-column2 a {
    font-size: 12px;
  }

  .last-footer {
    gap: 25%;
    font-size: 8px;
  }

  .rechtliche-links {
    width: 50%;
    margin-right: 2%;
  }

  .rechtliche-links a {
    margin-bottom: 7%;
    font-size: 12px;
    padding: 5px;
    margin-left: 20px;
  }

  .text-footer {
    margin-left: 2%;
  }

  .text-footer p {
    font-size: 12px;
  }
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Tablets und Laptops */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  a,
  p {
    font-size: 1rem;
  }

  .logo-other,
  .main-item-badumbau a:first-of-type,
  .main-item-hausnotruf a:first-of-type,
  .desktop-main-hausnotruf,
  .desktop-main-badumbau,
  .submenu-points-all-container,
  .desktop-kontakt {
    display: none;
  }

  .page-container-header {
    padding: 0.25rem;
  }

  .page-container-header p {
    font-size: 0.875rem;
  }

  header {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
      rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
  }

  .header-container {
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 100; /* Normaler z-index für den Header */
  }

  .header-size {
    justify-content: space-between;
    margin: 0 10%;
  }

  .hamburger {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease; /* Sanfte Animation beim Ändern der Position */
  }

  .hamburger.active {
    z-index: 1010; /* Über der Menüleiste */
    top: 0; /* Abstand von oben */
  }

  header .hamburger.active span {
    background-color: black; /* Farbe des X */
    transition: all 0.3s ease;
    z-index: 1; /* Über der Menüleiste */
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    background-color: whitesmoke;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    transform: translateX(-100%);
    transition: all 0.8s ease;
    width: 100vw;
    height: 100dvh;
    padding: 15vh 0;
    display: grid;
    grid-template-rows: repeat(4, 4vh);
    justify-content: flex-start;
    align-items: flex-start;
    gap: 50px;
  }

  .arrow-down {
    margin-left: 10px;
    margin-bottom: 3px;
    border: solid black;
    border-width: 0 1px 1px 0;
    display: inline-block;
    justify-content: center;
    align-items: center;
    padding: 4px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
  }

  .mobile-main-hausnotruf,
  .mobile-main-badumbau {
    display: flex;
    align-items: center;
  }

  .main-item-badumbau p:first-of-type,
  .main-item-hausnotruf p:first-of-type,
  .main-item a {
    padding: 0;
    margin-left: 1.5rem;
    text-align: left;
  }

  .main-item-badumbau a,
  .main-item-hausnotruf a,
  .main-item a {
    margin-left: 3vw;
    text-align: left;
  }

  .main-item-hausnotruf.open .submenu-points-hausnotruf,
  .main-item-badumbau.open .submenu-points-badumbau {
    display: block;
    background-color: white;
    width: 100vw;
    list-style-type: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 0;
    text-align: left;
    overflow: hidden;
    box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.45) inset;
    z-index: 1;
    margin-top: 3vw;
  }

  .main-item-hausnotruf.open .submenu-points-hausnotruf > a,
  .main-item-badumbau.open .submenu-points-badumbau > a {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Platz zwischen Text und Pfeil */
    padding-right: 20px; /* Abstand für den Pfeil rechts */
    margin: 3vw;
  }

  /* Wenn nur einer der Menüpunkte geöffnet ist, rutschen die anderen Menüpunkte um 20vw nach unten */
  .main-item-hausnotruf.open ~ .main-item,
  .main-item-hausnotruf.open ~ .main-item-badumbau,
  .main-item-badumbau.open ~ .main-item {
    transition: all 0.2s ease;
    margin-top: 10vh;
  }

  /* Wenn beide Menüpunkte geöffnet sind, rutschen die anderen Menüpunkte um 40vw nach unten */
  .mobile-nav.both-open .main-item-hausnotruf.open ~ .main-item,
  .mobile-nav.both-open .main-item-badumbau.open ~ .main-item {
    transition: all 0.2s ease;
    margin-top: 20vh;
  }

  .main-item,
  .main-item-badumbau,
  .main-item-hausnotruf {
    position: relative;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
  }

  .main-item-hausnotruf.open .submenu-points-hausnotruf a,
  .main-item-badumbau.open .submenu-points-badumbau a {
    margin-left: 7vw;
  }

  .submenu-points-hausnotruf,
  .submenu-points-badumbau {
    display: none;
  }

  .arrow {
    display: none !important;
  }

  .mobile-arrow-down {
    display: none;
  }

  .mobile-arrow {
    margin-left: 1rem;
    width: 0;
    height: 0;
    border-left: 0.3125rem solid transparent;
    border-right: 0.3125rem solid transparent;
    border-top: 0.3125rem solid black;
  }

  .main-item-hausnotruf.open .mobile-arrow,
  .main-item-badumbau.open .mobile-arrow {
    transform: rotate(
      -90deg
    ); /* Dreht den Pfeil nach oben, wenn das Submenü geöffnet ist */
  }

  .mobile-nav.show {
    transform: translateX(0); /* Menü anzeigen, wenn es aktiv ist */
  }

  .logo-footer-mobile {
    display: none;
  }

  .footer-column1,
  .footer-column2 {
    margin-left: 15%;
    margin-right: 15%;
  }

  .rechtliche-links {
    margin-left: 20px;
  }
}

/* Desktops */
@media only screen and (min-width: 1025px) {
  html,
  body {
    font-size: 18px;
  }

  .logo-mobile,
  .mobile-main-item,
  .mobile-nav,
  .mobile-arrow-down,
  .logo-footer-mobile {
    display: none;
  }

  .page-container-header {
    padding: 0.25rem;
  }

  .page-container-header p {
    font-size: 0.875rem;
  }

  .arrow-down {
    margin-left: 10px;
    margin-bottom: 3px;
    border: solid black;
    border-width: 0 1px 1px 0;
    display: inline-block;
    justify-content: center;
    align-items: center;
    padding: 4px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
  }

  header {
    padding: 0.3vw 0 0 0;
    z-index: 1000;
  }

  .header-size {
    align-items: center;
    justify-content: space-evenly;
    margin: 0 15%;
  }

  .header-size a {
    text-decoration: black underline;
    color: black;
  }

  .header-logo {
    display: flex;
    justify-content: center;
  }

  .submenu-points-all-container {
    display: none;
    background-color: rgb(236, 234, 234);
    border-bottom: 0.2rem solid rgb(241, 228, 228);
  }

  .submenu-points-all {
    margin-top: 0.4rem;
    margin-left: 34.5%;
    padding: 0 0 0.5rem 0;
  }

  .submenu-points-all a {
    text-decoration: black underline;
    color: #084764;
  }

  a.mobile-submenu-item {
    display: none !important;
  }

  .footer {
    margin: 0 13%;
  }

  .footer-container {
    width: 100%;
  }

  .footer-column1,
  .footer-column2 {
    margin-left: 15%;
    margin-right: 15%;
    font-size: 14px;
  }

  .last-footer {
    gap: 25%;
    font-size: 14px;
  }

  .rechtliche-links {
    margin-right: 17.5%;
    width: 25%;
  }

  .rechtliche-links a {
    font-size: 14px;
    text-align: left;
    margin-right: 8%;
  }
}
