/* WOFF format */
@font-face {
  font-family: 'Old Standard TT';
  src: url('../fonts/OldStandardTT-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
/* WOFF2 format */
@font-face {
  font-family: 'Old Standard TT';
  src: url('../fonts/OldStandardTT-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* Corpus */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  }
body {
  font-family: 'Old Standard TT', Times, serif;
  background-color: black;
  min-height: 200vh;
  overscroll-behavior: none;
  color: rgb(218, 206, 206);
}
/* Colors */
.staubrosa {
  color: rgb(218, 206, 206);
}
.goldfarben {
  color: gold;
}
.luminous-blue {
color: rgb(0, 219, 255);
}
/* Format */
.centeredtext {
  display: block;
  text-align: center;
}
/* Miscellaneous */
.lang {
  position: absolute;
  top: 0;
  right: 0;
  width: 1.875rem;
  height: 1.25rem;

}
.star {
  position: absolute;
  background-color: white;
  border-radius: 50%;
  animation: twinkling 10s infinite ease-in-out;
}
nav {
  display: flex;
  justify-content: center; 
  align-items: center;
  width: 100%;
  text-align: center;
}
img {
  max-width: 100%;
}
.navbild {
  width: 13.75rem;
  height: 18.3125rem;
}
.image-container {
  position: relative;
}
.overlay-text {
  position: absolute;
  width: 100%;
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%);
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.5); 
  color: #fff; 
  padding: 1rem; 
  text-align: center; 
  font-size: 1.5vw;
  font-size: clamp(12px, 1.5vw, 24px);
  font-weight: bold;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.6); 
}
.image-container:hover .overlay-text {
  visibility: visible;
}
.image-container a {
  text-decoration: none;
}
h1, h2, h3, h4, h5, h6 {
  color: gold;
  text-align: center;
  font-family: 'Old Standard TT', serif;
}
h1 {
  margin: 1.5rem 0 1rem;
}
h2 {
  text-align: center;
  text-decoration: underline;
} 
h3, h4 {
  text-align: left;
  padding: 0.125rem;
  display: inline-block;
}
.underlined {
  text-decoration: underline;
}
.left-aligned {
  text-align: left;
}

.art {
  width: 100%;
}
/* Newsletter */
.newsletter-container {
  display: flex;
  position: relative;
  margin-top: 1rem;
  gap: 0.2rem;
  align-items: center;
  justify-content: center;
}

.newsletter {
  display: block;
  width: 12.5rem;
  height: 2.5rem;
  border: 0.3125rem solid rgb(201, 186, 186);
  border-radius: 50%;
  background-color: violet;
  padding: 0.625rem;
  font-weight: bold;
  text-align: center;
}
.icon-background {
  position: relative;
  bottom: 1rem;
  background-color: white; /* Weißer Hintergrund */
  border-radius: 50%; /* Rundes Aussehen */
  padding: 0.4em; /* Abstand um das Icon */
  display: inline-flex; /* Flex-Container für Zentrierung des Icons */
  align-items: center; /* Vertikale Zentrierung */
  justify-content: center; /* Horizontale Zentrierung */
  width: 0.7em; /* Breite des Containers */
  height: 0.7em; /* Höhe des Containers */
}

.info-icon {
  color: #813d9c; /* Farbe des Icons */
  font-size: 1.2em; /* Größe des Icons */
}

.tooltip-container {
  position: relative;
  display: inline-block; /* oder 'block' je nach Bedarf */
}

.custom-tooltip {
  position: absolute;
  width: 120px;
  padding: 0.2rem 1rem;
  background-color: black;
  color: #fff;
  font-weight: bolder;
  visibility: hidden;
  text-align: center;
  border: 1px solid gold;
  border-radius: 6px;
  padding: 1rem;
  z-index: 1;
  bottom: -8.5rem;
  left: 5rem;
  margin-left: -3.5rem;
  font-family: 'Times New Roman', Times, serif;
}

.tooltip-container:hover .custom-tooltip {
  visibility: visible;
}
.newsletter:focus + .tooltip {
  display: block;
}

#countdown-display {
  position: absolute;
  top: 2.5rem;
  transform: translateX(-0.6rem);
  z-index: 2;
  color: gold;
  font-size: larger;
}

.newsletter:focus + .tooltipInput {
  display: block;
}
.tooltipInput {
  display: none;
  position: absolute;
  background-color: black;
  color: #fff;
  font-weight: bolder;
  text-align: center;
  border: 1px solid gold;
  padding: 0.7rem;
  border-radius: 4px;
  bottom: 3rem;
  margin-top: 5px;
  z-index: 1;
}

button {
  display: block;
  margin: 0.625rem auto 0;
}
/* Main */
main {
  visibility: hidden;
  position: relative;
  border: 3rem solid gold;
  background-color: rgb(101 94 75 / 30%);
  margin: 4vh auto;
  overflow-y: scroll;
  padding: 1rem;
  width: 43.75rem;
  height: 70rem;

  /* Border-Image spezifische Stile */
  border-image-source: url('../img/art/renaissance/renaissanceRahmen.webp');  
  border-image-slice: 300;
  border-image-repeat: round; 
  border-image-width: 50px;
  border-image-outset: 10px;
}
.tooltip {
  position: relative;
  display: inline-block;
}
/*Hover Over Text */
.tooltip {
  position: relative;
  display: inline-block;
  z-index: 0; 
  color: gold;
  font-weight: 900;
}

.tooltip:hover {
  z-index: 1; 
}

.tooltip::after {
  content: attr(data-tooltip);
  visibility: hidden;
  width: 12.5rem;
  background-color: black;
  color: white;
  text-align: center;
  border-radius: 0.375rem;
  padding: 0.3125rem 0;

  /* Positioning */
  position: absolute;
  z-index: 2; 
  bottom: 100%;
  left: 77%;
  margin-left: 1rem;
  transform: translateX(-50%);
  
  /* Transitions */
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover::after {
  visibility: visible;
  opacity: 1;
}

/* Über Bild Hover */
.hover-image {
  display: none;
  position: absolute;
  top: 1rem;
  left: 22rem;
}

a:hover .hover-image {
    display: block;
    width: 12.5vw;
    height: 8vh;
}
/*  */
ul li::marker {
  color: rgb(0, 219, 255);
}
ol {
  margin-left: 0.4375rem;
  counter-reset: list-counter; 
  list-style: none;
}
ol li {
  counter-increment: list-counter;
}
ol li::before {
  content: counter(list-counter) ". ";
  color: gold; 
  font-weight: 900;
}
a, a:visited {
  color: rgb(218, 206, 206);
}

ul>li {
  margin-left: 2%;
  margin-top: 1%;
}
.right {
  float: right;
  clear: both;
}
footer {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
}

/* Contactform */
.contactForm {
  width: 22rem;
  margin: 0 auto;
  padding: 1.5rem;
}

.contactForm label {
  display: block;
  margin-bottom: 0.3125rem;
}

.contactForm input[type="email"],
.contactForm input[type="text"],
.contactForm input[type="tel"],
.contactForm select,
.contactForm textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.625rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
}

.contactForm input[type="submit"] {
  width: 100%;
  padding: 0.625rem;
  border: none;
  background-color: blue;
  color: white;
  cursor: pointer;
}

.contactForm input[type="submit"]:hover {
  background-color: darkblue;
}

.imprint {
  width: 100%;
  margin-top: 0.5rem;
  text-align: center;
}

/* Smartphone */
#navbar {
  background-color: #333;
  text-align: right;
  padding: 0.3125rem;
  display: none;
}
#menu-toggle {
  cursor: pointer;
}
.bar {
  width: 1.875rem;
  height: 0.1875rem;
  background-color: #fff; 
  margin: 0.25rem 0;
}
nav.show .navbild {
  width: 100%;
}
@media (max-width: 768px) {
  nav.show {
    display: block;
  }
  #navbar {
    display: block;
    margin-bottom: 1rem;
    padding: 0.7rem;
  }
  #menu-toggle {
    display: block; 
  }
  .overlay-text {
    position: absolute;
    width: max-content;
    max-width: 90%;
    top: 0%;
    left: 50%; 
    transform: translateX(-50%);
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.5); 
    color: #fff;
    border-radius: 0.5rem; 
    padding: 1rem; 
    text-align: center; 
    font-size: 7vw;
    font-size: clamp(12px, 7vw, 24px);
    font-weight: bold;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.6); 
  }
  .custom-tooltip {
    bottom: -10.5rem;
    left: -1rem;
    margin-left: -3.5rem;
    font-family: 'Times New Roman', Times, serif;
  }
  .image-link {
    display: block;
    width: 100%;
  }
  .sliding-menu {
    display: none;
  }
  .image-container {
    width: 100%;
    text-align: center;
  }
  .navbild {
    width: 80%;
  }
  main {
    visibility: hidden;
    width: 90%;
  }
  .contactForm {
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
  }
}

/* Stars */
@keyframes twinkling {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0;
    transform: scale(0.5);
  }
}
