body {
  font-family: Arial, sans-serif;
  padding: 40px;
  background: #fff;
}
.container {
  max-width: 1024px;
  margin: 0 auto;
  background: white;
  padding: 20px;
}
h2, h3 { color: #163970; }
select, button {
  margin: 5px 0;
  padding: 6px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
table th, table td {
  padding: 6px;
  text-align: left;
}

a {
  text-decoration: none;
  color: #fab512;
}

a:hover {
  text-decoration: none;
  color: #163970;
}

/* --- Fragenbereich --- */
.questionnaire {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.form-headline {
  color: #163970;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.question-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.question-group label {
  font-weight: 600;
  color: #163970;
}

.form-select {
  border: 1px solid #d3d7de;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font-size: 0.95rem;
  background-color: #f2f2f2;
  transition: border-color 0.2s ease;
}
.form-select:focus {
  border-color: #163970;
  outline: none;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary {
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: #163970;
  color: #fff;
}
.btn-primary:hover {
  background-color: #0e2759;
}

.btn-secondary {
  background-color: #fab512;
  color: #000;
}
.btn-secondary:hover {
  background-color: #e3a80e;
}

.button-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  gap: 20px;
}

/* Linker Bereich mit 2 Buttons */
.button-left {
  display: flex;
  gap: 12px;
}

/* Hauptbuttons */
.btn-main {
  background: #163970;
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s;
}

.btn-main:hover {
  background: #0f2e5a;
}

/* Kontaktbutton rechts */
.btn-contact {
  background: #fab512;
  color: #163970;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}

.btn-contact:hover {
  background: #f8a900;
  color: #163970;
}

/* Optional: mobile stacked layout */
@media (max-width: 600px) {
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }
  .button-left {
    width: 100%;
    justify-content: space-between;
  }
  #contactSales {
    width: 100%;
    text-align: center;
  }
}



/* --- Responsive --- */
@media (max-width: 640px) {
  .questionnaire {
    padding: 1.2rem;
  }
  .question-group label {
    font-size: 0.95rem;
  }
  .form-select {
    font-size: 0.9rem;
  }
  .button-group {
    flex-direction: column;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

/* === Sprachumschalter === */
.lang-switch {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-bottom: 15px;
  width: 100%;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #163970;
  background: #f5f6fa;
  border: 1.5px solid #d8dbe2;
  padding: 6px 10px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.lang-btn:hover {
  background: #eaf0ff;
  border-color: #163970;
  color: #163970;
  box-shadow: 0 0 4px rgba(22, 57, 112, 0.25);
}

.lang-btn.active {
  background: #163970;
  color: #fff;
  border-color: #163970;
  box-shadow: 0 0 6px rgba(22, 57, 112, 0.3);
  cursor: default;
}

@media (max-width: 600px) {
  .lang-switch {
    justify-content: center;
    margin-top: 10px;
  }
  .lang-btn {
    font-size: 0.8rem;
    padding: 5px 8px;
  }
}


/* === Tabellenbereich (bereinigt & CI-konform) === */

.table-wrapper {
  width: 100%;
  margin-top: 2rem;
  overflow-x: auto;
}

.table-wrapper h3,
.simple-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #163970;
  margin-bottom: 0.75rem;
}

/* Basislayout */
.table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.95rem;
  background: #fff;
  margin-bottom: 2rem;
  border: none;
  table-layout: fixed; /* sorgt für gleichmäßige Breite */
}

/* Tabellenkopf */
.table thead th {
  color: #163970;
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  border: none;
  border-bottom: 3px solid #163970; /* nur horizontale Linie unten */
  background: #fff;
  white-space: nowrap;
}

/* Tabellenzellen */
.table tbody td {
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid #e1e3e8; /* dünne, horizontale Linien */
  vertical-align: middle;
}

/* Pflichtprodukte (grün) */
#requiredTable tbody tr,
.table tbody tr.required-row {
  background-color: rgba(0, 204, 0, 0.25);
}

/* Optionale Produkte (gelb) */
#optionalTable tbody tr,
.table tbody tr.optional-row {
  background-color: rgba(250, 181, 18, 0.25);
}

/* Hover-Effekt */
.table tbody tr:hover {
  background-color: rgba(22, 57, 112, 0.08);
}

/* Letzte Zeile ohne Linie */
.table tbody tr:last-child td {
  border-bottom: none;
}

/* Hinweistext */
.table-wrapper p.simple-heading {
  margin-top: 2rem;
  color: #163970;
}

.table-wrapper p.simple-heading a {
  color: #fab512;
  font-weight: 600;
  text-decoration: none;
}
.table-wrapper p.simple-heading a:hover {
  text-decoration: underline;
}

/* Spaltenbreiten definieren */
.table th:nth-child(1),
.table td:nth-child(1) {
  width: 10%;  /* ID */
}

.table th:nth-child(2),
.table td:nth-child(2) {
  width: 35%;  /* Name */
}

.table th:nth-child(3),
.table td:nth-child(3) {
  width: 55%;  /* Beschreibung */
}

/* Falls du später Kategorie & Download-Spalten hast */
.table th:nth-child(4),
.table td:nth-child(4) {
  width: 20%; /* Kategorie */
}
.table th:nth-child(5),
.table td:nth-child(5) {
  width: 10%; /* Download */
}

/* --- Responsive Tabellen --- */
@media (max-width: 768px) {
  .table thead {
    display: none;
  }
  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }
  .table tr {
    margin-bottom: 1rem;
    border-bottom: 2px solid #163970;
    background: #fff;
  }
  .table td {
    text-align: right;
    padding: 6px 10px;
    position: relative;
    border-bottom: 1px solid #e1e3e8;
  }
  .table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 60%;
    padding-right: 10px;
    font-weight: 600;
    color: #163970;
    text-align: left;
  }
}


/* === Hinweis-Popup === */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(22, 57, 112, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-box {
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  padding: 24px 28px;
  max-width: 480px;
  text-align: left;
  font-family: 'Open Sans', sans-serif;
  color: #3c3c3b;
  line-height: 1.4;
}

.popup-box p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.popup-box button {
  background-color: #163970;
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.popup-box button:hover {
  background-color: #fab512;
  color: #163970;
}

.form-select.error {
  border: 2px solid #c62828 !important;
  background-color: rgba(198, 40, 40, 0.05);
}

.validation-message {
  color: #c62828;
  font-size: 0.9rem;
  margin-top: 4px;
  display: none;
}

.question-group.invalid .validation-message {
  display: block;
}

/* === Info-Icons === */
.info-icon {
  display: inline-block;
  margin-left: 6px;
  font-size: 19px;
  color: #163970;
  cursor: pointer;
  position: relative;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  line-height: 18px;
  background: #e7ecf6;
  transition: background 0.2s;
}

.info-icon:hover {
  background: #163970;
  color: #fff;
}

/* Tooltip-Box */
.tooltip-box {
  position: absolute;
  left: 22px;
  top: 0;
  background: #ffffff;
  border: 1px solid #d8dbe2;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 10px 12px;
  font-size: 0.85rem;
  color: #3c3c3b;
  max-width: 420px;
  width:400px;
  z-index: 100;
  display: none;
}

.tooltip-box a {
  color: #fab512;
  text-decoration: none;
  font-weight: 300;
}

.tooltip-box a:hover {
  color: #004080;
  text-decoration: underline;
}

