/* Globale Definitionen & Barrierefreiheit */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #34332c;
    color: #fee4b8;
    font-family: Arial, sans-serif;
    font-size: 1.2em;
    line-height: 1.5;
}

/* Tastatur-Fokus für Barrierefreiheit */
a:focus, button:focus {
    outline: 0px solid #eaff00;
    outline-offset: 2px;
}

p {
    margin:0 0 20px; 
    line-height: 1.65;
  }


.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #eaff00;
    color: #34332c;
    padding: 10px;
    z-index: 10000;
    transition: top 0.2s;
    font-weight: bold;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Containerbreiten-Steuerung */
.main-container {
    width: 95%;
    margin: 0 auto;
    padding: 20px 0;
}

@media (max-width: 599px) {
    .main-container {
        width: 100%;
        padding: 20px 10px;
    }
}

/* Header & Navigationsleiste */
.main-header {
    background-color: #34332c;
    position: sticky;
    top: 0;
    z-index: 2000;
    border-bottom: 5px solid #ee6405;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    margin: 0 auto;
}

@media (max-width: 599px) {
    .header-container {
        width: 100%;
        padding: 0 10px;
    }
}

.logo-container {
    padding: 5px 0;
}

.logo {
    display: block;
    height: 130px;
    min-height: 130px;
    width: auto;
}

/* Navigation Links */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-link {
    color: #ee6405;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.2s ease;
    padding: 10px;
}

.nav-link:hover, .nav-link:focus {
    color: #fee4b8;
}

/* Inhalts-Links */
.content-link {
    color: #ee6405;
    text-decoration: none;
}

.content-link:hover, .content-link:focus {
    color: #fee4b8;
}


	.content-link2 {
	    color: #34332c;
	    text-decoration: none;
	}
	
	.content-link2:hover, .content-link2:focus {
	    color: #ee6405;
	}





/* Hamburger Menü (Standardmäßig versteckt) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 3000;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: #ee6405;
    position: relative;
    transition: background 0.2s;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: #ee6405;
    left: 0;
    transition: transform 0.2s;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Smartphone Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 140px; /* Nach Logo-Höhe + Padding */
        left: 0;
        width: 100%;
        background-color: #34332c;
        display: none;
        border-bottom: 4px solid #ee6405;
    }

    .nav-menu.open {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 15px;
        width: 100%;
        border-top: 0px solid rgba(255,255,255,0.1);
    }
}

/* Fixierter Hero-Slider unter der Navigationsleiste */
.hero-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    width: 100%;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* PC-Ansicht: Feste Höhe für Slider, die sich proportional anpasst */
@media (min-width: 1025px) {
    .hero-slider {
        height: 500px;
    }
    .slide img {
        height: 500px;
        object-fit: cover;
    }
}

/* Typografie */
h1, h2, h3, h4, h5, h6 {
    color: #ee6405;
    margin-bottom: 15px;
}

/* Flexibles Rastersystem für Boxenbreiten */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 20px -10px;
}




.tile-box {
    padding: 20px;
    border: 0px solid #ffffff;
    background: rgba(255,255,255,0.02);
    border-radius: 4px;
}

/* Boxen-Klassen */
.col-100 { width: 100%; padding: 5 15px; margin:5px; }
.col-50  { width: 49.4%; padding: 5 15px; margin:5px; }
.col-60  { width: 59.15%; padding: 5 15px; margin:5px; }
.col-40  { width: 39.5%; padding: 5 15px; margin:5px; }
.col-33  { width: 32.7%; padding: 5 15px; margin:5px; }
.col-98 { width: 99.2%; padding: 5 15px; margin:5px; }

/* Responsive Grid für kleinere Bildschirme */
@media (max-width: 768px) {
    .col-50, .col-60, .col-40, .col-33 {
        width: 100%;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .col-98 {
        width: 97.5%;
        margin-bottom: 15px;
    }
}



/* Automatische Galerie / Karussell */
.carousel-container {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.carousel-track {
    display: flex;
    gap: 15px;
    width: max-content;
    animation: scrollContinuous 40s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.gallery-thumb {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: block;
}

.gallery-thumb img {
    display: block;
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.2s;
    opacity: 0.75;
}

.gallery-thumb:hover img {
    transform: scale(1.03);
    border: solid thin #ee6405;
    opacity: 1;
}

@keyframes scrollContinuous {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Lightbox / Extra Fenster für Großansicht */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #34332c;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img-wrapper img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border: 2px solid #ee6405;
    border-radius: 20px;
}

.lightbox-controls {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.lightbox-controls button {
    background-color: #34332c;
    color: #fee4b8;
    border: 1px solid #ee6405;
    padding: 10px 15px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.lightbox-controls button:hover, .lightbox-controls button:focus {
    background-color: #fee4b8;
    color: #34332c;
}

.lightbox-controls .close-button {
    border-color: #ee6405;
    color: #ee6405;
}

.lightbox-controls .close-button:hover, .lightbox-controls .close-button:focus {
    background-color: #ee6405;
    color: #ffffff;
}

/* Footer-Bereich */
.main-footer {
    width: 100%;
    margin-top: 40px;
}

.footer-line {
    height: 8px; /* Breite orange Linie */
    background-color: #ee6405;
    width: 100%;
}

.footer-content {
    background-color: #fee4b8;
    width: 100%;
    padding: 20px 20px 80px 20px;
    text-align: center;
    color: #34332c;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-links a {
    color: #ff0000;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.footer-links a:hover, .footer-links a:focus {
    color: #34332c;
}



/* Ermöglicht das langsame, weiche Scrollen auf der gesamten Seite */
html {
  scroll-behavior: smooth;
}

/* Styling des Top-Buttons */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ee6405; /* Wunschfarbe */
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  opacity: 0.75;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s;
  
  /* Initial unsichtbar (wird per JavaScript eingeblendet) */
  opacity: 0;
  pointer-events: none;
  z-index: 1000; /* Stellt sicher, dass der Button über allen Elementen liegt */
}

/* Hover-Effekt */
.back-to-top:hover {
  background-color: #fee4b8;
  border: solid thin #34332c;
  color: #ee6405;
  transform: translateY(-3px); /* Leichter Sprung-Effekt nach oben */
}

/* Klasse, die per JavaScript hinzugefügt wird, wenn gescrollt wurde */
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive Anpassung für kleinere Bildschirme (Mobilgeräte) */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
}


.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0px 0px 15px 0px;

}


	
/* Transparentes Bild mit Textumfluss entlang der Alpha-Kanten */
.shape-img {
    float: left;
    height: auto;
    margin-right: 25px;
    margin-bottom: 10px;
    object-fit: contain;
    border: solid 0px #ff0000;
    /* Nutzt den Alpha-Kanal des PNGs für den Textumfluss */
    shape-outside: url(../img/transparent-image.png);
    shape-image-threshold: 0.5;
}


	/* Transparentes Bild mit Textumfluss entlang der Alpha-Kanten */
	.shape-img2 {
	    float: right;
	    height: auto;
	    margin-left: 5px;
	    margin-bottom: 5px;
	    object-fit: contain;
	    border: solid 0px #ff0000;
	}

		/* Transparentes Bild mit Textumfluss entlang der Alpha-Kanten */
		.shape-img3 {
		    height: auto;
		    margin-left: 10px;
		    margin-bottom: 10px;
		    margin-top: 10px;
		    object-fit: contain;
		    border: solid 0px #ff0000;
		    /* Nutzt den Alpha-Kanal des PNGs für den Textumfluss */
		    shape-outside: url(../img/transparent-image.png);
		    shape-image-threshold: 0.5;
		}
		
		
.blinkender-text {
  /* Name der Animation, Dauer (8 Sekunden), Kurve (sanft), Endlosschleife */
  animation: einAusBlenden 8s ease-in-out infinite;
}

/* Hier wird der Ablauf der Animation definiert */
@keyframes einAusBlenden {
  0%, 100% { opacity: 0; }  /* Start und Ende unsichtbar */
  30%, 70% { opacity: 1; }  /* Bleibt zwischen 30% und 70% der Zeit voll sichtbar */
}				