@font-face {
    font-family: "Raleway";
    src: url("Raleway/static/Raleway-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Raleway";
    src: url("Raleway/static/Raleway-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Raleway";
    src: url("Raleway/static/Raleway-LightItalic.ttf") format("truetype");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

body,p,a,ul,ol {
    font-family: "Raleway", sans-serif;
    font-weight: 300;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

h1,h2,h3,h4,h6 {
    font-family: "Raleway", sans-serif;
    font-weight: 500;
    overflow-wrap: break-word;
    word-wrap: break-word;
    color: #497630;
    /*background-color: #f0decc;*/
    text-shadow: 1px 1px 3px #8c7355;
}

h5 {
    font-family: "Raleway", sans-serif;
    font-weight: 700 !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
    background-color: #f0decc;
}


.small-text {
    font-size: 0.7em;
    opacity: 0.8;
    margin-left: 10px;
}

h2 {
    /*color: #4a6631; /* Ein etwas dunkleres Grün passend zum Logo */
}

.highlight-text {
    color: #8c7355; /* Der Gold/Braun-Ton aus dem Logo/Breadcrumbs */
    display: inline;
    text-shadow: 1px 1px 3px #8c7355;

}

i, em {
    font-style: normal;
    color: #8c7355; /* Der Gold/Braun-Ton aus dem Logo/Breadcrumbs */
    display: inline;
    text-shadow: 1px 1px 3px #8c7355;
}

.highlight-bg {
    background-color: #8c7355; /* Hintergrund jetzt auch im Gold-Ton für Konsistenz */
    color: white;
    padding: 0 6px;
    border-radius: 3px;
    display: inline-block;
}

strong, b {
    font-weight: 700;
}

p, a, li {
    font-size: 1.15rem;
}

/* Links im Text */
.accordion-content a {
    color: #8c7355;
    text-decoration: none;
    border-bottom: 1px solid rgba(140, 115, 85, 0.3);
    transition: all 0.3s;
}

.accordion-content a:hover {
    color: #497630;
    border-bottom-color: #497630;
    background-color: hsl(28, 80%, 90%);
}

.accordion-content .w3-button {
    margin: 8px 0;
    font-family: "Raleway", sans-serif;
    font-weight: 300;
}

ul, ol {
    font-size: 1rem;
}

ul ul, ul ol, ol ul, ol ol {
    font-size: 1rem;
}

.icon-box {
    max-width: 80px;
    max-height: 80px;
    width: 100%;
    height: auto;
}

.fade-wrapper {
    position: relative;
    display: inline-block; /* Container passt sich dem Bild an */
    max-width: 100%;
}

.img1, .img2 {
    max-width: 100%;
    height: auto !important;
}

.img1 {
    display: block; /* verhindert kleine Lücken */
}

.img2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: fadeIn 5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}



.accordion-header {
    margin-top: 10px;
    margin-bottom: 0px;
    transition: background-color 0.3s;
    border-radius: 4px 4px 0 0;
    border: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    padding-left: 40px !important;
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;

}

.accordion-icon {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 20px;
}

.accordion-header:hover {
    background-color: hsl(28, 80%, 90%) !important;
}

.accordion-content {
    margin-bottom: 20px;
    background-color: #f1ebe5;
    border-radius: 0 0 4px 4px;
    padding-top: 0 !important;
}

.accordion-content > *:first-child {
    margin-top: 0;
}

.responsive-content {
    padding-left: 48px;
}

@media (max-width: 600px) {
    .responsive-content {
        padding-left: 16px;
        padding-right: 16px;
    }
    body, p, a, ul, ol {
        font-size: 1.1rem !important;
    }
    h2 {
        font-size: 1.5rem !important;
    }
    h3 {
        font-size: 1.3rem !important;
    }
    .small-text {
        font-size: 0.85em !important;
    }
    .theme-menu-btn {
        font-size: 1rem !important;
        padding: 2px 6px !important;
    }
    .theme-menu-arrow {
        font-size: 1.2rem !important;
        margin-left: 6px !important;
    }
    .theme-menu-item {
        padding: 2px 8px !important;
        white-space: nowrap !important;
    }
    .theme-menu-icon {
        height: 18px !important;
        margin-right: 8px !important;
    }
    .theme-menu-text {
        font-size: 0.95rem !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 400px) {
    body, p, a, ul, ol {
        font-size: 1rem !important;
    }
    h2 {
        font-size: 1.3rem !important;
    }
    h3 {
        font-size: 1.15rem !important;
    }
    .small-text {
        font-size: 0.8em !important;
    }
    .theme-menu-btn {
        font-size: 0.95rem !important;
        padding: 2px 4px !important;
    }
    .theme-menu-arrow {
        font-size: 1.1rem !important;
        margin-left: 4px !important;
    }
    .theme-menu-item {
        padding: 2px 6px !important;
    }
    .theme-menu-icon {
        height: 16px !important;
        margin-right: 6px !important;
    }
    .theme-menu-text {
        font-size: 0.9rem !important;
    }
}

.breadcrumb-nav {
    display: inline-flex;
    align-items: center;
    color: #4a4a4a;
}

.breadcrumb-current {
    font-size: 1.4rem;
    color: #8c7355; /* Ein dezenter Gold/Braun Ton passend zum Design */
}

@media (max-width: 600px) {
    .breadcrumb-nav {
        margin-left: 10px !important;
        margin-top: 0;
        width: auto;
    }
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.w3-row {
    flex: 1 0 auto;
    width: 100%;
}

h5 {
    margin-bottom: 0;
    font-weight: 700 !important;
    font-size: larger;
}

h5 + p {
    margin-top: 0;
}

.site-footer {
    flex-shrink: 0;
    font-size: 0.9em;
    opacity: 0.7;
    margin-top: 64px;
}

.site-footer a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
    padding: 2px 6px;
    border-radius: 3px;
}

.site-footer a:hover {
    opacity: 1;
}

/* Hover-Effekte für Navigation und Links */
.breadcrumb-nav .w3-button:hover,
.w3-dropdown-hover:hover > .w3-button,
.w3-bar-block .w3-bar-item.w3-button:hover,
.site-footer a:hover {
    background-color:  hsl(28, 80%, 90%) !important;
    transition: background-color 0.3s;
}

/* Spezieller Hover für die Themen-Kacheln auf der Startseite */
.responsive-content > .w3-row.w3-border-bottom:hover {
    background-color: hsl(28, 80%, 90%) !important;
    transition: background-color 0.3s;
}

.breadcrumb-nav .w3-button:hover,
.w3-dropdown-hover:hover > .w3-button,
.w3-bar-block .w3-bar-item.w3-button:hover,
.site-footer a:hover {
    color: hsl(99, 42%, 33%) !important;
    text-decoration: none !important;
}

/* Responsive Bilder im Inhaltsbereich */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em 0;
}

/* --- SLIDESHOW SYSTEM --- */
/* Der Container reserviert den Platz für die Bilder */
.slideshow-container {
    position: relative;
    width: 100%;
    min-height: 300px;  /* Verhindert das Kollabieren während des Ladens */
    margin: 2em auto;
    overflow: hidden; /* Verhindert, dass Bilder beim Übergang über den Rand ragen */
    background-color: #f1ebe5; /* Gleiche Farbe wie Hintergrund */
    border-radius: 4px;
}

/* Alle Slides liegen standardmäßig übereinander (absolute) */
.mySlides {
    display: none;      /* Erstmal unsichtbar */
    width: 100%;
    min-height: 200px;  /* Stabilität für die Bilder */
    border-radius: 4px;
    opacity: 0;         /* Transparent für den Fade-In */
    transition: opacity 1.5s ease-in-out; /* Die Dauer des Überblendens */
    position: absolute;
    top: 0;
    left: 0;
}

/* Nur das erste Bild hat position:relative, damit der Container eine Höhe bekommt */
.mySlides:first-child {
    position: relative;
}

/* Diese Klasse wird per JavaScript hinzugefügt, um das Bild einzublenden */
.mySlides.show {
    display: block;
    opacity: 1;
}

/* Navigationselemente (Pfeile) */
.slideshow-arrow {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white !important;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
    border-radius: 3px;
    user-select: none;
    background-color: rgba(0,0,0,0.3); /* Dezenter Hintergrund */
    text-decoration: none;
    z-index: 10;
}

.slideshow-arrow:hover {
    background-color: rgba(0,0,0,0.7);
    color: white !important;
}

.arrow-right {
    right: 10px;
}

.arrow-left {
    left: 10px;
}

/* Einfache Bilder-Galerie (Grid) */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin: 2em 0;
}

.image-grid img {
    margin: 0;
    width: 100%;
    height: 200px;
    object-fit: cover; /* Schneidet Bilder gleichmäßig zu */
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
}

/* Bildunterschriften in der Galerie */
.image-grid figure {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.image-grid figcaption {
    text-align: center;
    font-size: 0.8em;
    margin-top: 8px;
    color: #666;
}

/* Hauptmenü Dropdown Positionierung auf Mobilgeräten */
.nav-dropdown-content {
    z-index: 100;
    background-color: #fcfaf8;
    width: max-content;
    min-width: auto;
}

.theme-menu-item {
    padding: 3px 22px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
}

.theme-menu-icon {
    height: 26px !important;
    margin-right: 12px !important;
}

.theme-menu-text {
    font-size: 1.05rem;
    white-space: nowrap !important;
}

@media (min-width: 601px) {
    .nav-dropdown-content {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

@media (max-width: 600px) {
    .nav-dropdown-content {
        left: 0 !important;
        transform: none !important;
        max-width: calc(100vw - 32px) !important;
        width: max-content;
    }
}
