/* Mobile styles */
@media screen and (max-width: 768px) {
  ::-webkit-scrollbar {
    display: none;
  }

  body {
    color: white;
    -ms-overflow-style: none; /* For older versions of Edge */
    scrollbar-width: none; /* For Firefox */
    max-width: 100%;
    height: 200vh;
    overflow-x: hidden;
    overflow-y: scroll;
    background-color: black;
    padding-top: 0.1%;
    padding-left: 1%;
    padding-right: 2.5%;
    font-family: "Roboto", sans-serif;
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  h1,
  h2,
  h3 {
    font-family: "Bebas Neue", sans-serif;
  }

  body h2 {
    font-size: 280%;
    margin-bottom: 0;
    color: #e74c3c;
  }

  body h3 {
    font-size: 200%;
  }

  body p {
    font-size: 1rem;
  }

  .title-section {
    display: flex;
    justify-content: center;
    background-color: black;
  }

  #logo {
    max-width: 50%;
    height: auto;
    margin-top: 0%;
    transition: transform 0.3s ease;
    z-index: 1001;
  }
  nav {
    position: fixed;
    top: 0;
    left: 60%;
    width: 45%;
    height: 100vh;
    z-index: 9999;
    overflow-y: auto;
    opacity: 0.9;
    background-color: black;
    transition: transform 0.5s ease-out;
    transform: translateX(100%);
  }

  nav.show-nav {
    transform: translateX(0);
  }

  .menu-icon {
    position: fixed;
    top: 3.5%;
    left: 5%;
    z-index: 10001;
  }

  .menu-icon .bar {
    width: 35px;
    height: 5px;
    margin: 8px auto;
    background-color: white;
    transition: transform 0.3s ease, background-color 0.3s ease;
  }

  ul {
    list-style-type: none;
    padding-top: 50%;
    opacity: 0;
    height: 100vh;
    background-color: black;
    transform: translateX(100%);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  }

  ul:not(.hidden) {
    opacity: 1;
    transform: translateX(0);
  }

  ul li a {
    text-decoration: none;
    font-size: 1.5em; /* Increased font size */
    color: white;
    margin-left: -5%;
    padding: 5px 6px; /* Added padding - 15px vertical, 20px horizontal */
    display: block;
    text-align: left; /* Align text to the left */
    transition: background-color 0.8s ease;
    font-family: "Bebas Neue", sans-serif;
  }
  .ornamentstart img {
    max-width: 80%;
    width: 80%;
    margin-top: 5%;
  }

  #ornamentstart {
    display: block; /* Block-level element to allow margins to be applied */
    margin: 0 auto; /* Centering the block horizontally */
    max-width: 80%; /* Maximum width it can occupy */
    width: 60%; /* Occupy full width up to max-width */
    height: auto; /* Keep the aspect ratio */
  }


  #ornamentstart_unten {
    display: block; /* Block-level element to allow margins to be applied */
    margin: 0 auto; /* Centering the block horizontally */
    max-width: 80%; /* Maximum width it can occupy */
    width: 60%; /* Occupy full width up to max-width */
    height: auto; /* Keep the aspect ratio */
  }
  #muaythai {
    display: block;
    position: relative;
    height: 75vh;
    width: 100%;
    overflow: hidden;
    margin: 0;
    z-index: 0; /* Set base z-index */
    overflow-y: hidden;
    overflow-x: hidden;
  }

  #muaythai::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url(/Pictures/landingphoto.webp);
    background-position: center center; /* Center the image */
    background-size: cover; /* Cover the entire container */
    opacity: 0.3; /* Adjust as needed; 1 is fully opaque and 0 is fully transparent */
    z-index: -1; /* Place behind the main content */
  }

  #muaythai h1 {
    position: relative;
    margin-top: 2%;
    margin-bottom: 2%;
    z-index: 2; /* Ensure this is above the container */
    font-size: 300%;
  }

  #muaythai p {
    margin-top: 1%;
    margin-bottom: 1%;
    padding: 5% 8%;
    position: relative;
    z-index: 2; /* Ensure this is above the container */
    font-size: 1rem;
  }

  #muaythai video {
    display: none;
  }

  #jaipetch {
    margin-top: 20%;
  }
  /* Angebot Section Headings */

  #angebot h2 {
    margin: 20%;
    margin-bottom: 0; /* Balanced top and bottom margins */
  }

  #angebot h3 {
    margin: 5% 0; /* Balanced top and bottom margins */
  }

  #angebot p {
    margin-bottom: 2%; /* Consistent margin for paragraphs */
    padding: 0 5%; /* Horizontal padding for better text alignment on wider screens */
  }

  #angebot img {
    margin-top: 10%;
  }

  #frauentrainingpic,
  #Gruppenbildpic {
    max-width: 80%;
    width: 70%;
  }

  /* Gruppentraining Styles */
  .gruppentraining,
  .personaltrainig,
  .frauentrainig,
  .seminare {
    width: 90%;
    padding: 5% 4%; /* Increased padding for better spacing and consistency */
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
    text-align: center;
    margin-top: 5%;
  }

  #ueberuns {
    text-align: center;
  }

  #ueberuns h3 {
    margin-bottom: 0%;
  }

  #ueberuns h4 {
    margin-top: 1%;
    font-size: 120%;
  }

  #nebibild {
    width: 50%; /* Adjust width as needed */
    height: auto;
    border-radius: 50% 50% 50% 50%; /* This makes the image vertically oval */
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10%;
    margin-top: 10%;
  }

  .tabelle {
    margin-top: 5%;
    font-family: Arial, sans-serif;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 10px auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* Darker shadow for depth */
    padding: 10px;
    background-color: black; /* Darker background color for the table container */
    border-radius: 8px;
    margin-top: 4%;
  }

  .tabelle h2 {
    margin-top: 10%;
    text-align: center;
    margin-bottom: 10px;
  }

  .tabelle h3 {
    margin-top: 6%;
    margin-top: 10%;
    margin-bottom: 5px;
  }

  .tabelle table {
    width: 100%;
    border-collapse: collapse;
  }

  .tabelle th,
  .tabelle td {
    font-size: 10px;
    text-align: center;
    padding: 4px;
    border-bottom: 1px solid #7f8c8d; /* Dimmed border color */
    color: #ecf0f1; /* Light text color for contrast */
  }

  .tabelle thead {
    background-color: #e74c3c; /* A different color for headers to make them stand out */
    color: #ffffff;
  }

  .tabelle tbody tr:hover {
    background-color: #333; /* A slightly lighter dark color for hover effect */
  }
  .tiny-tabelle {
    font-family: Arial, sans-serif;
    width: auto;
    height: auto;
    margin: 8px auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    background-color: black;
    border-radius: 5px;
    max-width: 100%;
  }

  .tiny-tabelle h3 {
    margin-top: 15%;
    margin-bottom: 4%;
  }

  .tiny-tabelle table {
    width: 100%;
    border-collapse: collapse;
  }

  .tiny-tabelle th,
  .tiny-tabelle td {
    font-size: 9.5px;
    text-align: center;
    padding: 2px;
    padding-top: 3%;
    border-bottom: 1px solid #7f8c8d; /* Dimmed border color */
  }

  .tiny-tabelle thead {
    background-color: #e74c3c;
  }

  .tiny-tabelle tbody tr:hover {
    background-color: #333;
  }

  #maps {
    width: 100%;
    height: 15%;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .social-media-links a {
    text-decoration: none;
    margin: 0 10px;
    color: white;
    font-size: 24px;
  }

  .social-media-links a:hover {
    color: #0099ff; /* Color when you hover over the icons */
  }

  #kontakt {
    padding: 5% 2%;
  }

  #kontakt h2 {
    margin-bottom: 20px;
    padding-top: 20px;
  }

  .form-container {
    max-width: 90%;
    margin: 20px auto;
    background-color: #0f0f0f;
    padding: 2% 4%;
    border-radius: 8px;
  }

  .input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }

  .input-group label {
    flex: 1;
    color: white;
    margin-right: 8px;
    font-size: 1.1em;
  }

  .input-group input[type="text"],
  .input-group input[type="email"],
  .input-group input[type="tel"],
  .input-group textarea {
    flex: 2;
    padding: 8px 4%;
    border: none;
    border-radius: 5px;
    color: black;
    background-color: white;
    font-size: 1em;
    font-family: Arial, Helvetica, sans-serif;
  }

  .form-container button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    color: white;
    background-color: green;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.1em;
    display: block;
    margin: 20px auto;
  }

  .form-container button:hover {
    background-color: #006400;
  }

  /* Targeting the email and tel links specifically */
  .contact-info a[href^="mailto:"],
  .contact-info a[href^="tel:"] {
    color: inherit; /* Makes the link take on the color of its parent element */
    text-decoration: none; /* Removes the underline */
  }

  /* Optional: Add a hover effect */
  .contact-info a[href^="mailto:"]:hover,
  .contact-info a[href^="tel:"]:hover {
    color: #0099ff; /* Blue color on hover */
    text-decoration: underline; /* Underline on hover */
  }
  #famipic {
    width: 50%;
    border-radius: 5%;
    margin-bottom: 0%;
  }
}
/* Computer styles */
@media screen and (min-width: 769px) {
  body {
    background-color: black;
    color: white;
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    text-align: center;
  }

  h1,
  h2,
  h3 {
    font-family: "Bebas Neue", sans-serif;
  }

  h2 {
    font-size: 3rem;
    color: #e74c3c;
    text-align: center;
  }

  h3 {
    font-size: 2rem;
  }

  h4 {
    font-size: 1.75rem;
  }

  p {
    font-size: 1.5rem;
    text-align: justify;
  }

  .title-section {
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
  }

  #logo {
    width: 17%;
    background-color: black;
  }

  nav {
    font-size: 200%;
    margin-right: 10%;
  }

  ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }

  li {
    display: inline-block;
    margin-right: 20px; /* Changed from 7% to a fixed width */
  }

  a {
    text-decoration: none;
    color: white;
    padding: 0 0.5rem;
    font-family: "Bebas Neue", sans-serif;
  }

  a:hover {
    color: #e74c3c;
  }
  #muaythai {
    margin-top: 10%;
    position: relative; /* Add relative positioning */
    height: 75vh;
    width: 100%;
  }

  #muaythai video {
    position: absolute; /* Make the video's position absolute */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.6;
    z-index: 0; /* Keep the video behind all other content */
  }

  #muaythai div {
    padding: 2rem;
    text-align: right;
    color: white;
    position: relative;
    z-index: 1; /* This ensures that the div is above the video */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center the content */
  }

  #muaythai h1 {
    font-size: 3rem;
    position: relative; /* Adjusted to relative positioning */
    z-index: 2;
    margin: 0;
    white-space: nowrap;
    margin-bottom: 0;
    text-align: center;
    padding-bottom: 5%;
  }

  #muaythai p {
    font-size: 1.5rem;
    padding: 0 8%;
    z-index: 1;
    text-align: center;
    text-align: justify;
    margin-top: 0;
  }

  #ornamentstart,
  #ornamentstart_unten {
    display: none;
  }

  #angebot {
    display: block;
    margin-top: 40vh;
    margin-bottom: 0;
  }
  
  #angebot p {
      font-size: 1rem;
  }
  
  .angebot,
  .offer-container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    position: absolute;
    justify-content: space-between;
    text-align: center;
    align-items: center;
  }

  .offer-container {
    flex-wrap: wrap;
    margin: 20px 0;
  }

  #kindertraining {
    max-width: 50%;
    padding: 3% 5%;
    margin-top: 0;
    background-color: #222;
    border-radius: 5%;
    transition: transform 0.3s ease, background-color 0.3s ease;
  }

  #kindertraining:hover {
    transform: scale(1.05); /* Increase size by 5% on hover */
    background-color: #333; /* Change color slightly on hover */
  }

  #kindertraining,
  table {
    width: 40%; /* You can adjust this value as needed */
    margin: 0 auto; /* To center the table horizontally */
  }

  .tabelle {
    display: flex;
    flex-direction: column;
    align-items: center; /* Aligns children of .tabelle to the center */
    width: 100%; /* Take the full width of the parent */
    padding: 20px; /* Added some padding for space */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* Light shadow for elevation */
  }

  .tiny-tabelle {
    display: flex;
    flex-direction: column;
    align-items: center; /* Aligns children of .tiny-tabelle to the center */
    width: 100%; /* Take the full width of the parent */
    padding: 20px; /* Added some padding for space */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* Light shadow for elevation */
  }

  /* The rest of your .tabelle and .tiny-tabelle styles remain the same */

  .tabelle h2 {
    margin-top: 4%;
    font-size: 3rem;
    text-align: center;
    color: #ecf0f1; /* Light text color for contrast */
    margin-bottom: 0;
  }

  .tabelle h3 {
    margin-top: 5%;
    font-size: 2rem;
    margin-bottom: 5px;
    color: #bdc3c7; /* Slightly dimmed color for subheading */
  }

  .tabelle table {
    width: 80%;
    border-collapse: collapse;
    background-color: #222;
  }

  .tabelle th,
  .tabelle td {
    font-size: 1.25rem;
    text-align: left;
    padding: 1%;
    border-bottom: 1px solid #7f8c8d; /* Dimmed border color */
    color: #ecf0f1; /* Light text color for contrast */
  }

  .tabelle thead {
    background-color: #e74c3c; /* A different color for headers to make them stand out */
    color: #ffffff;
  }

  .tabelle tbody tr:hover {
    background-color: #333; /* A slightly lighter dark color for hover effect */
  }

  .tiny-tabelle h3 {
    font-size: 2rem;
    margin-top: 0;
    margin-top: 3%;
    color: #bdc3c7;
  }

  .tiny-tabelle table {
    width: 80%;
    border-collapse: collapse;
    background-color: #222;
  }

  .tiny-tabelle th,
  .tiny-tabelle td {
    font-size: 1.25rem;
    text-align: left;
    padding: 1%;
    border-bottom: 1px solid #7f8c8d; /* Dimmed border color */
    color: #ecf0f1; /* Light text color for contrast */
  }

  .tiny-tabelle thead {
    background-color: #e74c3c;
    color: #ffffff;
  }

  .tiny-tabelle tbody tr:hover {
    background-color: #333;
  }
  /* Larger Screen Styles */
  .form-container {
    max-width: 65%;
    margin: 50px auto;
    padding: 3% 5%;
    margin-top: 0;
    background-color: #222;
    border-radius: 5%;
  }

  .input-group {
    display: block;
    margin-bottom: 20px; /* Space between each input group */
  }

  .input-group label {
    display: block;
    margin-bottom: 10px; /* Space between label and input/textarea */
  }

  .input-group input[type="text"],
  .input-group input[type="email"],
  .input-group input[type="tel"],
  .input-group textarea {
    width: 100%;
    padding: 10px 2%; /* Slight padding increase for larger screens */
    margin: 0 auto;
    display: block;
  }

  .form-container button {
    width: auto; /* Let the button size be determined by its content and padding */
    padding: 10px 25px; /* Increase padding on the button */
    margin: 30px auto; /* Increased margin to space it out */
    border-radius: 5px; /* Rounded edges for a softer look */
    font-weight: bold; /* Bold text for emphasis */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
  }

  .form-container button:hover {
    background-color: #004d00; /* Slightly darker green on hover */
    color: #ffffff; /* White text color on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth on hover */
  }

  /* Styling for Google Maps iframe */

  .grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; /* Adjust for desired spacing between items */
    width: 80%;
    margin: 0 auto;
  }

  .grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1); /* Optional shadow for a slight elevation effect */
    border-radius: 5px; /* Rounded corners */
    background-color: #222;
    border-radius: 5%;
    margin-bottom: 5%;
    transition: transform 0.3s ease, background-color 0.3s ease;
  }

  .grid-item:hover {
    transform: scale(1.05);
    background-color: #333;
  }

  .grid-item img {
    width: 50%;
    max-width: 320px; /* Adjust based on desired maximum image width */
    border-radius: 5px; /* Optional rounded corners for the images */
    margin-bottom: 2%;
  }

  #grid-item .seminar1 {
    max-height: 320px;
  }

  .grid-item p {
    text-align: center;
    text-align: justify;
  }
  #ueberuns {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Styling for the first image and text block */
  #nebibild {
    max-width: 30%;
    width: 20%;
    margin-right: 20px;
    border-radius: 10%;
    margin-top: 0%;
    text-align: center;
    margin-bottom: 2%;
  }

  .first-block > div {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .first-block h3,
  .first-block h4,
  .text-container p {
    margin: 0;
  }

  .first-block h3 {
    margin-bottom: 1%;
    font-size: 2rem;
  }

  .first-block h4 {
    margin-bottom: 1.5%;
    font-size: 1.25rem;
  }

  /* Create a wrapper for the first image and its text */
  .first-block {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }

  /* Styling for the second image and text block */
  #famipic {
    max-width: 25%;
    margin-left: 20px;
    margin-top: 9%;
  }

  .second-block h3 {
    text-align: left;
    margin-left: 15%;
  }

  .second-block p {
    margin-left: 5%;
    margin-top: 5%;
    text-align: justify;
  }
  .second-block {
    display: flex;
    align-items: flex-start;
    flex-direction: row-reverse; /* Reverse the order */
    text-align: left;
  }

  /* Styling for social media links */
  /* Container for the map and contact info */
  .map-contact-container {
    display: flex;
    justify-content: space-between; /* Space out the map and contact info */
    gap: 1.5rem; /* Spacing between the map and contact info */
    margin-bottom: 20px; /* Space below the map and contact container */
    margin-left: 13%;
    margin-right: 0%;
  }

  .social-media-links {
    display: flex;
    justify-content: center;
    margin-top: 5%;
  }

  .social-media-links a {
    text-decoration: none;
    margin: 0 15px;
    font-size: 30px;
    color: #aaa; /* Lighter color for dark theme */
    transition: color 0.3s ease;
    margin-right: 55%;
  }

  .social-media-links a:hover {
    color: #fff; /* White on hover for dark theme */
  }

  #iframe {
    flex: 1; /* Takes up equal space as contact-info */
    height: 400px;
    border: none;
    border-radius: 15px;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.4); /* Darker shadow */
  }

  .contact-info {
    flex: 1; /* Takes up equal space as iframe */
    background-color: #222; /* Dark background */
    padding: 20px;
    margin-right: 15%;
    margin-left: 0;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.4); /* Darker shadow */
    color: #aaa; /* Lighter text color for dark theme */
    text-align: center;
  }

  .contact-info p {
    font-size: 1.1em;
    margin-bottom: 15px;
    margin-right: 50%;
    text-align: center;
  }

  .contact-info a {
    color: #0077cc;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .contact-info a:hover {
    color: #004799;
  }
}
