/* Allgemeine Einstellungen */
*, *::before, *::after { box-sizing: border-box; }

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: #f9f5e6; /* Sandfarbenes Hintergrund */
    color: #4a4a4a;
}

.main-header {
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    text-align: center;
    padding: 100px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-header h1 {
    margin-bottom: 10px;
}

.main-header p {
    font-size: 24px;
}

nav {
    background: #cdaa8e;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav a {
    float: left;
    display: block;
    color: #ffffff;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
}

nav a:hover {
    background: #8c5a4c;
}

.container {
    padding: 20px;
    text-align: center;
}

/* Abschnitt 'Das sind wir' */
.about-us {
    background: #fff8e6;
    border-radius: 10px;
    padding: 30px;
    margin: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.about-us-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: row;
    gap: 20px;
}

.about-us-image {
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    width: 50%;
    max-width: 2000px;
}

.about-us-text {
    max-width: 40%;
    text-align: center;
    flex: 1;
}

@media (max-width: 768px) { 
    .about-us-content {
        flex-direction: column; /* Stack items vertically */
    }
    .about-us-image{
        width: 100%; /* Image takes up full width */
        margin-bottom: 20px; /* Add space below the image */
    }
    .about-us-text {
        max-width: 100%; /* Text takes up full width */
        margin-left: 0; /* Remove left margin */
    }
}

/* Abschnitt 'Unsere Vorteile' */
.advantages {
    background: #fff8e6;
    border-radius: 10px;
    padding: 30px;
    margin: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.advantage-item {
    text-align: center;
    padding: 20px;
    background: #f3e7d2;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.advantage-item img {
    width: 80%;
    margin-bottom: 10px;
}

/* Abschnitt 'Kontaktieren Sie uns' */
.contact-info {
    background: #e6d3b8;
    border-radius: 10px;
    padding: 30px;
    margin: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.contact-box {
    background: #fff8e6;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: inline-block;
    text-align: left;
}

.contact-box a {
    color: #4a4a4a;
    text-decoration: none;
}

.contact-box a:hover {
    text-decoration: underline;
}

footer {
    background: #cdaa8e;
    color: #ffffff;
    text-align: center;
    padding: 10px;
}



/* Karten-Container */
.card-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: #fff8e6;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    flex: 1;
}
.card-content { /* New container for text */
    flex: 1; /* Allow text content to grow to fill available space */
    min-height: 150px; /* Set a minimum height for the text container */
    padding: 10px;
}

.card:hover {
    transform: translateY(-10px); /* Schwebt nach oben beim Hover */
}

.card img {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 24px;
    color: #cdaa8e;
    margin: 10px 0;
}


.card p {
    font-size: 16px;
    margin-bottom: 20px;
}

.button {
    display: inline-block;
    background: #cdaa8e;
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.button:hover {
    background: #8c5a4c;
}

/* Intro und Inhalte */
.intro {
    background: #fff8e6;
    border-radius: 10px;
    padding: 30px;
    margin: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.content {
    background: #fff8e6;
    border-radius: 10px;
    padding: 30px;
    margin: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


/* Responsive Design */
@media screen and (max-width: 886px) {
    nav a {
        float: none;
        display: block;
        text-align: center;
    }
    .card-container {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 90%; /* Kartengröße an mobile Ansicht anpassen */
        margin: 10px auto;
    }
   
    .advantage-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }
    .advantage-item img {
        width: 100%; /* Make images responsive */
    }
    .contact-box {
        text-align: center; /* Center text for mobile */
    }
    header h1 {
        font-size: 36px;
    }
    
  
    
    /* Facility grid responsive */
    .facility-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .facility-item {
        width: 90%;
        max-width: 400px;
    }
    
    /* Split sections responsive */
    .split-section {
        flex-direction: column;
    }
    
    .split-image {
        width: 100%;
        height: 200px;
        border-radius: 15px 15px 0 0;
    }
    
    .split-content {
        width: 100%;
        border-radius: 0 0 15px 15px;
    }
    
    /* Contact items responsive */
    .contact-item {
        width: 90%;
        max-width: 300px;
    }
    
    /* Info sections responsive */
    .info-section {
        flex-direction: column;
    }
    
    .info-content {
        flex-direction: column;
    }
    
    .info-content.reverse {
        flex-direction: column;
    }
    
    .info-text {
        width: 100%;
        height: auto;
    }
    
    .info-image {
        width: 100%;
        height: 250px;
    }
    
    /* Parallax sections responsive */
    .parallax-section {
        height: 300px;
        background-attachment: scroll;
    }
    
    .parallax-overlay h2 {
        font-size: 24px;
    }
    
    .parallax-overlay p {
        font-size: 16px;
    }
    
    /* Map section responsive */
    .map-frame {
        height: 300px;
    }
}


/* Trainer-Profil */
.trainer-section {
    background: #fff8e6;
    border-radius: 10px;
    padding: 30px;
    margin: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.trainer-profile {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
}

.trainer-image {
    width: 60%;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.trainer-info {
    max-width: 600px;
    text-align: left;
    margin-left: 20px;
}

.trainer-info h3 {
    font-size: 30px;
    color: #e6d3b8;
}

.highlight-box {
    background: #f3e7d2;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.highlight-box h4 {
    color: #4a4a4a;
    margin-bottom: 10px;
}

.highlight-box ul {
    list-style-type: none;
    padding-left: 0;
}

.highlight-box ul li {
    background: #fff8e6;
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Service Grid */
.services {
    background: #fff8e6;
    border-radius: 10px;
    padding: 30px;
    margin: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.service-item {
    background: #f3e7d2;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.service-item img {
    width: 100%;
    border-radius: 10px;
}


    /* Abschnitt 'Unsere Boxen' */
    .boxen {
        background: #fff8e6;
        border-radius: 10px;
        padding: 30px;
        margin: 20px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .boxen-content {
        display: flex;
        align-items: center;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .section-image {
        border-radius: 10px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        margin: 10px;
        
    }

    .facilities {
        background: #fff8e6;
        border-radius: 10px;
        padding: 30px;
        margin: 20px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .facility-grid {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 20px;
    }

    .facility-item {
        background: #f3e7d2;
        border-radius: 10px;
        padding: 20px;
        width: 300px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease-in-out;
    }

    .facility-item:hover {
        transform: translateY(-10px);
    }

    .facility-image {
        width: 100%;
        border-radius: 10px;
    }



/* Parallax Effekt */
.parallax-section {
    height: 400px;
    background-attachment: fixed;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-overlay {
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    text-align: center;
}

.parallax-overlay h2, .parallax-overlay p {
    color: #ffffff;
    margin: 10px;
}

/* Highlight Sektionen */
.highlight-section {
    margin: 40px 0;
    background: #fff8e6;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.section-title {
    padding: 20px;
    font-size: 24px;
}

.icon-box {
    margin-right: 10px;
}

/* Split-Sektionen */
.split-section {
    display: flex;
    margin: 20px 0;
}

.split-image {
    width: 50%;
    height: 300px;
    background-size: cover;
    border-radius: 15px 0 0 15px;
}

.split-content {
    width: 50%;
    padding: 30px;
    background: #f3e7d2;
    border-radius: 0 15px 15px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


/* Kontaktbox Sektion */
.contact-section {
    background: #fff8e6;
    border-radius: 15px;
    padding: 40px;
    margin: 20px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.contact-box {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.contact-item {
    background: #e6d3b8;
    padding: 20px;
    width: 250px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    text-align: center;
}

.contact-item:hover {
    transform: translateY(-10px);
}

.contact-item img {
    margin-bottom: 15px;
}

.contact-item h3 {
    font-size: 22px;
    color: #4a4a4a;
}

.contact-item a {
    color:#4a4a4a;
    text-decoration: none;
    font-size: 16px;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Kartensektion */
.map-section {
    margin: 40px 0;
}

.map-container {
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.map-frame {
    width: 100%;
    height: 400px;
    border: none;
}


/* Info-Sektionen */
.info-section {
    background: #f3e7d2;
    margin: 20px 20px;
    display: flex;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.info-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    border-radius: px 15px 15px 0px;
    
}

.info-content.reverse {
    flex-direction: row-reverse;
}

.info-text {
    width: 50%;
    height: 300px;
}

.info-image {
    width: 50%;
    height: 300px;
    background-size: cover;
}

.info-image img {
    width: 100%;
    border-radius: 10px;
}
@media (min-width: 1100px) { /* For screens larger than 1200px */
    .trainer-profile {
        flex-direction: row; /* Arrange items horizontally */
        align-items: center;
    }
    .trainer-image {
        width: 40%; /* Adjust image width as needed */ margin-bottom: 0;
    }
    .trainer-info {
        width: 50%; /* Adjust text width as needed */
    }
}

@media (max-width: 1099px) { 
    .trainer-profile {
        flex-direction: column; /* Stack items vertically */
    }
    .trainer-image {
        width: 100%; /* Image takes up full width */
        margin-bottom: 20px; /* Add space below the image */
    }
    .trainer-info {
        max-width: 100%; /* Text takes up full width */text-align: center;
        margin-left: 0; /* Remove left margin */
    }
}
.header-logo {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  max-width: 150px; /* Set a maximum width for larger screens */
  margin: 20px; /* This creates the 20px margin around the image */
   
}
/* Responsive Styling for the Logo */
@media (max-width: 900px) { /* Adjust breakpoint as needed */
  .header-logo {
    max-width: 100px; /* Reduce maximum width for smaller screens */
      margin: 10px;
      top: 10px;
        left: 10px;
      
  }
}
@media (max-width: 480px) { /* Adjust breakpoint as needed */
  .header-logo {
    max-width: 80px; /* Reduce maximum width even further for very small screens */
      margin: 20px;
  }
}

/* Service-Bereich – Fix-Paket */
.service-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.service-item {
  background: #f3e7d2;
  border-radius: 10px;
  padding: 20px;
  width: 300px;       /* Desktop-Referenz */
  max-width: 100%;    /* verhindert Überlauf */
  box-shadow: 0 8px 16px rgba(0,0,0,.2);
}

.service-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Mobil: stabiles 1-Spalten-Raster */
@media (max-width: 768px) {
  .services {
    padding: 24px;
    margin: 16px;
  }
  .service-grid {
    display: grid;                /* stabiler als Flex hier */
    grid-template-columns: 1fr;   /* eine Spalte */
    gap: 16px;
    justify-items: center;        /* zentriert die Karten */
  }
  .service-item {
    width: 100%;
    max-width: 520px;             /* angenehme Lesebreite */
    padding: 16px;
  }
}

/* sehr klein (optional) */
@media (max-width: 360px) {
  .services { padding: 16px; }
  .service-item { padding: 14px; }
}
