/* Suedlink Styles */

.framed-blue {
  background-color: #e0e7eb;
  border: 2px solid #005073;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 540px;
}

.framed-red {
  background-color: #fbeeee;
  border: 2px solid #a30000;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 540px;
}

.public-container.notruf-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
}

/* Zusatz für suedlink_start.html */
.suedlink-auswahlbox {
  text-align: left;
  max-width: 600px;
  margin-left: 0;
  margin-top: 0.5rem;
}

.suedlink-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  padding-left: 0.5rem;
}

.suedlink-auswahl-container {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.auswahl-links {
  flex: 1;
  min-width: 300px;
}

.auswahl-rechts {
  flex: 1;
  min-width: 300px;
}

.projekt-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.projekt-buttons a.btn-doku-erstellen {
  background-color: #005073;
  color: white;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.projekt-buttons a.btn-doku-erstellen:hover {
  background-color: #003b5c;
}

.auswahl-rechts .btn-doku-erstellen {
  background-color: #a30000;
}

.auswahl-rechts .btn-doku-erstellen:hover {
  background-color: #7a0000;
}

/* Umschaltlogik AC/DC */
.generator-toggle {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.generator-toggle button {
  background-color: #005073;
  color: #fff;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

.generator-toggle button:hover {
  background-color: #003b5c;
}

.generator-toggle button.active {
  background-color: #007c91;
}

#formular-dc, #formular-ac {
  display: none;
  min-width: 600px;
  padding: 1rem;
  border-radius: 8px;
}

#formular-dc.active, #formular-ac.active {
  display: block;
}

.formular-und-doku {
  display: flex;
  gap: 1.2rem;
  justify-content: space-between;
  align-items: stretch;
}

.formular-bereich,
.doku-bereich {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

textarea.output-text {
  width: 100%;
  min-height: 100px;
  font-size: 1rem;
  padding: 0.8rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: inherit;
  resize: vertical;
}

.copy-text {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  background-color: #fff;
  padding: 0.4rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  display: inline-block;
}

.copy-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-doku-erstellen {
  background-color: #005073;
  color: white;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.btn-doku-erstellen:hover {
  background-color: #003b5c;
}

.copy-confirmation {
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

select, input[type="text"], input[type="date"] {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 0.8rem;
  font-family: inherit;
  box-sizing: border-box;
}

label {
  font-weight: bold;
  margin-bottom: 0.2rem;
  display: block;
}

h1.sucherergebnis-titel {
  font-size: 1.6rem;
  color: #005073;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.2rem;
  color: #005073;
  margin-top: 0.4rem;
  margin-bottom: 0.2rem;
}

.lotsen-hinweis {
  color: #a30000;
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.lotsenpunkt-container {
  margin-top: 0.4rem;
  margin-bottom: 0.8rem;
}

.gleiche-hoehe {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

#copy-warning {
  font-size: 0.95rem;
  margin-top: 0.6rem;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .formular-und-doku,
  .suedlink-auswahl-container {
    flex-direction: column;
  }
}

/* Deaktivierter Button – grau und inaktiv */
.disabled-button {
  pointer-events: none;
  background-color: #ddd;
  color: #666;
  border: 2px solid #aaa;
  cursor: not-allowed;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  display: inline-block;
  opacity: 0.7;
}

/* Nur innerhalb der Suedlink-Seite + Modal, damit nix anderes leidet */
.sl-scope #slModal,
.sl-modal {
  position: fixed !important;
  inset: 0 !important;           /* top/right/bottom/left: 0 */
  display: none;                  /* wird per JS auf block gesetzt */
  background: rgba(0,0,0,0.45) !important;
  z-index: 99999 !important;
}

/* Sichtbar, wenn aria-hidden=false */
.sl-scope #slModal[aria-hidden="false"],
.sl-modal[aria-hidden="false"] {
  display: block !important;
}

/* Modal-Content (eigene Klasse, um Konflikte mit .modal-content zu vermeiden) */
.sl-modal .sl-modal-content {
  position: relative !important;
  max-width: 720px;
  margin: 6vh auto;
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* Kleinkram */
.sl-modal .modal-actions { display:flex; gap:12px; justify-content:flex-end; margin-top: 12px; }
.sl-modal .gate { padding: 8px 0; }
.sl-scope .summary-list { margin: 0 0 8px 0; padding-left: 18px; }
