body {
  font-family: Arial, sans-serif;
  margin: 40px;
  line-height: 1.4;
}
/* Header*/
body {
  font-family: Arial, sans-serif;
  margin: 0;
  line-height: 1.4;
  background: #fff;
  color: #111;
}

main {
  padding: 32px 40px 40px 40px;
}

.site-header {
  border-bottom: 1px solid #ddd;
  background: #fafafa;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-block {
  flex: 0 0 auto;
}

.site-logo {
  height: 64px;
  width: auto;
  display: block;
}

.header-title-block h1 {
  margin: 0 0 6px 0;
  font-size: 1.9rem;
}

.header-subtitle {
  margin: 0;
  color: #555;
}

.site-footer {
  border-top: 1px solid #ddd;
  background: #fafafa;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.site-footer a {
  color: #005a9c;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.legal-page {
  max-width: 980px;
  margin: 0 auto;
}

.legal-page a {
  color: #005a9c;
}

.legal-section {
  margin-top: 28px;
}

.legal-section h2 {
  margin: 0 0 18px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
  font-size: 1.5rem;
}

.legal-section h3 {
  margin: 24px 0 8px 0;
  font-size: 1.15rem;
}

.legal-section h4 {
  margin: 18px 0 8px 0;
  font-size: 1rem;
}

.legal-section p,
.legal-section li,
.legal-section address {
  color: #222;
}

.legal-section address {
  margin: 8px 0 16px 0;
  padding: 12px;
  border: 1px solid #ddd;
  background: #fafafa;
  font-style: normal;
}

.legal-section ol {
  padding-left: 24px;
}
/* Oberer Formularbereich */
.top {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 10px 15px;
  margin-bottom: 20px;
  align-items: center;
}

/* Hinweis soll genau über rechter Spalte sitzen */
.hinweis-wrapper {
  display: flex;
  justify-content: left; /* <- schiebt nach links */
  margin-bottom: 20px;
}

/* Breite exakt wie rechte Spalte */
.hinweis-panel {
  width: 50%;
  border: 1px solid #d8d8d8;
  background: #fafafa;
  padding: 16px;
}

.hinweis-panel h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.hinweis-panel p {
  margin-top: 0;
  margin-bottom: 10px;
}

.container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.left,
.right {
  width: 50%;
}

.aktionen {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.aktionen button {
  padding: 8px 12px;
  cursor: pointer;
}

#leistungenListe,
#resultListe {
  border: 1px solid #ccc;
  padding: 15px;
  min-height: 250px;
  background: #fafafa;
}

.summe-box,
.differenz-box {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  background: #f7f7f7;
}

.differenz-box {
  max-width: 760px;
  margin-bottom: 35px;
}

.hinweis {
  color: #666;
  font-style: italic;
}

.result-item {
  margin-bottom: 10px;
  padding: 8px;
  background: white;
  border: 1px solid #ddd;
}

.result-item.hinweis-ergebnis {
  background: #fff8e8;
  border-color: #e2c98a;
}

.bereich-block {
  margin-bottom: 8px;
  border: 1px solid #ddd;
  background: white;
}

.bereich-block summary {
  cursor: pointer;
  list-style: none;
  padding: 6px 10px;
  background: #f1f1f1;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
}

.bereich-block summary::-webkit-details-marker {
  display: none;
}

.bereich-block summary::before {
  content: "▾ ";
  font-weight: normal;
}

.bereich-block:not([open]) summary::before {
  content: "▸ ";
}

.bereich-content {
  padding: 6px 10px;
}

.modul-gruppe {
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px dashed #ddd;
}

.modul-gruppe:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.modul-titel {
  margin-bottom: 3px;
  font-weight: bold;
}

.leistung-item {
  margin-bottom: 2px;
  padding-left: 6px;
}

.plan-section {
  margin-top: 20px;
}

.plan-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.plan-table th,
.plan-table td {
  border: 1px solid #ccc;
  vertical-align: top;
  padding: 10px;
}

.plan-table th {
  background: #f0f0f0;
  text-align: center;
}

.semester-cell {
  min-height: 120px;
}

.plan-modul {
  border: 1px solid #ddd;
  background: white;
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 4px;
  cursor: pointer;
}

.plan-modul.anerkannt {
  background: #dff3df;
  border-color: #9ccc9c;
}

.plan-modul small {
  display: block;
  margin-top: 4px;
  color: #555;
}

.plan-teilpruefungen {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.plan-teilpruefung {
  border-left: 3px solid #ddd;
  background: #f7f7f7;
  padding: 6px 8px;
  font-size: 0.9rem;
}

.plan-teilpruefung.anerkannt {
  border-left-color: #79b779;
  background: #dff3df;
}

.plan-teilpruefung small {
  margin-top: 2px;
}
.modul-header {
  margin-bottom: 4px;
}

.modul-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.modul-titel-inline {
  font-weight: bold;
}

.teilpruefung {
  padding-left: 24px;
}

.modul-einzel .modul-titel-inline {
  font-weight: bold;
}
.plan-modul {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.plan-modul-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plan-modul.expanded .plan-modul-title {
  white-space: normal;
  overflow: visible;
}

.wahlbereiche {
  margin-top: 28px;
}

.wahlbereiche h3 {
  margin: 0 0 12px 0;
  font-size: 1.2rem;
}

.wahlbereich-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.wahlbereich-block {
  border: 1px solid #ccc;
  background: #fafafa;
  padding: 12px;
}

.wahlbereich-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.wahlbereich-block h4 {
  margin: 0 0 10px 0;
  font-size: 1rem;
}

.wahlbereich-header h4 {
  margin-bottom: 0;
}

.bereich-cp-info {
  flex: 0 0 auto;
  max-width: 150px;
  padding: 4px 8px;
  border: 1px solid #c7d7e8;
  background: #eef6ff;
  color: #17415f;
  font-size: 0.85rem;
  line-height: 1.25;
  text-align: right;
}

.wahlbereich-module {
  display: grid;
  gap: 8px;
}
