/* Allgemeine Stile */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100%;
  color: white;
  overflow-x: hidden;
  background: url('images/1666websize.jpeg') center center / cover fixed no-repeat;
  position: relative;
  z-index: 0;
}

/* Header-Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid white;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #aaa;
  font-size: 1.2em;
  padding: 8px 12px;
  transition: color 0.3s;
}

nav a:hover {
  color: #fff;
}

.ITAZdf {
  position: absolute;
  top: 0;
  right: 7px;
  width: 2.5cm;
  height: 1.25cm;
  z-index: 11;
}

/* Zentrale Service-Bereiche (Index, PCU, KMU, ECU, IMP) */
[class^="service-description"] {
  position: fixed;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -70%);
  padding: 40px;
  z-index: 100;
}

.service-description-kmu {
  left: 56%;
}

.service-description-ecu {
  top: 48%;
}

.service-description-imp {
  left: 50%;
  top: 48%;
}

[class^="service-description"] h2 {
  font-size: 2.5em;
}

[class^="service-description"] p,
[class^="service-description"] ul {
  font-size: 1em;
}

.service-description-index h1 {
  font-size: 1.5em;
}

.service-description-ecu a {
  position: absolute;
  top: 290px;
  left: 40px;
  font-size: 1.2em;
  color: white;
  text-decoration: none;
}

.service-description-ecu a:hover {
  text-decoration: underline;
  color: black;
}

/* Formulare Allgemein */
form {
  max-width: 600px;
  background: rgba(255, 255, 255, 0.8);
  color: white;
  padding: 30px;
  border-radius: 10px;
  margin: 50px auto;
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

form label {
  color: black;
  font-size: 1em;
  align-self: flex-start;
}

form input,
form textarea {
  width: 100%;
  padding: 5px;
  margin: 10px 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border: 1px solid rgba(0, 0, 0, 0.8);
  border-radius: 5px;
  box-sizing: border-box;
}

form button {
  padding: 10px 20px;
  background: #000;
  color: white;
  border: none;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
}

form button:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Formular-spezifische Positionierung */
.contactform { top: 80%; }
.dbloginform { top: 38%; max-height: 50vh; }
.dbregform { top: 40%; }
.dbpasmailform {
  max-width: 340px;
  max-height: 40vh;
  text-align: center;
  top: 40%;
}
.dbpasreform { top: 38%; }
.dbuserdelform {
  max-width: 260px;
  top: 40%;
}

/* Falls nötig: Spezifische Overrides */
.dbloginform button {
  margin-top: 40px;
}

/* Weitere spezifische Klassen */
.temp-email {
  position: absolute;
  top: 35px;
  left: 22px;
  font-size: 18px;
  font-weight: bold;
  color: black;
}

.loginerrorpopup {
  display: none;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  z-index: 1100;
}

.loginerrorpopup.show {
  display: block;
}

.forgot-password {
  position: absolute;
  top: 158px;
  left: 30px;
  font-size: 14px;
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.forgot-password:hover {
  text-decoration: underline;
  color: #0056b3;
}

/* Benutzerinfo & Selbstverwaltung */
.user-info {
  width: 250px;
  background: rgba(255, 255, 255, 0.9);
  position: fixed;
  top: 59px;
  left: 180px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 100;
}

.user-info p,
.user-info a {
  color: black;
  font-weight: bold;
  margin: 0 0 10px 0;
  font-size: 14px;
  text-decoration: none;
}

.user-info a:hover {
  text-decoration: underline;
  color: #0056b3;
}

.profile-container {
    position: relative;
    width: 100%;
    background: none;
    padding: 0;
    margin: 0;
}
}

.profile-form-container label {
    color: black;
    font-size: 0.6em;
}

.profile-form-container input {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border: 1px solid rgba(0, 0, 0, 0.8);
    border-radius: 5px;
    font-size: 0.8em;
    padding: 5px;
    width: 500px;
    margin: 10px 0;
    box-sizing: border-box;
}


/* Benutzer löschen */
.password-container {
  display: flex;
  align-items: center;
  position: relative;
}

.readonly-field,
.password-field {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px;
  width: 95%;
  border-radius: 5px;
  margin: 5px 0;
  text-align: left;
}

/* Datenschutzerklärung */
.disclaimer {
  position: relative;
  max-width: 1200px;
  max-height: 600px;
  margin: 100px auto 0;
  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 {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid white;
    justify-content: space-between;
    align-items: center;
    padding: 6px;
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    bottom: 0;
    left: 0;
    z-index: 10;
}

.footer-links {
    font-size: 12px;
}

.footer-links a {
    text-decoration: none;
    color: #aaa;
}

.footer-links a:hover {
    color: #ffffff;
}


.user-status {
    position: absolute;
    right: 20px;
    bottom: 5px;
    text-align: right;
    font-size: 12px;
    color: #ffffff;
    padding: 8px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 11;
}

.user-status a {
    text-decoration: none;
    color: #aaa;
    font-weight: bold;
    margin-top: 5px;
}

.user-status a:hover {
    text-decoration: underline;
}

.logout-link:hover {
    color: #ff5555;
}

.settings-link:hover {
    color: #4CAF50;
}


/* Styling für die Cookie Meldung */

.cookiepopup {
    position: fixed;
    bottom: 50%;
    left: 0;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px 0;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: bold;
    z-index: 1000;
}

.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: help;
}

.cookiepopup-text {
    margin-bottom: 15px;
}

.tooltiptext {
    visibility: hidden;
    width: 1260px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 5px;
    padding: 8px;
    position: absolute;
    z-index: 1000;
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9em;
    line-height: 1.4;
    white-space: pre-line;
}

.tooltip-container:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.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;
}

.cookieconfig {
    background-color: black;
    color: white;
}

.cookiewarning {
    display: none;
    position: fixed;
    top: 45%;
    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: 1000;
}

.cookiepopup-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    gap: 10px;
}

.cookie-radiogroup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-right: 20px;
}

.cookie-radiogroup label {
    font-weight: normal;
    font-size: 14px;
    cursor: pointer;
}

/* Styling für Passwort Demaskierung */

.passwordcontainer {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    box-sizing: border-box;
}

.passwordcontainer input {
    width: 100%;
    padding-right: 40px;
}

.togglepassword {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Styling für 2 Sekunden Fehler und Erfolgsmeldungen */

.error-message {
    position: fixed;
    top: 47%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: block;
    max-width: 80%;
    text-align: center;
    z-index: 1000;
}

.success-message {
    position: fixed;
    top: 47%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: block;
    max-width: 80%;
    text-align: center;
    z-index: 1000;
}

/* Styling für Patroullie Suisse Animation */

.jets {
    position: fixed;
    top: 33%;
    left: -200px;
    width: 200px;
    animation: fly 10s linear forwards;
    display: none;
    z-index: 15;
}

@keyframes fly {
    from {
        left: -200px;
        top: 33%;
        transform: rotate(0deg);
    }
    to {
        left: 100vw;
        top: 42%;
        transform: rotate(5deg);
    }
}

.balloon {
    position: fixed;
    bottom: 230px;
    left: 220px;
    width: 120px;
    animation: balloon-fly 50s linear 5s forwards;
    z-index: 15;
}

@keyframes balloon-fly {
    from {
        bottom: 230px;
        left: 220px;
    }
    to {
        bottom: 94.7vh;
        left: 91vw;
    }
}

.balloonfreeze {
    position: fixed;
    bottom: 230px;
    left: 220px;
    width: 120px;
    z-index: 15;
}

/* Das ITAZbr ist anfangs unsichtbar */
.ITAZbr {
    position: fixed;
    top: 48px;
    right: 0px;
    width: 2.5cm;
    height: 0;
    background-color: #F5DEB3;
    border: 1px solid white;
    opacity: 1;
    overflow: hidden;
    transform-origin: top;
    animation: ITAZbr-unroll 10s ease-in-out 60s forwards;
    z-index: 15;
}

@keyframes ITAZbr-unroll {
    0% {
        height: 0;
        transform: scaleY(0.2);
    }
    50% {
        height: 1.5cm;
        transform: scaleY(1.1);
    }
    100% {
        height: 3cm;
        transform: scaleY(1);
    }
}

.worbr {
    position: absolute;
    top: 0px;
    right: -35px;
    width: 4cm;
    height: 2cm;
    z-index: 18;
}

.ITAZbrfreeze {
    position: absolute;
    top: 48px;
    right: 0px;
    width: 2.5cm;
    height: 3cm;
    border: 1px solid white;
    z-index: 15;
}

.worbrfreeze {
    position: absolute;
    top: 50px;
    right: -30px;
    width: 4cm;
    height: 2cm;
    z-index: 18;
}



.admin-visits {
    position: absolute;
    top: 25px;
    left: 25px;
    background-color: #f0f0f0;
    font-size: 0.8rem;
    color: black;
    text-align: left;
    margin: 2rem auto;
    padding: 0.5em;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 10px;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    font-weight: bold;
}

.pagination a:hover {
    background-color: #45a049;
}

.documents-list table {
    position: absolute;
    top: 35px;
    left: 400px;
    max-width: 40%;    
    border: 1px solid #ddd;
    margin-top: 20px;
    text-align: left;
    font-size: 0.8rem;
    color: black;
    border-radius: 5px;
    border-collapse: collapse;
    z-index: 1000;
}

.documents-list th, .documents-list td {
    padding: 10px;
    border: 1px solid #ddd;
}

.documents-list th {
    background-color: #f4f4f4;
}

.impdocbtn {
    position: absolute;
    top: 210px;
    left: 300px;
    background-color: white;
    padding: 15px 20px;
    color: black;
    border: none;
    border-radius: 5px;
}

.impdocbtn:hover {
    background-color: #45a049;
}



