/* Überschrift handschriftl. */
@font-face {
  font-family: "dancing script";
  src: url("fonts/DancingScript-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Handschrift */
@font-face {
  font-family: "kalam";
  src: url("fonts/Kalam-Bold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* body Text */
@font-face {
  font-family: "belgrano";
  src: url("fonts/Belgrano-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/*einfach nur Roboto ;-) */
@font-face {
  font-family: "roboto";
  src: url("fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* footer */
@font-face {
  font-family: "cairo";
  src: url("fonts/Cairo-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

/* Überschriften */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "dancing script", sans-serif;
}

h1 {
  font-size: 3rem;
  color: #d9c16e;
  margin: 5rem 3rem;
  text-align: center;
  text-shadow: black 0.5em 0.5em 2em;
}

h2 {
  font-size: 2rem;
  color: #d9c16e;
  margin: 2rem;
  text-align: center;
  text-shadow: black 0.5rem 0.5rem 2rem;
}

h3 {
  font-size: 2rem;
  margin: 2rem;
  text-align: center;
  text-shadow: black 0.5rem 0.5rem 2rem;
}

h4 {
  font-size: 2rem;
  margin-top: 3rem;
}

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

.center-text a {
  color: #d9c16e;
  text-decoration: none;
}

/*allg - over all*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

.margin-left-right {
  margin: 0rem 16rem;
}

blockquote {
  color: #d9c16e;
  margin: 4rem 6rem;
  font-family: "kalam", sans-serif;
  font-size: 1.7rem;
}

iframe {
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5rem auto;
}

/*body*/

body {
  background: radial-gradient(circle, #555 00%, #333 100%);
  font-family: "belgrano", sans-serif;
  font-size: 1.4rem;
  color: #ddd;
  text-shadow: 1rem 1rem 2rem #333;
}

body.menu-open {
  overflow: hidden; /* Verhindert das Scrollen, wenn das Menü geöffnet ist */
}

/* index.html*/

.wappen {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

.news-row1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  /* Zentriert den Container selbst */
  width: 66%;
  color: #d9c16e;
  font-family: "dancing script", sans-serif;
  font-size: 1.5rem;
}

.news-row1 img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
}

.news-row1 img:hover {
  filter: brightness(0.3);
  transition: 1s;
}

.news-row1 .left {
  background-color: #333;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  width: 48%;
  height: auto;
  text-align: center;
}

.news-row1 .right {
  background-color: #333;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  width: 48%;
  height: auto;
  text-align: center;
}

/*about us*/

.picsOfUs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto; /*zentriert*/
  width: 60%;
}

.picsOfUs img {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5rem;
}

/*contact*/

.dearVisitor {
  font-family: "kalam", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  flex-direction: column;
  width: 80%;
  height: auto;
}

.dearVisitor a {
  color: #d9c16e;
  text-decoration: none;
  padding: 5px;
}

.dearVisitor a:hover {
  color: #24331f;
  text-decoration: underline;
  background-color: #d9c16e;
  border-radius: 5px;
}

/*slider*/

.slider {
  margin: 5rem;
  display: flex;
  width: 80%;
  overflow: visible;
  border-radius: 10px;
}

.slides {
  display: flex;
  width: 30%;
  animation: slideAnimation 32s infinite;
}

.slide {
  width: 100%;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Animation für das automatische Durchschalten von 8 Bildern */
@keyframes slideAnimation {
  0% {
    transform: translateX(0%);
  }
  12.5% {
    transform: translateX(0%);
  }
  25% {
    transform: translateX(-100%);
  }
  37.5% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(-200%);
  }
  62.5% {
    transform: translateX(-200%);
  }
  75% {
    transform: translateX(-300%);
  }
  87.5% {
    transform: translateX(-300%);
  }
  100% {
    transform: translateX(-400%);
  }
  112.5% {
    transform: translateX(-400%);
  }
  125% {
    transform: translateX(-500%);
  }
}

/*navbar*/
/* --- Navigation Grundstruktur --- */
/* Allgemeine Navigation */

nav.navbar {
  position: fixed;
  top: 0;
  z-index: 1003;
  background-image: linear-gradient(#444, #333);
  min-height: 7rem;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 3px solid #d9c16e;
}

main {
  margin-top: 11rem;
}

.logo {
  padding: 0rem 4rem 0rem 0rem;
}

/* Navigation Links */
.nav-links {
  list-style: none;
  font-family: "dancing script";
  font-weight: 600;
  display: flex;
  flex-direction: row;
  z-index: 1001;
}

.nav-links li {
  position: relative;
  margin: 1rem;
}

.nav-links a {
  color: #d9c16e;
  text-decoration: none;
  font-size: 1.7rem;
  transition: color 0.3s;
  margin-right: 1rem;
  padding: 0.5rem 1rem;
}

.nav-links a:hover {
  color: #333;
  background-color: #d9c16e;
  border-radius: 1rem;
  text-decoration: underline;
  font-weight: bold;
  transition-duration: 1s;
}

/* Dropdown-Menü (Desktop) */
.nav-links .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #d9c16e;
  list-style: none;
  border-radius: 1rem;
  padding: 0;
  min-width: 150px;
  z-index: 1000;
  text-align: center;
}

.nav-links .dropdown li {
  padding: 0;
}

.nav-links .dropdown li a {
  color: #333;
  text-decoration: none;
  font-size: 1.7rem;
  display: block;
  padding: 0.5rem 1rem;
}

.nav-links .dropdown li a:hover {
  background-color: #333;
  color: #d9c16e;
  border-radius: 1rem;
}

/* Dropdown sichtbar machen beim Hover (Desktop) */
.nav-links li:hover > .dropdown {
  display: block;
}

/* Hamburger-Menü für mobile Geräte */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 3.3rem;
  height: 2.3rem;

  cursor: pointer;
  z-index: 1002;
}

.hamburger span {
  border-radius: 5px;
  display: block;
  width: 100%;
  height: 100%;
  background: #d9c16e;
}

/* Overlay-Stil für die Hintergrundabdunkelung */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    0,
    0,
    0,
    0.5
  ); /* Halbtransparenter schwarzer Hintergrund */
  backdrop-filter: blur(
    3px
  ); /* Optional, um die Transparenz effektvoller zu gestalten */
  display: none; /* Standardmäßig ausgeblendet */
  transition: opacity 0.3s ease;
  z-index: 1000;
}

/* Overlay sichtbar machen, wenn das Menü geöffnet ist */
body.menu-open .overlay {
  display: block;
}

/* --- Menü-Spacer --- */
.menu-spacer-gold {
  height: 2px;
  background-color: #d9c16e;
  margin-bottom: 2rem;
  z-index: 1003;
}

/* footer */

footer {
  margin-top: 10rem;
}

.socialMediaLinks {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5rem auto; /*zentriert*/
  width: 70%;
}

.adresse {
  font-size: 1.7rem;
  color: #d9c16e;
  text-align: center;
  font-family: "belgrano";
  margin: 5rem;
  text-shadow: black 0rem 0.5rem 2rem;
}

.adresse:hover {
  text-shadow: black 0rem 0.5rem 1rem;
  transition-duration: 1s;
}

.footer-spacer-gold {
  height: 2px;
  background-color: #d9c16e;
}

.footer-container {
  font-size: 1.5rem;
  background-image: linear-gradient(#444, #333);
  padding: 4rem 10rem 4rem 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "cairo", sans-serif;
}

.footer-copyright {
  color: #d9c16e;
  margin: 3rem;
  text-shadow: black -2rem 1rem 2rem;
}



.footer-links a {
  color: #d9c16e;
  margin: 2rem;
  text-decoration: none;
  text-shadow: black 2rem 1rem 2rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Mobile Ansicht */
@media (max-width: 1200px) {
  iframe {
    width: 100%;
  }

  .margin-left-right {
    margin: 0 1rem;
  }

  .news-row1 {
    width: 90%;
  }

  .picsOfUs {
    display: flex;
    flex-direction: column; /* Stapelt die Bilder vertikal */
    align-items: center; /* Zentriert die Bilder horizontal */
    width: 100%; /* Nimmt die volle Breite ein */
    margin: 0 auto; /* Zentriert den Container */
  }

  .picsOfUs img {
    width: 60%; /* Bilder nehmen 90% der Containerbreite ein */
    max-width: 300px; /* Optional: maximale Breite festlegen */
    height: auto; /* Beibehaltung des Seitenverhältnisses */
    margin: 1rem 0; /* Abstand oben und unten */
  }

  .navbar {
    position: sticky;
    top: 0;
    width: 100%;
  }

  .nav-links {
    position: fixed;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    top: 7rem;
    left: 0;
    list-style-type: none;
    background-color: #333;
    transform: translateX(100%); /* Menü außerhalb des Sichtbereichs */
    opacity: 0;
    z-index: 1001;
  }

  .nav-links.show {
    transform: translateX(0); /* Menü sichtbar machen */
    opacity: 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links li {
    text-align: center;
    margin: 1rem 0;
  }

  .hamburger {
    display: flex;
    z-index: 1004;
  }
  .hamburger span {
    display: block;
    margin: 4px;
    background: #d9c16e;
    transition: transform 0.5s ease, opacity 0.25s ease;
  }

  /* Wenn die Hamburgerklasse aktiv ist ("Menü offen"), 
   verändern wir die Linien so, dass sie ein "X" bilden. */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
  }

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

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

  .nav-links .dropdown {
    display: none;
    flex-direction: column;
    background-color: #333;
    color: #d9c16e;
    position: static;
  }

  .nav-links li .dropdown li a {
    color: #ddd;
  }

  .nav-links li .dropdown-show {
    display: flex;
  }

  .nav-links li .dropdown-show li {
    text-align: center;
  }

  .nav-links li .dropdown-show li a {
    color: #ddd;
    text-decoration: none;
  }

  .nav-links li .dropdown-show li a:hover {
    color: #d9c16e;
  }

  .socialMediaLinks {
    width: 85%;
    scale: 0.8;
  }

  .footer-container {
    display: flex;
    flex-direction: column; /* Spalten übereinander */
    align-items: center; /* Zentriert die Inhalte */
    text-align: center;
    font-size: 1rem;
  }

  .footer-links {
    order: 1; /* Links zuerst anzeigen */
    margin-bottom: 1rem; /* Abstand nach unten */
  }
  .footer-links a {
    display: inline-block; /* Links in einer Reihe */
    margin: 0 1rem;
  }

  .footer-copyright {
    order: 2; /* Copyright darunter anzeigen */
    margin: 0;
  }

  .footer-copyright .name {
    white-space: nowrap;
  }

  .footer-copyright .rights {
    white-space: nowrap;
  }
}
