/* Allgemeine Stile */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9;
}

form {
  max-width: 800px;
  margin: 50px auto;
  padding: 40px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

h1, h2, h3 {
  text-align: center;
  color: #333;
}

label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

button {
  background-color: #007bff;
  color: white;
  padding: 15px 20px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

/* Unterschriften-Container */
#signature-container {
  position: relative;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%; /* Passe die Breite an */
  height: 200px; /* Setze die Höhe */
  background-color: #fff;
  overflow: hidden; /* Verhindert, dass Inhalte über die Box hinausgehen */
}

#signature-pad {
  width: 100%; /* Breite füllt das Container-Feld */
  height: 100%; /* Höhe füllt das Container-Feld */
}

.signature-started::before {
  content: "";
}

/* Tabellenstile */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

th {
  background-color: #f2f2f2;
}

td input {
  width: 95%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#signature-container {
  position: relative;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  height: 200px;
  background-color: #fff;
  overflow: hidden;
}

#signature-line {
  position: absolute;
  top: 50%; /* Linie in der Mitte */
  left: 0;
  width: 100%;
  height: 2px; /* Dicke der Linie */
  background-color: #aaa; /* Farbe der Linie */
  pointer-events: none;
}

#signature-pad {
  width: 100%;
  height: 100%;
}
table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #ddd;
}

th {
  background-color: #f4f4f9;
  font-weight: bold;
}
button {
  background-color: #007bff;
  color: white;
  padding: 15px 20px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease; /* Weicher Übergang */
}

button:hover {
  background-color: #0056b3;
}
.container {
  max-width: 800px;
  margin: 50px auto;
  padding: 40px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.container h1, .container h2, .container h3 {
  text-align: center;
  color: #333;
}

.container table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.container th, .container td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

.container th {
  background-color: #f2f2f2;
}

.container ol {
  margin-left: 20px;
}

.container p {
  line-height: 1.6;
  font-size: 14px;
  color: #555;
}

.footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #333;
}
#signature-cross {
  position: absolute;
  top: 45%; /* Etwas oberhalb der Linie */
  left: 30%; /* Weiter nach links verschieben */
  transform: translate(-50%, -50%); /* Zentrierung basierend auf `top` und `left` */
  font-size: 20px; /* Größe des "X" */
  font-weight: bold;
  color: #aaa; /* Farbe des "X" */
  pointer-events: none; /* Nicht interaktiv, damit es das Unterschreiben nicht behindert */
  z-index: 1;
}

#signature-container {
  position: relative;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  height: 200px; /* Höhe der Box */
  background-color: #fff;
  overflow: hidden;
}

#signature-line {
  position: absolute;
  top: 55%; /* Horizontale Linie in der Mitte */
  left: 0;
  width: 100%;
  height: 2px; /* Dicke der Linie */
  background-color: #aaa;
  pointer-events: none;
  z-index: 1;
}

#signature-pad {
  width: 100%;
  height: 100%;
  z-index: 2; /* Canvas liegt über der Linie und dem X */
}

#terminalTable {
  border: none; /* Entfernt die gesamte Tabellenumrandung */
  background-color: transparent; /* Entfernt die graue Hintergrundfarbe */
}

#terminalTable th, #terminalTable td {
  border: none; /* Entfernt die Umrandung einzelner Zellen */
}

#terminalTable tbody {
  background-color: transparent; /* Entfernt jegliche graue Färbung aus dem Inhalt */
}

/* Checkbox und Label Container */
.checkbox-container {
  display: flex; /* Stellt sicher, dass Checkbox und Label nebeneinander stehen */
  align-items: center; /* Zentriert die Checkbox und den Text vertikal */
  gap: 100px; /* Abstand zwischen der Checkbox und dem Text */
  margin: 15px 0; /* Abstand um die gesamte Checkbox */
}

/* Checkbox */
.checkbox-container input[type="checkbox"] {
  width: 20px; /* Breite der Checkbox */
  height: 20px; /* Höhe der Checkbox */
  border: 2px solid #ccc; /* Rand der Checkbox */
  border-radius: 4px; /* Abgerundete Ecken */
  cursor: pointer; /* Ändert den Mauszeiger zu einer Hand */
  accent-color: #007bff; /* Passt die Checkbox-Farbe an */
}

/* Checkbox Hover- und Fokus-Effekt */
.checkbox-container input[type="checkbox"]:hover {
  border-color: #007bff; /* Ändert die Randfarbe beim Hovern */
}

.checkbox-container input[type="checkbox"]:focus {
  outline: 2px solid #007bff; /* Fokus-Ring für Barrierefreiheit */
  outline-offset: 2px;
}

/* Label */
.checkbox-container label {
  font-size: 16px; /* Schriftgröße des Labels */
  font-weight: bold; /* Macht den Text fett */
  color: #333; /* Textfarbe */
  cursor: pointer; /* Klickbar wie die Checkbox */
}

/* Tabelle mit angepasster Spaltenbreite */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  table-layout: auto; /* Ermöglicht automatische Anpassung */
}

th, td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: left;
}

th {
  background-color: #f4f4f9;
  font-weight: bold;
  text-align: center;
}

/* Spaltenbreiten anpassen */
th:first-child, td:first-child {
  width: 80%; /* Erste Spalte (Leistung): 60% */
}

th:last-child, td:last-child {
  width: 20%; /* Zweite Spalte (Kosten): 40% */
}

/* Listen in der Tabelle */
td ul {
  margin: 0;
  padding-left: 20px; /* Einrückung für Listen */
  list-style-type: disc;
}

td ul li {
  margin-bottom: 5px; /* Abstand zwischen Listenpunkten */
}

td {
  vertical-align: top; /* Text oben ausrichten */
}


/* Logo-Container weiter weg vom oberen Rand */
.logo-container {
  display: flex;
  justify-content: space-between; /* Abstand zwischen den Logos */
  align-items: center;
  padding: 20px 40px; /* Abstand oben und seitlich */
  margin-top: 20px; /* Zusätzlicher Abstand vom oberen Rand */
}

/* Überschrift-Onboarding etwas nach unten verschieben */
h1 {
  margin-top: 40px; /* Abstand zwischen den Logos und der Überschrift */
  text-align: center;
  font-size: 34px; /* Optional: Schriftgröße der Überschrift */
  color: #333;
}


/* Allgemeine Logostile */
.logo {
  max-width: 150px; /* Maximalbreite der Logos */
  height: auto; /* Höhe wird proportional angepasst */
}

.left-logo {
  align-self: flex-start; /* Links oben */
}

.right-logo {
  align-self: flex-start; /* Rechts oben */
}
