/* Allgemeine Stile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background-color: #f5f5f5;
    padding: 1rem 0;
}

.header-content {
	background-color:#e9f5ff;
    display: flex;
    align-items: center; /* Vertikal zentrieren */
    justify-content: center; /* Logo rechts, Überschrift links */
}

.logo {
	background-color:#e9f5ff;
	margin-bottom: 2rem; /* Abstand zwischen Logo und Navigation */
    height: 400px; /* Höhe des Logos anpassen */
    width: auto; /* Breite automatisch anpassen */
	
}


/* Navigation */
nav {
    background-color: #333;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 1rem;
	justify-content: center; /* Navigation zentrieren */
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #555;
}

/* Hero-Bereich */
.hero {
    background-color: #e9f5ff;
    padding: 2rem 0;
    text-align: center;
}

.hero p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.btn {
    background-color: #007bff;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
}

/* Service-Bereich */
.service-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.service-item h3 {
    color: #007bff;
    margin-bottom: 1rem;
}

.service-item h4 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-item ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 1rem;
}

.service-item li {
    margin-bottom: 0.5rem;
}

.service-item table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.service-item table td {
    padding: 8px;
    border: 1px solid #ddd;
}

.service-item table tr:nth-child(even) {
    background-color: #f9f9f9;
}
/*  About-Bereich */
.about-text ul {
    margin-left: 0;       /* Linken Abstand der Liste entfernen */
    padding-left: 1rem;   /* Kleinen Abstand für die Einrückung beibehalten */
    list-style-position: inside; /* Punkte innerhalb des Textflusses anzeigen */
}

.about-text li {
    margin-bottom: 0.5rem; /* Abstand zwischen den Listeneinträgen beibehalten */
}
.about-content {
    display: flex;
    flex-wrap: wrap; /* Wichtig für Responsiveness */
    align-items: center;
    gap: 3rem;
    margin: 2rem 0;
}

.about-text {
    flex: 1;
    min-width: 300px; /* Mindestbreite für bessere Lesbarkeit */
	padding-right: 1rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    max-width: 100%; /* Neu: Begrenzung der Container-Breite */
	display: flex;          /* Neu */
    justify-content: center; /* Neu */
    align-items: center;    /* Neu */
    overflow: hidden; /* Verhindert Überlauf */
}

.profile-img {
    width: 400px;
    max-width: 100%; /* Nie breiter als der Container */
    height: auto; /* Proportionen beibehalten */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain; /* Bild vollständig anzeigen (kein Zuschneiden) */
    display: block; /* Vermeidet unerwünschten Whitespace */
	 margin: 0 auto;
}
/* Galerie */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: auto;
    max-width: 300px;
    max-height: 300px;
    object-fit: cover;
    border-radius: 5px;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Kontaktseite */
#contact {
    padding: 2rem 0;
}

.contact-form, .contact-info, .map {
    margin-bottom: 2rem;
}

.contact-form h3, .contact-info h3, .map h3 {
    color: #007bff;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.contact-info ul {
    list-style-type: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.map iframe {
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 450px;
    border: 0;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

footer p {
    margin: 0;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        height: 500px;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem;
    }

       .about-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .about-image {
        width: 100%;
        min-width: unset;   /* Überschreibt min-width */
        padding: 0 1rem;
    }
    
    .profile-img {
        max-width: 80vw;    /* Viewport-basierte Begrenzung */
        max-height: 60vh;   /* Dynamische Höhenbegrenzung */
    }
}



@media screen and (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .logo {
        height: 350px;
    }

    .about-content {
        flex-direction: column;
    }
    
    .profile-img {
		max-width: 90vh;
        max-height: 30vh; /* Noch kleiner auf sehr kleinen Geräten */
    }
}
body.lb-disable-scrolling {
  overflow: hidden;
}

.lightboxOverlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  background-color: black;
  opacity: 0.8;
  display: none;
}

.lightbox {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 10000;
  text-align: center;
  line-height: 0;
  font-weight: normal;
  outline: none;
}

.lightbox .lb-image {
  display: block;
  height: auto;
  max-width: inherit;
  max-height: none;
  border-radius: 3px;

  /* Image border */
  border: 4px solid white;
}

.lightbox a img {
  border: none;
}

.lb-outerContainer {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  border-radius: 4px;

  /* Background color behind image.
     This is visible during transitions. */
  background-color: white;
}

.lb-outerContainer:after {
  content: "";
  display: table;
  clear: both;
}

.lb-loader {
  position: absolute;
  top: 43%;
  left: 0;
  height: 25%;
  width: 100%;
  text-align: center;
  line-height: 0;
}

.lb-cancel {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  background: url(../images/loading.gif) no-repeat;
}

.lb-nav {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 10;
}

.lb-container > .nav {
  left: 0;
}

.lb-nav a {
  outline: none;
  background-image: url('data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
}

.lb-prev, .lb-next {
  height: 100%;
  cursor: pointer;
  display: block;
}

.lb-nav a.lb-prev {
  width: 34%;
  left: 0;
  float: left;
  background: url(../images/prev.png) left 48% no-repeat;
  opacity: 0;
  -webkit-transition: opacity 0.6s;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  transition: opacity 0.6s;
}

.lb-nav a.lb-prev:hover {
  opacity: 1;
}

.lb-nav a.lb-next {
  width: 64%;
  right: 0;
  float: right;
  background: url(../images/next.png) right 48% no-repeat;
  opacity: 0;
  -webkit-transition: opacity 0.6s;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  transition: opacity 0.6s;
}

.lb-nav a.lb-next:hover {
  opacity: 1;
}

.lb-dataContainer {
  margin: 0 auto;
  padding-top: 5px;
  width: 100%;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.lb-dataContainer:after {
  content: "";
  display: table;
  clear: both;
}

.lb-data {
  padding: 0 4px;
  color: #ccc;
}

.lb-data .lb-details {
  width: 85%;
  float: left;
  text-align: left;
  line-height: 1.1em;
}

.lb-data .lb-caption {
  font-size: 13px;
  font-weight: bold;
  line-height: 1em;
}

.lb-data .lb-caption a {
  color: #4ae;
}

.lb-data .lb-number {
  display: block;
  clear: left;
  padding-bottom: 1em;
  font-size: 12px;
  color: #999999;
}

.lb-data .lb-close {
  display: block;
  float: right;
  width: 30px;
  height: 30px;
  background: url(../images/close.png) top right no-repeat;
  text-align: right;
  outline: none;
  opacity: 0.7;
  -webkit-transition: opacity 0.2s;
  -moz-transition: opacity 0.2s;
  -o-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.lb-data .lb-close:hover {
  cursor: pointer;
  opacity: 1;
}
