/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    line-height: 1.6;
    background-color: #1e2a47;
}



/* Navbar */
.navbar {
    display: flex;
    justify-content: center;  /* Die Links bleiben in der Mitte */
    align-items: center;
    padding: 20px;
    background-color: #052e54;
    position: sticky;
    top: 0;
    z-index: 10;
    gap: 30px;
    width: 100%;
}

/* Der Container für die mittigen Links (Home, Über uns, etc.) */
.left-links {
    display: flex;
    align-items: center;
    justify-content: center;  /* Zentriert die Links in der Mitte */
    gap: 30px;  /* Abstände zwischen den Links */
    flex-grow: 1;  /* Lässt diese Gruppe wachsen, um Platz für die rechte Gruppe zu schaffen */
}

/* Der Container für die rechten Links (Glocke, Zahnrad, Login/Logout) */
.right-links {
    display: flex;
    align-items: center;
    gap: 15px;  /* Abstände zwischen den Icons */
}

/* Links-Style */
.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #38bdf8;
}

.notification-icon {
    position: relative;  /* Positioniert das Badge relativ zur Glocke */
}

/* Das Badge wird nun direkt oben rechts an der Glocke positioniert */
.notification-badge {
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 5px 10px;
    font-size: 12px;
    position: absolute;
    top: -3px;  /* Setzt das Badge leicht oberhalb der Glocke */
    right: -3px; /* Versetzt es leicht nach rechts */
    z-index: 10; /* Stellt sicher, dass das Badge über der Glocke liegt */
}


.flag-icon {
    font-size: 1.5em;
    vertical-align: middle;
    margin-left: 10px;
}

.rated {
    background-color: gold;
    color: black;
    font-weight: bold;
    border-radius: 6px;
    padding: 8px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    background-color: #000;
    background-image: url('img/hintergrund1.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    animation: fadeInSlideUp 2s ease-out; /* Fade-In und Slide-Up Animation */
}

/* Fade-In und Slide-Up Animation */
@keyframes fadeInSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px); /* Startet etwas weiter unten */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Endet an seiner ursprünglichen Position */
    }
}

/* Trainer Section */
.trainer-section {
    background: #0f172a;
    padding: 60px 20px;
    text-align: center;
}
.section-intro h2 {
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.section-intro p {
    font-size: 16px;
    color: #b0b7c2;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Grid */
.trainer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards */
.trainer-card {
    background: #1e2a47;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 500px;
    display: flex;
    flex-direction: column;
}
.trainer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}
.trainer-card img {
    width: 100%;
    height: 350px; /* statt 200px */
    object-fit: contain;
    background-color: #1e2a47;
}


.trainer-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.trainer-info h3 {
    font-size: 20px;
    color: #fff;
}
.trainer-info span {
    display: block;
    color: #38bdf8;
    font-weight: 600;
    font-size: 12px;
    margin-top: 4px;
    text-transform: uppercase;
}
.trainer-info p {
    margin-top: 10px;
    color: #b0b7c2;
    font-size: 14px;
    line-height: 1.4;
}

/* Bewertungen */
.modern-review-section {
    background-color: #0f172a;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}

.review-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
}

.review-form-card,
.review-list-card {
    background-color: #1e2a47;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

.single-review {
    border-bottom: 1px solid #2d3b57;
    padding: 15px 0;
}

.single-review:last-child {
    border-bottom: none;
}

.review-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-head strong {
    color: #38bdf8;
    font-size: 16px;
}

.review-date {
    font-size: 12px;
    color: #aaa;
}

.review-stars {
    color: gold;
    font-size: 18px;
    margin-bottom: 6px;
}

.review-feedback {
    color: #b0b7c2;
    font-size: 14px;
    line-height: 1.4;
}

.input-field {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background-color: #0f172a;
    color: #fff;
    border: 1px solid #2d3b57;
    border-radius: 8px;
    font-size: 14px;
}

.input-field::placeholder {
    color: #888;
}

.button {
    background-color: #38bdf8;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #1d8ebf;
}

.success-message {
    color: #4CAF50;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 14px;
}

.error-message {
    color: #FF5252;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 14px;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 20px;
}
.page-arrow {
    font-size: 24px;
    text-decoration: none;
    margin: 0 10px;
    color: #007BFF;
}
.page-arrow:hover {
    color: #0056b3;
}

/* Scroll-to-Top */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    cursor: pointer;
    animation: bounce 1s infinite;
}
.scroll-to-top:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}
.scroll-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.6);
}
.scroll-to-top i {
    margin: 0;
    color: #ffffff;
}
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Footer */
footer {
    background-color: #111d33;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
    margin-top: auto; /* Stellt sicher, dass der Footer immer unten bleibt */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links a,
.footer-social a {
    color: #b0b7c2;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-social a:hover {
    color: #38bdf8;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Kleinere Abstände */
    margin-top: 20px;
}

.social-icon {
    width: 35px;
    height: 35px;
    background-color: #333;
    color: #fff;
    padding: 8px;
    border-radius: 50%;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s ease;
}

.social-icon:hover {
    background-color: #38bdf8;
    transform: scale(1.1);
}

/* Spezifisches Styling für TikTok-Icon */
.social-icon.tiktok {
    background-color: #000;
}

/* Spezifisches Styling für Instagram-Icon */
.social-icon.instagram {
    background-color: #E4405F;
}

/* Impressum */
.impressum-section {
    padding: 50px 20px;
    background-color: #f9f9f9;
    color: #333;
}
.impressum-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}
.impressum-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
}
.impressum-content p {
    margin-bottom: 15px;
}

.responsive-image {
    max-width: 200px;  /* oder eine andere gewünschte Größe */
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .section-intro h2 {
        font-size: 28px;
    }
    .trainer-info h3 {
        font-size: 18px;
    }
    .review-grid {
        flex-direction: column;
        gap: 20px;
    }
}

.review-summary {
    background-color: #0f172a;
    padding: 60px 20px;
    text-align: center;
    color: #fff;
}

.review-summary .star-rating-display {
    font-size: 24px;
    color: gold;
    margin-top: 15px;
}

.review-summary .rating-number {
    display: block;
    margin-top: 10px;
    font-size: 20px;
    color: #38bdf8;
    font-weight: bold;
}
.review-summary .review-button {
    display: inline-block;
    margin-top: 20px;
    background-color: #38bdf8;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.review-summary .review-button:hover {
    background-color: #1d8ebf;
}
.star-rating-box {
    background-color: #2e2f33;
    padding: 10px 16px;
    margin-top: 20px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: inline-block;
    text-align: center;
    border: 1px solid #444;
}

.star-rating-display {
    font-size: 26px;
    color: gold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.star-rating-display .rating-number {
    font-size: 20px;
    color: #e0e0e0;
    margin-left: 8px;
    font-weight: 600;
}

.star-rating-display i {
    color: #ffcd00; /* Gold */
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3); /* Schönerer Schimmer-Effekt */
}

.star-rating-display i.filled {
    color: #ffbf00; /* Ein etwas wärmeres Gold für gefüllte Sterne */
}

.star-rating-display i.empty {
    color: #555; /* Graue Farbe für leere Sterne */
}

.star-rating {
    direction: rtl; /* Damit der höchste Stern ganz links steht */
    display: flex;
    justify-content: left;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 30px;
    color: #444;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: gold;
}



/* --- Mobile Anpassungen mit Media Query --- */
@media only screen and (max-width: 768px) {
    /* Navigation */
    nav .navbar {
      flex-direction: column;
      align-items: flex-start;
    }
  
    nav .left-links, nav .right-links {
      display: flex;
      flex-direction: column;
      width: 100%;
    }
  
    nav .left-links a, nav .right-links a {
      padding: 10px 0;
      font-size: 1.1rem;
    }
  
    /* Trainer-Grid anpassen */
    .trainer-grid {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
  
    .trainer-card {
      width: 100%;
    }
  
    /* Hero-Bereich height anpassen */
    header.hero {
      height: 200px; /* kleiner auf Mobile */
    }
  
    /* Button und Links größer und touchfreundlicher */
    a.review-button {
      padding: 12px 20px;
      font-size: 1.2rem;
    }
  
    /* Footer: Social Icons größer */
    .social-icons .social-icon {
      font-size: 1.8rem;
      margin: 0 10px;
    }
  
    /* Scroll-to-top Button unten rechts, etwas größer */
    #scroll-to-top {
      bottom: 20px;
      right: 20px;
      font-size: 1.5rem;
      padding: 10px 14px;
    }
  }

  /* Sprache oben rechts, Hamburger oben links */
.language-switcher {
    position: fixed;
    top: 10px;
    right: 15px;
    z-index: 1100;
    cursor: pointer;
  }
  
  /* Hamburger Icon oben links */
  .hamburger {
    display: none;
    position: fixed;
    top: 10px;
    left: 15px;
    z-index: 1100;
    cursor: pointer;
  }
  
  /* Mobile Menü als Sidebar */
  .mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background-color: #222;
    padding-top: 60px;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
  }
  
  .mobile-menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
  }
  
  .mobile-menu li {
    border-bottom: 1px solid #444;
  }
  
  .mobile-menu a {
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .mobile-menu a:hover {
    background-color: #444;
  }
  
  .notification-badge {
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    margin-left: 5px;
  }
  
  /* Desktop: Navbar sichtbar, Hamburger und Mobile-Menu versteckt */
  @media only screen and (max-width: 768px) {
    nav .left-links,
    nav .right-links {
      display: none;
    }
    .hamburger {
      display: block;
    }
    .language-switcher {
      display: block;
    }
  }

  /* Mobile Ansicht für die Bewertungsseite */

@media (max-width: 768px) {

    body {
        font-family: 'Poppins', sans-serif;
        padding: 0;
        margin: 0;
        background-color: #f5f5f5;
    }



    .navbar a {
        color: #fff;
        text-decoration: none;
        padding: 0.5rem 0;
    }

    .container {
        padding: 1rem;
    }

    .review-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .review-form-card, .review-list-card {
        background-color: #fff;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    }

    .review-form-card h2, .review-list-card h2 {
        margin-bottom: 1rem;
        font-size: 1.2rem;
    }

    .input-field {
        width: 100%;
        padding: 0.75rem;
        margin-bottom: 1rem;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    .star-rating {
        display: flex;
        justify-content: space-around;
        margin-bottom: 1rem;
    }

    .button {
        background-color: #007bff;
        color: #fff;
        border: none;
        padding: 0.75rem;
        width: 100%;
        border-radius: 5px;
        cursor: pointer;
    }

    .button:hover {
        background-color: #0056b3;
    }

    .single-review {
        background-color: #fafafa;
        padding: 1rem;
        border-radius: 5px;
        margin-bottom: 1rem;
        border-left: 5px solid #007bff;
    }

    .pagination {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }

    .page-arrow {
        color: #007bff;
        text-decoration: none;
        font-weight: bold;
    }
}