:focus,
.radio td.checked:focus-within,
div.panel-heading:focus-within {
  outline: none;
  box-shadow: 0 0 0 var(--box-shadow-size) var(--primary-color) inset;
}

.radio.has-error td.checked:focus-within {
  box-shadow: 0 0 0 var(--box-shadow-size) var(--error-color) inset;
}

label.disabled {
  color: var(--disabled-color);
}

.has-error :focus,
.radio.has-error td:focus-within,
.input-group.date.has-error:focus-within,
.has-error select:focus .select2.select2-container .select2-selection {
  box-shadow: 0 0 0 var(--box-shadow-size) var(--error-color);
}

.has-error .select2.select2-container .select2-selection {
  border-color: var(--error-color);
}

.input-group.date:focus-within {
  box-shadow: 0 0 0 var(--box-shadow-size) var(--primary-color);
}

.input-group.date input:focus {
  box-shadow: none;
}

a.panel-title-link:focus {
  box-shadow: none;
}

header *:focus {
  box-shadow: none;
}

.hidden {
  display: none !important;
}

.spacer {
  margin-bottom: 25px;
  clear: both;
}

.spacer.big {
  margin-bottom: 50px;
}

.spacer-small,
.spacer.small {
  margin-bottom: 15px;
}

@media screen and
(prefers-reduced-motion: reduce),
(update: slow) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important; /* Hat tip Nick/cssremedy (https://css-tricks.com/revisiting-prefers-reduced-motion-the-reduced-motion-media-query/#comment-1700170) */
    transition-duration: 0.001ms !important;
  }
}

/* document level styles */

body, select {
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-weight: normal;
  font-size: var(--base-font-size);
  color: var(--text-color);
  background: var(--background-color);
  padding-top: 0;
  margin: 0;
}

select, option {
  font-weight: var(--base-font-weight);
}

h2 {
  font-size: 150%;
  font-weight: normal;
  margin-top: 20px;
}

h2:first-child {
  margin-top: 0;
}

h3 {
  font-size: 125%;
  font-weight: normal;
  margin-top: 0;
}

.container {
  margin: auto;
  max-width: 960px;
  min-height: 100vh;
  position: relative;
  overflow-y: visible; /* Default des Ancestors: scroll */
  padding: 0;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: initial;
}

textarea.form-control {
  font-weight: normal;
  resize: vertical;
  color: var(--text-color);
}

select {
  color: var(--text-color);
  background: white;
  height: 35px;
}

template { /* template-Element im IE und Edge ausblenden */
  display: none;
}

header, footer {
  background-color: white;
  padding: 20px 45px 10px 45px;
  box-shadow: 0 2px 6px 1px var(--shadow-color);
  color: var(--text-color);
  font-weight: bold;
}

header .title {
  flex: 1;
  font-size: 95%;
  font-weight: var(--base-font-weight);
  font-style: italic;
  padding: 0 0 8px 0;
}

header p.info {
  display: flex;
  flex-direction: column;
}

header span.info {
  text-align: left;
}


@media (min-width: 760px) {
  header p.info {
    flex-direction: row;
  }

  header span.info:nth-child(2) {
    text-align: right;
  }
}

header span.info {
  flex: 1;
  font-weight: var(--base-font-weight);
  color: var(--disabled-color);
  font-size: 0.9rem;
}

header .left {
  width: 100%;
}

header .relright {
  position: absolute;
  top: 20px;
  right: 45px;
}

.left {
  float: left;
}

.right {
  float: right;
}

.tighttop {
  margin-top: 6px;
  margin-bottom: 0;
}

header .linkset {
  flex: 1;
  padding-right: 8px;
  font-size: 13px;
}

header .linkset a {
  float: right;
  padding: 0 10px;
  color: var(--primary-color);
  cursor: pointer;
}

@media (max-width: 760px) {
  header {
    padding: 12px 16px 3px 16px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
  }

  header .relright {
    right: 0;
  }

  header .title {
    font-size: 90%;
  }

  header .linkset .link {
    padding-right: 0;
  }

  header .linkset .link.first-link { /* überschreibt den Desktop-Style */
    padding-right: 0;
  }
}

main {
  flex: 1;
  padding: 0 45px;
}

main.wide {
  padding: 0;
}

#content {
  padding-top: 40px;
}

@media (max-width: 760px) {
  main {
    padding: 0 15px;
  }

  #content {
    padding-top: 20px;
  }
}

#overlay {
  display: none;
  position: fixed; /* fixed heißt bezogen auf den Viewport */
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100vw; /* gesamter Bildschirm, unabhängig vom Parent */
  height: 100vh; /* gesamter Bildschirm, unabhängig vom Parent */
  background: black;
  opacity: 0.1;
}

.required-error,
.error {
  padding-top: 4px;
  font-size: 13px;
  color: var(--error-color);
}

.required-error.outside-form-group {
  display: block;
  margin-top: -13px;
  margin-bottom: 15px;
}


/* ================== */
/* Help (Icon & Text) */
/* ================== */

.help-icon:before {
  content: '?';
}

.anim {
  animation: appear 1s;
}

@keyframes appear {
  from {
    opacity: 0.1;
  }
  to {
    opacity: 1;
  }
}

/* Controls */

.check label,
.checktable label {
  font-weight: var(--base-font-weight);
  font-size: 18px;
  padding-left: 30px;
}

select.form-control {
  padding: 13px 0 13px 14px;
}

a.btn,
button.btn {
  line-height: 28px;
  margin-top: 2px;
}

button.btn.forward {
  padding-right: 15px;
}

button.back.btn.btn-default {
  padding-left: 15px;
  margin-top: 0;
  font-weight: var(--base-font-weight);
  background-color: transparent;
  color: #707070;
  border-color: #707070;
  border-width: 2px;
  border-style: solid;
}

button.inverse {
  background-color: transparent;
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  border-width: 2px;
  border-style: solid;
}

.checkboxinput {
  margin-left: 35px;
  width: calc(100% - 35px);
}

/* > Marker */
button.forward:after {
  content: var(--icon-btn-next);
}

button.back:before {
  content: var(--icon-btn-previous);
}

.has-error .control-label {
  color: var(--text-color);
}

label.control-label.bf-required:after {
  content: '';
}

button.btn.small {
  font-size: 100%;
}

@media (max-width: 760px) {
  button.btn.small {
    font-size: 3vw;
  }
}

.tweakfg .form-group {
  margin-bottom: 0;
}

.select2 {
  max-width: 100%;
}

/* Radio buttons / Checkboxes */

table.radio,
table.radio > tbody,
table.check,
table.check > tbody,
.checktable,
.checktable > tbody {
  display: block;
}

table.radio tr,
table.check tr {
  display: flex;
  flex-direction: column;
}

table.radio td {
  box-sizing: border-box;
  display: block;
  flex: 1;
  /*padding: 13px 0 13px 12px;*/
  border-radius: var(--input-border-radius);
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: white;
  margin-bottom: 8px;
}

@media (pointer: fine) {
  table.radio td:hover {
    background-color: var(--primary-color-hover);
  }
}

@media (min-width: 760px) {
  table.radio.horizontal tr,
  table.check.horizontal tr {
    display: flex;
    flex-direction: row;
  }

  table.radio.horizontal td,
  table.check.horizontal td {
    margin-right: 8px;
    margin-bottom: 0;
  }

  table.radio.horizontal td:last-child,
  table.check.horizontal td:last-child {
    margin-right: 0;
  }
}

.radio label,
.check label,
.checktable label {
  width: 100%;
  cursor: pointer;
}

.check label,
.checktable label {
  padding-bottom: 0;
}

.check label.noclick {
  cursor: default;
}

.radio td:focus-within {
  outline: none;
  box-shadow: 0 0 0 var(--box-shadow-size) var(--primary-color) inset
}

.radio.has-error td:focus-within {
  box-shadow: 0 0 0 var(--box-shadow-size) var(--error-color) inset
}

.radio input[type='radio']:focus {
  outline: none;
  box-shadow: none;
}

.radio input[type='radio'] {
  position: absolute;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.radio td.checked {
  border-color: var(--border-color-selected);
  box-shadow: 0 0 0 var(--box-shadow-size) var(--border-color-selected) inset;
}

.radio.has-error td.checked {
  border-color: var(--error-color);
  box-shadow: 0 0 0 var(--box-shadow-size) var(--error-color) inset;
}

.radio td.checked:focus-within {
  border-color: var(--primary-color);
}

.radio.compact td.checked:focus-within + td {
  border-top-color: var(--primary-color);
}

.radio.has-error td.checked:focus-within {
  border-color: var(--error-color);
}

.radio.has-error.compact td.checked:focus-within + td {
  border-top-color: var(--error-color);
}


.radio td.checked {
  border-color: var(--border-color-selected);
  box-shadow: 0 0 0 var(--box-shadow-size) var(--border-color-selected) inset;
}

.radio.compact td.checked + td {
  border-top-color: var(--border-color-selected);
}

.radio.has-error.compact td.checked + td {
  border-top-color: var(--error-color);
}

.radio.compact td:first-child {
  margin-top: 0;
}

.radio.compact td {
  margin-top: -1px;
}

table.radio.compact td {
  margin-bottom: 0;
}

table.check td,
.checktable td {
  padding: 2px 16px 2px 2px;
}

.check input[type='checkbox']:focus,
.checktable input[type='checkbox']:focus {
  outline: none;
  box-shadow: none;
}

.check input[type='checkbox'],
.checktable input[type='checkbox'] {
  position: absolute;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.check input[type='checkbox']:after,
.checktable input[type='checkbox']:after {
  position: relative;
  left: 0;
  top: -2px;
  content: url("data:image/svg+xml;utf8,<svg width='21px' height='21px' viewBox='0 0 100 100' version='1.1' xmlns='http://www.w3.org/2000/svg'><g stroke='%2311284E' stroke-width='5' fill='%23ffffff'><path d='M22,2 h56 a20,20 0 0 1 20,20 v56 a20,20 0 0 1 -20,20 h-56 a20,20 0 0 1 -20,-20 v-56 a20,20 0 0 1 20,-20 z'/></g></svg>");
}

.check.has-error input[type='checkbox']::after,
.checktable.has-error input[type='checkbox']:after {
  content: url("data:image/svg+xml;utf8,<svg width='21px' height='21px' viewBox='0 0 100 100' version='1.1' xmlns='http://www.w3.org/2000/svg'><g stroke='%23E60000' stroke-width='5' fill='%23ffffff'><path d='M22,2 h56 a20,20 0 0 1 20,20 v56 a20,20 0 0 1 -20,20 h-56 a20,20 0 0 1 -20,-20 v-56 a20,20 0 0 1 20,-20 z'/></g></svg>");
}

.check input[type='checkbox']:checked:after,
.checktable input[type='checkbox']:checked:after {
  content: url("data:image/svg+xml;utf8,<svg width='21px' height='21px' viewBox='0 0 100 100' version='1.1' xmlns='http://www.w3.org/2000/svg'><g stroke='%2362BB46' stroke-width='5' fill='%2362BB46'><path d='M22,2 h56 a20,20 0 0 1 20,20 v56 a20,20 0 0 1 -20,20 h-56 a20,20 0 0 1 -20,-20 v-56 a20,20 0 0 1 20,-20 z'/><path d='M 20,50 L40,70 L80,30' stroke='%23ffffff' stroke-width='10'/></g></svg>");
}

.check input[type='checkbox']:focus:after,
.checktable input[type='checkbox']:focus:after {
  content: url("data:image/svg+xml;utf8,<svg width='21px' height='21px' viewBox='0 0 100 100' version='1.1' xmlns='http://www.w3.org/2000/svg'><g stroke='%232066D6' stroke-width='15' fill='%23ffffff'><path d='M24,4 h52 a20,20 0 0 1 20,20 v52 a20,20 0 0 1 -20,20 h-52 a20,20 0 0 1 -20,-20 v-52 a20,20 0 0 1 20,-20 z'/></g></svg>");
}

.check input[type='checkbox']:checked:focus:after,
.checktable input[type='checkbox']:checked:focus:after {
  content: url("data:image/svg+xml;utf8,<svg width='20px' height='20px' viewBox='0 0 100 100' version='1.1' xmlns='http://www.w3.org/2000/svg'><g stroke='%232066D6' stroke-width='12' fill='%2362BB46'><path d='M24,4 h52 a20,20 0 0 1 20,20 v52 a20,20 0 0 1 -20,20 h-52 a20,20 0 0 1 -20,-20 v-52 a20,20 0 0 1 20,-20 z'/><path d='M 20,50 L40,70 L80,30' stroke='%23ffffff' stroke-width='8'/></g></svg>");
}

.form-group.outer {
  width: 100%;
}

.form-group.outer.tightbottom {
  margin-bottom: 0;
}

@media (min-width: 760px) {
  .indented {
    margin-left: 12px;
  }

  .indented-twice {
    margin-left: 24px;
  }
}

@media (min-width: 992px) {
  .indented {
    margin-left: 35px;
  }

  .indented-twice {
    margin-left: 70px;
  }
}

.helpicon {
  margin-left: 0.7em;
  cursor: pointer;
  position: relative;
  top: 1px;
}

.helpicon::after {
  content: var(--icon-help);
}

.topspace {
  margin-top: 10px;
}

.helptext {
  overflow: hidden;
  max-height: 0;
  transition: max-height ease-in-out 0.8s;
}

.boldfont {
  font-weight: bold;
}

.helptext.appear {
  max-height: 500px;
}

.countable {
  margin-bottom: 0;
}

span.limit {
  color: var(--warning-color);
}

textarea.limit {
  background-color: var(--warning-background-color);
}

div.dropzone {
  border-style: dashed;
  border-radius: 10px;
  border-color: var(--border-color);
  min-height: 120px;
  background-color: var(--background-color);
}

div.dropzone .dz-preview .dz-progress {
  top: 75%;
}

div.dropzone .dz-preview .dz-error-message {
  top: 150px;
}

div.dropzone .dz-message .dz-button {
  color: var(--disabled-color);
}

.dzlink:hover {
  text-decoration: underline;
}

.righttext {
  text-align: right;
}

input[type='submit'].icononly,
input[type='submit'].icononly:hover,
input[type='submit'].icononly:focus,
input[type='submit'].icononly:active,
button.icononly,
button.icononly:hover,
button.icononly:focus,
button.icononly:active {
  border: none;
  background-color: transparent;
  box-shadow: none;
  padding: 0 10px;
  margin-left: 6px;
  color: var(--error-color);
}

input[type='submit'].icononly:hover,
button.icononly:hover {
  color: var(--text-color);
}

body {
  counter-reset: filenumber;
}

#main\:uploaderrors > div > .alert {
  margin-block-end: 0.5em;
}

#main\:uploaderrors > div:last-child > .alert {
  margin-block-end: 1.5em;
}

.close.btn-default:hover {
  background-color: transparent;
}

.close.btn-default,
.close.btn-default:active {
  box-shadow: none;
}

.close.btn-default:active {
  background-color: transparent;
}

div.uploadfiles {
  margin-block-end: 0.5em;
  display: grid;
  grid-template-columns: 1fr 1fr 24fr 1fr;
  row-gap: 10px;
  border: var(--border-color) 1px solid;
  border-radius: 3px;
}

@media (max-width: 760px) {
  div.uploadfiles {
    grid-template-columns: 1fr 1fr 12fr 1fr;
  }
}

div.uploadfiles .counter::before {
  counter-increment: filenumber;
  content: counter(filenumber) ". ";
}

div.uploadfiles .counter {
  justify-self: center;
  margin: 10px 0;
}

div.uploadfiles .icononly {
  justify-self: right;
}

div.uploadfiles > * {
  justify-self: left;
  align-self: center;
}

div.uploadfiles > *:last-child {
  justify-self: right;
}

#main\:fileinfo .alert,
div.uploadfiles > .filename {
  max-width: 100%;
  white-space: break-spaces;
  overflow: hidden;
  text-overflow: ellipsis;
}

ol.files > li {
  list-style-position: inside;
  border: var(--border-color) 1px solid;
  border-radius: 3px;
  flex: 1;
  padding: 10px 55px 10px 15px;
  margin: 2px 0;
  line-height: 32px;
}

ol.files > li::marker {
  margin-left: 20px;
}

img.icon {
  height: 16px;
  padding-right: 12px;
}

/* Date Picker */

.input-group.date {
  border-radius: var(--input-border-radius);
}

.input-group.date input {
  border-right: none;
}

span.label + span.label {
  margin-left: 10px;
}

/* white box */

.white-box {
  background-color: white;
  border-radius: 5px;
  margin: 0 auto 15px auto;
  padding: 25px 0;
  width: 760px;
  box-shadow: 0 2px 6px 1px var(--shadow-color-light);
}

.white-box .btn-toolbar {
  margin-left: 35px;
}

@media (min-width: 760px) {
  .white-box .btn-toolbar > .btn:first-child {
    margin-left: 0;
  }
}

.bogus-white-box {
  margin: 0 auto 15px auto;
  width: 760px;
}

@media (max-width: 860px) {
  .white-box, .bogus-white-box {
    width: 100%;
  }
}

.white-box .success-check {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: 5px;
  text-align: center;
}

.white-box .success-check .checkmark {
  margin-right: 20px;
  content: url("data:image/svg+xml;utf8,<svg width='36px' height='36px' viewBox='0 0 42 42' version='1.1' xmlns='http://www.w3.org/2000/svg'><g stroke='%232066D6' stroke-width='2' fill='none'><circle cx='21' cy='21' r='20'/><path d='M 11,22 L 19,30 L 33,15'/></g></svg>");
}

.white-box .success-check div {
  color: var(--primary-color);
  font-size: 125%;
  text-align: center;
}

.white-box.success-check > div {
  flex: 1;
}

.white-box .btn-toolbar .btn.inverse {
  padding-top: 9px;
  padding-bottom: 12px;
}

.white-box p,
.white-box h1,
.white-box h2,
.white-box h3,
.white-box ul {
  margin-left: 35px;
  margin-right: 35px;
}

.white-box p:last-of-type {
  margin-bottom: 0;
}

.bogus-white-box .alert {
  padding-left: 35px;
  padding-right: 35px;
  margin-bottom: 15px;
}

.white-box + .white-box {
  margin-top: 20px;
}

@media (max-width: 760px) {
  .white-box p,
  .white-box h1,
  .white-box h2,
  .white-box h3,
  .white-box ul {
    margin-left: 10px;
    margin-right: 10px;
  }

  .bogus-white-box .alert {
    padding-left: 5px;
    padding-right: 5px;
  }

  .white-box .btn-toolbar {
    margin-left: 5px;
    margin-top: 10px;
  }

  .white-box .btn-toolbar .btn {
    width: calc(100% - 20px);
  }

  .white-box .success-check div {
    font-size: 4vw;
  }
}

/* Infobox letzte Seite */

.infotext h2 {
  font-weight: var(--base-font-weight);
  margin-bottom: 15px;
}

.infotext p {
  font-size: 14px;
  margin-bottom: 1.2em;
}

.infotext p:last-of-type {
  margin-bottom: 0;
}

@media (min-width: 760px) {
  .logicgroup {
    width: calc(100% + 50px);
    border-radius: var(--input-border-radius);
    box-shadow: 0 2px 6px 1px var(--shadow-color-light);
    background-color: var(--background-color-light);
    margin-left: -25px;
    margin-bottom: 25px;
    padding: 20px 25px 5px 25px;
  }

  .logicgroup .logicgroup {
    width: calc(100% + 30px);
    margin-left: -15px;
    border: 2px solid var(--primary-color-very-light);
    box-shadow: none;
  }
}

/* Spalten */

.columns {
  clear: both;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.columns.wrap {
  flex-wrap: wrap;
}

.columns.end {
  align-items: flex-end;
}

.columns > * {
  flex: 1;
}

/* InputText addon */

.input-group .input-group-addon {
  font-weight: 700;
  font-size: 100%;
  color: var(--text-color);
}

.input-group .bigaddon + .input-group-addon {
  font-size: 150%;
}

label.decent {
  font-weight: normal;
}

.bf-messages .bf-message-detail {
  display: inline-block;
  padding: 5px 10px;
}

.bf-messages .bf-message-detail::before {
  content: '• ';
}

.radio.bf-required.has-error td {
  border-color: var(--error-color);
}

.radio.bf-required.has-error td label {
  color: var(--text-color);
}

.smallbtn .btn {
  font-size: 16px;
  padding: 7px 14px;
}

.linkset {
  display: inline;
  overflow-y: auto;
  padding-right: 8px;
  font-size: 13px;
}

.linkset .link {
  float: right;
  padding: 0 8px;
  color: var(--primary-color);
  border-right: 1px solid var(--primary-color);
  cursor: pointer;
}

.linkset .link:first-child {
  border-right: none;
}

.linkset .link.first-link {
  padding-right: 16px;
}

footer .linkset .link {
  color: #393939;
  float: none;
  padding: 0;
  font-size: var(--base-font-size);
}

footer .linkset a .link:after {
  content: '   \2022   ';
  white-space: pre;
}

footer .linkset a:last-child .link:after {
  content: '';
}

footer .copyright {
  color: #A2A2A2;
  font-size: 12px;
  font-weight: normal;
  margin: 5px 0 20px 0;
}

.seal-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  margin-bottom: 40px;
  margin-left: -38px;
  margin-right: -38px;
}

.dropdown-below {
  overflow: hidden;
  margin-bottom: -2px;
}

.centerbuttons {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: center;
}

.red-box {
  display: grid;
  background: white;
  padding: 15px;
  font-weight: 400;
  font-size: 20px;
  border: 3px solid var(--error-color);
  border-radius: 8px;
}

.red-box p:last-of-type {
  margin-bottom: 0;
}

.red-box.withicon {
  grid-template-columns: 56px 1fr;
  column-gap: 20px;
  align-items: center;
}

.warnschild {
  width: 60px;
  height: 52px;
  background: white url("data:image/svg+xml;utf8,<svg viewBox='0 0 100 87' version='1.1' xmlns='http://www.w3.org/2000/svg'><path d='M5,79 L95,79 L50,5 Z' fill='none' stroke='%23E60000' stroke-width='3' stroke-linejoin='round'/><text font-size='48px' font-family='sans-serif' fill='%23E60000' x='42' y='70'>!</text></svg>") no-repeat;
}

.warnschild.gross {
  width: 175px;
  height: 152px;
}

.ibanwarnung {
  margin-top: 15px;
}

.white-box.breit {
  margin-left: 0;
  width: 100%;
  padding: 15px 0;
}

.white-box.hinweis {
  color: #768399;
}

.white-box.breit p {
  margin-left: 15px;
  margin-right: 15px;
}

.underlined {
  text-decoration: underline;
}

body {
  counter-reset: vorbemerkung;
}

.modal-dialog {
  font-weight: 600;
}

@media (min-width: 760px) {
  .modal-dialog {
    max-width: 1050px;
    width: 80vw;
  }
}

@media (max-width: 760px) {
  .modal-dialog ul {
    padding-inline-start: 20px;
  }
}

.vorbemerkung h3 {
  font-weight: 700;
}

.vorbemerkung h3.nummeriert::before {
  content: counter(vorbemerkung) ". ";
  counter-increment: vorbemerkung;
}
