/* Allgemeines Styling */

html, body {
    height: 100%;
    margin: 0;
}

.hidden {
    display: none !important;
}

body {
    font-family: EB Garamond;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

main {
    flex-grow: 1;
}

.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.header {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #0e4438;
    color: white;
    height: 100px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 100%;
    overflow: visible; /* Erlaubt, dass Inhalte über den Header hinausgehen */

}

.header-content {
    display: flex; /* Flexbox für horizontales Layout */
    justify-content: space-between; /* Platz zwischen den Hauptblöcken */
    align-items: center; /* Vertikale Zentrierung */
    flex-wrap: wrap; /* Ermöglicht Umbruch bei kleineren Bildschirmen */
}

.logo img {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-35%);
    display: flex;
    align-items: center;
    height: auto;
    width: 130px;
    max-height: 150px;
}

.logo-rechts img {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-35%);
    display: flex;
    align-items: center;
    height: auto;
    width: 130px;
    max-height: 150px;
}

.header-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  	margin-top: 0.5em;
}

.header-text h1 {
    font-size: 1.8em; /* Größe der Überschrift */
    margin: 0;
}

.header-text p {
    font-size: 1.2em; /* Größe der Beschreibung */
    margin: 5px 0 0 0; /* Kleiner Abstand über der Beschreibung */
}


.navigation ul {
    list-style: none; /* Entfernt Punkte der Liste */
    display: inline-flex; /* Horizontale Anordnung */
    margin: 0;
    padding: 0;
}

.navigation ul li {
    margin-left: 15px; /* Abstand zwischen den Menüelementen */
}

.navigation ul li a {
    text-decoration: none; /* Entfernt Unterstreichung */
    color: #fff; /* Weißer Text */
    font-size: 1.1em; /* Größere Schriftgröße */
    transition: color 0.3s ease; /* Sanfter Übergang für Hover */
}

.navigation ul li a:hover {
    color: #ffcc00; /* Gelber Farbton bei Hover */
}



.footer {
    width: 100%;
    background-color: #0e4438; /* Dunkler Hintergrund */
    color: white; /* Weiße Schrift */
    text-align: center; /* Zentriert den Text */
    font-size: 14px;
}

.footer-content p {
    margin: 10px 0; /* Abstand zwischen den Elementen */
    font-size: 1em;
}

.social-links {
    display: flex;
    justify-content: center; /* Zentriert die Icons */
    gap: 15px; /* Abstand zwischen den Icons */
    margin-bottom: 15px; /* Abstand unter den Icons */
}

.social-link {
    color: white; /* Weiße Icons */
    font-size: 1.8em; /* Größe der Icons */
    text-decoration: none; /* Entfernt Unterstreichung */
    transition: color 0.3s ease; /* Sanfter Übergang bei Hover */
}

.social-link:hover {
    color: #ffcc00; /* Gelbe Farbe beim Hover */
}

.footer-links {
    margin: 15px 0; /* Abstand um die Links */
    display: flex;
    justify-content: center; /* Zentriert die Links */
    gap: 20px; /* Abstand zwischen den Links */
}

.footer-link {
    color: white; /* Weiße Links */
    text-decoration: none; /* Entfernt Unterstreichung */
    font-size: 1em;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffcc00; /* Gelbe Farbe beim Hover */
}

.copyright {
    font-size: 0.9em; /* Kleinere Schriftgröße */
    margin-top: 15px; /* Abstand nach oben */
    opacity: 0.8; /* Leicht abgeblasste Schrift */
}
/* ----------------------------------- */
/* Home Seite bis Z:221 */
/* Bilder Karusell */
.carousel-container {
  width: 800px;
  height: 400px;
  margin: 20px auto;
  overflow: hidden;
  position: relative;
  background-color: #00000000;
}

.carousel {
  display: flex;
  width: 100%; /* 10 Slides */
  height: 100%;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* --------------------------------------------- */

/* Willkommens Text */
.welcome-text {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
}
.welcome-text h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.welcome-text p {
    font-size: 1.2em;
    color: #555;
}
/* -------------------------------------- */

/*Kontakt Seite bis Z: */
/*Kontaktformular*/
.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.contact-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 550px;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 500px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #2980b9;
}

.contact-form input[type="checkbox"] {
    margin-right: 10px;
}

label[for="privacy"]{
    display: block;
    text-align: center;
    margin-top: 10px;
    line-height: 1.5;
}

.privacy-container,
button[type="submit"] {
    display: block;
    margin: 0 auto;
    text-align: center;
}

button[type="submit"] {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
}

.privacy-container {
    margin-bottom: 15px;
}

.success-message {
    color: #28a745;
    background-color: #e9f7ef;
    border: 1px solid #c3e6cb;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 16px;
}

/* -------------------------------------- */
/* About Seite bis Z: */

#about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex-direction: column;
}

.about-text {
    text-align: center;
}

.about-text h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.about-text p {
    font-size: 1.3em;
    color: #000000;
    line-height: 1.6;
}

.about-image {
    max-width: 500px;
    height: 281px;
    margin-bottom: 20px; /* Abstand unter dem Bild */
    margin-top: 20px; /* Abstand über dem Bild */
    align-items: center;
    overflow: hidden;
}



.zertifikat-image {
    max-width: 500px;
    height: 281px;
    margin-bottom: 20px; /* Abstand unter dem Bild */
    margin-top: 20px; /* Abstand über dem Bild */
    align-items: center;
  	left:50%;
  	right:50%;
    overflow: hidden;
}

.zertifikat-image img {
  width:100%;
  height:100%;
  object-fit:contain;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.work-image {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px; /* Abstand zwischen den Bildern */
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 20px auto 30px auto;
    max-width: 100%; /* Maximale Breite des Grids */
    padding: 0 10px;
}

.work-image img {
    width: 100%;
    max-width: 90px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.horses-image {
    max-width: 500px;
    height: 280px;
    margin-bottom: 20px; /* Abstand unter dem Bild */
    margin-top: 20px; /* Abstand über dem Bild */
    align-self: center;
    overflow: hidden;
}

.horses-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* -------------------------------------- */
/* Horses Seite bis Z: */
.photo-gridCarlo {
    display: grid;
    grid-template-columns: repeat(5, minmax(50px, 0.1fr));
    gap: 10px;
    padding: 10px;
    justify-content: center;
}

.photo {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.photo:hover {
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#about-carlo {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.about-textCarlo {
    text-align: center;
}

.about-textCarlo h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.about-textCarlo p {
    font-size: 1.3em;
    color: #000000;
    line-height: 1.6;
}

#about-Pagnol {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.about-textPagnol {
    text-align: center;
}

.about-textPagnol h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.about-textPagnol p {
    font-size: 1.3em;
    color: #000000;
    line-height: 1.6;
}

#services-container {
    background-color: #fff;
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.service-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.service-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.partner-section {
    padding: 20px;
    text-align: center;
    background-color: #f4f4f4;
}

.partner-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Flexible Spalten */
    gap: 20px; /* Abstand zwischen den Karten */
    justify-items: center; /* Zentriere die Karten horizontal */
    padding: 20px; /* Abstand um das Grid */
}

.partner-card {
    display: flex;
    flex-direction: column; /* Elemente vertikal anordnen */
    justify-content: space-between; /* Platz zwischen den Elementen */
    align-items: center; /* Zentriere Inhalte horizontal */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card img {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.partner-card h3 {
    font-size: 1.5em;
    margin: 10px 0;
    color: #0e4438;
}

.partner-card p {
    font-size: 1em;
    color: #666;
    margin: 5px 0;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
/* Mobile-Optimierung */
@media (max-width: 768px) {
    /* Allgemeines Styling */
    body {
        font-size: 14px; /* Kleinere Schriftgröße */
    }

    .hidden {
        display: none !important; /* Verstecke Elemente, die nicht angezeigt werden sollen */
    }
  
    .carousel-container{
      width: 100%;
      height: auto;
      aspect-ratio: 4 / 3;
    }

    .work-image {
        gap: 10px; /* Abstand zwischen den Bildern */
        max-width: 100%; /* Maximale Breite des Grids */
        width: 100%
    }

    .header {
        flex-direction: row; /* Horizontale Anordnung */
        height: 100px; /* Automatische Höhe */
        padding: 10px;
        overflow: visible;
    }

    .header-content {
        flex-direction: row; /* Logos und Text bleiben horizontal */
        justify-content: space-between; /* Platz zwischen den Logos und dem Text */
        align-items: center; /* Vertikale Zentrierung */
    }

    .logo img,
    .logo-rechts img {
        width: 60px; /* Kleinere Logos für mobile Geräte */
        max-height: 90px;
    }

    .header-text {
        margin: 0 10px; /* Weniger Abstand zwischen Logos und Text */
        text-align: center; /* Zentriere den Text */
    }

    .header-text h1 {
        font-size: 1.5em; /* Kleinere Schriftgröße */
    }

    .header-text p {
        font-size: 1em; /* Kleinere Schriftgröße */
    }

    .navigation ul {
        flex-direction: column; /* Menüelemente untereinander anordnen */
        gap: 10px; /* Abstand zwischen den Elementen */
    }

    .navigation ul li {
        margin-left: 0; /* Entferne linken Abstand */
    }

    .navigation ul li a {
        font-size: 1em; /* Kleinere Schriftgröße */
    }

    .footer {
        font-size: 12px; /* Kleinere Schriftgröße */
        padding: 10px;
    }

    .footer-links {
        flex-direction: column; /* Links untereinander anordnen */
        gap: 10px;
  }

    .contact-form {
        width: 100%; /* Passe die Breite an */
        max-width: 100%; /* Entferne feste Maximalbreite */
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%; /* Volle Breite */
    }

    #about-container {
        padding: 10px; /* Weniger Padding */
    }

    .about-text h2 {
        font-size: 1.5em; /* Kleinere Schriftgröße */
    }

    .about-text p {
        font-size: 1em; /* Kleinere Schriftgröße */
    }

    .photo-gridCarlo {
        grid-template-columns: repeat(2, 1fr); /* Weniger Spalten */
    }

    .modal-content {
        width: 90%; /* Passe die Breite an */
    }
    .partner-grid {
        grid-template-columns: 1fr; /* Eine Spalte pro Zeile */
        gap: 15px; /* Weniger Abstand zwischen den Karten */
        padding: 10px; /* Weniger Padding für mobile Geräte */
    }

    .partner-card {
        padding: 10px; /* Weniger Innenabstand */
    }

    .partner-card img {
        max-width: 80px; /* Kleinere Logos für mobile Geräte */
        margin-bottom: 8px;
    }

    .partner-card h3 {
        font-size: 1.2em; /* Kleinere Schriftgröße */
        margin: 8px 0;
    }

    .partner-card p {
        font-size: 0.9em; /* Kleinere Schriftgröße */
        margin: 4px 0;
    }
}

/* Hamburger-Menü */
.menu-toggle {
    display: none; /* Standardmäßig ausgeblendet */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    margin: 10px auto; /* Zentriere das Hamburger-Menü */
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Zeige das Hamburger-Menü auf mobilen Geräten */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Zeige das Hamburger-Menü */
        margin: 10px auto; /* Zentriere das Hamburger-Menü unter dem Header-Text */
    }

    .navigation {
        display: none; /* Standardmäßig ausgeblendet */
        flex-direction: column;
        align-items: center;
        background-color: #0e4438; /* Hintergrundfarbe für Sichtbarkeit */
        position: absolute;
        top: 100px; /* Position unter dem Header */
        width: 100%;
        z-index: 1000; /* Sicherstellen, dass es über anderen Elementen liegt */
    }

    .navigation.active {
        display: flex; /* Zeige die Navigation, wenn aktiv */
    }

    .header-text {
        text-align: center; /* Zentriere den Header-Text */
        margin-bottom: 10px; /* Abstand zum Hamburger-Menü */
    }
}

/* Tablet-Optimierung */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Allgemeines Styling */
    body {
        font-size: 16px; /* Etwas größere Schriftgröße für Tablets */
    }

    .hidden {
        display: none !important; /* Verstecke Elemente, die nicht angezeigt werden sollen */
    }

    .header {
        flex-direction: row; /* Horizontale Anordnung */
        height: 120px; /* Größere Höhe für Tablets */
        padding: 15px;
    }

    .work-image {
        gap: 10px; /* Abstand zwischen den Bildern */
        max-width: 100%; /* Maximale Breite des Grids */
        width: 100%
    }

    .header-content {
        flex-direction: row; /* Logos und Text bleiben horizontal */
        justify-content: space-between; /* Platz zwischen den Logos und dem Text */
        align-items: center; /* Vertikale Zentrierung */
    }

    .logo img,
    .logo-rechts img {
        width: 80px; /* Größere Logos für Tablets */
        max-height: 100px;
    }

    .header-text {
        margin: 0 20px; /* Mehr Abstand zwischen Logos und Text */
        text-align: center; /* Zentriere den Text */
    }

    .header-text h1 {
        font-size: 2em; /* Größere Schriftgröße */
    }

    .header-text p {
        font-size: 1.2em; /* Größere Schriftgröße */
    }

    .menu-toggle {
        display: flex; /* Zeige das Hamburger-Menü */
        margin: 10px auto; /* Zentriere das Hamburger-Menü */
    }

    .navigation {
        display: none; /* Standardmäßig ausgeblendet */
        flex-direction: column;
        align-items: center;
        background-color: #0e4438;
        position: absolute;
        top: 120px; /* Position unter dem Header */
        width: 100%;
        z-index: 1000;
    }
  
     .navigation ul {
        flex-direction: column; /* Menüelemente untereinander anordnen */
        gap: 10px; /* Abstand zwischen den Elementen */
    }

    .navigation ul li {
        margin-left: 0; /* Entferne linken Abstand */
    }

    .navigation ul li a {
        font-size: 1em; /* Kleinere Schriftgröße */
    }

    .navigation.active {
        display: flex; /* Zeige die Navigation, wenn aktiv */
    }

    .footer {
        font-size: 14px; /* Etwas größere Schriftgröße */
        padding: 15px;
    }

    .contact-form {
        width: 90%; /* Passe die Breite an */
        max-width: 600px; /* Begrenze die maximale Breite */
    }

    .photo-gridCarlo {
        grid-template-columns: repeat(3, 1fr); /* Mehr Spalten für Tablets */
    }

    .modal-content {
        width: 80%; /* Passe die Breite an */
    }

    .partner-grid {
        grid-template-columns: 1fr; /* Eine Spalte pro Zeile */
        gap: 15px; /* Weniger Abstand zwischen den Karten */
        padding: 10px; /* Weniger Padding für mobile Geräte */
    }

    .partner-card {
        padding: 10px; /* Weniger Innenabstand */
    }

    .partner-card img {
        max-width: 80px; /* Kleinere Logos für mobile Geräte */
        margin-bottom: 8px;
    }

    .partner-card h3 {
        font-size: 1.2em; /* Kleinere Schriftgröße */
        margin: 8px 0;
    }

    .partner-card p {
        font-size: 0.9em; /* Kleinere Schriftgröße */
        margin: 4px 0;
    }
}