* {
    margin: 0;
    padding: 0;

    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fdfbfb;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    flex-direction: column; /* Das Bild und das Menü sind übereinander angeordnet */
}

.pulse1 {
    width: 150px;
    height: 150px;
    background: transparent;
    position: absolute;
    margin: auto;
    left: 0;
    right: 150px;
    top: 0;
    bottom: 0;
    border-radius: 50%; /* Optional, für runde Form */
    animation: pulse-animation 2s infinite alternate; /* Pulsierende Animation */
}

.pulse2 {
    width: 150px;
    height: 150px;
    background: transparent;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 50%; /* Optional, für runde Form */
    animation: pulse-animation 2s infinite alternate; /* Pulsierende Animation */
}

.pulse3 {
    width: 150px;
    height: 150px;
    background: transparent;
    position: absolute;
    margin: auto;
    left: 155px;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 50%; /* Optional, für runde Form */
    animation: pulse-animation 2s infinite alternate; /* Pulsierende Animation */
}

.pulse1:before,
.pulse1:after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #9BD0BD;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
}

.pulse1::before {
    animation: pulse 5s ease-out infinite;
}

.pulse1:after {
    animation: pulse 5s 2.5s ease-out infinite;
}

.pulse2:before,
.pulse2:after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #008B6A;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
}

.pulse2::before {
    animation: pulse 5s ease-out infinite;
}

.pulse2:after {
    animation: pulse 5s 2.5s ease-out infinite;
}

.pulse3:before,
.pulse3:after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #0A3E1F;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
}

.pulse3::before {
    animation: pulse 5s ease-out infinite;
}

.pulse3:after {
    animation: pulse 5s 2.5s ease-out infinite;
}

@keyframes pulse{
    100%{
        transform: scale(1.3);
        opacity: 0;
    }
}

.container {
    position: relative;
    text-align: center;
    width: 100%; /* Maximiert den Container */
    height: 100vh; /* Maximiert die Höhe des Containers */
}

.menu-rotate {
    display: block;
    cursor: pointer;
    z-index: 100;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
}

.menu-toggle {
    transition: transform 1.6s ease, opacity 1.6s ease-out;
    transform-origin: center;
    max-width: 310px; /* Verhindert, dass das Bild breiter als sein Container wird */
    height: auto;
}

.menu-toggle.flip {
    transform: rotateY(180deg);  
}

.menu {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(176deg, #9BD0BD 69%, #0A3E1F 69.1%); /*Geistesblitz: 70.1% erzwingt trotz des flachen Winkels eine scharfe Trennlinie zwischen den Farben, da der Gradient praktisch nicht sichbar ist*/
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.6s ease;
    justify-content: center; /* Zentriert die Menüelemente vertikal */
}

.menu ol {
    width: 80%;
    text-align: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu li {
    color: #333;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    margin: 1.5vh auto;
    padding: 2.5vh 0;
    width: 80%;
    background: #fff3e6d8;
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.1) inset, 3px 5px 10px 0 rgba(0, 0, 0, 0.2);
    text-decoration: none;
    list-style: none;
    transition: transform 0.3s ease, background 0.3s ease;
}

.menu ol a {
    text-decoration: none; /* Entfernt die Unterstreichung */
    display: block; /* Macht das gesamte <a>-Element klickbar */
}


.menu li:hover {
    transform: scale(1.1);
    background: #008B6A;
    color: #ffffff; 
    transition: transform 0.2s ease-in;
}

.special-buttons {
    display: flex;
    justify-content: center;
    align-items: center; /* Vertikale Ausrichtung */
    align-items: stretch; /* Immer gleiche Höhe */
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 70px;
    position: relative; /* Wichtig für absolute Positionierung der Lupe */
}

.special-button {
    flex: 1; /* Gleiche Breite für beide Buttons */
    padding: 15px 10px !important; /* Größere Polsterung für einheitliches Design */
    background-color: #008B6A !important;
    color: #fff !important;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    max-width: 500px;
    margin: 1.5vh auto;
    padding: 2.5vh 0;
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.1) inset, 3px 5px 10px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.call-number-search-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: auto; /* Falls nötig, um Klicks durchzulassen */
}

#call-number-search-icon {
    width: 62px;
    height: 62px;
    stroke: #fff3e6d8;
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    cursor: pointer;
    transition: transform 0.3s;
}

#call-number-search-icon:hover {
    transform: scale(1.3);
}

/* Verhalten bei kleinen Displays */
@media (max-width: 1445px) {
    .special-buttons {
        gap: 10px;
    }

    .call-number-search-container {
        margin-top: -70px;
    }
}

@media (max-width: 325px) {
    .special-buttons {
        gap: 10px;
    }

    .call-number-search-container {
        margin-top: -110px;
    }
}


.special-button:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease-in;
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes rotateAndFade {
    0% {
        transform: rotateY(0deg);
        opacity: 1; /* Bild ist vollständig sichtbar */
        visibility: visible; /* Bild ist sichtbar */
    }
    100% {
        transform: rotateY(180deg);
        opacity: 0; /* Bild wird unsichtbar */
        visibility: hidden; /* Bild wird vollständig unsichtbar */
    }
}

/* Wendet die Animation auf das Bild an */
.menu-toggle.active {
    animation: rotateAndFade 2s forwards; /* Animation mit Dauer und Richtung */
    perspective: 1000px; /* Perspektive für 3D-Effekt */
}

.search-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.search-popup-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.1) inset, 3px 5px 10px 0 rgba(0, 0, 0, 0.3);
}

.search-popup-content h2 {
  margin-top: 0;
  margin-bottom: 15px; 
}

.search-popup-content input {
  width: 80%;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.search-popup-content button {
  padding: 10px 20px;
  font-size: 1em;
  background: #008B6A;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 15px;
}

.search-popup-content ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  text-align: left;
  max-height: 300px;
  overflow-y: auto;
}

.search-popup-content li {
  padding: 8px;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
}

.search-popup-content li:hover {
  background: #f0f0f0;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.hidden {
  display: none;
}