:root {
  --color-navy: #1e3a5f;
  --color-blue: #2e75b6;
  --color-box-mid: #d6e4f0;
  --color-box-light: #f0f6fc;
  --color-hint: #5a5a6e;
  --color-text: #1a1a2e;
  --color-required: #ee0000;
  --color-white: #ffffff;
  --color-border: #c5d4e4;
  --color-error-bg: #fdeaea;
  --font: Calibri, "Source Sans 3", system-ui, sans-serif;
  --max-width: 760px;
  --radius: 4px;
  --space: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--color-text);
  background:
    linear-gradient(180deg, #e8f0f8 0%, #f5f8fb 40%, #eef3f8 100%);
  min-height: 100vh;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.partner-top {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0.4rem auto;
  padding: 0;
  background: transparent;
  border: 0;
  line-height: 0;
}

.partner-top a {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  background: var(--color-white);
  padding: 0.4rem 0.65rem;
  border-radius: 0;
}

.partner-top img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}

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

/* Hero / title box */
.hero {
  position: relative;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 1.75rem 1.5rem 1.85rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.hero-action,
.hero-flyer {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  background: var(--color-box-mid);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.95rem;
  font-style: italic;
  text-decoration: none;
  line-height: 1;
  transition: background 0.15s ease, transform 0.1s ease;
}

.hero-action:hover,
.hero-flyer:hover {
  background: var(--color-white);
}

.hero-action:focus-visible,
.hero-flyer:focus-visible {
  outline: 3px solid rgba(214, 228, 240, 0.85);
  outline-offset: 2px;
}

.hero-brand {
  margin: 0 0 0.35rem;
  padding-right: 5.5rem;
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.hero-tagline {
  margin: 0 0 0.85rem;
  padding-right: 5.5rem;
  font-size: clamp(1rem, 2.5vw, 1.12rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  opacity: 0.9;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  font-weight: 600;
  line-height: 1.3;
}

.hero-intro {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.12rem);
  line-height: 1.52;
  opacity: 0.95;
  max-width: 100%;
}

.hero-offline-hint {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.9;
  max-width: none;
  white-space: nowrap;
}

.hero-offline-hint a {
  color: var(--color-box-mid);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.hero-offline-hint a:hover {
  color: var(--color-white);
}

/* Status */
.form-status {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.form-status-error {
  background: var(--color-error-bg);
  color: #8b1010;
  border: 1px solid #e8a0a0;
}

/* Sections */
.section {
  margin-bottom: 2.25rem;
}

.section-eyebrow {
  margin: 0 0 1.15rem;
  font-size: clamp(1.1rem, 2.8vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-blue);
  line-height: 1.25;
}

.section-note {
  margin: -0.5rem 0 1.1rem;
  font-size: 0.92rem;
  color: var(--color-hint);
  font-style: italic;
}

.billing-label {
  margin: 0.35rem 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: 0.01em;
}

/* Fields */
.field {
  margin-bottom: 1.35rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.field-span-2 {
  grid-column: 1 / -1;
}

label,
legend {
  display: block;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

legend {
  padding: 0;
  float: left;
  width: 100%;
}

legend + .hint,
legend + .choice-list {
  clear: both;
}

.hint {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--color-hint);
  line-height: 1.45;
}

.required {
  color: var(--color-required);
  font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  min-height: 44px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  min-height: 6.5rem;
  resize: vertical;
}

input:focus,
textarea:focus,
.choice:focus-within,
.scale-option:focus-within {
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(46, 117, 182, 0.22);
}

input.field-invalid,
textarea.field-invalid {
  border-color: var(--color-required);
  box-shadow: 0 0 0 3px rgba(238, 0, 0, 0.12);
}

/* Choices */
.choice-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.choice-list-inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  color: var(--color-text);
  cursor: pointer;
  min-height: 36px;
  padding: 0.1rem 0;
}

.choice input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--color-blue);
}

.choice span {
  line-height: 1.4;
}

.choice-with-input {
  flex-wrap: nowrap;
  align-items: flex-start;
}

.choice-input-row {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex-wrap: wrap;
}

.choice-input-label {
  flex-shrink: 0;
  line-height: 1.4;
}

.choice-with-input .choice-input {
  flex: 1 1 14rem;
  min-width: 10rem;
  max-width: 100%;
  margin-top: 0;
  min-height: 34px;
  padding: 0.25rem 0.35rem 0.15rem;
  border: 0;
  border-bottom: 2px solid var(--color-navy);
  border-radius: 0;
  background: var(--color-white);
  font-size: 16px;
  color: var(--color-text);
}

.choice-with-input .choice-input::placeholder {
  color: transparent;
}

.choice-with-input .choice-input:focus {
  outline: none;
  border-bottom-color: var(--color-blue);
  box-shadow: none;
}

.choice-with-input .choice-input:disabled {
  opacity: 1;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.65);
  border-bottom-color: var(--color-border);
  color: var(--color-hint);
}

.choice-with-input .choice-input:not(:disabled) {
  background: var(--color-white);
  border-bottom-color: var(--color-navy);
  cursor: text;
}

.choice-input.field-invalid {
  border-bottom-color: var(--color-required);
}

.choice-list-stacked-mobile {
  flex-direction: row;
  flex-wrap: wrap;
}

/* Scale 1–10 */
.scale {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.scale-option {
  position: relative;
  margin: 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-navy);
}

.scale-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.scale-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.scale-option:hover span {
  border-color: var(--color-blue);
}

.scale-option input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(46, 117, 182, 0.28);
}

.scale-option input:checked + span {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white);
}

/* Terminfindung */
.termin-section {
  background: var(--color-box-light);
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 2.25rem;
}

.termin-intro {
  margin-top: 0;
}

.termin-table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.termin-table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: var(--color-white);
  border: 1px solid var(--color-navy);
  table-layout: fixed;
}

.termin-table th,
.termin-table td {
  padding: 0.28rem 0.5rem;
  border: 1px solid var(--color-navy);
  vertical-align: middle;
  line-height: 1.2;
}

.termin-table thead th {
  padding: 0.35rem 0.5rem;
  text-align: center;
}

.termin-table tbody td {
  background: var(--color-white);
}

.termin-table th {
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-navy);
  text-align: center;
}

.termin-table th:first-child {
  width: 14%;
}

.termin-table th:nth-child(2) {
  width: 44%;
}

.termin-table th:nth-child(3) {
  width: 42%;
}

.termin-session {
  text-align: center;
  vertical-align: middle;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-navy);
}

.termin-kw {
  text-align: left;
  white-space: nowrap;
}

.termin-dates {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
}

.termin-kw-label {
  margin-left: 1.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-hint);
}

.termin-timeline-cell {
  text-align: center;
  vertical-align: middle;
  background: var(--color-white);
  padding: 0.35rem 0.4rem;
}

.termin-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 0;
  min-height: 100%;
  height: 100%;
  padding: 0.25rem 0.15rem;
}

.termin-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  line-height: 1.2;
}

.termin-timeline-label {
  font-size: 0.92rem;
  color: var(--color-text);
}

.termin-timeline-time {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
}

.termin-timeline-arrow {
  display: block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid var(--color-blue);
  opacity: 0.8;
  margin: 0.08rem 0;
}

.termin-pdf-link {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.termin-pdf-link a {
  color: var(--color-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.termin-pdf-link a:hover {
  color: var(--color-navy);
}

.termin-deadline {
  margin-bottom: 0;
}

/* Privacy box */
.privacy-box {
  background: var(--color-box-mid);
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.75rem;
}

.privacy-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  text-transform: none;
  letter-spacing: 0;
}

.privacy-text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
}

.privacy-text a {
  color: var(--color-navy);
  font-weight: 700;
}

.privacy-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: var(--color-box-light);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin: 0;
}

.privacy-check-label {
  flex: 0 1 auto;
  margin: 0;
  min-height: auto;
  padding: 0;
  white-space: nowrap;
}

.privacy-check-label span {
  font-weight: 700;
  color: var(--color-navy);
}

.privacy-check .draft-hint {
  flex: 0 1 52%;
  margin: 0 0 0 auto;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--color-hint);
  text-align: right;
}

/* Submit */
.submit-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.draft-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-hint);
}

.closing-hint {
  margin: 0;
  font-size: 0.96rem;
  color: var(--color-navy);
}

.closing-hint-date {
  color: var(--color-required);
  font-weight: 700;
}

.btn-submit {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-navy);
  border: 0;
  border-radius: var(--radius);
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-submit:hover:not(:disabled) {
  background: #16304f;
}

.btn-submit:focus-visible {
  outline: 3px solid rgba(46, 117, 182, 0.45);
  outline-offset: 2px;
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Success / Geschafft */
.success-box {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 1.85rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.success-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
}

.success-text {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  line-height: 1.55;
  opacity: 0.95;
}

.success-save-the-date {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: #ff1d1d;
  text-align: center;
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-hint);
}

.footer-person {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: min(100%, 14rem);
  flex: 1;
}

.footer-person strong {
  color: var(--color-navy);
  font-size: 0.95rem;
}

.footer-person a {
  color: var(--color-blue);
  text-decoration: none;
}

.footer-person a:hover {
  text-decoration: underline;
}

.footer-partner {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0.25rem 0 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  line-height: 0;
}

.footer-partner a {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  background: var(--color-white);
  padding: 0.4rem 0.65rem;
  border-radius: 0;
}

.footer-partner img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}

.footer-legal {
  display: flex;
  gap: 1rem;
  width: 100%;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.footer-legal a {
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 600;
}

.footer-legal a:hover {
  text-decoration: underline;
}

.legal-content {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  margin-top: 0;
  color: var(--color-navy);
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 600px) {
  .page {
    padding: 0.85rem 0.75rem 2.5rem;
  }

  .hero {
    padding: 1.35rem 1.1rem 1.45rem;
    margin-bottom: 1.5rem;
  }

  .partner-top {
    margin: 0 0 0.35rem auto;
    padding: 0;
  }

  .partner-top a {
    padding: 0.35rem 0.55rem;
  }

  .partner-top img {
    width: 170px;
  }

  .hero-action,
  .hero-flyer {
    top: 0.75rem;
    right: 0.75rem;
    min-height: 36px;
    padding: 0.35rem 0.9rem;
    font-size: 0.88rem;
  }

  .hero-brand {
    padding-right: 4.75rem;
  }

  .hero-tagline {
    padding-right: 4.75rem;
    font-size: 0.95rem;
  }

  .hero-offline-hint {
    font-size: 0.82rem;
    white-space: normal;
  }

  .footer-partner {
    margin: 0.25rem 0 0 auto;
    padding: 0;
  }

  .footer-partner a {
    padding: 0.35rem 0.55rem;
  }

  .footer-partner img {
    width: 170px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: 1;
  }

  .termin-table {
    font-size: 0.78rem;
    min-width: 26rem;
  }

  .termin-table th,
  .termin-table td {
    padding: 0.22rem 0.4rem;
  }

  .termin-session,
  .termin-dates,
  .termin-kw-label {
    font-size: 1.05rem;
  }

  .termin-kw {
    white-space: normal;
  }

  .termin-kw-label {
    margin-left: 0.75rem;
  }

  .termin-timeline-label {
    font-size: 0.86rem;
  }

  .termin-timeline-time {
    font-size: 0.95rem;
  }

  .scale {
    gap: 0.35rem;
  }

  .scale-option span {
    min-width: 40px;
    min-height: 42px;
    font-size: 0.95rem;
  }

  .privacy-box {
    padding: 1.15rem 1rem;
  }

  .privacy-check {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .privacy-check-label {
    white-space: normal;
  }

  .privacy-check .draft-hint {
    flex: 1 1 100%;
    max-width: 100%;
    margin-left: 0;
    padding-left: 1.65rem;
    text-align: left;
  }

  .footer {
    flex-direction: column;
    gap: 1.25rem;
  }

  .choice-list-stacked-mobile {
    flex-direction: column;
    gap: 0.15rem;
  }

  .choice-with-input {
    flex-wrap: wrap;
  }

  .choice-input-row {
    flex: 1 1 100%;
    padding-left: 1.65rem;
  }

  .choice-with-input .choice-input {
    min-width: 100%;
  }
}
