/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

@font-face {
  font-family: 'Nadianne';
  src: url('../fonts/nadianne.woff2') format('woff2'),
       url('../fonts/nadianne.woff') format('woff'),
       url('../fonts/nadianne.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}



/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --black-color: hsl(220, 24%, 12%);
  --black-color-light: hsl(220, 24%, 15%);
  --black-color-lighten: hsl(220, 20%, 18%);
  --white-color: #fff;
  --body-color: hsl(220, 100%, 97%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
}

ul {
  list-style: none;
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

a {
  text-decoration: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
  z-index: var(--z-fixed);
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
}

.nav__logo, 
.nav__burger, 
.nav__close {
  color: var(--black-color);
}

.nav__logo span {
  font-family: 'Nadianne', serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: #592131;
}
.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-weight: var(--font-semi-bold);
  color: #592131;
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

.nav__logo i {
  font-weight: initial;
  font-size: 1.25rem;
}

/* Styling für das Logo-Bild */
.nav__logo-img {
  max-width: 230px; /* Max-Breite für das Bild */
  height: auto; /* Verhältnis beibehalten */
  margin-right: 0.5rem; /* Abstand zwischen Bild und Text */
  vertical-align: middle; /* Text und Bild auf einer Linie */
}

.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}

.nav__burger, 
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity .1s, transform .4s;
}

.nav__close {
  opacity: 0;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1118px) {
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top .4s, opacity .3s;
  }
  .nav__menu::-webkit-scrollbar {
    width: 0;
  }
  .nav__list {
    background-color: #F2F2F2;
    padding-top: 1rem;
  }
}

.nav__link {
  color: var(--black-color);
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color .3s;
}

.nav__link:hover {
  background-color: white;
}

/* Show menu */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}
.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__item {
  cursor: pointer;
}

.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform .4s;
}

.dropdown__link, 
.dropdown__sublink {
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  color: var(--black-color);
  background-color: white;
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-semi-bold);
  transition: background-color .3s;
}

.dropdown__link i, 
.dropdown__sublink i {
  font-size: 1.25rem;
  font-weight: initial;
}

.dropdown__link:hover, 
.dropdown__sublink:hover {
  background-color: #F2F2F2;
}

.dropdown__menu, 
.dropdown__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease-out;
}

/* Show dropdown menu & submenu */
.dropdown__item:hover .dropdown__menu, 
.dropdown__subitem:hover > .dropdown__submenu {
  max-height: 1000px;
  transition: max-height .4s ease-in;
}

/* Rotate dropdown icon */
.dropdown__item:hover .dropdown__arrow {
  transform: rotate(180deg);
}

/*=============== DROPDOWN SUBMENU ===============*/
.dropdown__add {
  margin-left: auto;
}

.dropdown__sublink {
  background-color: var(--black-color-lighten);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-inline: 1rem;
  }
}

/* For large devices */
@media screen and (min-width: 1118px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
  }
  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: .25rem;
  }
  .nav__link:hover {
    background-color: transparent;
  }

  .dropdown__item, 
  .dropdown__subitem {
    position: relative;
  }

  .dropdown__menu, 
  .dropdown__submenu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, top .3s;
  }

  .dropdown__link, 
  .dropdown__sublink {
    padding-inline: 1rem 3.5rem;
  }

  .dropdown__subitem .dropdown__link {
    padding-inline: 1rem;
  }

  .dropdown__submenu {
    position: absolute;
    left: 100%;
    top: .5rem;
  }

  /* Show dropdown menu */
  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 5.5rem;
    pointer-events: initial;
    transition: top .3s;
  }

  /* Show dropdown submenu */
  .dropdown__subitem:hover > .dropdown__submenu {
    opacity: 1;
    top: 0;
    pointer-events: initial;
    transition: top .3s;
  }
}

@media screen and (min-width: 1118px) {
  .nav__logo {
      display: flex;
      align-items: center; /* Bild und Text ausrichten */
      font-size: 1.25rem;
      color: #592131;/* Schriftfarbe */
      font-weight: var(--font-semi-bold);
      gap: 0.5rem; /* Abstand zwischen Bild und Text */
  }

  .nav__logo:hover {
      text-decoration: none; /* Keine Unterstreichung */
  }
}

/* Mobile Anpassung */
@media screen and (max-width: 1118px) {
  .nav__logo {
      flex-direction: row;
      align-items: center;
      font-size: 1.5rem; /* Größerer Schriftzug */
      gap: 0.5rem;
  }

  .nav__logo-img {
      max-width: 150px; /* Kleineres Logo für Mobilansicht */
  }
}



/*=============== FOOTER ===============*/
.footer {
   background-color: #fff;
   color: #592131;
   padding: 4rem 2rem 2rem;
   font-family: "Montserrat", sans-serif;
   border-top: 0.2rem solid #592131;
}

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Statt "center" nun "flex-start", damit alle oben beginnen */
  flex-wrap: wrap;
  max-width: 1120px;
  margin: 0 auto;
}



.footer__about, 
.footer__links, 
.footer__contact {
   flex: 1;
   text-align: center; /* Falls gewünscht */
   min-height: 150px; /* Mindesthöhe setzen, um Gleichmäßigkeit zu wahren */
   display: flex;
   flex-direction: column;
   justify-content: center;
}


.footer__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer__logo-image {
   width: 300px;
}

.footer__description {
   font-size: 0.9rem;
   line-height: 1.6;
   margin-bottom: 1.5rem;
}

.footer__title {
   font-size: 1.2rem;
   margin-bottom: 1rem;
   color: #592131;
   font-weight: bold;
}

.footer__logo-text {
  font-size: 1.6rem;
  font-weight: bold;
  margin-top: 0.5rem;
  font-family: 'Nadianne', serif;
  text-align: center;
}


.footer__list {
   list-style: none;
   padding: 0;
}

.footer__link {
   color: #592131;
   text-decoration: none;
   font-size: 0.9rem;
   transition: color 0.3s ease;
}

.footer__link:hover {
   color: var(--black-color);
}

.footer__contact i {
   font-size: 1rem;
   margin-right: 0.5rem;
   vertical-align: middle;
   color: #592131;
}

.footer__links {
    margin-top: 130px; /* An Logo-Höhe anpassen */
}

.footer__contact {
  margin-top: 100px; /* An Logo-Höhe anpassen */
}


/* Footer Bottom */
.footer__bottom {
  margin-top: 2rem;
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 1rem;
}

.footer__copyright {
  font-size: 0.9rem;
  color: #592131;
  margin-bottom: 0.5rem;
}

.footer__privacy-link {
  color: #592131;
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer__privacy-link:hover {
  text-decoration: underline;
}

.footer__credits {
  font-size: 0.9rem;
  color: #592131;
}

.footer__credits-link {
  color: #592131;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.footer__credits-link:hover {
  color: #a80000;
}

.footer__partners {
  text-align: center;
  margin: 2rem 0;
  margin-bottom: 5rem;
}

.footer__partners-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #592131;
}

.footer__partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap; /* Ermöglicht Umbruch für Smartphones */
}

.partner img {
  width: 520px; /* Standardbreite für größere Bildschirme */
  height: auto;
  object-fit: contain;
}

/* Smartphones: Logos untereinander mit 320px Breite */
@media (max-width: 768px) {
  .footer__partners-logos {
    flex-direction: column;
    gap: 1.5rem; /* Weniger Abstand für bessere Darstellung */
  }

  .partner img {
    width: 240px; /* Volle Breite für Smartphones */
    max-width: 100%; /* Falls der Bildschirm kleiner als 320px ist */
  }
}



/* Responsive Design */
@media screen and (max-width: 768px) {
   .footer__container {
      flex-direction: column;
      align-items: center;
   }
   .footer__about, 
   .footer__links, 
   .footer__contact {
      flex: 1 1 100%;
      text-align: center;
      margin-top: 0;
   }

   .footer__logo-text {
    text-align: center;
   }
}

/*=============== ZEITUNGSARTIKEL SECTION ===============*/
.bestattung-artikel {
  padding: 4rem 1rem;
  text-align: center;
  background-color: #f9f9f9;
}

.bestattung-artikel__title {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 2rem;
}

.bestattung-artikel__image {
  display: flex;
  justify-content: center;
}

.artikel-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive Anpassung */
@media screen and (max-width: 768px) {
  .bestattung-artikel__title {
      font-size: 1.8rem;
  }
}
