/* Globale Einstellungen */
body {
  font-family: Arial, sans-serif;
  margin: 20px;
}

/* Header mit Logo */
.header {
  margin-bottom: 30px;
}
.header img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Allgemeine Tabellen für Eingabefelder */
.inputTable {
  width: 100%;
  border-collapse: collapse;
}
.inputTable td {
  padding: 5px 10px;
}

/* Für die erste Spalte: Labels – möglichst schmal und ohne Umbruch */
.inputTable td:first-child {
  width: 1%;
  white-space: nowrap;
}

/* A3-Vorschau-Container */
#certificate {
  position: relative;
  width: 1190.551px;
  height: 841.89px;
  background: url('zertifikat.png') no-repeat center center;
  background-size: cover;
  border: 1px solid #ccc;  /* Zum Testen, ggf. entfernen */
  margin: 0 auto;
}

/* Container für die Vorschau unter dem Formular */
.previewContainer {
  margin-top: 30px;
}

/* Basis-Stile für den dynamisch generierten Textblock */
#textBlock {
  white-space: pre-wrap;
  text-align: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Positionierung in der Vorschau – diese Werte bleiben unverändert */
#textBlock.previewPosition {
  position: absolute;
  left: 606.614px;
  top: 249.449px;
  width: 575.433px;
  height: 219.248px;
}

/* (Optional) Klasse für PDF – gleiche exakte Werte */
#textBlock.pdfPosition {
  position: absolute;
  left: 606.614px;
  top: 249.449px;
  width: 575.433px;
  height: 219.248px;
}

/* Zurücksetzen der Standard-Margen innerhalb des Textblocks */
#textBlock .block {
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* Formatierung der einzelnen Textabschnitte */
#textBlock .name {
  font-size: 16pt;
  font-weight: bold;
}
#textBlock.previewPosition .name {
  margin-bottom: 0.5em;
}

#textBlock .geburtsinfo {
  font-size: 14pt;
}
#textBlock.previewPosition .geburtsinfo {
  margin-bottom: 0.5em;
}

#textBlock .studieninfo {
  font-size: 14pt;
}
#textBlock.previewPosition .studieninfo {
  margin-bottom: 0.5em;
}

#textBlock .ausstellung {
  font-size: 12pt;
}

#memoBlock {
  position: absolute;
  left: 30px;
  top: 118px;
  width: 540px;
  height: 700px;
  white-space: pre-wrap;
  overflow: hidden;
  font-size: 14pt; /* oder anpassen, wie gewünscht */
  z-index: 10;
}

.inputTable td:first-child {
  vertical-align: top;
}