 @charset "utf-8";
/* CSS Document */
/*Responsive Styles*/
@media screen and (max-width: 767px) {
    /* Hamburger Menü-Icon */
    .menu-icon {
        display: inline-block;
        font-size: 20px;
        font-weight: bold;
    }
    
    /* X-Schließen-Symbol, standardmäßig versteckt */
    .close-icon {
        display: none;
        font-size: 20px;
        font-weight: bold;
    }

    /* Checkbox für Menü umschalten */
    input[type=checkbox] {
        display: none !important;
    }

    /* Label für das Menü anzeigen */
    .show-menu {
        display: block !important;
        cursor: pointer;
        z-index: 99995;
        padding: 5px 20px 20px 10px;
    }

    /* Menü-Listenelemente */
    #menue {
        position: absolute;
        top: 100%;
        left: 2.5%;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.5s ease, visibility 0.5s ease;
        z-index: 9999;
    }

    /* Dropdown-Links erscheinen inline */
    ul li {
        margin: 10px auto !important;
    }

    /* Alle Menülinks volle Breite */
    ul li, li a {
        width: 100% !important;
    }

    /* Menü anzeigen, wenn die Checkbox aktiviert ist */
    input[type=checkbox]:checked ~ #menue {
        visibility: visible;
        opacity: 1;
    }

    /* X-Symbol anzeigen, wenn das Menü geöffnet ist */
    input[type=checkbox]:checked ~ .show-menu .menu-icon {
        display: none;
    }
    input[type=checkbox]:checked ~ .show-menu .close-icon {
        display: inline-block;
    }
}

/*Style 'show menu' label button and hide it by default*/
.show-menu {
    font-family: 'Poppins', sans-serif; /* Verwendet Poppins als primäre Schriftart */
    text-decoration: none;
    color: #33360E;
    text-align: right;
    padding: 5px 20px 20px 10px;
    display: none;
    margin:0 0 0 auto;
    z-index: 0;
    width:30px;
}

/*Hide checkbox*/
input[type=checkbox] {
    display: none !important;
}

/*Show menu when invisible checkbox is checked*/
input[type=checkbox]:checked ~ #menue {
    visibility: visible;
    opacity: 1;
}
html {
  scroll-behavior: smooth; /* Ermöglicht sanftes Scrollen */
}
body{
	font-size:14px;
	width:100%;
	margin:0 auto;
	font-family: 'Poppins', sans-serif;
	background:url();
	background-position:bottom center;
	background-repeat:repeat-x;
	background-attachment:fixed;
	}
header{
	width:100%;
	height:100px;
	top:0;
	left:0;
	margin:0px auto 0px auto;
	background-color: rgba(255,255,255,0.9);
	position: fixed; /* Macht das Header immer sichtbar */
    z-index: 999;
    box-shadow: 0 3px 4px #333;
	}
#headerbereich{
	width:980px;
	height:100%;
	background:transparent;
	margin:0 auto;
	}
#logo{
	width:150px;
	height:auto;
	margin:10px auto 5px auto;
	background:transparent;
	float:left;
	}
#logo img{
	width:150px;
	height:auto;
	margin:0 auto;
	}


nav {background:transparent;
	margin:60px auto 0px auto;
	float:right;
	}
#menu{
	width:auto;
	height:40px;
	background:transparent;
	}

nav ul a {
  text-decoration: none;
  color: #666;
  padding:5px;
}

nav ul a:hover,
nav ul a:focus{
  color: #33360E;
  
}
nav ul a:active{
  color: #33360E;
  
}


nav ul li {
  list-style-type: none;
  margin-left: 5px;
  margin-right: 5px;
  height: 20px;
  padding-top: 5px;
  padding-right: 5px;
  padding-bottom: 5px;
  padding-left: 5px;
  cursor: pointer;
  display:inline-block;
  float:left;
  width:100px;
	font-size:16px;
	color:#666;
}

nav ul {
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
  margin-left: 0px;
  width: auto;
  text-align: center;
    font-weight:400;
  padding-top: 0px;
  padding-right: 5px;
  padding-bottom: 0px;
  padding-left: 5px;
}
#main{
	clear:both;
	width:100%;
	min-width:980px;
	height:auto;
	background-color:#ffffff;
	margin:0 auto 0 auto;
    overflow:hidden;
	}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: white; }
}

.typing-animation {
    overflow: hidden;
    border-right: .05em solid white; /* The cursor */
    white-space: nowrap; /* Keeps the text on a single line */
    margin: 0 auto; /* Centers the text */
    letter-spacing: 0em; /* Adjusts the spacing between characters */
    animation: typing 3.5s steps(30, end), blink-caret .75s step-end infinite;
}        
#section1 {
    clear: both;
    width: 100%;
    height: 100vh; /* 100% der Bildschirmhöhe abzüglich der Höhe des Headers */
    margin-top: 0; 
    margin-bottom: 0;
    padding: 0;
    background-image: url("../img/background4.jpg");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center top;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    position: relative;
    z-index: 2; /* Setzt den z-Index des Banners unter den des Headers */
    box-shadow: 0 3px 4px #666;
    display: flex;
    justify-content: center;
    align-items: center;
}
#section1impressum {
    clear: both;
    width: 100%;
    height: 550px; /* 100% der Bildschirmhöhe abzüglich der Höhe des Headers */
    margin-top: 0; 
    margin-bottom: 0;
    padding: 0;
    background-image: url("../img/bgimpressum.jpg");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center bottom;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    position: relative;
    z-index: 2; /* Setzt den z-Index des Banners unter den des Headers */
    box-shadow: 0 3px 4px #666;
    display: flex;
    justify-content: center;
    align-items: center;
}
#section1 .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Halbtransparentes Schwarz */
    z-index: 1; /* Setzt das Overlay hinter den Inhalt */
}
#section1impressum .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Halbtransparentes Schwarz */
    z-index: 1; /* Setzt das Overlay hinter den Inhalt */
}
#banner {
    max-width: 95%; /* Maximalbreite des Artikels */
    margin: 0 auto; /* Zentriert den Inhalt horizontal */
    padding: 20px; /* Innenabstand des Artikels */
    height: auto;
    position: relative;
    z-index: 3;
    text-align: center; /* Text zentrieren */
}

.headline {
    text-align: center;
}

.upper-line {
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: 5rem;
    font-weight: bold;
    text-transform: uppercase; 
    color: rgba(255, 255, 255, 1); 
}

.lower-line {
    font-family: 'Poppins', sans-serif; 
    font-size: 2em;
    display: inline-block;
    width: 100%; 
    font-weight:100;
    white-space: nowrap; /* Verhindert den Zeilenumbruch */
    overflow: hidden; 
    text-overflow: ellipsis; /* Kürzt den Text mit Auslassungspunkten, falls er zu lang ist */
    color: rgba(255, 255, 255, 1); 
}

.headline2 .third-line {
    font-family: "Inspiration", sans-serif; /* Verwendung der Schriftart "Inspiration" */
    color: rgba(255, 255, 255, 1); 
    font-weight: 400;
    font-style: normal;
    text-align: center; /* Zentriert den Text horizontal */
    font-size: 4em; /* Größe der Schrift auf 4em festlegen */
    display: block; /* Ändert die Anzeige von inline zu block, um die Höhe anzupassen */
    margin-top: 40px; /* Oberen Abstand hinzufügen */
    margin-bottom: 20px; /* Unteren Abstand hinzufügen */
}

#section2 {
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding:60px 0;
    background:#f2f2f2;
    color:#333333;
    position: relative;
    z-index: 1;
}
#section2 h2 {
    width: 90%;
    height: auto;
    margin: 0px auto 0 0;
    padding: 5px 0 5px 5px;
    font-size: 4em;
    font-weight: normal;
    text-align: left;
    font-family: "Inspiration", sans-serif;
}

#section2 article {
    width: 100%;
    max-width: 980px; /* Maximalbreite von 980px */
    height: auto;
    padding: 0;
    margin: 0 auto;
}

.section2image{
     width: 40%;
    height: auto;
    margin: 0 auto;
    float: left; /* Das Bild soll links schweben */
}
#section2 img {
   width: 80%;
    height: auto;
    display: block; /* Damit die Margin-Auto-Einstellung funktioniert, muss das Bild ein Blockelement sein */
    margin: 0 auto; /* Horizontal zentriert */
}

.section2content {
    padding:0;
    width: 60%;
    font-weight: 300;
    font-size: 14px;
    float: right; /* Der Textinhalt soll rechts schweben */
}
.section2impressum{
    padding:0;
    width: 90%;
    font-size: 0.9rem;
    margin:0 auto;
}
#section2 p {
    width: 90%;
    height: auto;
    padding: 5px;
    text-align: left;
    margin: 0 auto 0 0;
}
#section2 button {
    width: 200px; /* Breite des Buttons */
    height: 50px; /* Höhe des Buttons */
    background-color: #33360E; /* Hintergrundfarbe des Buttons */
    color: white; /* Textfarbe des Buttons */
    border: none; /* Keine Rahmen um den Button */
    border-radius: 0px; /* Eckradius des Buttons */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Schatten des Buttons */
    cursor: pointer; /* Zeiger als Mauszeiger */
    font-size: 16px; /* Textgröße des Buttons */
    font-weight: 400; /* Fettschrift des Buttons */
    text-align: center; /* Zentrierte Ausrichtung des Textes im Button */
    text-decoration: none; /* Keine Unterstreichung des Textes im Button */
    display: inline-block; /* Inline-Block-Element, damit Breite und Höhe angewendet werden können */
    margin-top: 20px; /* oberer Abstand zum Text */
}

#section3 {
    width: 100%;
    background:#ffffff;
    height: auto;
    margin: 0 auto;
    padding:40px 0 60px 0;
    color:#333333;
    position: relative;
    z-index: 1;
}

.container {
    width: 100%;
    max-width:980px;
    padding:0;
    display:flex;
    margin: 0 auto;
    justify-content: space-between;
}

.column {
    width: calc(33.33% - 20px); /* Berechnet die Breite jeder Spalte */
}

.area { /* Abstand zwischen den Bereichen */
    text-align: center; /* Zentriert den Inhalt horizontal */
}

.area img {
    width: 80px;
    height: auto;
    margin:0 0 10px 0; /* Optional: Abstand unter dem Bild */
}

.area h2 {
    font-size: 21px;
    margin-bottom: 10px; /* Optional: Abstand unter der Überschrift */
}

.area p {
    font-size: 14px;
    text-align:left;
    margin:30px auto;
    width:60%;
    color: #666; /* Optional: Farbe für den Beschreibungstext */
}
.area > .area-beschreibung{
    font-size: 14px;
    width:100%;
    text-align:center;
    color: #666;
}
.service-list {
    font-size: 12px;
    list-style-type:none; /* Listenpunkte als Punkte anzeigen */
    text-align: left; /* Textausrichtung links beibehalten */
    padding-left: 20px; /* Einrückung der Listenpunkte */
    display: inline-block;
    margin:0;/* Als Inline-Block-Element behandeln */
}

.service-list li {
    margin-bottom: 5px; /* Abstand zwischen den einzelnen Listenpunkten */
}


#portfolio {
  height: 100px;
  background-color: #33360E; /* Hintergrundfarbe des Buttons */
  display: flex;
  justify-content: center;
  align-items: center;
}

#portfolio h2 {
  font-family: "Inspiration", sans-serif;
  color: #ffffff;
    font-weight: 300;
    font-size: 3.5em;
    margin:0 auto;
}
        
#section5 {
    width: 100%;
    background:#ffffff;
    height: auto;
    margin: 0 auto;
    padding:40px 0 60px 0;
    color:#333333;
    position: relative;
    z-index: 1;
}
.containerunten {
    width:100%;
    max-width: 980px;
    margin:0 auto;
    display: flex;
    flex-wrap: wrap;
    height: 100vh; /* volle Höhe des Bildschirms */
}

.box {
    flex: 1 1 30%; /* Flexible Breite, 30% des Elternelements */
    max-width: 327px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
     transition: transform 0.3s ease, background-size 0.3s ease; /* Kombinierte Übergänge */
}

.box:hover {
    background-size: 105%; /* Vergrößert den Hintergrund bei Hover */
    transform: scale(1.05); /* Optional: leichte Vergrößerung der Box */
}


/* Simpler "Mehr"-Link */
.openModalBtn {
    font-size: 16px;
    color: #007BFF; /* Standardfarbe für den Link */
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}


/* Modal-Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001; /* Sicherstellen, dass das Modal über anderen Inhalten steht */
}

/* Sichtbar, wenn das Modal geöffnet ist */
.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Modal-Fenster */
.modal {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: fadeIn 0.3s ease;
    z-index: 1001; /* Sicherstellen, dass das Modal-Inhalt über dem Overlay steht */
}

/* Schließen Button */
.close-btn {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 28px;
    cursor: pointer;
    background-color: #33360E; /* Hintergrundfarbe */
    color: white; /* Textfarbe */
    width: 40px; /* Quadratisch durch gleiche Höhe und Breite */
    height: 40px;
    border: none;
    border-bottom-left-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Kein zusätzliches Padding */
    margin: 0; /* Kein zusätzlicher Abstand */
    transition: background-color 0.3s ease, font-size 0.3s ease, width 0.3s ease, height 0.3s ease; /* Übergangsanimation */
}
.close-btn:hover {
    background-color: #33361D;
    font-size: 36px;
    width: 60px; /* Quadratisch durch gleiche Höhe und Breite */
    height: 60px;
    
}

/* Logos im Overlay */
.portfolio-logo-overlayer{
    max-width:170px;
    max-height:100px;
    padding:10px 0;
}

/* Headline im Modal */
.modal-title {
    font-size: 20px;
    font-family: "Roboto Condensed", Arial, sans-serif;
    color: #33360E;
    margin-top: 0;
    padding: 10px 0;
    border-top: solid 1px #efefef;
    text-transform: uppercase; /* Um den Text in Großbuchstaben anzuzeigen */
}

.modal-title a{
    text-decoration: none;
    color: #33360E;
}

/* Headline auf der Startseite */
.project-title {
    margin-top: 0;
}

/* Text */
.modal p {
    margin-bottom: 20px;
}

.modal a{
    text-decoration: none;
    color: #33360E;
}
.modal a:hover{
    text-decoration: underline;
}
/* Bildergalerie */
.gallery {
    display: grid;
    gap: 10px;
    padding:10px;
    border-top: solid 1px #efefef;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
}

/* Responsive Grid */
@media (min-width: 600px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Zwei Bilder pro Reihe auf kleinen Bildschirmen */
@media (max-width: 599px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr); /* Zwei Bilder pro Reihe */
    }

    .gallery img {
        width: 100%; /* Bilder füllen den jeweiligen Grid-Container */
        margin: 0; /* Kein zusätzlicher Rand */
    }
    
    .modal {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: fadeIn 0.3s ease;
    z-index: 1001; /* Sicherstellen, dass das Modal-Inhalt über dem Overlay steht */
}
}

/* Lightbox für Bild */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1005; /* Sicherstellen, dass die Lightbox über anderen Inhalten steht */
}

.lightbox.visible {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    margin: 0 auto;
    max-width: 600px;
    max-height: 90%;
    border-radius: 8px;
}

/* Navigation in der Lightbox */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: white;
    cursor: pointer;
    user-select: none;
    z-index: 1006; /* Sicherstellen, dass die Navigation über dem Bild steht */
}

.lightbox-nav.prev {
    font-size:80px;
    width:30px;
    left: 20px;
    text-align: left;
    
}

.lightbox-nav.next {
    font-size:80px;
    width:30px;
    right: 20px;
    text-align: right;
}

/* Schließen-Button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 36px;
    color: white;
    cursor: pointer; /* Hintergrund für bessere Sichtbarkeit */
    padding: 10px;
    border-radius: 5px;
    z-index: 1006; /* Sicherstellen, dass der Button über dem Bild ist */
    transition: background-color 0.3s ease;
}


/* Fade-In Animation */
@keyframes fadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
footer {
    width: 100%;
    min-width: 100%;
    height: auto;
    padding: 40px 0;
    background: #33360E;
    margin: 0 auto;
    text-align: center;
}
footer a{
    color:#ffffff;
}

#footerauswahl {
    width: 500px;
    max-width: 100%;
    height: auto;
    margin: 1em auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

footer p {
    width: 100%;
    height: auto;
    margin: 0 auto;
    font-size: 1.1em;
    color: #fff;
}

.kontakt1 {
    width: 100%;
    max-width: 250px; /* Reduzierte maximale Breite für bessere Anordnung auf kleineren Bildschirmen */
    height: auto;
    margin: 0 auto;
    padding: 10px; /* Zusätzlicher Innenabstand */
}
.kontakt1 img{
    margin:0 auto 1em auto;
}

.cf::before, .cf::after {
  content: "";
  display: table;
}

.cf::after {
  clear: both;
}
#back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #33360E;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 15px;
    display: none;
    cursor: pointer;
    z-index: 1000; /* Sicherstellen, dass der Button über anderen Inhalten steht */
    transition: opacity 0.3s ease;
}

#back-to-top-btn svg {
    fill: white;
}

#back-to-top-btn:hover {
    background-color: #555;
}

/* Sichtbarkeit beim Scrollen */
#back-to-top-btn.show {
    display: block;
    opacity: 1;
}

/* !!!!!!!!!!!!!!!!!!!!!!!! ENDE DESKTOP !!!!!!!!!!!!!!!!!!!!!!!! */
/* !!!!!!!!!!!!!!!!!!!!!!!! Mobile/Handy Portrait Size !!!!!!!!!!!!!!!!!!!!!!!! */
	@media only screen and (max-width: 479px) {
	
body{
	font-size:14px;
	width:100%;
	margin:0 auto;
	font-family: 'Poppins', sans-serif;
	background:#ffffff;
	}
header{
	width: 100%;
    height: 80px;
    top: 0;
    left: 0;
    margin: 0px auto 0px auto;
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed; /* Macht das Header immer sichtbar */
    z-index: 999;
    box-shadow: 0 3px 4px #666;
	}
#headerbereich{
	width:100%;
    background:#fff;
	height:auto;
	padding-bottom:0px;
	margin:0 auto;
	}
#logo{
	width:100%;
	height:auto;
    padding:5px 0;
	margin:0px auto 5px 10px;
	float:none;
	}
#logo img{
	width:120px;
	height:auto;
	margin:0 auto 0 auto;
	}
	
nav {
    width:100%;
    background:#ffffff;
	margin:-60px auto 0px auto;
	float:none;
	}
#menu{
	width:100%;
	text-align:right;
	height:auto;
	}
#menue{
    width:95%; 
    display: block;
    margin:10px auto 0 auto;
    padding:0px;
    border-radius: 5px;
    box-shadow: 0 3px 4px #222;
    }
        
ul li, li a {
        width: 90% !important;
            display: block;
    }
nav ul li {
  width:90% ;
    height:auto;
    border:none;
    margin:0 auto;
    padding:0px;
    float:none; 
    text-align:center;
}
nav ul a {
  text-decoration: none;
  color: #666;
  padding:15px;
}

nav ul a:hover,
nav ul a:focus{
  color: #33360E;
    
}
nav ul a:active{
  color: #33360E;
  
}

      
#main {
	clear:both;
	width:100%;
	height:auto;
	margin:0px auto 0 auto;
	min-width:100% !important;
	}
        
#section1 {
    clear: both;
    width: 100%;
    height: 100vh;  /* 100% der Bildschirmhöhe abzüglich der Höhe des Headers */
    margin-top: 0; 
    margin-bottom: 0;
    padding: 0;
    background-image: url("../img/background4.jpg");
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
    z-index: 2; /* Setzt den z-Index des Banners unter den des Headers */
    box-shadow: 0 3px 4px #666;
    display: flex;
    justify-content: center;
    align-items: center;
} 

#section1impressum {
    clear: both;
    width: 100%;
    height: 550px; /* 100% der Bildschirmhöhe abzüglich der Höhe des Headers */
    margin-top: 0; 
    margin-bottom: 0;
    padding: 0;
    background-image: url("../img/bgimpressum.jpg");
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-position: center bottom;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    position: relative;
    z-index: 2; /* Setzt den z-Index des Banners unter den des Headers */
    box-shadow: 0 3px 4px #666;
    display: flex;
    justify-content: center;
    align-items: center;
}
        
#banner {
    word-break: break-all;
    max-width: 90%; /* Maximalbreite des Artikels */
    margin: 350px auto 0 auto; /* Zentriert den Inhalt horizontal */
    padding: 0px; /* Innenabstand des Artikels */
    height: auto;
    position: relative;
    z-index: 3;
    text-align: center; /* Text zentrieren */
        }
.typing-animation {
    overflow: hidden;
    border-right: .05em solid white; /* The cursor */
    white-space: nowrap; /* Keeps the text on a single line */
    margin: 0 auto; /* Centers the text */
    letter-spacing: 0em; /* Adjusts the spacing between characters */
    animation: typing 3.5s steps(30, end), blink-caret .75s step-end infinite;
}    
.upper-line {
        font-size: 13vw; /* Anpassen der Schriftgröße für kleinere Bildschirme */
    }

    .lower-line {
        font-size: 4vw; /* Anpassen der Schriftgröße für kleinere Bildschirme */
    }

    .headline2 .third-line {
        font-size: 8.5vw; /* Anpassen der Schriftgröße für kleinere Bildschirme */
        margin-top: 30px; /* Reduzieren des oberen Abstands */
        margin-bottom: 10px; /* Reduzieren des unteren Abstands */
    }
#section2 {
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 60px 0;
    background: #f2f2f2;
    color: #333333;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriert den Inhalt horizontal */
}
#section2 h2 {
     width: 90%;
    margin: 0 auto;
    padding: 5px;
    font-size: 4em;
    font-weight: normal;
    text-align: center;
    font-family: "Inspiration", sans-serif;
}
#section2 article {
    width: 100%;
    max-width: 479px; /* Maximalbreite von 479px */
    height: auto;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriert den Inhalt horizontal */
}

.section2image{
     width: 100%;
    height: auto;
    margin: 0 auto;
    float:none;
    
}
#section2 img {
    width: 150px; /* oder eine andere Breite, die das Bild quadratisch macht */
    height: 150px; /* Höhe gleich der Breite für ein Quadrat */
    object-fit: cover; /* Verhindert Verzerrung, schneidet das Bild bei Bedarf */
    object-position: center top; /* Bild weiter nach unten verschieben */
    border-radius: 50%; /* Macht das Bild rund */
    display: block; /* Blockelement für Zentrierung */
    margin: 0 auto; /* Zentriert das Bild horizontal */
}

.section2content {
    padding: 0;
    width: 100%;
    max-width: 980px; /* Maximalbreite von 980px */
    font-size: 14px;
    display: flex; /* Flexbox für den Inhalt */
    flex-direction: column; /* Stellt sicher, dass der Button unter dem Text liegt */
    align-items: center; /* Zentriert den Button horizontal */
}
.section2impressum{
    padding:0;
    width: 90%;
    font-size: 0.9rem;
    margin:0 auto;
}
#section2 p {
    width: 90%;
    height: auto;
    padding: 5px;
    text-align: left;
    margin: 0 auto;
}
#section2 button {
    width: 200px; /* Breite des Buttons */
    height: 50px; /* Höhe des Buttons */
    background-color: #33360E; /* Hintergrundfarbe des Buttons */
    color: white; /* Textfarbe des Buttons */
    border: none; /* Keine Rahmen um den Button */
    border-radius: 0px; /* Eckradius des Buttons */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Schatten des Buttons */
    cursor: pointer; /* Zeiger als Mauszeiger */
    font-size: 14px; /* Textgröße des Buttons */
    font-weight: 400; /* Fettschrift des Buttons */
    text-align: center; /* Zentrierte Ausrichtung des Textes im Button */
    text-decoration: none; /* Keine Unterstreichung des Textes im Button */
    display: inline-block; /* Inline-Block-Element, damit Breite und Höhe angewendet werden können */
    margin: 20px auto; /* Zentriert den Button horizontal */
}

#section3 {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding:40px 0 60px 0;
    color:#333333;
    position: relative;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: 479px;
    height: auto;
    padding:0;
    background:#ffffff;
    display:block;
}

.column {
    width: 100%; /* Berechnet die Breite jeder Spalte */
    height:auto;
    padding:10px 0 40px 0;
    float:left;
}

.area { /* Abstand zwischen den Bereichen */
    text-align: center; /* Zentriert den Inhalt horizontal */
    margin:0 auto;
    width:90%;
}

.area img {
    width: 80px;
    height: auto;
    margin:10px 0 0 0; /* Optional: Abstand unter dem Bild */
}

.area h2 {
    font-size: 22px;
    margin: 0 auto; /* Optional: Abstand unter der Überschrift */
}

.area p {
    font-size: 14px;
    text-align:left;
    margin:20px auto;
    width:90%;
    color: #666; /* Optional: Farbe für den Beschreibungstext */
}
.area > .area-beschreibung{
    font-size: 16px;
    width:90%;
    text-align:center;
    color: #666;
}
.service-list {
    font-size: 13px;
    width:90%;
    list-style-type:none; /* Listenpunkte als Punkte anzeigen */
    text-align: left; /* Textausrichtung links beibehalten */
    padding-left: 20px; /* Einrückung der Listenpunkte */
    display: inline-block;
    margin:0;/* Als Inline-Block-Element behandeln */
}

.service-list li {
    margin-bottom: 5px; /* Abstand zwischen den einzelnen Listenpunkten */
}        
 #portfolio {
  height: 100px;
  background-color: #33360E; /* Hintergrundfarbe des Buttons */
  display: flex;
  justify-content: center;
  align-items: center;
}

#portfolio h2 {
  font-family: "Inspiration", sans-serif;
  color: #ffffff;
    font-weight: 300;
    font-size: 3.5em;
    margin:0 auto;
}
        
#section5 {
    width: 100%;
    background: #ffffff;
    height: auto;
    margin: 0 auto;
    padding: 40px 0 60px 0;
    color: #333333;
    position: relative;
    z-index: 1;
}
.containerunten {
    width:90%;
    max-width: 479px;
    margin:0 auto;
    display: flex;
    flex-wrap: wrap;
    height: auto; /* volle Höhe des Bildschirms */
}

.box {
    flex: 1 1 100%; /* Auf Mobilgeräten, volle Breite */
    height: 240px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    border-bottom: 1px solid #efefef; /* Unterstrich (1 Pixel) mit der Farbe #efefef */
transition: transform 0.3s ease, background-size 0.3s ease; /* Kombinierte Übergänge */
}

.box:hover {
    background-size: 105%; /* Vergrößert den Hintergrund bei Hover */
    transform: scale(1.05); /* Optional: leichte Vergrößerung der Box */
}

        
/* Modal-Fenster */
.modal {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-width:80%;
    width: 90%;
    position: relative;
    animation: fadeIn 0.3s ease;
    z-index: 1001; /* Sicherstellen, dass das Modal-Inhalt über dem Overlay steht */
}

.lightbox-nav {
        top: auto;
        bottom: 20px; /* Buttons am unteren Rand */
        transform: none; /* Entfernt die vertikale Zentrierung */
        font-size: 36px; /* Kleinere Schriftgröße für Mobilgeräte */
        
        }
    .lightbox-nav.prev {
        left: 20px;
    }

    .lightbox-nav.next {
        right: 20px;
    }
    .lightbox img {
        max-width: 90%; /* Größeres Bild auf kleineren Bildschirmen */
        max-height: 80%; /* Etwas kleiner in der Höhe, um Platz für die Buttons zu lassen */
    }
}
/* !!!!!!!!!!!!!!!!!!!!!!!! ENDE Mobile/Handy Portrait !!!!!!!!!!!!!!!!!!!!!!!! */
/* !!!!!!!!!!!!!!!!!!!!!!!! All Mobile/Hhandy LANDSCAPE !!!!!!!!!!!!!!!!!!!!!!!!*/
	@media only screen and (min-width : 480px) and ( max-width: 767px) {
  body{
	font-size:14px;
	width:100%;
	margin:0 auto;
	font-family: 'Poppins', sans-serif;
	background:#ffffff;
	}
header{
	width:100%;
	height:auto;
	}
#headerbereich{
	width:100%;
	height:auto;
    background:#fff;
	padding-bottom:0px;
	margin:0 auto;
	}
#logo{
	width:100%;
	height:auto;
    padding:5px 0;
	margin:0px auto 5px 10px;
	float:none;
	}
#logo img{
	width:120px;
	height:auto;
	margin:0 auto 0 auto;
	}
	
nav {
    width:100%;
    background:#ffffff;
	margin:-60px auto 0px auto;
	float:none;
	}
#menu{
	width:100%;
	text-align:right;
	height:auto;
	}


ul li, li a {
        width: 95% !important;
            display: block;
    }
        
#menue{
    width:95%; 
    display: block;
    margin:10px auto 0 auto;
    padding:0px;
    border-radius: 5px;
    box-shadow: 0 3px 4px #222;
    }
        
nav ul li {
  width:90% ;
    height:auto;
    border:none;
    margin:0 auto;
    padding:0px;
    float:none; 
    text-align:center;
}
nav ul a {
  text-decoration: none;
  color: #666;
  padding:15px;
}
#main {
	clear:both;
	width:100%;
	height:auto;
	margin:0px auto 0 auto;
	min-width:100% !important;
	}
#banner {
    word-break: break-all;
    max-width: 90%; /* Maximalbreite des Artikels */
    margin: 450px auto 0 auto; /* Zentriert den Inhalt horizontal */
    padding: 0px; /* Innenabstand des Artikels */
    height: auto;
    position: relative;
    z-index: 3;
    text-align: center; /* Text zentrieren */
        }
.typing-animation {
    overflow: hidden;
    border-right: .05em solid white; /* The cursor */
    white-space: nowrap; /* Keeps the text on a single line */
    margin: 0 auto; /* Centers the text */
    letter-spacing: 0em; /* Adjusts the spacing between characters */
    animation: typing 3.5s steps(30, end), blink-caret .75s step-end infinite;
}    
.upper-line {
        font-size: 13vw; /* Anpassen der Schriftgröße für kleinere Bildschirme */
    }

    .lower-line {
        font-size: 4vw; /* Anpassen der Schriftgröße für kleinere Bildschirme */
    }

    .headline2 .third-line {
        font-size: 8.5vw; /* Anpassen der Schriftgröße für kleinere Bildschirme */
        margin-top: 30px; /* Reduzieren des oberen Abstands */
        margin-bottom: 10px; /* Reduzieren des unteren Abstands */
    }

#section3 {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding:40px 0 60px 0;
    color:#333333;
    position: relative;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: 767px;
    height: auto;
    padding:0;
    background:#ffffff;
    display:block;
}

.column {
    width: 100%; /* Berechnet die Breite jeder Spalte */
    height:auto;
    padding:10px 0 40px 0;
    float:left;
}

.area { /* Abstand zwischen den Bereichen */
    text-align: center; /* Zentriert den Inhalt horizontal */
    margin:0 auto;
    width:90%;
}

.area img {
    width: 80px;
    height: auto;
    margin:10px 0 0 0; /* Optional: Abstand unter dem Bild */
}

.area h2 {
    font-size: 22px;
    margin: 0 auto; /* Optional: Abstand unter der Überschrift */
}

.area p {
    font-size: 14px;
    text-align:left;
    margin:20px auto;
    width:90%;
    color: #666; /* Optional: Farbe für den Beschreibungstext */
}
.area > .area-beschreibung{
    font-size: 16px;
    width:90%;
    text-align:center;
    color: #666;
}
.service-list {
    font-size: 13px;
    width:90%;
    list-style-type:none; /* Listenpunkte als Punkte anzeigen */
    text-align: left; /* Textausrichtung links beibehalten */
    padding-left: 20px; /* Einrückung der Listenpunkte */
    display: inline-block;
    margin:0;/* Als Inline-Block-Element behandeln */
}

.service-list li {
    margin-bottom: 5px; /* Abstand zwischen den einzelnen Listenpunkten */
}        
 #portfolio {
  height: 100px;
  background-color: #33360E; /* Hintergrundfarbe des Buttons */
  display: flex;
  justify-content: center;
  align-items: center;
}

#portfolio h2 {
  font-family: "Inspiration", sans-serif;
  color: #ffffff;
    font-weight: 300;
    font-size: 3.5em;
    margin:0 auto;
}
        
#section5 {
    width: 100%;
    background: #ffffff;
    height: auto;
    margin: 0 auto;
    padding: 40px 0 60px 0;
    color: #333333;
    position: relative;
    z-index: 1;
}
.containerunten {
    width: 95%;
    max-width: 767px; 
    margin:0 auto;
    display: flex;
    flex-wrap: wrap;
    height: auto; 
}

.box {
    flex: 1 1 50%; /* Auf Landscape Mobilgeräten, halbe Breite */
    height: 250px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, background-size 0.3s ease; /* Kombinierte Übergänge */
}

.box:hover {
    background-size: 105%; /* Vergrößert den Hintergrund bei Hover */
    transform: scale(1.05); /* Optional: leichte Vergrößerung der Box */
}

/* Modal-Fenster */
.modal {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-height:85%;
    max-width:100%;
    position: relative;
    animation: fadeIn 0.3s ease;
    z-index: 1001; /* Sicherstellen, dass das Modal-Inhalt über dem Overlay steht */
    overflow:scroll;
}

.lightbox-nav {
        top: auto;
        bottom: 20px; /* Buttons am unteren Rand */
        transform: none; /* Entfernt die vertikale Zentrierung */
        font-size: 36px; /* Kleinere Schriftgröße für Mobilgeräte */
        
        }
    .lightbox-nav.prev {
        left: 20px;
    }

    .lightbox-nav.next {
        right: 20px;
    }
    .lightbox img {
        max-width: 90%; /* Größeres Bild auf kleineren Bildschirmen */
        max-height: 80%; /* Etwas kleiner in der Höhe, um Platz für die Buttons zu lassen */
    }
      
}
/* !!!!!!!!!!!!!!!!!!!!!!!! ENDE All Mobile/Handy LANDSCAPE !!!!!!!!!!!!!!!!!!!!!!!!*/
/* !!!!!!!!!!!!!!!!!!!!!!!! tablet portrait !!!!!!!!!!!!!!!!!!!!!!!! */
	@media only screen and (min-width : 768px) and (max-width: 1024px) {
body{
	font-size:14px;
	width:100%;
	margin:0 auto;
	font-family: 'Poppins', sans-serif;
	background:url();
	background-position:bottom center;
	background-repeat:repeat-x;
	background-attachment:fixed;
	}
header{
	width:100%;
	height:70px;
	top:0;
	left:0;
	margin:0px auto 0px auto;
	background-color: rgba(255,255,255,0.9);
	position: sticky; /* Macht das Header immer sichtbar */
    z-index: 999;
    box-shadow: 0 3px 4px #333;
	}
#headerbereich{
    width:100%;
	height:100%;
	background:transparent;
	margin:0 auto;
	}
#logo{
	width:100px;
	height:auto;
	margin:5px auto 5px 10px;
	background:transparent;
	float:left;
	}
#logo img{
	width:100px;
	height:auto;
	margin:0 auto 0 auto;
	}


nav {background:transparent;
	margin:20px auto 0px auto;
	float:right;
	}
#menu{
	width:auto;
	height:40px;
	background:transparent;
	}

nav ul a {
  text-decoration: none;
  color: #666;
  padding: 5px;
}

nav ul a:hover,
nav ul a:focus{
  color: #33360E;
}
nav ul a:active{
  color: #33360E;
  
}


nav ul li {
  
  margin-left: 5px;
  margin-right: 5px;
  height: 20px;
  padding-top: 5px;
  padding-right: 5px;
  padding-bottom: 5px;
  padding-left: 5px;
  display:inline-block;
  float:left;
  width:100px;
	font-size:18px;
	color:#666;
}

nav ul {
  margin-top: 0px;
list-style-type: none;
  margin-right: 0px;
  margin-bottom: 0px;
  margin-left: 0px;
  width: auto;
  text-align: center;
  padding-top: 0px;
  padding-right: 5px;
  padding-bottom: 0px;
  padding-left: 5px;
}
#main{
	clear:both;
	width:100%;
	min-width:768px;
	height:auto;
	background-color:#ffffff;
	margin:0 auto 0 auto;
    overflow:hidden;
	}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: white; }
}

.typing-animation {
    overflow: hidden;
    border-right: .05em solid white; /* The cursor */
    white-space: nowrap; /* Keeps the text on a single line */
    margin: 0 auto; /* Centers the text */
    letter-spacing: 0em; /* Adjusts the spacing between characters */
    animation: typing 3.5s steps(30, end), blink-caret .75s step-end infinite;
}        
#section1 {
    clear: both;
    width: 100%;
    height: 100vh;  /* 100% der Bildschirmhöhe abzüglich der Höhe des Headers */
    margin-top: 0; 
    margin-bottom: 0;
    padding: 0;
    background-image: url("../img/background4.jpg");
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    position: relative;
    z-index: 2; /* Setzt den z-Index des Banners unter den des Headers */
    box-shadow: 0 3px 4px #666;
    display: flex;
    justify-content: center;
    align-items: center;
}

#section1impressum {
    clear: both;
    width: 100%;
    height: 550px; /* 100% der Bildschirmhöhe abzüglich der Höhe des Headers */
    margin-top: 0; 
    margin-bottom: 0;
    padding: 0;
    background-image: url("../img/bgimpressum.jpg");
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    position: relative;
    z-index: 2; /* Setzt den z-Index des Banners unter den des Headers */
    box-shadow: 0 3px 4px #666;
    display: flex;
    justify-content: center;
    align-items: center;
}

#section1 .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Halbtransparentes Schwarz */
    z-index: 1; /* Setzt das Overlay hinter den Inhalt */
}

#banner {
    max-width: 75%; /* Maximalbreite des Artikels */
    margin: 0 auto; /* Zentriert den Inhalt horizontal */
    padding: 20px; /* Innenabstand des Artikels */
    height: auto;
    position: relative;
    z-index: 3;
    text-align: center; /* Text zentrieren */
}

.headline {
    text-align: center;
}

.upper-line {
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: 5rem;
    font-weight: bold;
    text-transform: uppercase; 
    color: rgba(255, 255, 255, 1); 
}

.lower-line {
    font-family: 'Poppins', sans-serif; 
    font-size: 1.5rem;
    display: inline-block;
    width: 100%; 
    white-space: nowrap; /* Verhindert den Zeilenumbruch */
    overflow: hidden; 
    text-overflow: ellipsis; /* Kürzt den Text mit Auslassungspunkten, falls er zu lang ist */
    color: rgba(255, 255, 255, 1); 
}

.headline2 .third-line {
    font-family: "Inspiration", sans-serif; /* Verwendung der Schriftart "Inspiration" */
    color: rgba(255, 255, 255, 1); 
    font-weight: 400;
    font-style: normal;
    text-align: center; /* Zentriert den Text horizontal */
    font-size: 3.5rem; /* Größe der Schrift auf 4em festlegen */
    display: block; /* Ändert die Anzeige von inline zu block, um die Höhe anzupassen */
    margin-top: 40px; /* Oberen Abstand hinzufügen */
    margin-bottom: 20px; /* Unteren Abstand hinzufügen */
}

#section2 {
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding:60px 0;
    background:#f2f2f2;
    color:#333333;
    position: relative;
    z-index: 1;
}
#section2 h2 {
    width: 90%;
    height: auto;
    margin: 0px auto 0 0;
    padding: 5px 0 5px 5px;
    font-size: 3em;
    font-weight: normal;
    text-align: left;
    font-family: "Inspiration", sans-serif;
}
#section2 article {
    width: 100%;
    max-width: 1024px; /* Maximalbreite von 980px */
    height: auto;
    padding: 0;
    margin: 0 auto;
}

.section2image{
     width: 40%;
    height: auto;
    margin: 0 auto;
    float: left; /* Das Bild soll links schweben */
}
#section2 img {
   width: 80%;
    height: auto;
    display: block; /* Damit die Margin-Auto-Einstellung funktioniert, muss das Bild ein Blockelement sein */
    margin: 0 auto; /* Horizontal zentriert */
}

.section2content {
    padding:0;
    width: 60%;
    font-size: 0.9rem;
    float: right; /* Der Textinhalt soll rechts schweben */
}
.section2impressum{
    padding:0;
    width: 90%;
    font-size: 0.9rem;
    margin:0 auto;
}
#section2 p {
    width: 90%;
    height: auto;
    padding: 5px;
    text-align: left;
    margin: 0 auto 0 0;
}
#section2 button {
    width: 200px; /* Breite des Buttons */
    height: 50px; /* Höhe des Buttons */
    background-color: #33360E; /* Hintergrundfarbe des Buttons */
    color: white; /* Textfarbe des Buttons */
    border: none; /* Keine Rahmen um den Button */
    border-radius: 0px; /* Eckradius des Buttons */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Schatten des Buttons */
    font-size: 16px; /* Textgröße des Buttons */
    font-weight: 400; /* Fettschrift des Buttons */
    text-align: center; /* Zentrierte Ausrichtung des Textes im Button */
    text-decoration: none; /* Keine Unterstreichung des Textes im Button */
    display: inline-block; /* Inline-Block-Element, damit Breite und Höhe angewendet werden können */
    margin-top: 20px; /* oberer Abstand zum Text */
}
#section3 {
    width: 100%;
    background:#ffffff;
    height: auto;
    margin: 0 auto;
    padding:40px 0 60px 0;
    color:#333333;
    position: relative;
    z-index: 1;
}

.container {
    width: 95%;
    max-width:1024px;
    padding:0;
    display:flex;
    margin: 0 auto;
    justify-content: space-between;
}

.column {
    width: calc(33.33% - 20px); /* Berechnet die Breite jeder Spalte */
}

.area { /* Abstand zwischen den Bereichen */
    text-align: center; /* Zentriert den Inhalt horizontal */
}

.area img {
    width: 80px;
    height: auto;
    margin:0 0 10px 0; /* Optional: Abstand unter dem Bild */
}

.area h2 {
    font-size: 1rem;
    margin-bottom: 10px; /* Optional: Abstand unter der Überschrift */
}

.area p {
    font-size: 14px;
    text-align:left;
    margin:20px auto;
    width:60%;
    color: #666; /* Optional: Farbe für den Beschreibungstext */
}
.area > .area-beschreibung{
    font-size: 14px;
    width:100%;
    text-align:center;
    color: #666;
}
.service-list {
    font-size: 13px;
    list-style-type:none; /* Listenpunkte als Punkte anzeigen */
    text-align: left; /* Textausrichtung links beibehalten */
    padding-left: 20px; /* Einrückung der Listenpunkte */
    display: inline-block;
    margin:0;/* Als Inline-Block-Element behandeln */
}

.service-list li {
    margin-bottom: 5px; /* Abstand zwischen den einzelnen Listenpunkten */
}


#portfolio {
  height: 100px;
  background-color: #33360E; /* Hintergrundfarbe des Buttons */
  display: flex;
  justify-content: center;
  align-items: center;
}

#portfolio h2 {
  font-family: "Inspiration", sans-serif;
  color: #ffffff;
    font-weight: 300;
    font-size: 3.5em;
    margin:0 auto;
}
        
#section5 {
    width: 100%;
    background:#ffffff;
    height: 100%;
    margin: 0 auto;
    padding:40px 0 60px 0;
    color:#333333;
    position: relative;
    z-index: 1;
}
.containerunten {
    width:95%;
    max-width: 1024px;
    margin:0 auto;
    display: flex;
    flex-wrap: wrap;
    height: 100%; /* volle Höhe des Bildschirms */
}

.box {
    flex: 1 1 30%; /* Flexible Breite, 30% des Elternelements */
    height: 200px;
    position: relative;
    overflow: hidden;
    background-size:contain;
    background-position: center;
    background-repeat: no-repeat;
    background-size:100%;
    transition: transform 0.3s ease, background-size 0.3s ease; /* Kombinierte Übergänge */
}

.box:hover {
    background-size: 105%; /* Vergrößert den Hintergrund bei Hover */
    transform: scale(1.05); /* Optional: leichte Vergrößerung der Box */
}

/* Modal-Fenster */
.modal {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-height:85%;
    max-width:100%;
    position: relative;
    animation: fadeIn 0.3s ease;
    z-index: 1001; /* Sicherstellen, dass das Modal-Inhalt über dem Overlay steht */
    overflow:scroll;
}

.lightbox-nav {
        top: auto;
        bottom: 20px; /* Buttons am unteren Rand */
        transform: none; /* Entfernt die vertikale Zentrierung */
        font-size: 36px; /* Kleinere Schriftgröße für Mobilgeräte */
        
        }
    .lightbox-nav.prev {
        left: 20px;
    }

    .lightbox-nav.next {
        right: 20px;
    }
    .lightbox img {
        max-width: 90%; /* Größeres Bild auf kleineren Bildschirmen */
        max-height: 80%; /* Etwas kleiner in der Höhe, um Platz für die Buttons zu lassen */
    }



footer {
    width: 100%;
    min-width: 100%;
    height: auto;
    padding: 40px 0;
    background: #33360E;
    margin: 0 auto;
    text-align: center;
}
footer a{
    color:#ffffff;
}

#footerauswahl {
    width: 500px;
    max-width: 100%;
    height: auto;
    margin: 1em auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

footer p {
    width: 100%;
    height: auto;
    margin: 0 auto;
    font-size: 1.1em;
    color: #fff;
}

.kontakt1 {
    width: 100%;
    max-width: 250px; /* Reduzierte maximale Breite für bessere Anordnung auf kleineren Bildschirmen */
    height: auto;
    margin: 0 auto;
    padding: 10px; /* Zusätzlicher Innenabstand */
}
.kontakt1 img{
    margin:0 auto 1em auto;
}
}
/* !!!!!!!!!!!!!!!!!!!!!!!! ENDE tablet portrait !!!!!!!!!!!!!!!!!!!!!!!! */