@font-face {
    font-family: "Hirarki";
    src: url("../items/fonts/Hirarki.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "CaviarDreams";
    src: url("../items/fonts/CaviarDreams_Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}
/* Globaler Scrollbar-Style */
html {
    scrollbar-width: thin; /* Dünne Scrollbar für Firefox */
    scrollbar-color: #7c4da8 #dfc1fb; /* Farbe: Griff | Hintergrund */

}

html::-webkit-scrollbar {
    width: 12px; /* Breite der Scrollbar */
    height: 12px; /* Höhe der Scrollbar */
}

html::-webkit-scrollbar-track {
    background: #dfc1fb; /* Hintergrund der Scrollbar */
    border-radius: 10px; /* Abgerundete Ecken */
    box-shadow: inset 2px 2px 5px rgb(193, 86, 148),
    inset -2px -2px 5px rgba(255, 255, 255, 0.5); /* Plastischer Effekt */
}

html::-webkit-scrollbar-thumb {
    background: #7c4da8; /* Farbe des Scroll-Griffs */
    border-radius: 10px; /* Abgerundete Ecken */
    border: 2px solid #dfc1fb; /* Abstand zwischen Griff und Track */
    box-shadow: inset 2px 2px 5px rgb(193, 86, 148),
    inset -2px -2px 5px rgba(0, 0, 0, 0.2); /* Plastischer Effekt */
}

html::-webkit-scrollbar-thumb:hover {
    background: #471675; /* Hover-Effekt für den Griff */
    box-shadow: inset 2px 2px 5px rgb(193, 86, 148),
    inset -1px -1px 3px rgba(0, 0, 0, 0.2); /* Sanfter Effekt */
}


body {
    font-family: "Hirarki", sans-serif;
    background: linear-gradient(135deg, #dfc1fb, #7c4da8);
    text-align: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ermöglicht Footer-Positionierung unten */
    overflow-x: hidden;
}

.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

.content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    padding-top: 20vh;
}

.home-button-container {
    text-align: center;
    margin: 20px 0;
}

.home-button {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease;
}

.home-button:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

.sidebar {
    width: 300px;
    background-color: rgba(124, 77, 168);
    box-shadow: 2px 2px 5px rgb(193, 86, 148);
    padding: 20px;
    color: #fff;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scrollbar-width: thin;
    scrollbar-color: #7c4da8 #dfc1fb;
}

.sidebar::-webkit-scrollbar {
    width: 12px;
}

.sidebar-footer {
    font-family: CaviarDreams, sans-serif;
    font-size: 0.9em;
    color: #dfc1fb;
    text-shadow: 2px 2px 5px rgb(193, 86, 148);
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
}

.sidebar h2 {
    font-family: "Hirarki", sans-serif;
    text-shadow: 2px 2px 5px rgb(193, 86, 148);
    font-size: 2.5vw;
    margin-top: 25px;
    margin-bottom: 25px;
    color: #dfc1fb;
}

.sidebar::-webkit-scrollbar {
    width: 12px;
}

.sidebar-footer {
    font-family: CaviarDreams, sans-serif;
    font-size: 0.9em;
    color: #dfc1fb;
    text-shadow: 2px 2px 5px rgb(193, 86, 148);
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
}

.sidebar h2 {
    font-family: "Hirarki", sans-serif;
    text-shadow: 2px 2px 5px rgb(193, 86, 148);
    font-size: 2.5vw;
    margin-top: 25px;
    margin-bottom: 25px;
    color: #dfc1fb;
}

#styled-buttons a {
    font-family: "CaviarDreams", sans-serif;
    text-decoration: none;
    background: linear-gradient(90deg, rgb(223, 193, 251) 33%, rgba(193, 86, 148, 0.47), rgb(223, 193, 251) 67%) var(--_p, 100%) / 300% no-repeat, #dfc1fb;
    color: #7c4da8;
    transform: perspective(500px) rotateY(calc(20deg*var(--_i,-1)));
    text-shadow: calc(var(--_i,-1)* 0.08em) -.01em 0 var(--c), calc(var(--_i,-1)*-0.08em)  .01em 2px #c15694;
    outline-offset: .1em;
    transition: 0.5s;
    text-align: left;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 10px;
    cursor: pointer;
    padding: .5em .6em;
    display: block;
    line-height: 1;
}

#styled-buttons a:hover,
#styled-buttons a:focus-visible {
    --_p: 0%;
    --_i: 1;
    color: #c15694;
}

/* Styling der Hauptkategorien */
.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    margin-bottom: 10px;
    position: relative;
}

.menu a {
    display: block;
    background: linear-gradient(90deg, rgb(223, 193, 251) 33%, rgba(193, 86, 148, 0.47), rgb(223, 193, 251) 67%);
    color: #7c4da8;
    font-family: "CaviarDreams", sans-serif;
    font-weight: bold;
    text-decoration: none;
    padding: 10px;
    transition: background-color 0.3s, color 0.3s;
}

.menu a:hover {
    background-color: #7c4da8;
    color: #dfc1fb;
}

/* Styling der Submenüs */
.submenu {
    display: none;
    list-style: none;
    padding-left: 20px;
    margin: 0;
}

.submenu li a {
    font-family: "CaviarDreams", sans-serif;
    background-color: #dfc1fb;
    color: #7c4da8;
    padding: 8px 10px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.submenu li a:hover {
    background-color: #7c4da8;
    color: #fff;
}

/* Aktive Submenüs */
.menu li.active > .submenu {
    display: block;
}

h1 {
    font-family: "Hirarki", "sans-serif";
    font-size: 6vw;
    font-weight: bold;
    color: #7122b8;
    margin-top: 0;
    margin-bottom: 100px;
    text-shadow: 2px 2px 5px rgb(223, 193, 251);
}

h2, h3 {
    font-family: CaviarDreams, sans-serif;
    color: #dfc1fb;
}

h2 {
    display: inline-block;
    margin: 0 auto;
    padding: 0;
}

#toggle-map-button {
    cursor: pointer;
    width: 35px; /* Bildbreite */
    height: auto; /* Automatische Höhe proportional zur Breite */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#toggle-map-button:hover {
    transform: scale(1.2); /* Vergrößerung beim Hover */
}

h3 {
    font-size: 2vw;
    margin: 5px 0;
    color: #471675;
    text-shadow: 2px 2px 5px rgb(223, 193, 251);
}

#boxContainer {
    position: relative;
    margin-left: 300px;
    flex: 1; /* Füllt verbleibenden Platz aus, damit Footer unten bleibt */
}

.text-startseite {
    hyphens: auto;
    text-align: justify;
    font-family: CaviarDreams, sans-serif;
    font-size: 1.5vw;
    color: #dfc1fb;
    margin-left: 150px;
    margin-right: 150px;
}

/*.container {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

.container a {
    flex: 1 1 0%;
    width: 10%;
    transition: flex-grow 0.5s ease;
}*/

.preview {
    width: 100%;
    height: 320px;
    object-fit: cover; /* Bild wird proportional skaliert */
    object-position: center; /* Standard: Zentrierter Ausschnitt */
    border-radius: 10px;
    border: 2px solid #dfc1fb;
    box-shadow: 2px 2px 10px rgb(193, 86, 148);
    transition: transform 0.3s ease, filter 0.3s ease, object-position 0.3s ease;
    filter: grayscale(100%) hue-rotate(-10deg) blur(1px);
}

.container a:hover .preview {
    transform: scale(1.05);
    filter: grayscale(0%);
    cursor: pointer;
    transition: 0.3s ease;
}

.container a:hover {
    flex-grow: 3;
    z-index: 10;
    transform: scale(1.1);
}

.container a:not(:hover) {
    z-index: 0;
    filter: grayscale(100%) opacity(100%);
}

.photo-box {
    background-color: rgba(124, 77, 168, 0.59); /* Halbtransparenter Hintergrund */
    border-radius: 15px; /* Abgerundete Ecken */
    box-shadow: 0 4px 10px rgb(193, 86, 148); /* Sanfter Schatteneffekt */
    padding: 20px; /* Innenabstand */
    margin: 20px auto; /* Abstand zu anderen Elementen */
    max-width: 80%; /* Maximale Breite für eine moderne Optik */
    text-align: center; /* Zentriert den Inhalt */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Optionale feine Umrandung */
}

.photo-box h2 {
    margin-bottom: 20px; /* Abstand zum darunterliegenden Inhalt */
    color: #dfc1fb;
    font-size: 2rem;
    text-shadow: 2px 2px 5px rgb(193, 86, 148);
}

.photo-box .container {
    display: flex;
    flex-wrap: wrap; /* Bilder umbrechen, wenn sie nicht in eine Reihe passen */
    gap: 10px; /* Abstand zwischen den Bildern */
    justify-content: center; /* Bilder zentrieren */
}

.photo-box .container a {
    position: relative;
    flex: 1 1 calc(33.333% - 10px); /* Bilder in drei Spalten */
    max-width: calc(33.333% - 10px); /* Gleiche Breite */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.photo-box .container a:hover {
    transform: scale(1); /* Vergrößert das Bild beim Hover */
}

.photo-box .navigation {
    margin-top: 20px; /* Abstand zur Galerie */
    display: flex;
    justify-content: space-between; /* Buttons auf beiden Seiten der Box */
}

.photo-box .prev-button,
.photo-box .next-button {
    padding: 10px 20px;
    background-color: rgb(124, 77, 168); /* Knopf-Farbe */
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-shadow: 1px 1px 3px rgb(193, 86, 148);
}

.photo-box .prev-button:hover {
    background-color: #7c4da8;
    transform: perspective(500px) rotateY(calc(40deg*var(--_i,-1)));
    transition: transform 0.6s ease;
}

.photo-box .next-button:hover {
    background-color: #7c4da8;
    transform: perspective(500px) rotateY(calc(-40deg*var(--_i,-1)));
    transition: transform 0.6s ease;
}

.photo-box button:active {
    text-shadow: none;
    color: #7c4da8;
    box-shadow: inset 0 0 9000px rgb(193, 86, 148);
    transition: 0s;
}

.metadata {
    font-size: 0.9rem;
    color: #dfc1fb; /* Gleiche Farbe wie dein Design */
    margin-top: 5px;
    font-family: "CaviarDreams", sans-serif;
    line-height: 1.5;
    text-align: center; /* Zentriert unter dem Bild */
    text-decoration: none;
}

.seite a {
    font-family: CaviarDreams, sans-serif;
    display: block;
    margin-top: 10px;
    color: #653795;
    font-weight: bold;
    text-decoration: none;
}

.seite a:hover {
    text-decoration: none;
    color: #3e2655;
}

.navigation {
    display: flex;
    gap: 10px;
    justify-content: center;
    scrollbar-color: #7c4da8 #dfc1fb;
}

.prev-button, .next-button {
    font-family: CaviarDreams, sans-serif;
    display: inline;
    padding: 5px 15px;
    background-color: transparent;
    color: rgb(223, 193, 251);
    text-decoration: none;
    font-size: 1.5vw;
    font-weight: bold;
    margin-top: 20px;
    transform: perspective(500px) rotateY(calc(20deg*var(--_i,-1)));
    text-shadow: calc(var(--_i,-1)* 0.08em) -.01em 0 var(--c), calc(var(--_i,-1)*-0.08em)  .01em 2px #c15694;
}

.prev-button:hover, .next-button:hover {
    transform: scale(1.2);
    text-decoration: none;
    transition: transform 0.5s ease; /* Sanfter Hover-Effekt */
    --_p: 0%;
    --_i: 1;
    color: #ffffff;
    filter: brightness(1.2);
}

.contact-form-section {
    padding: 20px;
    color: #fff;
    margin-top: -25px;
}

.contact-table {
    margin: 0 auto;
    color: #dfc1fb;
    font-family: "CaviarDreams", sans-serif;
    background-color: rgba(124, 77, 168, 0.8);
    border-radius: 10px;
    padding: 20px;
}

.contact-table td {
    padding: 10px;
}

.contact-table label {
    color: #dfc1fb;
}

.contact-table input,
.contact-table textarea {
    width: 750px;
    padding: 8px;
    border-radius: 5px;
    border: 2px solid #dfc1fb;
    background-color: #dfc1fb;
    font-family: "CaviarDreams", sans-serif;
    font-size: 20px;
    color: #7c4da8;
    box-shadow: 2px 3px 8px rgb(193, 86, 148);
}

.contact-table .submit-button {
    background-color: #dfc1fb;
    color: #7c4da8;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-family: "CaviarDreams", sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 4px 6px 8px rgb(193, 86, 148);
    text-decoration: none;

}

.contact-table .submit-button:hover {
    background-color: #c15694;
    color: #dfc1fb;
    transform: scale(1.2);
}

.contact-table .submit-button a {
    color: #3e2655;
    transform: scale(1.2);
}



.contact-intro {
    font-size: 1.5vw;
    text-align: center;
    margin-bottom: 20px; /* Abstand zum Formular */
    color: #dfc1fb; /* Gleiche Farbe wie das Formular */
    font-family: "CaviarDreams", sans-serif; /* Gleiche Schrift wie der Rest */
    text-shadow: 4px 6px 8px rgb(193, 86, 148);
}

.logos-container {
    margin: 20px 0;
    text-align: center; /* Zentriert den Inhalt */
}

.logos {
    display: flex;
    justify-content: center; /* Zentriert die Logos horizontal */
    gap: 15px; /* Abstand zwischen den Logos */
}

.logos img {
    width: 50px; /* Einheitliche Breite der Logos */
    height: auto;
    transition: transform 0.3s ease; /* Sanfter Hover-Effekt */
    cursor: pointer;
}

.logos img:hover {
    transform: scale(1.2); /* Vergrößert das Logo beim Hover */
    filter: brightness(1.2);
}

#map-section {
    text-align: center;
    margin: 50px auto;
    font-family: Arial, sans-serif;
    color: #dfc1fb;
    text-shadow: 1px 1px 3px #7c4da8;
}

#map-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgb(193, 86, 148);
}

.map-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.map-container iframe {
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgb(193, 86, 148);
}

/* Für Smartphones (Bildschirme kleiner als 600px) */
@media (max-width: 600px) {
    .sidebar {
        display: none; /* Verstecke die Sidebar */
    }

    .container {
        width: 100%; /* Container nimmt die volle Breite ein */
    }

    h1 {
        font-size: 1.5em; /* Reduziere die Schriftgröße */
    }
}

/* Für Tablets (Bildschirme zwischen 601px und 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
    .sidebar {
        width: 25vw; /* Passe die Breite an */
    }

    h1 {
        font-size: 2em; /* Leicht größere Schriftgröße */
    }
}

/* Für große Bildschirme */
@media (min-width: 1025px) {
    .sidebar {
        width: 300px; /* Feste Breite für größere Bildschirme */
    }
}

.linked-heading {
    text-decoration: none; /* Entfernt die Standard-Unterstreichung */
    color: #dfc1fb; /* Passende Farbe */
    font-size: 2.5em; /* Stellt sicher, dass die Größe auffällig bleibt */
    text-shadow: 2px 2px 5px rgb(193, 86, 148); /* Harmoniert mit dem Design */
    transition: color 0.3s ease, transform 0.3s ease; /* Sanfter Hover-Effekt */
}

.linked-heading:hover {
    color: #7c4da8; /* Leichte Farbänderung beim Hover */
    transform: scale(1.05); /* Vergrößert die Schrift leicht */
    text-decoration: underline; /* Unterstreichung als Hover-Effekt */
}

#map-section {
    margin-top: 20px; /* Reduziert Abstand nach oben */
    margin-bottom: 50px; /* Fügt unten etwas mehr Abstand hinzu */
    text-align: center;
}

.map-container iframe {
    width: 100%; /* Passt die Breite an den verfügbaren Platz an */
    max-width: 800px; /* Begrenzt die maximale Breite */
    height: 450px; /* Beibehaltung der Höhe */
    border-radius: 10px;
    box-shadow: 5px 5px 15px rgb(193, 86, 148); /* Stärkere Schatten für mehr Kontrast */
}

@media (max-width: 768px) {
    .map-container iframe {
        width: 90%; /* Breite auf 90% des Bildschirms begrenzen */
        height: 300px; /* Reduzierte Höhe für kleinere Geräte */
    }
}

#transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* Farbe des Overlays */
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

#transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

