/* Styling for the About Section */
#about {
    background-color: #ffffff; /* Weißer Hintergrund */
    color: #333; /* Dunkler Text */
    padding: 40px 30px; /* Mehr Padding für besseres Layout */
    border-radius: 10px; /* Abgerundete Ecken */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Leichter Schatten für Tiefe */
    max-width: 900px; /* Maximale Breite */
    margin: 20px auto; /* Zentrierung mit Abstand */
    line-height: 1.8; /* Verbesserte Lesbarkeit */
    font-family: Arial, sans-serif; /* Klare Schrift */
}

/* Überschriften */
#about h2 {
    font-size: 28px;
    color: #005a8d; /* Passend zur Corporate-Farbe */
    text-align: center;
    margin-bottom: 20px;
}

#about h3 {
    font-size: 22px;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Listen */
#about ul {
    margin-top: 10px;
    padding-left: 20px; /* Einrückung für Listen */
}

#about ul li {
    margin-bottom: 10px;
    font-size: 16px;
}

/* Textabsätze */
#about p {
    text-align: justify;
    margin-bottom: 15px;
}

/* Kontaktbereich */
#about .contact-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 16px;
}

/* Verweise */
#about a {
    color: #0077b5;
    text-decoration: none;
}

#about a:hover {
    color: #005a8d;
    text-decoration: underline;
}


/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Allgemeine Links in Texten, aber nicht in Buttons */
a:not(.service-button) {
    color: #0077b5; /* Blau für Text-Links */
    text-decoration: none;
}

a:not(.service-button):hover {
    color: #005a8d; /* Dunkleres Blau beim Hover für Text-Links */
    text-decoration: underline;
}

/* Stile für Buttons */
.service-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0077b5; /* Primäre Farbe für die Buttons */
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.service-button:hover {
    background-color: #005a8d; /* Hover-Farbe für Buttons */
    transform: translateY(-3px); /* Leichter Schwebeeffekt */
}


h2 span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

h2 span.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Video Styles */
.video-container {
    text-align: center;
    margin: 20px auto;
}

.video-container iframe {
    width: 100%; /* Standardbreite für mobile Geräte */
    max-width: 560px; /* Maximale Breite für mobile Geräte */
    height: 315px;
}

/* Desktop-Version etwas größeres Video */
@media (min-width: 1024px) {
    .video-container iframe {
        width: 85%; /* Erhöhe auf 85% der verfügbaren Breite */
        max-width: 600px; /* Erhöhe die maximale Breite */
        height: 337px; /* Höhe proportional zur neuen Breite */
    }
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    overflow-x: hidden;
    width: 100%;
}

header {
    background-color: #0077b5;
    color: white;
    padding: 20px;
    text-align: center;
    animation: fadeIn 1.5s ease-in-out;
}

header .profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-top: 10px;
    border: 5px solid white;
    object-fit: cover;
    animation: scaleIn 2s ease-in-out;
}

h1, h2, h3 {
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

p {
    line-height: 1.6;
}

nav {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    animation: slideIn 1s ease-in-out;
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-size: 18px;
}

nav a:hover {
    text-decoration: underline;
}

section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 1.5s ease-in-out;
}

/* Service Grid Styles */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-content: space-evenly;
    gap: 20px;
}

.service-item {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 16px;
    flex-grow: 1;
}

.service-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0077b5;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: center;
}

.service-button:hover {
    background-color: #005a8d;
    transform: translateY(-3px);
}

.service-item i {
    font-size: 30px;
    color: #0077b5;
    margin-bottom: 10px;
    display: block;
}

/* Credential Section */
#credentials {
    background-color: #fff;
    padding: 40px;
    text-align: center;
}

.certificates {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.certificates img {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificates img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#credentials p {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

/* Icon Animation */
.icons i {
    font-size: 24px;
    margin: 0 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: popIn 0.6s forwards ease-in-out;
}

.icons i:nth-child(1) {
    animation-delay: 0.2s;
}
.icons i:nth-child(2) {
    animation-delay: 0.4s;
}
.icons i:nth-child(3) {
    animation-delay: 0.6s;
}
.icons i:nth-child(4) {
    animation-delay: 0.8s;
}
.icons i:nth-child(5) {
    animation-delay: 1s;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.icons i:hover {
    transform: scale(1.2);
    transition: transform 0.3s ease-in-out;
}

/* Stripe Animation */
.stripe {
    display: flex;
    justify-content: center;
    background-color: #333;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
    z-index: 10;
    animation: slideIn 0.5s ease;
    margin-top: -5px;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.stripe a {
    color: white;
    text-decoration: none;
    padding: 5px 15px;
    margin: 0 10px;
    border-radius: 15px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1),
                -2px -2px 5px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 14px;
}

.stripe a:hover {
    background-color: #0077b5;
    transform: translateY(-1px);
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.15),
                -3px -3px 8px rgba(255, 255, 255, 0.15);
}

.stripe a:active {
    transform: translateY(1px);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1),
                inset -2px -2px 5px rgba(255, 255, 255, 0.1);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        width: 100%;
        margin: 20px 0;
    }

    nav a {
        font-size: 16px;
        padding: 10px;
    }

    header .profile-pic {
        width: 120px;
        height: 120px;
    }

    section {
        padding: 20px 10px;
    }

    footer {
        padding: 20px;
    }

    .certificates img {
        width: 150px;
    }

    .service-button {
        padding: 10px;
        font-size: 16px;
    }

    p, h2 {
        font-size: 18px;
    }
}

/* Extra small devices (max-width: 480px) */
@media (max-width: 480px) {
    header .profile-pic {
        width: 100px;
        height: 100px;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 20px;
    }

    p {
        font-size: 16px;
    }

    .service-item {
        width: 100%;
        max-width: 100%;
    }

    .contact-button {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* Footer Styles */
footer {
    background-color: #333; /* Dunkler Hintergrund für den Footer */
    color: #fff; /* Weißer Text */
    text-align: center; /* Zentrierter Text */
    padding: 20px; /* Polsterung für mehr Platz */
    margin-top: 20px; /* Abstand nach oben, um den Footer vom Inhalt zu trennen */
    font-size: 14px; /* Kleinere Schriftgröße */
}

footer a {
    color: #fff; /* Linkfarbe auf Weiß setzen */
    margin: 0 10px; /* Abstand zwischen den Links */
    text-decoration: none; /* Unterstrich der Links entfernen */
    transition: color 0.3s ease; /* Sanfter Farbwechsel beim Hover */
}

footer a:hover {
    color: #0077b5; /* Blaue Farbe bei Hover */
}

footer p {
    margin-top: 10px; /* Kleiner Abstand für den Footer-Text */
    font-size: 12px; /* Kleinere Schriftgröße für den Footer */
}

/* Mobile Footer Styles */
@media (max-width: 768px) {
    footer {
        font-size: 12px; /* Reduzierte Schriftgröße auf mobilen Geräten */
        padding: 15px; /* Weniger Polsterung auf mobilen Geräten */
    }

    footer a {
        margin: 5px; /* Weniger Abstand zwischen den Links */
    }
}

/* Kontakt Section */
#contact {
    background-color: #0077b5; /* Blaue Hintergrundfarbe */
    color: white; /* Weißer Text */
    text-align: center; /* Zentriert den Text */
    padding: 40px; /* Abstand um den Inhalt herum */
}

.contact-button {
    display: inline-block; /* Buttons werden inline angezeigt */
    background-color: #fff; /* Weiße Buttons */
    color: #0077b5; /* Blaue Schriftfarbe für die Buttons */
    padding: 15px 30px; /* Padding für die Buttons */
    border-radius: 5px; /* Abgerundete Ecken */
    margin: 10px; /* Abstand zwischen den Buttons */
    text-decoration: none; /* Entfernt die Unterstreichung der Links */
    font-size: 16px; /* Schriftgröße für die Buttons */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Animation für Hover-Effekte */
}

.contact-button:hover {
    background-color: #ddd; /* Helleres Grau beim Hover */
    transform: translateY(-3px); /* Hebt den Button leicht an */
}

.contact-info {
    margin-bottom: 20px; /* Abstand nach unten, um die Buttons vom Text zu trennen */
    font-size: 18px; /* Schriftgröße für den Kontakttext */
}

/* Mobile Anpassungen für den Kontaktbereich */
@media (max-width: 768px) {
    #contact {
        padding: 20px; /* Weniger Padding auf mobilen Geräten */
    }

    .contact-button {
        font-size: 14px; /* Kleinere Schriftgröße für Buttons auf mobilen Geräten */
        padding: 10px 20px; /* Weniger Padding */
    }

    .contact-info {
        font-size: 16px; /* Kleinere Schriftgröße für Kontaktinformationen */
    }
}

/* Slideshow container */
.slideshow-container {
    max-width: 800px; /* Maximalbreite der Slideshow */
    margin: auto;
    position: relative;

}

.mySlides img {
    width: 100%; /* Bild passt sich der Slideshow-Breite an */
    height: auto; /* Höhe wird proportional angepasst */
    max-height: 500px; /* Maximale Höhe für das Bild */
    object-fit: contain; /* Bild bleibt proportional */
    border: none; /* Entfernt schwarze Ränder um das Bild */
    box-shadow: none; /* Kein Schatten auf dem Bild */
}

/* Stil für die Punkte/Indikatoren */
.dot {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active {
    background-color: #717171;
}

/* Animation für das Ein- und Ausblenden */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

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