:root {
  --dmapp-blue: #48a9e2;
  --dmapp-blue-dark: #237fb6;
  --dmapp-progress: #1fb6f1;
  --dmapp-ink: #263746;
  --dmapp-muted: #667785;
  --dmapp-line: #d9e3ea;
  --dmapp-surface: rgba(255, 255, 255, 0.96);
  --dmapp-danger: #a12b2b;
}

.dmapp-frame {
  position: relative;
  min-height: 100vh;
}

.logo_container,
.impressum_container {
  position: absolute;
  z-index: 20;
  display: block;
  color: #797979;
  text-decoration: none;
}

.logo_container {
  top: 90px;
  right: -10px;
  width: 80px;
  height: auto;
  transform: rotate(90deg);
  transform-origin: center;
}

.logo_container .logo {
  display: block;
  width: 100%;
  height: auto;
}

.impressum_container {
  top: 25px;
  right: 25px;
  width: 26px;
  height: 26px;
}

.impressum_container svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.logo_container:focus-visible,
.impressum_container:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(72, 169, 226, 0.45);
  outline-offset: 3px;
}

.dmapp,
.dmapp * {
  box-sizing: border-box;
}

.dmapp {
  min-height: 100vh;
  color: var(--dmapp-ink);
  font-family: Raleway, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  background:
    linear-gradient(rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.93)),
    url("images/background.jpeg") center / cover fixed;
}

.dmapp-shell {
  width: min(100%, 1040px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dmapp-panel {
  width: 100%;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(217, 227, 234, 0.9);
  border-radius: 20px;
  background: var(--dmapp-surface);
  box-shadow: 0 22px 60px rgba(38, 55, 70, 0.12);
}

.dmapp-intro .dmapp-panel,
.dmapp-result {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.dmapp h1 {
  max-width: 880px;
  margin: 10px auto 18px;
  color: var(--dmapp-ink);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.dmapp-question h1 {
  margin-left: 0;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.dmapp h1 small {
  color: var(--dmapp-muted);
  font-size: 0.45em;
  font-weight: 400;
  white-space: nowrap;
}

.dmapp p {
  margin: 0 0 1em;
}

.dmapp a {
  color: var(--dmapp-blue-dark);
}

.dmapp-copy {
  max-width: 720px;
  margin: 0 auto 30px;
  color: #435563;
  text-align: left;
}

.dmapp-intro .dmapp-copy {
  text-align: center;
}

.dmapp-kicker,
.dmapp-step {
  color: var(--dmapp-blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dmapp-description {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--dmapp-muted);
}

.dmapp-description p:only-child {
  margin-bottom: 0;
}

.dmapp-form {
  margin-top: 26px;
}

.dmapp-progress {
  width: calc(100% - 24px);
  height: 6px;
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef3;
}

.dmapp-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--dmapp-progress);
  transition: width 240ms ease;
}

.dmapp-button {
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.dmapp-button:hover {
  transform: translateY(-1px);
}

.dmapp-button:focus-visible,
.dmapp input:focus-visible,
.dmapp select:focus-visible {
  outline: 3px solid rgba(72, 169, 226, 0.35);
  outline-offset: 2px;
}

.dmapp-button-primary {
  color: #fff !important;
  background: var(--dmapp-blue);
  box-shadow: 0 7px 18px rgba(72, 169, 226, 0.24);
}

.dmapp-button-primary:hover {
  background: var(--dmapp-blue-dark);
}

.dmapp-button-secondary {
  color: var(--dmapp-ink);
  border-color: var(--dmapp-line);
  background: #fff;
}

.dmapp-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dmapp-result-actions {
  justify-content: center;
  flex-wrap: wrap;
}

.dmapp-select {
  width: min(100%, 560px);
  min-height: 54px;
  padding: 10px 44px 10px 14px;
  border: 1px solid #b9c8d2;
  border-radius: 8px;
  color: var(--dmapp-ink);
  background: #fff;
  font: inherit;
}

.dmapp-choice-list,
.dmapp-picture-grid {
  display: grid;
  gap: 12px;
}

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

.dmapp-choice {
  position: relative;
  min-height: 58px;
  padding: 15px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--dmapp-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.dmapp-choice:hover,
.dmapp-choice.is-selected {
  border-color: var(--dmapp-blue);
  background: #f5fbff;
  box-shadow: 0 4px 16px rgba(72, 169, 226, 0.12);
}

.dmapp-choice input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 3px;
  accent-color: var(--dmapp-blue-dark);
}

.dmapp-choice-text {
  display: block;
}

.dmapp-choice-text strong {
  display: block;
  font-weight: 600;
}

.dmapp-choice-text small {
  display: block;
  margin-top: 5px;
  color: var(--dmapp-muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.dmapp-choice-text small p {
  margin: 0;
}

.dmapp-picture-choice {
  min-height: 150px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.dmapp-picture-choice input {
  position: absolute;
  top: 12px;
  right: 12px;
}

.dmapp-picture-choice img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.dmapp-consent {
  max-width: 760px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--dmapp-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.dmapp-consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--dmapp-blue-dark);
}

.dmapp-matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--dmapp-line);
  border-radius: 10px;
  background: #fff;
}

.dmapp-matrix {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.dmapp-matrix th,
.dmapp-matrix td {
  padding: 12px 10px;
  border-bottom: 1px solid #e8eef2;
  text-align: center;
}

.dmapp-matrix tr:last-child th,
.dmapp-matrix tr:last-child td {
  border-bottom: 0;
}

.dmapp-matrix th:first-child {
  width: 48%;
  padding-left: 16px;
  text-align: left;
  font-weight: 500;
}

.dmapp-matrix thead th {
  color: var(--dmapp-muted);
  background: #f6f9fb;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.dmapp-matrix td label {
  min-width: 42px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dmapp-matrix td input {
  position: absolute;
  opacity: 0;
}

.dmapp-matrix td span[aria-hidden] {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9c8d2;
  border-radius: 50%;
  font-size: 0.85rem;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.dmapp-matrix td input:checked + span {
  color: #fff;
  border-color: var(--dmapp-blue-dark);
  background: var(--dmapp-blue-dark);
}

.dmapp-matrix td input:focus-visible + span {
  outline: 3px solid rgba(72, 169, 226, 0.35);
  outline-offset: 2px;
}

.dmapp-error {
  margin-top: 18px;
  color: var(--dmapp-danger);
  font-weight: 600;
}

.dmapp-result-image {
  width: 110px;
  height: 110px;
  margin: 0 auto 22px;
  object-fit: contain;
}

.dmapp-save-status {
  color: var(--dmapp-muted);
  font-size: 0.9rem;
}

.dmapp-loading,
.dmapp-fatal {
  width: min(90%, 620px);
  margin: 20vh auto;
  padding: 30px;
  text-align: center;
}

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

.dmapp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .logo_container {
    top: 80px;
    right: -20px;
  }

  .impressum_container {
    top: 15px;
    right: 15px;
  }

  .dmapp-shell {
    padding: 16px 10px;
  }

  .dmapp-panel {
    padding: 26px 18px;
    border-radius: 14px;
  }

  .dmapp-picture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dmapp-picture-choice {
    min-height: 130px;
  }

  .dmapp-actions .dmapp-button {
    min-width: 112px;
  }
}

@media (min-width: 721px) and (max-width: 799px) {
  .logo_container {
    top: 80px;
    right: -20px;
  }

  .impressum_container {
    top: 15px;
    right: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dmapp *,
  .dmapp *::before,
  .dmapp *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
