@media screen and (max-width: 1024px) {

  /* ============================
     Grundlayout & Body-Styling
  ============================= */
 html, body {
    flex: 1;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; <-- Entfernen */
    font-size: 15px;
    padding: 0px;
    margin: 0;
    font-family: sans-serif;
    background-image: url('/images/1666websize.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
  }

  header, nav, main, footer {
    flex: 1;    
    width: 100%;
    padding: 0px;
    box-sizing: border-box;
    z-index: 1;
  }

  /* ============================
     Header und Status
  ============================= */
  header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
  }

  /* ============================
     Navigation
  ============================= */
nav {
  display: flex;
  justify-content: center;
  align-items: center; /* Vertikale Zentrierung der Links */
  gap: 30px; /* Abstand zwischen den Links */
  width: 100%;
  padding: 10px 20px;
}

nav ul {
  display: flex;
  align-items: center;
  padding: 0; /* Standard Padding entfernen */
  margin: 0;  /* Standard Margin entfernen */
  list-style: none; /* Entfernt die Standard-Aufzählungszeichen */
}

nav li {
  margin-right: 15px; /* Abstand zwischen den Listenelementen */
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1.1em;
}

header nav a:first-child {
  border-top: none;
}

  /* ============================
     Allgemeines Grid auflösen
  ============================= */
  .container, .grid, .columns, .row {
    display: block;
    width: 100%;
  }

  /* ============================
     Service-Description
  ============================= */
.service-description-index,
.service-description-pcu,
.service-description-kmu,
.service-description-ecu,
.service-description-imp {
    padding: 10px;
    margin-bottom: 0px;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: rgba(0, 0, 0, 0.3);
    font-size: 0.8em;
    display: flex;
    flex-direction: column;  /* Vertikale Anordnung der Elemente */
    align-items: center;     /* Horizontale Zentrierung der Inhalte */
    text-align: center;      /* Text innerhalb der Box zentrieren */
    justify-content: center; /* Vertikale Zentrierung */
    height: 100%;            /* Nimmt die gesamte Höhe des Elternelements ein */
    z-index: 100;
  }

.service-description-index h2,
.service-description-pcu h2,
.service-description-kmu h2,
.service-description-ecu h2,
.service-description-imp h2 {
    margin-top: 0;
    color: white;
    font-size: 1.5em;
  }

.service-description-index p,
.service-description-pcu p,
.service-description-kmu p,
.service-description-ecu p,
.service-description-imp p {
    margin-bottom: 0;
    color: white;
    font-size: 1em;
    font-weight: bold;
  }

  .service-description-index {
    background-color: rgba(0, 0, 0, 0.0);
    margin-bottom: 80px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

.service-description-ecu a {
    margin-top: 40px;
    color: white;
    font-size: 1.2em;
  }

.service-description-pcu ul,
.service-description-kmu ul {
    margin-top: 40px;
    text-align: left;
    margin-left: 1em;
  }

  .service-description-imp {
    margin-bottom: 80px;
    background-color: rgba(0, 0, 0, 0.1);
  }

.contactform {
  width: 100%;
  max-width: 100vw;
  padding: 20px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  z-index: 100;
}

.contactform form {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
}

.contactform label {
  font-weight: bold;
  color: #333;
}

.contactform input,
.contactform textarea {
  width: 100%;
  padding: 8px 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.contactform button {
  padding: 10px 15px;
  font-size: 1em;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contactform button:hover {
  background-color: #0056b3;
}

  /* ============================
     Meldungen
  ============================= */
  .error-message,
  .success-message {
    font-size: 0.9em;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    z-index: 999;
  }

  .error-message {
    background-color: #fdd;
    color: #a00;
  }

  .success-message {
    background-color: #dfd;
    color: #060;
  }

 /* ============================
     Datenschutzerklärung
  ============================= */
.disclaimer {
  position: relative;
  color: white;
  max-width: 95vw;
  max-height: 70vh; /* Begrenzung auf 80% des sichtbaren Fensters */
  margin: 0vh auto 0; /* Abstand vom oberen Rand */
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  box-sizing: border-box;
  z-index: 100;
}

.disclaimer h2 {
  font-size: 1.2em;
  margin-top: 0;
}

.disclaimer p,
.disclaimer ul {
  font-size: 0.8em;
}

.disclaimer ul {
  font-size: 0.7em;
}

  /* ============================
     Footer
  ============================= */
  footer {
    margin-top: auto;
    background-color: rgba(0, 0, 0, 0.8);
    color: white !important;
    padding: 10px; 
    text-align: center;
    font-size: 0.9em;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0; /* Standard Padding entfernen */
    margin: 0;  /* Standard Margin entfernen */
    list-style: none; /* Entfernt die Standard-Aufzählungszeichen */
    z-index: 1;    
  }

/* Styling für die Cookie Meldung */

.cookiepopup {
    position: fixed;
    bottom: 30%;
    left: 0;
    width: 100vw; /* Volle Viewport-Breite */
    background-color: rgba(0, 0, 0, 0.5); /* Halbtransparenter Hintergrund */
    color: white;
    padding: 20px 0; /* Oben/unten Padding, kein seitliches */
    display: <?php echo $cookie_accepted ? 'none' : 'flex'; ?>;
    justify-content: center; /* Zentriert den Inhalt */
    align-items: center;
    text-align: center;
    z-index: 999;
}

.tooltiptext {
  display: none; 
}

.cookiepopup button {
    margin: 5px;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
}

.cookieaccept {
    background-color: #4CAF50;
    color: white;
}

.cookiedecline {
    background-color: #f44336;
    color: white;
}

.cookiewarning {
    display: none;
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: red;
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    z-index: 999;
}

  /* ============================
     Bilder anpassen
  ============================= */
  img {
    max-width: 100%;
    height: auto;
  }

}

.balloon {
    position: absolute;
    bottom: 50px;
    left: 65px;
    width: 70px;
    animation: balloon-fly 40s linear 5s forwards;
    z-index: 2;
}

@keyframes balloon-fly {
    0% {
        bottom: 50px;
        left: 65px;
        opacity: 1;
        visibility: visible;
    }
    100% {
        bottom: 60vh;
        left: 80vw;
        opacity: 0;
        visibility: hidden;
    }
}

img[src*="ITAZbr.png"] {
  display: none; 
}

img[src*="worbr.gif"] {
  display: none !important;
}

img[src*="worbrfreeze.gif"] {
  display: none !important;
}

img[src*="ITAZdf.png"] {
  display: none;
}

img[src*="ITAZbr-unroll"] {
  display: none;
}

.footer-links a[href="dbloginform.php"] {
    display: none !important;
}
}