/* ID mit # und class mit .punkt */

/*
.btnall {
width: 150px;
padding:20px;
}
*/

.link-zu-dse {
font-weight: bold;
color: #9FB6CD;
cursor: pointer;
text-decoration: none;
}

.link-zu-dse:hover {
color: red;
}

.gesperrt {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}


#settingsDialog {
	background-color: #00008B;
	color: #ffffff;
	border: 1px solid white;
	max-width: 100vw;
  
  min-width: 250px; /* Wert an deinen Text anpassen */
}


.zentrieren-overlay {
    display: flex; /* Macht den Container zum Flexbox-Layout */
    justify-content: center; /* Zentriert horizontal */
    align-items: center; /* Zentriert vertikal */
    height: 100vH;
    text-align: center;
/*    background-color: #0000cd; */
    }



#text-ds-ui1 {
	font-weight: bold;
	font-size: 120%;
	text-decoration: none;
	color: lawngreen;
}


#text-ds-ui1:hover {
  color: red;
}


#text-ds-ui1:active {
  color: white;
}


#text-ds-ui2 {
	font-weight: bold;
	font-size: 120%;
	text-decoration: none;
	color: lawngreen;
}


#text-ds-ui2:hover {
  color: red;
}


#text-ds-ui2:active {
  color: white;
}


    /* Container für die UI auf der Hauptseite */
    .container-overlay {
      text-align: center;
      background: #1e293b;
      padding: 30px;
      border-radius: 12px;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
      width: 600vH;
    }

    /* Trigger-Button auf der Hauptseite */
    #openBtn {
      padding: 12px 24px;
      font-size: 16px;
      font-weight: 600;
      color: white;
      background-color: #3b82f6;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.2s;
    }

    #openBtn:hover { background-color: #2563eb; }

    /* Anzeige-Bereich für die Ergebnisse */
    #resultContainer {
      margin-top: 24px;
      padding: 16px;
      background-color: #0f172a;
      border: 1px solid #334155;
      border-radius: 8px;
      text-align: left;
      min-width: 25vH;
      display: none;
    }

    #resultContainer h4 {
      margin: 0 0 8px 0;
      color: #f8fafc;
    }

    #resultList {
      margin: 0;
      padding-left: 20px;
      color: #cbd5e1;
    }

    /* Hinweistext für die Weiterleitung */
    #redirectNotice {
      margin-top: 12px;
      color: #3b82f6;
      font-weight: 600;
      font-size: 14px;
      text-align: center;
    }



/* Dialog-Fenster */
dialog {
  position: fixed;
  left: 50%;
  /* Zentriert den Dialog exakt um seinen eigenen Mittelpunkt */
  transform: translate(-50%, 0);
  width: 65%;
  overflow-y: auto;
  border: none;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  background: red;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}


/* Wird dynamisch per JS gesetzt */
dialog.show {
  opacity: 1;
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.8s ease-in-out;
      /*backdrop-filter: blur(4px);*/
}


dialog.show::backdrop {
  background-color: rgba(3, 7, 18, 0.8); /* Hintergrund abdunkeln */
      /*backdrop-filter: blur(5px); */
}


    dialog h3 {
      margin-top: 0;
      color: #ffffff;
      font-size: 20px;
      margin-bottom: 20px;
      padding-right: 24px;
    }

    
    /* Schließen-Button oben rechts (X) */ 
    .close-icon-btn {
      position: absolute;
      top: 5px;
      right: 5px;
      background-color: #00008B;
      border: none;
      cursor: pointer;
      color: #ffffff;
      border-radius: 15%;
      transition: background 0.2s, color 0.2s;
    }
    
    
    
    .close-icon-btn:hover {
      background-color: #ff0000;
      color: #ffffff;
    }



/* options-reihen (on/off switches) */
.option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  min-height: 40px; /* Besser als feste vh-Höhe */
  gap: 15px; /* Erzeugt sicheren Abstand zwischen Text und Schalter */
}

.option-label {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.4;
  user-select: none;
  /* white-space: nowrap; entfernt, damit Text bei Bedarf umbrechen kann */
}

/* 1. container (das label dient als klickfläche) */
.switch {
  position: relative;
  display: inline-block;
  width: 50px; /* Feste Breite in Pixeln */
  height: 28px; /* Feste Höhe in Pixeln */
  flex-shrink: 0; /* Verhindert, dass der Schalter zusammengedrückt wird */
}

/* 2. standard-checkbox verstecken */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* 3. die schiene (der hintergrund) */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

/* 4. der schieberegler (kreis) */
.slider:before {
  position: absolute;
  content: "";
  height: 20px; /* Feste Größe für den Kreis */
  width: 20px;  /* Feste Größe für den Kreis */
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

/* 5. zustand: aktiviert (checkbox angehakt) */
.switch input:checked + .slider {
  background-color: #007bff;
}

/* 6. verschieben des schiebereglers nach rechts */
.switch input:checked + .slider:before {
  transform: translateX(22px); /* Passgenaue Verschiebung in Pixeln */
}





    /* Styling für den Datenschutz-Link */
    .privacy-notice {
      display: flex;
      justify-content: center; /* Zentriert horizontal */
      align-items: center;         margin-top: 20px;
      text-align: center;
      line-height: 1.4;
      font-weight: bold;
      color: #ffffff;
      font-size:110%;
    }

    .privacy-notice a {
      color: #2563eb;
      text-decoration: none;
      font-weight: 500;
    }
    .privacy-notice a:hover { color: yellow; }




    /* Buttonbereich im Dialog */
    .actions {
      display: flex;
      justify-content: center;
      margin-top: 20px;
    }


/* Zustimmen */
    .btn1 {
      padding: 5px 18px 5px 18px;
      font-size: 16px;
      font-weight: bold;
      border-radius: 6px;
      cursor: pointer;
      border: none;
    }

    .btn-primary1 {
      background-color: #007bff;
      color: #ffffff;
      margin: 3px 40px 3px 0px;
      width: 210px;
      transition: box-shadow 0.2s;
      height: 35px;

      max-width: 100%; 
      box-sizing: border-box; 
      text-size-adjust: none;
    }

    .btn-primary1:hover { background-color: red; color: white;}

    .btn-primary1:focus {
      outline: 0px solid #1d4ed8;
      outline-offset: 0px;
      box-shadow: 0 0 0 0px rgba(37, 99, 235, 0.3);
    }



/* Ablehnen */
    .btn3 {
      padding: 5px 18px;
      font-size: 16px;
      font-weight: bold;
      border-radius: 6px;
      cursor: pointer;
      border: none;
    }

    .btn-primary3 {
      background-color: #007bff;
      color: white;
      margin: 3px 40px 3px 0px;
      width: 210px;
      transition: box-shadow 0.2s;
      height: 35px;

      max-width: 100%; 
      box-sizing: border-box; 
      text-size-adjust: none;
    }

    .btn-primary3:hover { background-color: red; color: white;}

    .btn-primary3:focus {
      outline: 0px solid #1d4ed8;
      outline-offset: 0px;
      box-shadow: 0 0 0 0px rgba(37, 99, 235, 0.3);
    }




/* Einstellungen */
    .btn2 {
      padding: 5px 18px;
      font-size: 16px;
      font-weight: bold;
      border-radius: 6px;
      cursor: pointer;
      border: none;
    }

    .btn-primary2 {
      background-color: #007bff;
      color: white;
      margin: 3px 0px 3px 0px;
      width: 210px;
      transition: box-shadow 0.2s;

      max-width: 100%; 
      box-sizing: border-box; 
      text-size-adjust: none;
      height: 35px;
    }

    .btn-primary2:hover { background-color: red; color: white;}

    .btn-primary2:focus {
      outline: 0px solid #1d4ed8;
      outline-offset: 0px;
      box-shadow: 0 0 0 0px rgba(37, 99, 235, 0.3);
    }



/* Speichern */
    .btn4 {
      font-size: 16px;
      font-weight: bold;
      border-radius: 6px;
      cursor: pointer;
      border: none;
    }

    .btn-primary4 {
      background-color: #007bff;
      color: white;
      margin: 3px 0px 3px 0px;
      width: 210px;
      transition: box-shadow 0.2s;
      height: 35px;

      max-width: 100%; 
      box-sizing: border-box; 
      text-size-adjust: none;
    }

    .btn-primary4:hover { background-color: red; color: white;}

    .btn-primary4:focus {
      outline: 0px solid #1d4ed8;
      outline-offset: 0px;
      box-shadow: 0 0 0 0px rgba(37, 99, 235, 0.3);
    }




/* ----------------------------Gemeinsame Basis für beide Buttons ------------------------------*/

.btn-stream {
    padding: 10px 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* „Ja“-Button: Elegantes Smaragdgrün */
.btn-ja {
    background-color: lawngreen; /* Deep Teal / Smaragd */
    color: black;
    width: 30vH;
}

.btn-ja:hover {
    background-color: red;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(15, 118, 110, 0.25);
}

/* „Nein“-Button: Neutraler Schieferton (Weniger dominant) */
.btn-nein {
    background-color: darkred; /* Slate Gray */
    color: #ffffff;
    width: 30vH;
}

.btn-nein:hover {
    background-color: red;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(100, 116, 139, 0.25);
}

/* Klick-Effekt für beide */
.btn-stream:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


 /* Optimierung für Smartphones */
    @media (max-width: 600px) {
      .floating-container {
        flex-direction: column; /* Untereinander auf dem Smartphone */
        left: 20px;             /* Optional: Zentriert oder streckt das DIV mobil */
        right: 20px;
      }
      
      .floating-container button {
        width: 100%;            /* Buttons nutzen volle Breite im DIV */
      }
    }
    





/* Optimierung für Smartphones im Landscape-Modus (Querformat) */
@media (max-width: 900px) and (orientation: landscape) {
  .floating-container {
    display: flex;
    flex-direction: column;   /* Ordnet die jeweils sichtbaren Buttons untereinander an */
    width: 100%;              /* Container nutzt die volle Breite */
    box-sizing: border-box;
    padding: 0 10px;          /* Kleiner Seitenabstand zum Bildschirmrand */
  }

  /* Setzt nur die Breite und Abstände für alle vier Buttons zurück */
  .floating-container button.btn1,
  .floating-container button.btn2,
  .floating-container button.btn3,
  .floating-container button.btn4 {
    width: 100% !important;   /* Volle Breite für den Button, wenn er sichtbar ist */
    max-width: 100% !important;
    margin: 5px 0 !important; /* Löscht asymmetrische Abstände (wie die 40px rechts) */
    /* display !important wurde entfernt, damit dein JS die Buttons wie gewohnt ausblenden kann */
  }
}
