:root {
  --bs-bg: #f3f7fb;
  --bs-card: #ffffff;
  --bs-line: #d7e4f3;
  --bs-text: #15314d;
  --bs-muted: #5d738b;
  --bs-primary: #0f766e;
  --bs-primary-2: #14b8a6;
  --bs-danger: #dc2626;
  --bs-radius: 14px;
  --bs-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

body {
  background: radial-gradient(circle at 12% -15%, rgba(20,184,166,.10), transparent 42%),
              radial-gradient(circle at 100% 0%, rgba(29,78,216,.08), transparent 40%),
              var(--bs-bg);
  color: var(--bs-text);
}

.main {
  width: min(1240px, 94vw) !important;
  max-width: 1240px !important;
}

.body1 {
  border-bottom: 0;
}

header {
  margin-bottom: 18px !important;
}

header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible !important;
}

#menu {
  float: none !important;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}

#menu li {
  float: none !important;
}

#menu li a {
  width: auto !important;
  min-width: 124px;
  border-radius: 999px;
  border: 1px solid #cfe0f2;
  border-top: 3px solid #bcd3ef !important;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  color: #203a56;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2 !important;
  padding: 11px 14px !important;
  text-align: center;
}

.nav1 a,
.nav2 a,
.nav3 a,
.nav4 a,
.nav5 a {
  background: transparent !important;
}

#menu li a:hover,
#menu li .active {
  background: linear-gradient(135deg, #dff3f2 0%, #d9e9ff 100%) !important;
  border-color: #9ec8dc;
  color: #10314f;
}

.content .title {
  background: linear-gradient(145deg, #ffffff 0%, #f4f9ff 100%);
  border: 1px solid var(--bs-line);
  border-radius: var(--bs-radius);
  box-shadow: var(--bs-shadow);
  height: auto;
}

.content .title h5 {
  float: none;
  display: block;
  color: #123454;
  font-weight: 700;
  padding: 11px 16px;
}

.nNote {
  border-radius: 10px;
  border: 1px solid var(--bs-line);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.widget,
.widgetS {
  margin-top: 18px;
  border: 1px solid var(--bs-line);
  border-radius: var(--bs-radius);
  background: var(--bs-card);
  box-shadow: var(--bs-shadow);
  overflow: hidden;
}

.head {
  height: auto;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-top: 0;
  border-bottom: 1px solid var(--bs-line);
}

.widget .head h5,
.table h5 {
  color: #133652;
  font-weight: 700;
  padding: 11px 14px 11px 36px;
}

.widget .body {
  padding: 14px;
}

.rowElem {
  border-top: 1px solid #e7eff8;
  padding: 10px 14px;
}

.rowElem > label {
  color: #314b67;
  font-weight: 600;
}

.formRight {
  margin: 8px 0;
}

.mainForm input[type=text],
.mainForm textarea,
.mainForm input[type=password],
.mainForm select {
  background: #fff;
  border: 1px solid #bfd5ee;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 14px;
}

.mainForm input[type=text]:focus,
.mainForm textarea:focus,
.mainForm input[type=password]:focus,
.mainForm select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96,165,250,.18);
  outline: none;
}

.mainForm input[readonly] {
  background: #f8fbff;
  color: #5a6f86;
}

input[type=submit],
input[type=reset],
input[type=button],
button,
.button,
.basicBtn,
.greyishBtn,
.greenBtn,
.blueBtn,
.redBtn,
.blackBtn,
.seaBtn {
  border-radius: 10px;
  text-transform: none;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  line-height: 1.2;
  border: 1px solid transparent;
  background-image: none !important;
}

.greyishBtn,
.blueBtn,
.greenBtn {
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-2));
  border-color: #0f766e;
  color: #fff;
}

.basicBtn {
  background: #f8fbff;
  border-color: #bfd5ee;
  color: #223f5d;
}

.redBtn {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  border-color: #b91c1c;
  color: #fff;
}

.tableStatic thead td {
  background: #f3f8ff;
  color: #334d68;
  font-size: 12px;
  border-color: #d7e4f3;
}

.tableStatic tbody tr:nth-child(even) {
  background-color: #f8fbff;
}

.tableStatic tbody td {
  border-color: #e1eaf5;
}

footer {
  margin-top: 22px;
  border: 1px solid #d7e4f3;
  border-radius: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fd 100%);
  color: #3e566f;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
}

footer a {
  color: #21486f;
  text-decoration: none;
}

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

@media (max-width: 980px) {
  header .wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  #menu {
    flex-wrap: wrap;
    padding-top: 2px;
  }

  #menu li a {
    min-width: 112px;
    font-size: 14px;
    padding: 10px 13px !important;
  }

  .formRight,
  .rowElem > label {
    float: none;
    width: 100%;
  }
}

/* ===== Button Visibility Hard-Fix ===== */
.greyishBtn,
.blueBtn,
.greenBtn {
  background-color: #0f766e !important;
  background-image: linear-gradient(135deg, #0f766e, #14b8a6) !important;
  color: #ffffff !important;
  border-color: #0f766e !important;
}

.mainForm .submitForm {
  float: none !important;
  display: inline-block !important;
  margin-left: 8px !important;
}

.loginRow input[type=submit],
.rowElem input[type=submit] {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Kundendaten: centered form layout (like payment sections) */
.kd-centered-form .rowElem {
  padding-left: 20px;
  padding-right: 20px;
}

.kd-centered-form .rowElem > label {
  width: 24%;
}

.kd-centered-form .formRight {
  width: 62%;
  margin-right: 6%;
}

.kd-centered-form .rowElem .basicBtn,
.kd-centered-form .rowElem .greyishBtn,
.kd-centered-form .rowElem .submitForm {
  margin-top: 2px;
}

@media (max-width: 980px) {
  .kd-centered-form .rowElem > label,
  .kd-centered-form .formRight {
    width: 100%;
    margin-right: 0;
    float: none;
  }
}
