:root {
  --aiv-blue: #092d68;
  --aiv-blue-2: #0b4b86;
  --aiv-light-blue: #eaf5fb;
  --aiv-orange: #f28c18;
  --aiv-ink: #12233d;
  --aiv-muted: #53657c;
  --aiv-line: #bdd0e1;
  --aiv-white: #ffffff;
  --aiv-radius: 24px;
}

.aiv-wrap,
.aiv-wrap * {
  box-sizing: border-box;
}

.aiv-wrap {
  width: min(1180px, 100%);
  margin: 30px auto;
  color: var(--aiv-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.aiv-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #d7e1eb;
  border-radius: var(--aiv-radius);
  background:
    radial-gradient(circle at 76% 5%, rgba(189, 222, 241, .72), transparent 34%),
    linear-gradient(135deg, #fffdf8 0%, #f7fbff 60%, #edf7fc 100%);
  box-shadow: 0 24px 65px rgba(9, 45, 104, .16);
}

.aiv-card::before,
.aiv-card::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  height: 11px;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}

.aiv-card::before {
  top: 0;
  background: linear-gradient(90deg, var(--aiv-blue), var(--aiv-blue-2) 73%, var(--aiv-orange) 73%);
}

.aiv-card::after {
  bottom: 178px;
  height: 8px;
  background: linear-gradient(90deg, var(--aiv-orange), var(--aiv-blue-2) 55%, var(--aiv-blue));
  transform: rotate(-1.1deg);
}

.aiv-hero {
  position: absolute;
  inset: 0 0 178px auto;
  width: 43%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.aiv-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f8fbff 0%, rgba(248, 251, 255, .87) 11%, rgba(248, 251, 255, .15) 38%, rgba(248, 251, 255, 0) 100%);
}

.aiv-content {
  position: relative;
  z-index: 3;
  width: 70%;
  padding: 54px 46px 46px;
}

.aiv-header {
  margin-bottom: 25px;
}

.aiv-title {
  margin: 0 0 20px;
  color: var(--aiv-blue);
  font-size: clamp(18px, 4.05vw, 44px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.025em;
}

.aiv-title span {
  display: block;
  font-size: 1em;
  white-space: nowrap;
}

.aiv-eventline {
  margin: 0 0 10px;
  color: var(--aiv-blue);
  font-size: clamp(21px, 2.45vw, 33px);
  font-weight: 700;
  line-height: 1.24;
}

.aiv-eventline strong {
  color: var(--aiv-blue);
  font-weight: 800;
}

.aiv-subtitle {
  margin: 0;
  color: var(--aiv-muted);
  font-size: 18px;
  font-style: italic;
}

.aiv-notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
}

.aiv-notice--success {
  border: 1px solid #9ac8aa;
  background: #edf8f1;
  color: #1d6537;
}

.aiv-notice--error {
  border: 1px solid #e0a4a4;
  background: #fff1f1;
  color: #8f2727;
}

.aiv-form {
  display: grid;
  gap: 18px;
}

.aiv-panel {
  min-width: 0;
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(41, 94, 151, .34);
  border-radius: 18px;
  background: rgba(255, 255, 255, .91);
  box-shadow: 0 8px 28px rgba(12, 54, 105, .06);
  backdrop-filter: blur(7px);
}

.aiv-panel legend {
  padding: 0 8px;
  color: var(--aiv-blue);
  font-size: 18px;
  font-weight: 800;
}

.aiv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.aiv-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aiv-field {
  margin-bottom: 15px;
}

.aiv-field:last-child {
  margin-bottom: 0;
}

.aiv-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--aiv-blue);
  font-weight: 700;
}

.aiv-field input,
.aiv-field textarea,
.aiv-field select,
.aiv-inline-number {
  width: 100%;
  border: 1px solid var(--aiv-line);
  border-radius: 10px;
  background: var(--aiv-white);
  color: var(--aiv-ink);
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.aiv-field input,
.aiv-inline-number {
  min-height: 48px;
  padding: 10px 12px;
}

.aiv-field textarea {
  min-height: 95px;
  padding: 11px 12px;
  resize: vertical;
}

.aiv-field input:focus,
.aiv-field textarea:focus,
.aiv-inline-number:focus {
  outline: none;
  border-color: var(--aiv-blue-2);
  box-shadow: 0 0 0 3px rgba(11, 75, 134, .15);
}

.aiv-field small {
  display: block;
  margin-top: 5px;
  color: var(--aiv-muted);
  font-size: 13px;
}

.aiv-options {
  display: grid;
  gap: 0;
  padding-top: 10px;
}

.aiv-choice,
.aiv-choice-main {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.aiv-choice {
  padding: 18px 0;
  border-bottom: 1px dotted #b8c8d8;
  cursor: pointer;
}

.aiv-choice:last-child {
  border-bottom: 0;
}

.aiv-choice > input,
.aiv-choice-main > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.aiv-check {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border: 2px solid var(--aiv-blue);
  border-radius: 5px;
  background: #fff;
}

.aiv-choice > input:checked + .aiv-check,
.aiv-choice-main > input:checked + .aiv-check {
  border-color: var(--aiv-orange);
  background: var(--aiv-orange);
}

.aiv-choice > input:checked + .aiv-check::after,
.aiv-choice-main > input:checked + .aiv-check::after {
  content: "✓";
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.aiv-choice > input:focus-visible + .aiv-check,
.aiv-choice-main > input:focus-visible + .aiv-check {
  outline: 3px solid rgba(11, 75, 134, .25);
  outline-offset: 3px;
}

.aiv-choice-text {
  font-size: 17px;
}

.aiv-inline-number {
  display: inline-block;
  width: 76px;
  min-height: 39px;
  margin: 0 6px;
  padding: 5px 8px;
  vertical-align: middle;
}

.aiv-choice--private {
  display: block;
}

.aiv-topics, .aiv-dates {
  display: grid;
  gap: 9px;
  margin: 13px 0 0 43px;
  padding-left: 0;
}

.aiv-topics label,
.aiv-dates label,
.aiv-privacy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.aiv-topics input,
.aiv-dates input,
.aiv-privacy input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--aiv-orange);
  flex: 0 0 auto;
}

.aiv-callback p {
  margin: 0 0 12px;
}

.aiv-privacy {
  padding: 2px 4px;
  font-size: 14px;
}

.aiv-privacy a {
  color: var(--aiv-blue-2);
  font-weight: 700;
}

.aiv-required {
  margin: -7px 0 0;
  color: var(--aiv-muted);
  font-size: 13px;
}

.aiv-submit {
  width: fit-content;
  min-height: 50px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--aiv-orange), #ffad3f);
  color: #102958;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 9px 24px rgba(242, 140, 24, .28);
  transition: transform .16s ease, box-shadow .16s ease;
}

.aiv-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(242, 140, 24, .34);
}

.aiv-submit:focus-visible {
  outline: 3px solid rgba(9, 45, 104, .35);
  outline-offset: 3px;
}

.aiv-footer {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, .9fr) 1px minmax(0, 1.2fr);
  gap: 32px;
  align-items: center;
  min-height: 178px;
  padding: 35px 48px 25px;
  background: rgba(255, 255, 255, .96);
}

.aiv-footer img {
  display: block;
  width: 100%;
  max-height: 118px;
  object-fit: contain;
}

.aiv-footer-separator {
  width: 1px;
  height: 82px;
  background: #b8c6d4;
}

.aiv-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.aiv-is-disabled {
  opacity: .48;
}

@media (max-width: 980px) {
  .aiv-hero {
    width: 47%;
    opacity: .72;
  }
  .aiv-hero::after {
    background: linear-gradient(90deg, #f8fbff 0%, rgba(248, 251, 255, .92) 22%, rgba(248, 251, 255, .45) 70%, rgba(248, 251, 255, .18) 100%);
  }
  .aiv-content {
    width: 78%;
    padding-right: 28px;
  }
}

@media (max-width: 760px) {
  .aiv-wrap {
    margin: 15px auto;
  }
  .aiv-card {
    border-radius: 16px;
  }
  .aiv-hero {
    inset: 0 0 auto 0;
    width: 100%;
    height: 470px;
    opacity: .36;
    background-position: 70% 28%;
  }
  .aiv-hero::after {
    background: linear-gradient(180deg, rgba(248, 251, 255, .12), #f8fbff 86%);
  }
  .aiv-content {
    width: 100%;
    padding: 38px 18px 36px;
  }
  .aiv-title {
    font-size: clamp(16px, 5.2vw, 32px);
  }
  .aiv-eventline {
    font-size: clamp(21px, 6.4vw, 29px);
  }
  .aiv-panel {
    padding: 19px 16px;
  }
  .aiv-grid,
  .aiv-grid--three {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .aiv-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 34px 25px 24px;
    text-align: center;
  }
  .aiv-footer-separator {
    width: 75%;
    height: 1px;
    justify-self: center;
  }
  .aiv-card::after {
    bottom: 315px;
  }
  .aiv-footer img {
    max-height: 105px;
  }
}

@media (max-width: 460px) {
  .aiv-content {
    padding-left: 13px;
    padding-right: 13px;
  }
  .aiv-title {
    letter-spacing: -.045em;
  }
  .aiv-choice,
  .aiv-choice-main {
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 10px;
  }
  .aiv-check {
    width: 25px;
    height: 25px;
  }
  .aiv-choice-text {
    font-size: 16px;
  }
  .aiv-inline-number {
    width: 66px;
  }
  .aiv-topics {
    margin-left: 37px;
  }
}

/* Rückrufzeiten gehören optisch und inhaltlich zu Auswahl 3. */
.aiv-choice--private .aiv-callback {
  margin: 18px 0 0 43px;
  padding: 16px;
  border: 1px solid rgba(17, 64, 126, 0.22);
  border-radius: 14px;
  background: rgba(239, 247, 255, 0.72);
}

.aiv-choice--private .aiv-callback h3 {
  margin: 0 0 7px;
  color: var(--aiv-blue-2);
  font-size: 18px;
  line-height: 1.25;
}

@media (max-width: 620px) {
  .aiv-choice--private .aiv-callback {
    margin-left: 0;
  }
}
