/*
Theme Name: MRTZ FNCK
Author: AIW
Version: 1.0
Description: This is a new theme
*/

/* color: #315b7c; */

body {
  min-height: 100vh;
  color: #222;
  position: relative;
}

img {
  max-width: 100%;
  max-height: 100%;
}

.site-title {
  color: #222;
  margin-left: 40px;
  font-size: 30px;
}

.site-title:hover {
  color: #5092c4;
}

.custom-logo-link img {
  max-width: 50px; 
  height: 50px;
  margin-left: 50px;
  transition: transform 0.3s ease;
}

.custom-logo-link img:hover {
  transform: scale(1.1);
}

.website-logo img {
  height: 50px;
  width: 50px;
  transition: transform 0.3s ease;
}

.website-logo img:hover {
  transform: scale(1.1);
}

#backToHome {
  position: fixed;
  height: 50px;
  width: 50px;
  top: 200px; 
  right: 40px; 
  display: none; 
  background-color: transparent;
  color: white; 
  border: none; 
  cursor: pointer; 
  z-index: 10000; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  border-radius: 0;
}

#backTo img {
  vertical-align: middle;
  position: relative;
  transition: transform 0.3s ease;
}

#backToHome:hover {
  animation: bounceLeftRight 0.7s infinite;
}

@keyframes bounceLeftRight {
  0% {
    transform: translateX(0); /* Startposition (Mitte) */
}
50% {
    transform: translateX(-10px); /* Bewege nach links */
}
100% {
    transform: translateX(0); /* Zurück zur Mitte */
}
}

.container-fluid {
  flex-direction: row;
  align-items: center;
}

.nav-extra-menu {
  margin-right: 40px;
}

.my_extra_nav_class {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
}

.my_extra_nav_class li {
  margin-right: 20px;
  list-style: none;
}

.my_extra_nav_class li:last-child {
  margin-right: 0;
}

.my_extra_nav_class a {
  color: #222;
  text-decoration: none;
  font-size: 28px;
  display: flex;
  align-items: center;
}

.my_extra_nav_class a:hover {
  color: #5092c4;
  background-color: transparent;
}

.kachel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Genau 3 Spalten */
  /* grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); */
  gap: 10%;
  max-width: 60%;
  margin: 100px 20% 200px 20%;
  align-items: center;  /* Zentriert die Kacheln vertikal */
  padding: 20px;
}

.kachel-item {
  border: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.kachel-item:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  z-index: 2;
  cursor: pointer;
  background-color: #000; /* Hintergrund wird schwarz */
}

.kachel-img {
  width: 100%;
  height: 0;
  padding-top: 100%;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}

.kachel-img:hover {
  transform: scale(1.1);
  z-index: 2;
  cursor: pointer;
}

.kachel-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kachel-titel {
  position: absolute;
  bottom: 10px;
  left: 0;
  font-size: 18px;
  font-family: 'Raleway', sans-serif;
  font-weight: 200;
  text-transform: uppercase;
  text-align: left;
  margin-top: 10px;
  color: white;
  padding: 15px;
  width: 100%;
  opacity: 0; /* Der Titel ist zu Beginn unsichtbar */
  transition: opacity 0.3s ease, color 0.3s ease, background-color 0.3s ease;
  z-index: 100000;
}

.kachel-item:hover .kachel-titel {
  opacity: 1; /* Der Titel wird sichtbar beim Hover */
  color: #fff; /* Weißer Text beim Hover */
  background-color: rgba(0, 0, 0, 0.7); /* Der Hintergrund wird dunkler, wenn man hovert */
}

.kachel-item:hover .kachel-img img {
  filter: brightness(0.3); /* Bild wird dunkler, wenn man darüber hovert */
}

nav {
  height: 100px;
  margin-bottom: 100px;
}

.navbar {
  background-color: white !important;
}

.front-page-content {
  padding-bottom: 600px;
}

.page-content {
  margin: 0px auto;
  max-width: 1024px;
  font-family: 'Roboto', sans-serif;
  color: #222;
  padding: 100px 0px;
  padding-bottom: 400px;
  box-sizing: border-box;
}

.wp-block-cover {
  background-size: cover;
}

.seiten-heading {
  font-family: 'Raleway', sans-serif;
  color: #222;
  max-width: 600px;
  text-transform: uppercase;
  border-bottom: 2px solid #5092c4;
  padding-bottom: 10px;
}

.seiten-subheading {
  font-family: 'Raleway', sans-serif;
  text-transform: uppercase;
  color: #222;
  font-weight: 400;
  padding-bottom: 50px;
}

.seiten-content-heading {
  text-transform: uppercase;
  color: #222;
  font-weight: 600;
}

.stapel-left {
  padding-right: 40px;
}

#backToTop {
  position: fixed;
  height: 40px;
  width: 40px;
  bottom: 20px; 
  right: 20px; 
  display: none; 
  padding: 10px; 
  background-color: #fafafa;
  color: white; 
  border: none; 
  cursor: pointer; 
  z-index: 10000; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  border-radius: 0;
}

#backToTop img {
  vertical-align: middle;
  position: relative;
  transition: transform 0.3s ease;
}

#backToTop:hover img {
  animation: bounce 0.6s infinite;
}

@keyframes bounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

footer {
  width: 100% !important;
  height: 300px;
  position: absolute;
  bottom: 0;
  left: 0;
  justify-content: space-between;
  align-items: center;
  background-color: #222;
  color: white;
}

.footer-copyright {
  text-transform: uppercase;
  position: absolute;
  bottom: 0;
  left: 40px;
  color: white;
}

/* Impressum, Datenschutz, Kontakt */
.my_extra_footer_class {
  text-transform: uppercase;
  position: absolute;
  bottom: 0;
  right: 100px;
  text-decoration: none;
  padding: 0;
  display: flex;
}

.my_extra_footer_class li {
  margin-right: 60px;
  list-style: none;
}

.my_extra_footer_class li:last-child {
  margin-right: 0;
}

.my_extra_footer_class a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}

.my_extra_footer_class a:hover {
  color: #5092c4;
  background-color: transparent;
}

.spalten {
  display: flex;
  flex-wrap: nowrap;
}

/* ---------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------- */
/* RESPONSIVE DESIGN */
/* ---------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------- */

@media screen and (max-width: 1024px) and (min-width: 769px) {
  .container-fluid {
    display: flex;
    align-items: center;
    padding: 0 10vw;
  }

  .site-title {
    margin: 0;
  }

  .nav-extra-menu {
    margin: 0;
  }

  .my_extra_nav_class {
    display: flex;
    flex-direction: row !important;
    padding: 0; 
    margin: 0; 
    align-items: center; 
  }

  .my_extra_nav_class a {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    font-size: 22px;
    margin-left: 0; 
    margin-right: 0;
  }

  .my_extra_nav_class li {
    margin-bottom: 0;
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
  }

  .kachel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr)); /* Genau 3 Spalten */
    gap: 20px;
    max-width: 80%; 
    margin-left: auto; 
    margin-right: auto; 
    align-items: center; 
    padding: 0;
  }

  .kachel-titel {
    position: relative;
    bottom: 0;
    margin-top: 10px;
    font-size: 16px;
    font-family: 'Raleway', sans-serif;
    font-weight: 200;
    text-transform: uppercase;
    text-align: left;
    color: #222;
    padding: 0px;
    width: 100%;
    opacity: 1;
  }

  .kachel-item:hover {
    transform: none;
    background-color: transparent;
    box-shadow: none;
  }

  .kachel-item:hover .kachel-titel {
    opacity: 1; /* Der Titel wird sichtbar beim Hover */
    color: black;
    background-color: transparent; /* Der Hintergrund wird dunkler, wenn man hovert */
  }
  
  .kachel-item:hover .kachel-img img {
    filter: none; /* Bild wird dunkler, wenn man darüber hovert */
  }

  .page-content {
    margin-top: 0;
    padding: 0 10vw 40vh 10vw;
  }

  .seiten-heading {
    font-size: 32px;
  }

  .seiten-subheading {
    font-size: 28px;
  }

  .seiten-content-heading {
    font-size: 26px;
  }

  .content {
    font-size: 22px;
  }
}

/* ---------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------- */

/* Für kleinere Bildschirme (responsive Anpassungen) */
@media screen and (max-width: 480px) {
  .navbar {
    margin-bottom: 20px;
  }

  .container-fluid {
    display: flex;
    align-items: center;
    padding: 0 10vw;
    }

  #backToHome {
    position: fixed;
    height: 50px;
    width: 50px;
    top: 200px; 
    right: 20px;
    animation: none;
  }

  #backToHome:hover {
    animation: none;
  }

  .site-title {
    margin: 0;
  }

  .nav-extra-menu {
    margin: 0;
  }

  .my_extra_nav_class {
    display: flex;
    flex-direction: row !important;
    padding: 0; 
    margin: 0; 
    align-items: center; 
  }

  .my_extra_nav_class a {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    font-size: 22px;
    margin-left: 0; 
    margin-right: 0;
  }

  .my_extra_nav_class li {
    margin-bottom: 0;
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
  }

  .kachel {
    margin-bottom: 20px;
  }

  .kachel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 80%; 
    margin-left: auto; 
    margin-right: auto; 
    align-items: center;  
    padding: 0;
  }
  
  .kachel-item {
    border: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    position: relative;
    overflow: visible;
  }

  .kachel-item:hover {
    transform: none;
    background-color: transparent;
    box-shadow: none;
  }

  .kachel-item:hover .kachel-titel {
    opacity: 1; /* Der Titel wird sichtbar beim Hover */
    color: black;
    background-color: transparent; /* Der Hintergrund wird dunkler, wenn man hovert */
  }
  
  .kachel-item:hover .kachel-img img {
    filter: none; /* Bild wird dunkler, wenn man darüber hovert */
  }
  
  .kachel-img {
    width: 100%;
    height: 0;
    padding-top: 100%;
    overflow: hidden;
    position: relative;
  }
  
  .kachel-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .kachel-titel {
    position: relative;
    bottom: 0;
    margin-top: 10px;
    font-size: 18px;
    font-family: 'Raleway', sans-serif;
    font-weight: 200;
    text-transform: uppercase;
    text-align: left;
    color: #222;
    padding: 0;
    width: 100%;
    opacity: 1;
  }

  .page-content {
    padding: 0 10vw 60vh 10vw;
  }

  .wp-block-cover {
    background-size: contain;
    background-position: center;
  }

  .wp-block-cover img {
    width: 100%;
    height: auto !important;
  }
  
  .cover-group {
    max-height: 200px;
  }

  .seiten-heading {
    font-size: 24px;
  }

  .seiten-subheading {
    font-size: 18px;
  }

  .seiten-content-heading {
    font-size: 18px;
  }

  .content {
    font-size: 16px;
  }

  .spalten {
    flex-direction: column !important;
  }

  .my_extra_footer_class {
    position: static;
    flex-direction: column;
    align-items: flex-end;
    padding: 20px;
  }

  .my_extra_footer_class li {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .my_extra_footer_class li:last-child {
    margin-bottom: 0; /* Letztes Element ohne zusätzlichen Rand */
  }

  .footer-copyright {
    font-size: 14px;
  }
}

/* ---------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------- */


@media only screen and (max-width: 768px) and (min-width: 481px) {
  body {
    margin: 0;
  }

  .container-fluid {
    display: flex;
    align-items: center;
    padding: 0 10vw;
  }

  #backToHome {
    position: fixed;
    height: 50px;
    width: 50px;
    top: 200px; 
    right: 20px; 
  }

  .front-page-content {
    padding-bottom: 50vh;
  }

  .site-title {
    margin: 0;
  }

  .nav-extra-menu {
    margin: 0;
  }
 
  .my_extra_nav_class {
    display: flex;
    flex-direction: row !important;
    padding: 0; 
    margin: 0; 
    align-items: center; 
  }

  .my_extra_nav_class a {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    font-size: 22px;
    margin-left: 0; 
    margin-right: 0;
  }

  .my_extra_nav_class li {
    margin-bottom: 0;
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
  }

  .kachel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Genau 3 Spalten */
    gap: 20px;
    max-width: 80%; 
    margin-left: auto; 
    margin-right: auto; 
    align-items: center; 
    padding: 0;
  }

  .kachel-titel {
    position: relative;
    bottom: 0;
    margin-top: 10px;
    font-size: 12px;
    font-family: 'Raleway', sans-serif;
    font-weight: 200;
    text-transform: uppercase;
    text-align: left;
    color: #222;
    padding: 0;
    width: 100%;
    opacity: 1;
  }

  .kachel-item:hover {
    transform: none;
    background-color: transparent;
    box-shadow: none;
  }

  .kachel-item:hover .kachel-titel {
    opacity: 1; /* Der Titel wird sichtbar beim Hover */
    color: black;
    background-color: transparent; /* Der Hintergrund wird dunkler, wenn man hovert */
  }
  
  .kachel-item:hover .kachel-img img {
    filter: none; /* Bild wird dunkler, wenn man darüber hovert */
  }

  .page-content {
    margin-top: 0;
    padding: 0 10vw 40vh 10vw;
  }

  

  .seiten-heading {
    font-size: 26px;
  }

  .seiten-subheading {
    font-size: 22px;
  }

  .seiten-content-heading {
    font-size: 20px;
  }

  .content {
    font-size: 18px;
  }
 
  .my_extra_footer_class {
    position: static;
    flex-direction: column;
    align-items: flex-end;
    padding: 20px;
  }

  .my_extra_footer_class li {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .my_extra_footer_class li:last-child {
    margin-bottom: 0; /* Letztes Element ohne zusätzlichen Rand */
  }

  .footer-copyright {
    font-size: 14px;
  }

  #backToTop {
    position: fixed;
    height: 40px;
    width: 40px;
    bottom: 20px; 
    right: 20px; 
  }

  .spalten {
    flex-direction: column !important;
  }
}