/* =========== RESET/STANDARDSTILE =========== */

body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background-color: #ddedff;
  height: 100vh;
  padding-top: 96px;
  padding-bottom: 40px;
  margin: 0;
}

p {
  color: #000;
  font-weight: 300;
  }

a {
  margin: 0.5rem 0;
  transition: 0.3s all ease;
  text-decoration: none !important;
}

a:hover {
  text-decoration: none !important;
}

a.one:link {
color: #095484;
}
a.one:visited {
color: #095484;
}
a.one:hover {
font-weight: bold;
}

/* Anpassung für Mobilgeräte */
@media (max-width: 768px) {
  h1 {
    font-size: 1.5rem;
  }
}

/* =========== TITEL ZEILE =========== */
/* Standardgröße für größere Bildschirme */
.navbar-brand {
  font-size: clamp(16px, 5vw, 2.25rem); /* Minimum, flexible Größe, Maximum */
}
/* .navbar-brand hat eine feste Höhe */
.navbar{

}


/* =========== FUSS ZEILE =========== */
.footer-custom {
  padding: 0 10px;
  color: gray;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Linke Ausrichtung */
.footer-custom .alignleft {
  font-size: 0.8em;
  color: #d3d3d3; /* Helles Grau */
}

/* =========== BASE =========== */
.centerimg {
    width: 100%;
    max-width: 600px;
    height: auto;
}

.centertext {
    padding: 10px;
    background-color: #f8f9fa; /* Hellgrauer Hintergrund */
    border-radius: 10px; /* Abgerundete Ecken */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
    display: inline-block; /* Passt sich dynamisch der Breite des Inhalts an */
    text-align: center; /* Zentrierter Text und Bild */
    margin-top: 20px; /* Abstand von 10px nach oben */
}

.container_main {
  position: fixed; /* Fixiert die rechte Spalte */
  top: 96px; /* Platz für Navbar */
  left: 16.6667%; /* 16.6667% = 2 Spalten von 12 (entspricht col-md-2) */
  width: calc(100% - 16.6667%); /* 83.3333% = 10 Spalten von 12 (entspricht col-md-10) */
  height: calc(100% - 96px - 40px); /* Vollbildhöhe abzüglich Navbar */
  overflow-y: scroll; /* Scrollbar für den Hauptinhalt */
  padding-right: 10%;
}

@media (max-width: 768px) {
.container_main {
    left: 0%;
    width: 100%; /* Volle Breite auf kleineren Bildschirmen */
    padding-left: 10px; /* Optional: Etwas Abstand vom Containerrand */
    padding-right: 10px;
    top: 156px; /* Platz für Navbar */
    height: calc(100% - 156px - 40px); /* Vollbildhöhe abzüglich Navbar */
  }
}

.container_sidebar {
  position: fixed; /* Fixiert die rechte Spalte */
  top: 96px; /* Platz für Navbar */
  left: 0px;
  height: calc(100% - 96px - 40px); /* Vollbildhöhe abzüglich Navbar */
  overflow-y: auto;
  padding-top:30px; /* Abstand Text von oben */
  white-space: nowrap; /* Verhindert Zeilenumbrüche */
  overflow-x: hidden; /* Verhindert sichtbares Überlaufen */
}
@media (max-width: 768px) {
.container_sidebar {
    left: 0%;
    height: 0%;
    width: 100%; /* Volle Breite auf kleineren Bildschirmen */
    padding-left: 10px; /* Optional: Etwas Abstand vom Containerrand */
    padding-right: 10px;
    top: 136px; /* Platz für Navbar */
    z-index: 1;
  }
}
/* =========== FUSSNOTEN =========== */
/* Initialisierung des Zählers für Fußnoten */
[role="doc-noteref"] {
  counter-increment: footnotes; /* Zählt Fußnoten */
  padding-left: .25em;
  padding-right: 0.5em;
  text-decoration: none;
  font-weight: bold; /* Optional: Fußnoten mit stärkerem Gewicht hervorheben */
}

/* Fußnotennummerierung anzeigen */
[role="doc-noteref"]::after {
  content: '[' counter(footnotes) ']';
  vertical-align: super;
  font-size: 0.75em; /* Kleinere Schrift für Fußnotennummer */
  color: #888; /* Dezente Farbe für Fußnotennummer */
}

/* Visuelle Rückmeldung bei Fokus auf Fußnoten */
[role="doc-noteref"]:focus::after {
  outline: thin dotted #333; /* Dotted Outline für bessere Sichtbarkeit */
  outline-offset: 2px;
}

/* Fußnoten-Bereich */
.fnotes {
  margin-top: 2em;
  border-top: 1px solid silver;
  font-size: 0.8em;
  padding-top: 1em; /* Etwas Abstand nach oben für bessere Trennung */
}

/* Stil für die Fußnoten-Liste */
.fnotes ol {
  padding-left: 2em;
  margin-top: 1em; /* Abstand zwischen den Fußnoten */
  list-style-type: decimal; /* Dezimale Nummerierung für die Fußnoten */
}

/* Fußnoten innerhalb der Liste */
.fnotes li {
  margin-bottom: 1em; /* Abstand zwischen einzelnen Fußnoten */
}

/* =========== Artikel =========== */

/* Reset für Fußnoten im Artikel */
article {
  max-width: 100%; /* Begrenze die Breite */
  overflow-x: hidden;
  word-wrap: break-word;
  counter-reset: footnotes;
}

/* Artikelabsätze */
article p {
  max-width: 30em; /* Maximale Breite für Absätze */
  margin: 0 auto; /* Zentriert den Absatz innerhalb des Containers */
  line-height: 1.6; /* Bessere Lesbarkeit durch mehr Zeilenhöhe */
  text-align: justify; /* Optional: Textbündigung für bessere Lesbarkeit */
}

/* Optional: Verbesserung der Textdarstellung auf kleinen Bildschirmen */
@media (max-width: 768px) {
  article p {
    max-width: 100%; /* Volle Breite auf kleineren Bildschirmen */
    padding-left: 10px; /* Optional: Etwas Abstand vom Containerrand */
    padding-right: 10px;
  }
}

.literatur {
	text-indent: -5em;
	margin-left: 5em
}

.tg-01 {
    padding-left: 15px;
    padding-right: 15px;
}

/* =========== Suche und Karten =========== */

.card {
    width: 600px;
}

.listcard {
width: 600px;
margin-top: 20px;
}

@media (max-width: 768px) {
.card {
    width: 100%; /* Dynamische Breite bei kleineren Bildschirmen */
    margin: 0 auto; /* Zentriert die Card */

}

}

/* =========== Inhaltsbutton =========== */

        /* Container, um den Button mittig auf der Seite zu platzieren */
        .center-container {
            display: flex;
            justify-content: center; /* Horizontale Ausrichtung */
        }

        /* Grauer Button */
        .btn-gray {
        position: fixed; /* Button bleibt an fester Position */
            background-color: gray; /* Grauer Hintergrund */
            color: white; /* Weißer Text */
            border: none; /* Keine Umrandung */
            padding: 10px 20px; /* Etwas Abstand innerhalb des Buttons */
            border-radius: 5px; /* Abgerundete Ecken */
            font-size: 12px; /* Schriftgröße */
        }

        /* Optional: Hover-Effekt für den Button */
        .btn-gray:hover {
            background-color: #555; /* Etwas dunklerer Grauton beim Hover */
            cursor: pointer;
        }

.menu {
    position: fixed; /* Menü fixieren */
    top: 150px; /* Direkt unter dem Button */
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    max-height: 400px; /* Feste Höhe für Scrollen */
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow-y: auto; /* Scrollen innerhalb des Menüs ermöglichen */
    z-index: 999;
    opacity: 0.9; /* 50% Transparenz */
}

.hidden {
    display: none;
}

.sidebar {
    display: none;
}
/* =========== Fotoserie =========== */
.mySlides {
    display: none;
}

.mySlides img {
    width: 100%;
    height: auto;
}

img {
    vertical-align: middle;
}

.slideshow-container {
    max-width: 900px; /* Stelle hier die gewünschte maximale Breite der Slideshow ein */
    position: relative;
    margin: auto;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: #CCCCCC;
}

.prev {
    left: 0;
}

.prev:hover {
    background-color: #888888; /* Farbe beim Hover */
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.next:hover {
    background-color: #888888; /* Farbe beim Hover */
}

.text {
    background-color: #CCCCCC;
    color: #000000;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

.numbertext {
    color: #000000;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #999999;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: rgba(0, 123, 255, 0.25);
}

.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {
        opacity: .4;
    }
    to {
        opacity: 1;
    }
}

@keyframes fade {
    from {
        opacity: .4;
    }
    to {
        opacity: 1;
    }
}

@media only screen and (max-width: 300px) {
    .prev, .next, .text {
        font-size: 11px;
    }
}


.img-container {
    width: 100%;         /* Breite passt sich dem Bildschirm an */
    max-width: 900px;    /* Maximale Breite begrenzen */
    height: auto;        /* Dynamische Höhe basierend auf der Breite */
    aspect-ratio: 16/9;  /* Verhältnis von Breite zu Höhe (kann angepasst werden) */
    display: flex;
    align-items: center; /* Vertikale Zentrierung */
    justify-content: center; /* Horizontale Zentrierung */
    margin: auto;        /* Zentrierung des Containers */
    background-color: #f0f0f0; /* Hintergrundfarbe für leere Bereiche */
    overflow: hidden;    /* Versteckt überstehende Teile */
}

.img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Das gesamte Bild sichtbar machen */
    object-position: center; /* Bild zentrieren */
}

