:root {
  --primary-color: #d9fbf7;
  --green: #006400;
  --blue: #191970;
  --red: #8b0000;
  --grey: #424242;
  --neutral: black;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* bodoni-moda-sc-regular - latin */

@font-face {
  font-display: swap;
  font-family: 'Bodoni Moda SC';
  font-style: normal;
  font-weight: 400;
  src: url('../../fonts/bodoni-moda-sc-v1-latin-regular.woff2') format('woff2');
}

/* bodoni-moda-sc-900 - latin */

@font-face {
  font-display: swap;
  font-family: 'Bodoni Moda SC';
  font-style: normal;
  font-weight: 900;
  src: url('../../fonts/bodoni-moda-sc-v1-latin-900.woff2') format('woff2');
}

html {
}

body {
  font-family: Montserrat, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  /* display: flex; */
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  height: auto;
  font-size: 0.925rem;
  line-height: 1.5;
  padding: 2rem 0;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.subpage h1.no {
  font-family: Montserrat, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  text-transform: none;
}

.cat {
  width: fit-content;
  padding: 0.5rem 1rem;
  color: #fff;
  font-size: 14px;
  margin-left: -1.5rem;
  letter-spacing: 1px;
  position: absolute;
  top: -105px;
  left: 50%;
  transform: translateX(-50%);
  margin: auto;
  display: block;
  /* border-bottom-right-radius: 16px;
    border-bottom-left-radius: 16px; */
}

#radiobuttons {
  padding: 2rem 0;
}

.green .cat {
  background-color: var(--green);
}

.blue .cat {
  background-color: var(--blue);
}

.grey .cat {
  background-color: var(--grey);
}

.red .cat {
  background-color: var(--red);
}

label {
  display: block;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background-color: white;
  border-radius: 8px;
  min-height: 60px;
  align-items: center;
  letter-spacing: 0.3px;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  width: fit-content;
  min-width: 80px;
  text-align: center;
  display: inline-flex;
  align-content: center;
  justify-content: center;
  border: 1px solid #000;
}

p.intro {
  display: block;
  margin-bottom: 1.5rem;
  color: #199385;
}

p.intro a {
  color: #666;
}

input {
  display: block;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  letter-spacing: 0.3px;
}

.table {
  display: flex;
  gap: 1rem;
  flex-direction: column;
  margin: 0 auto;
  text-align: center;
}

.table strong {
  font-size: 17px;
}

input:required {
  border: 2px dotted red;
}

input:user-invalid {
  border: 2px dotted red;
}

input:user-valid {
  border: 2px dotted green;
}

.width-50 {
  width: 50%;
}

.ml-auto {
  margin-left: auto;
}

.text-center {
  text-align: center;
}

.progressbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  counter-reset: step;
  margin: 2rem 0 2rem;
  z-index: 2;
}

.progressbar::before,
.progress {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  width: 100%;
  background-color: #efefef;
  z-index: -1;
}

.progress {
  background-color: var(--primary-color);
  width: 0%;
  transition: 0.3s;
}

.progress-step {
  width: 2.1875rem;
  height: 2.1875rem;
  background-color: #efefef;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.progress-step::before {
  counter-increment: step;
  content: counter(step);
}

.progress-step::after {
  content: attr(data-title);
  position: absolute;
  top: calc(100% + 0.5rem);
  font-size: 0.85rem;
  color: #199385;
}

.progress-step-active {
  background-color: var(--primary-color);
  color: #199385;
}

/* Form */

.form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 20px;
  padding: 1.5rem;
  height: auto;
  min-height: 620px;
  box-shadow: 0 0 0 1px #000, 0 0 0 15px #fff, 0 0 20px 15px #999;
}

h1 {
  text-align: center;
  font-family: 'Bodoni Moda SC';
  letter-spacing: 1px;
  padding: 0 0 1rem;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 36px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
  display: block;
}

#progress[value='0'],
#progress[value='null'] {
  display: none;
}

h2,
p.show {
  text-align: center;
  /* font-family: 'Bodoni Moda SC'; */
  padding: 0;
  font-weight: inherit;
  font-size: 20px;
  line-height: 1.2;
}

h2.in {
  margin-top: -24px;
  margin-bottom: 2rem;
}

p,
h2.small {
  text-align: center;
  font-family: Segoe UI;
  font-size: 16px;
  line-height: 1.2;
}

.form-step {
  display: none;
  position: relative;
  height: 100%;
  min-height: 520px;
  transform-origin: top;
  animation: animate 0.5s;
  transform-origin: top;
}

.form-step-active {
  display: block;
}

.input-group {
  margin: 3rem 0 2rem;
}

fieldset {
  border: none;
  padding: 1rem 0;
}

legend,
.hl {
  text-align: center;
  width: 100%;
  font-family: garamond;
  font-size: 26px;
  line-height: 1.1;
  font-variant: small-caps;
  margin-bottom: 1rem;
}

input[type='radio'] {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
}

@keyframes animate {
  0% {
    transform: scale(1, 0);
    opacity: 0;
  }
  50% {
    transform: scale(1, 1);
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.radio-group {
  display: flex;
  align-content: center;
  justify-content: center;
  width: 100%;
  gap: 1rem;
  bottom: 0;
  position: absolute;
}

.radio-group input {
  display: none;
}

/* Button */

.btns-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.btn {
  padding: 0.75rem;
  display: block;
  text-decoration: none;
  color: #666;
  text-align: center;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1rem;
  width: fit-content;
  margin: auto;
  border-radius: 8px;
  border: 1px solid #000;
  margin-top: 2rem;
}

.snd {
  margin-bottom: 2rem;
  margin-top: 0;
}

.btns-group .btn {
  margin: 0;
  border: none;
}

.btn:hover {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--primary-color);
}

label div,
.none,
#selection {
  display: none;
  width: 100%;
}

#selection.show {
  display: block;
}

input[type='radio']:checked + label {
  background-color: #efefef;
  color: #333;
}

.check_2:checked ~ label[for='Anruf'] div {
  display: block;
  margin: 1rem 0;
}

.check_4:checked ~ label[for='social'] div {
  display: flex;
  margin: 1rem 0;
  gap: 1.5rem;
  justify-content: center;
}

.check_3:checked ~ label[for='Anruf'] div,
.check_3:checked ~ label[for='E-Mail'] div {
  display: block;
  margin: 1rem 0;
}

label[for='Name'],
label.nostyle {
  height: auto;
  background-color: inherit;
  padding: 0;
  min-height: inherit;
  padding: 0;
  margin: 0;
  display: block;
}

#name {
  width: 100%;
  margin: 0.5rem 0 !important;
}

input[type='submit'] {
  border: none;
  background-color: #3bd9c7;
  color: #fff;
}

select {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 0.5rem;
}

.soc i {
  font-size: 26px;
}

.soc a {
  color: #38a397;
}

progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  background-color: #fafafa;
  border: none;
  border-radius: 20px;
}

progress[value]::-moz-progress-bar {
  background-image: -moz-linear-gradient(
      135deg,
      transparent 33%,
      rgba(0, 0, 0, 0.1) 33%,
      rgba(0, 0, 0, 0.1) 66%,
      transparent 66%
    ),
    -moz-linear-gradient(top, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.25)),
    -moz-linear-gradient(left, #666, #666);
  border-radius: 2px;
  background-size: 35px 20px, 100% 100%, 100% 100%;
}

progress::-webkit-progress-bar {
  background-color: #fafafa;
  border-radius: 12px;
  height: 12px;
  border-radius: 20px;
}

progress::-webkit-progress-value {
  background-color: #666;
  border-radius: 20px;
}

progress::-moz-progress-bar {
  background-color: #fafafa;
  border-radius: 20px;
}

#pre-progress {
  overflow: hidden;
  margin-bottom: 1rem;
  height: 24px;
}

nav {
  padding: 2rem;
}

nav ul {
  padding: 0;
}

nav ul li {
  text-align: center;
  list-style: none;
}

nav ul li a {
  padding: 0.2rem 0;
  display: block;
  color: #000;
  text-decoration: none;
}

.subpage h1 {
  padding-top: 0;
  margin-top: 0;
}

.subpage p {
  text-align: left;
  line-height: 1.5;
}

#radiobuttons.subpage {
  padding: 0 !important;
}

h1 sup {
  font-size: 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
}

img {
  width: 100%;
  max-width: 420px;
  display: block;
  margin: -1rem auto 2rem;
}

.start_btn {
  background-color: var(--green);
  color: white;
}

ol[start] {
  padding: 2rem 1rem 1rem;
}

@media (min-width: 700px) {
  .form {
    min-height: auto;
  }
  .form-step {
    min-height: 680px;
  }
  .radio-group {
    bottom: 300px;
  }
}

#popup.none {
  display: none;
}

#popup {
  --primary-color: #d9fbf7;
  position: fixed;
  width: 100%;
  height: 100%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: animate 250ms ease-in-out 1000ms forwards;
}

@keyframes animate {
  0% {
    opacity: 0;
    visibility: hidden;
  }
  40% {
    opacity: 0;
    visibility: hidden;
  }
  100% {
    opacity: 1;
    visibility: visible;
  }
}

#popup .wrapper {
  position: absolute;
  max-width: 400px;
  background: #fff;
  width: 100%;
  padding: 1rem;
  border-radius: 16px;
  display: inline-flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 0 20px #bbb;
}

#popup .logo {
  margin: -18px auto;
  display: block;
  width: 140px;
}

#popup #close {
  align-self: end;
  padding: 0.5rem;
  cursor: pointer;
}

#popup .hl {
  text-align: center;
  width: 100%;
  font-size: 26px;
  line-height: 1.1;
  margin: 2rem auto 0;
  font-variant: small-caps;
}

#popup p.intro {
  display: block;
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.5rem;
  padding: 0 1rem;
  text-align: center;
  color: inherit;
}

#popup .popbutton {
  margin-bottom: 1rem;
  padding: 0 1rem;
  background-color: var(--green);
  border-radius: 8px;
  min-height: 44px;
  display: inline-flex;
  width: 100%;
  align-items: center;
  letter-spacing: 0.3px;
  color: white;
  cursor: pointer;
  text-align: center;
  justify-content: center;
  text-decoration: none;
}

#popup .btnss {
  display: flex;
  gap: 1rem;
}
