:root {
  --bg: #ffffff;
  --bg-soft: #fbfaf8;
  --text: #2f3a3d;
  --text-muted: #6b7779;
  --line: #ebe8e3;
  --accent: #e8836b;
  --accent-dark: #d46e56;
  --accent-soft: #fdeee9;
  --green: #6fae8f;
  --green-soft: #eaf5ef;
  --radius: 20px;
  --shadow: 0 10px 40px rgba(47, 58, 61, 0.06), 0 2px 8px rgba(47, 58, 61, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.2px;
}

.brand-slogan {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Hero */
.hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(circle at 85% 20%, var(--accent-soft) 0, transparent 40%),
    radial-gradient(circle at 10% 90%, var(--green-soft) 0, transparent 35%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-card {
  padding: 40px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #3f7d5f;
  font-size: 0.85rem;
  font-weight: 700;
}

.form-intro h1 {
  font-family: "Quicksand", sans-serif;
  font-size: 2rem;
  line-height: 1.2;
  margin: 16px 0 8px;
}

.lead {
  margin: 0 0 28px;
  color: var(--text-muted);
}

/* Form */
.confirm-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-weight: 700;
  font-size: 0.92rem;
}

.field input {
  width: 100%;
  font: inherit;
  color: var(--text);
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field input::placeholder {
  color: #a9b1b2;
}

.field input:hover {
  border-color: #dcd7d0;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hint {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.btn {
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: 14px;
  padding: 15px 24px;
  font-weight: 800;
  font-size: 1.05rem;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  margin-top: 6px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(232, 131, 107, 0.3);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}

.consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.consent a {
  color: var(--accent-dark);
}

.form-status {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fdecea;
  color: #b23b2e;
  font-size: 0.9rem;
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 16px 8px;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green-soft);
  color: #3f7d5f;
  font-size: 1.8rem;
  font-weight: 800;
}

.form-success h2 {
  font-family: "Quicksand", sans-serif;
  margin: 0 0 10px;
}

.form-success p {
  margin: 0;
  color: var(--text-muted);
}

[hidden] {
  display: none !important;
}

/* Ablauf-Overlay */
.form-body {
  position: relative;
}

.confirm-form.form-locked {
  filter: blur(2px);
  opacity: 0.55;
  user-select: none;
}

.flow-gate {
  position: absolute;
  inset: -12px;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(251, 250, 248, 0.82);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: calc(var(--radius) - 4px);
}

.flow-panel {
  width: 100%;
  max-width: 380px;
  padding: 28px 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-align: center;
}

.flow-title {
  font-family: "Quicksand", sans-serif;
  font-size: 1.3rem;
  margin: 0 0 6px;
}

.flow-lead {
  margin: 0 0 4px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.flow-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flow-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.flow-form .flow-title,
.flow-form .flow-lead {
  text-align: center;
}

/* Warte-Spinner */
.flow-spinner {
  width: 42px;
  height: 42px;
  margin: 6px auto 0;
  border: 4px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: flow-spin 0.9s linear infinite;
}

@keyframes flow-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Aside */
.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.hero-image {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  mix-blend-mode: multiply;
}

.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 380px;
}

.benefits li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-soft);
  color: #3f7d5f;
  font-weight: 800;
  font-size: 0.85rem;
  margin-top: 1px;
}

/* Steps */
.steps {
  padding: 48px 0 24px;
}

.section-title {
  font-family: "Quicksand", sans-serif;
  font-size: 1.8rem;
  text-align: center;
  margin: 0 0 36px;
}

.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.step {
  position: relative;
  text-align: center;
}

.step img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto 8px;
  mix-blend-mode: multiply;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
}

.step h3 {
  font-family: "Quicksand", sans-serif;
  font-size: 1.15rem;
  margin: 10px 0 6px;
}

.step p {
  margin: 0 auto;
  max-width: 280px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Why */
.why {
  padding: 40px 0 72px;
}

.why-card {
  max-width: 820px;
  padding: 44px 48px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.why-card h2 {
  font-family: "Quicksand", sans-serif;
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 0 0 18px;
}

.why-card p {
  margin: 0 0 16px;
  color: #4a5558;
}

.why-card p:last-child {
  margin-bottom: 0;
}

.why-card .highlight {
  padding: 14px 18px;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
  border-radius: 10px;
  color: #2f5f47;
  font-weight: 700;
}

/* Legal pages */
.legal {
  padding: 48px 0 72px;
  background:
    radial-gradient(circle at 90% 0, var(--accent-soft) 0, transparent 35%),
    var(--bg);
}

.legal-card {
  max-width: 760px;
  color: #4a5558;
}

.legal-card h1 {
  font-family: "Quicksand", sans-serif;
  font-size: 2rem;
  color: var(--text);
  margin: 0 0 24px;
}

.legal-card h2 {
  font-family: "Quicksand", sans-serif;
  font-size: 1.2rem;
  color: var(--text);
  margin: 28px 0 8px;
}

.legal-card p {
  margin: 0 0 12px;
}

.legal-card a {
  color: var(--accent-dark);
}

.legal-todo {
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #f3d9b5;
  color: #8a5a1a;
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px 32px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 520px;
}

.footer-brand {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.footer-copy {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-aside {
    order: 2;
  }

  .hero-image {
    max-width: 320px;
  }
}

@media (max-width: 760px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 32px;
  }

  .form-card {
    padding: 28px 22px;
  }

  .form-intro h1 {
    font-size: 1.65rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .why-card {
    padding: 30px 24px;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .brand-slogan {
    font-size: 0.85rem;
  }
}
