:root {
  --h2-green: #e96b3d;
  --h2-green-dark: #cc5c32;
  --h2-green-soft: #fff7f3;
  --tuete-blue: #24317b;
  --slate: #25304f;
  --slate-soft: #70778f;
  --sand: #e96b3d;
  --paper: #ffffff;
  --canvas: #24317b;
  --line: #d9dce9;
  --line-strong: #aeb5d5;
  --error: #c84636;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(10, 16, 50, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--slate);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.choice-card:has(input:focus-visible),
.upload-box:has(input:focus-visible) {
  outline: 3px solid rgba(233, 107, 61, 0.42);
  outline-offset: 3px;
}

.page-shell {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0;
}

.brand-header {
  position: relative;
  width: min(1180px, 100%);
  min-height: 246px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(90deg, rgba(36, 49, 123, 0.86) 0%, rgba(36, 49, 123, 0.7) 42%, rgba(36, 49, 123, 0.2) 100%),
    url("./img/tuete-papiertaschen-header.jpg");
  background-size: cover;
  background-position: center 56%;
  background-repeat: no-repeat;
  border: 1px solid var(--tuete-blue);
  border-bottom: none;
  box-shadow: inset 0 3px 0 var(--tuete-blue);
  overflow: hidden;
}

.brand-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: var(--h2-green);
}

.brand-header-content {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 20px 32px;
  color: #fff;
}

.language-switch {
  position: absolute;
  top: 16px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.language-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.language-option:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.48);
}

.language-option.is-active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.56);
}

.flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.flag-de {
  background: linear-gradient(180deg, #111 0 33.333%, #d31f26 33.333% 66.666%, #f2c230 66.666% 100%);
}

.flag-en {
  background:
    linear-gradient(90deg, transparent 0 42%, #fff 42% 58%, transparent 58% 100%),
    linear-gradient(180deg, transparent 0 38%, #fff 38% 62%, transparent 62% 100%),
    linear-gradient(90deg, transparent 0 45%, #c8102e 45% 55%, transparent 55% 100%),
    linear-gradient(180deg, transparent 0 42%, #c8102e 42% 58%, transparent 58% 100%),
    #012169;
}

.banner-logo {
  position: absolute;
  top: 16px;
  right: 20px;
  width: clamp(92px, 12vw, 132px);
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
  z-index: 1;
}

.brand-header-content h1 {
  margin: 0;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.03;
  letter-spacing: 0;
  max-width: min(700px, calc(100% - 190px));
  position: relative;
  z-index: 1;
}

.form-wrap {
  width: min(1180px, 100%);
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(300px, 390px) 1fr;
  background: var(--paper);
  border: 1px solid rgba(38, 54, 70, 0.08);
  box-shadow: var(--shadow);
}

.legal-footer {
  width: min(1180px, 100%);
  padding: 16px 20px 28px;
  border: 1px solid rgba(38, 54, 70, 0.08);
  border-top: none;
  background: #f5f7fb;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.legal-links a {
  color: var(--slate-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.legal-links a:hover {
  text-decoration: underline;
  color: var(--slate);
}

.trust-panel {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 42px 36px;
  background: #e2eaf5;
  color: var(--slate);
}

.trust-copy h1,
.step-title h2 {
  margin: 0;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.trust-copy h1 {
  max-width: 12ch;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.02;
}

.trust-copy p {
  margin: 18px 0 0;
  color: rgba(37, 48, 79, 0.72);
  font-size: 16px;
  line-height: 1.65;
}

.trust-list {
  display: grid;
  gap: 14px;
}

.trust-list div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.trust-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  background: var(--h2-green);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
}

.contact-card {
  margin-top: 14px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(38, 54, 70, 0.08);
  background: linear-gradient(180deg, #fff 0%, #fcfdfb 100%);
  display: grid;
  gap: 12px;
}

.contact-card h3 {
  margin: 0 0 4px;
  color: var(--slate);
  font-size: 21px;
  font-weight: 800;
}

.contact-card a {
  color: var(--slate);
  text-decoration: none;
  font-weight: 700;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  color: var(--slate);
  line-height: 1.25;
}

a.contact-link,
a.contact-link:link,
a.contact-link:visited {
  display: flex !important;
  align-items: center !important;
  color: var(--slate) !important;
  text-decoration: none !important;
}

a.contact-link:hover {
  color: var(--slate) !important;
  text-decoration: underline !important;
}

.contact-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border: 1px solid #ffd5c4;
  border-radius: 50%;
  background: var(--h2-green-soft);
  color: var(--h2-green-dark);
  font-size: 15px;
  font-weight: 800;
}

.desktop-contact-trigger {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 2px;
  min-height: 50px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  background: #fff;
  border-color: #ffd5c4;
  color: var(--slate);
}

.desktop-contact-trigger:hover {
  border-color: var(--h2-green);
  background: var(--h2-green-soft);
}

.mobile-contact-trigger {
  display: none;
  width: 100%;
  margin-top: 6px;
  border: none;
  background: transparent;
  color: var(--slate);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
}

.mobile-scroll-hint {
  display: none;
}

.contact-modal {
  display: none;
}

.contact-modal.is-visible {
  display: block;
}

.contact-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 32, 0.55);
  z-index: 30;
}

.contact-modal-card {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 32px));
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(16, 24, 32, 0.24);
  padding: 22px;
  z-index: 31;
  display: grid;
  gap: 12px;
}

.contact-modal-card h3 {
  margin: 0 0 4px;
  color: var(--slate);
  font-size: 24px;
}

.contact-modal-card a {
  color: var(--slate);
  text-decoration: none;
  font-weight: 700;
}

.contact-modal-card a:hover {
  text-decoration: underline;
}

.submit-progress {
  display: none;
}

.submit-progress.is-visible {
  display: block;
}

.submit-progress-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 32, 0.48);
  z-index: 40;
}

.submit-progress-card {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, calc(100% - 32px));
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(16, 24, 32, 0.24);
  padding: 20px;
  z-index: 41;
  display: grid;
  gap: 10px;
}

.submit-progress-card h3 {
  margin: 0;
  color: var(--slate);
  font-size: 22px;
}

.submit-progress-card p {
  margin: 0;
  color: var(--slate-soft);
  font-size: 15px;
}

.submit-progress-track {
  height: 10px;
  background: #eceefa;
  border-radius: 999px;
  overflow: hidden;
}

.submit-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--h2-green);
  transition: width 180ms ease;
}

.submit-progress-value {
  color: var(--slate);
  font-weight: 800;
  font-size: 14px;
  justify-self: end;
}

.request-form {
  display: flex;
  flex-direction: column;
  padding: 42px;
  min-width: 0;
}

.request-form.is-hidden {
  display: none;
}

.progress-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  color: var(--slate-soft);
  font-size: 14px;
  font-weight: 700;
}

.progress-track {
  height: 8px;
  background: #eceefa;
  overflow: hidden;
}

.progress-bar {
  width: 20%;
  height: 100%;
  background: var(--h2-green);
  transition: width 180ms ease;
}

.step {
  display: none;
  flex: 1;
  padding: 54px 0 24px;
}

.step.is-active {
  display: block;
}

.step-title {
  max-width: 760px;
  margin-bottom: 28px;
}

.step-title p {
  margin: 0 0 10px;
  color: var(--h2-green-dark);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.step-title h2 {
  color: var(--slate);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.step-title span {
  display: block;
  margin-top: 14px;
  color: var(--slate-soft);
  font-size: 18px;
  line-height: 1.5;
}

.inline-title {
  margin-top: 34px;
  margin-bottom: 18px;
}

.inline-title h3 {
  margin: 0;
  color: var(--slate);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: 0;
}

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

.choice-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--slate);
  font-size: 20px;
  font-weight: 750;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.choice-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.choice-card:has(input:checked) {
  border-color: var(--h2-green);
  background: var(--h2-green-soft);
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card.compact {
  min-height: 88px;
  font-size: 22px;
}

.choice-card.wide {
  grid-column: 1 / -1;
}

.product-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border: 1px solid #ffd5c4;
  background: #fff8f5;
  color: var(--h2-green-dark);
  font-weight: 850;
}

.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.plus-icon {
  font-size: 30px;
  line-height: 1;
  color: var(--h2-green-dark);
  font-weight: 700;
}

.upload-box {
  margin-top: 18px;
  min-height: 112px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 20px;
  border: 2px dashed var(--line-strong);
  background: #fffaf7;
  text-align: center;
}

.upload-box input {
  display: none;
}

.upload-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--h2-green-soft);
  color: var(--h2-green-dark);
  font-size: 22px;
  font-weight: 800;
}

.upload-box small {
  color: var(--slate-soft);
  line-height: 1.35;
}

.upload-file-name {
  margin-top: 2px;
  color: var(--slate);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.upload-file-list {
  width: 100%;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.upload-file-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 7px 9px;
}

.upload-file-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--slate);
}

.upload-remove {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--slate-soft);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  line-height: 1.2;
}

.upload-remove:hover {
  color: var(--slate);
  border-color: var(--line-strong);
}

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

.field-block {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.hidden-field {
  display: none;
}

.hidden-field.is-visible {
  display: grid;
}

.step:has(input[name="taschenart"][value="Sonstiges"]:checked) #sonstigesField {
  display: grid;
}

.field-grid .field-block {
  margin-top: 0;
}

.field-block span {
  color: var(--slate);
  font-size: 14px;
  font-weight: 800;
}

.field-block input,
.field-block textarea {
  width: 100%;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--slate);
  padding: 16px;
  outline: none;
  border-radius: 0;
  resize: vertical;
}

.field-block input {
  min-height: 58px;
}

.field-block input:focus,
.field-block textarea:focus {
  border-color: var(--h2-green);
}

.privacy-line {
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--slate-soft);
  font-size: 14px;
  line-height: 1.45;
}

.privacy-line input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--h2-green);
}

.conditional-questions {
  display: none;
}

.conditional-questions.is-visible {
  display: block;
}

.option-group-heading {
  margin: 26px 0 10px;
  color: var(--slate);
  font-size: 16px;
  font-weight: 850;
}

.material-grid {
  margin-top: 0;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.success-state {
  display: none;
  padding: 42px;
  align-items: center;
  justify-content: center;
}

.success-state.is-visible {
  display: flex;
}

.success-card {
  width: min(560px, 100%);
  border: 2px solid var(--line);
  background: #fff;
  padding: 32px 28px;
  text-align: center;
}

.success-card h2 {
  margin: 0;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.success-card p {
  margin: 14px 0 26px;
  color: var(--slate-soft);
  font-size: 18px;
  line-height: 1.5;
}

.button {
  min-height: 56px;
  border: 2px solid transparent;
  padding: 0 28px;
  font-weight: 850;
  border-radius: 0;
}

.button.primary {
  min-width: 180px;
  background: var(--h2-green);
  color: #fff;
}

.button.primary:hover {
  background: var(--h2-green-dark);
}

.button.ghost {
  background: transparent;
  color: var(--slate);
  border-color: var(--line);
}

.button.ghost:disabled {
  opacity: 0.35;
}

@media (max-width: 900px) {
  .page-shell {
    padding: 0;
    align-content: stretch;
    justify-items: stretch;
  }

  .brand-header {
    width: 100%;
    min-height: 212px;
    background-position: center 42%;
    border-left: none;
    border-right: none;
  }

  .brand-header-content {
    padding: 20px;
  }

  .language-switch {
    top: 16px;
    left: 14px;
  }

  .banner-logo {
    top: 12px;
    right: 14px;
    width: min(132px, 32vw);
  }

  .brand-header-content h1 {
    font-size: 36px;
    padding-top: 54px;
  }

  .form-wrap {
    min-height: 100vh;
    grid-template-columns: 1fr;
    box-shadow: none;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  .legal-footer {
    width: 100%;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 14px 20px 20px;
  }

  .trust-panel {
    padding: 20px;
    gap: 18px;
  }

  .desktop-contact-trigger {
    display: none;
  }

  .request-form {
    padding: 24px 20px 20px;
  }

  .success-state {
    padding: 24px 20px 20px;
  }

  .success-card {
    padding: 24px 18px;
  }

  .success-card p {
    font-size: 16px;
    margin: 12px 0 20px;
  }

  .progress-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .step {
    padding-top: 34px;
    padding-bottom: 96px;
  }

  .step-title h2 {
    font-size: 32px;
  }

  .step-title span {
    font-size: 16px;
  }

  .choice-grid,
  .choice-grid.two-col,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .choice-card,
  .choice-card.compact {
    min-height: 70px;
    font-size: 18px;
  }

  .form-actions {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin: 0 -20px -20px;
    padding: 10px 20px 12px;
    background: rgba(255, 255, 255, 0.96);
  }

  .button {
    padding: 0 16px;
  }

  .mobile-contact-trigger {
    display: block;
    grid-column: 1 / -1;
  }

  .mobile-scroll-hint {
    position: fixed;
    left: 50%;
    bottom: 96px;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid #ffd5c4;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.97);
    color: var(--h2-green-dark);
    box-shadow: 0 8px 20px rgba(38, 54, 70, 0.18);
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 800;
    z-index: 26;
    cursor: pointer;
    animation: mobileHintBounce 1s ease-in-out infinite;
  }

  .mobile-scroll-hint.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

}

@keyframes mobileHintBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(5px);
  }
}

@media (max-width: 420px) {
  .brand-header-content h1,
  .step-title h2 {
    font-size: 28px;
  }

  .button.primary {
    min-width: 0;
  }
}
