  :root {
      --ink:       #1a1a18;
      --ink-soft:  #4a4a45;
      --ink-muted: #8a8a82;
      --cream:     #f5f2eb;
      --cream-dark:#ede9df;
      --accent:    #1e4d3a;
      --accent-lt: #2d7055;
      --accent-bg: #e8f0ec;
      --line:      #d6d0c4;
      --danger:    #c0392b;
      --white:     #fefefe;
      --radius:    6px;
      --shadow:    0 2px 12px rgba(26,26,24,.08);
      --shadow-lg: 0 8px 40px rgba(26,26,24,.13);
  }

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

  html { scroll-behavior: smooth; }

  body {
      font-family: 'DM Sans', sans-serif;
      background: var(--cream);
      color: var(--ink);
      font-size: 15px;
      line-height: 1.6;
      min-height: 100vh;
  }

  /* ── HEADER ── */
  header {
      background: var(--accent);
      color: #fff;
      padding: 0 2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 16px rgba(0,0,0,.18);
      min-height: 64px;
  }
  .header-brand {
      display: flex;
      align-items: center;
      gap: .75rem;
      text-decoration: none;
  }
  .header-brand svg { width: 28px; height: 28px; flex-shrink: 0; }
  .header-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
  .header-brand-title {
      font-family: 'Fraunces', serif;
      font-size: 1.15rem;
      font-weight: 600;
      color: #fff;
      letter-spacing: -.01em;
  }
  .header-brand-sub {
      font-size: .7rem;
      font-weight: 300;
      color: rgba(255,255,255,.65);
      letter-spacing: .05em;
      text-transform: uppercase;
  }
  .header-badge {
      font-size: .7rem;
      font-weight: 500;
      background: rgba(255,255,255,.15);
      border: 1px solid rgba(255,255,255,.25);
      color: #fff;
      padding: .25rem .75rem;
      border-radius: 20px;
      letter-spacing: .03em;
  }

  /* ── HERO ── */
  .hero {
      background: linear-gradient(135deg, var(--accent) 0%, #163829 100%);
      color: #fff;
      padding: 4rem 2rem 3.5rem;
      text-align: center;
      position: relative;
      overflow: hidden;
  }
  .hero::before {
      content: '';
      position: absolute; inset: 0;
      background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
      pointer-events: none;
  }
  .hero-inner { position: relative; max-width: 700px; margin: 0 auto; }
  .hero-tag {
      display: inline-block;
      font-size: .7rem;
      font-weight: 500;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: rgba(255,255,255,.65);
      margin-bottom: 1rem;
  }
  .hero h1 {
      font-family: 'Fraunces', serif;
      font-size: clamp(1.8rem, 4vw, 2.8rem);
      font-weight: 600;
      line-height: 1.15;
      margin-bottom: 1rem;
      letter-spacing: -.02em;
  }
  .hero h1 em { font-style: italic; font-weight: 300; color: rgba(255,255,255,.8); }
  .hero p {
      font-size: 1rem;
      color: rgba(255,255,255,.75);
      max-width: 520px;
      margin: 0 auto 2rem;
      font-weight: 300;
  }
  .hero-features {
      display: flex;
      gap: 1.5rem;
      justify-content: center;
      flex-wrap: wrap;
  }
  .hero-feature {
      display: flex;
      align-items: center;
      gap: .4rem;
      font-size: .8rem;
      color: rgba(255,255,255,.7);
      font-weight: 300;
  }
  .hero-feature svg { width: 14px; height: 14px; opacity: .8; }

  /* ── MAIN LAYOUT ── */
  main {
      max-width: 900px;
      margin: 0 auto;
      padding: 2.5rem 1.5rem 5rem;
  }

  /* ── PROGRESS STEPS ── */
  .progress-nav {
      display: flex;
      gap: 0;
      margin-bottom: 2.5rem;
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
  }
  .step-tab {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: .45rem;
      padding: .85rem .5rem;
      font-size: .78rem;
      font-weight: 500;
      color: var(--ink-muted);
      cursor: default;
      border-right: 1px solid var(--line);
      transition: background .2s, color .2s;
      text-align: center;
  }
  .step-tab:last-child { border-right: none; }
  .step-tab.active { background: var(--accent-bg); color: var(--accent); }
  .step-tab.done { background: var(--cream); color: var(--accent-lt); }
  .step-num {
      width: 20px; height: 20px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: .7rem;
      font-weight: 600;
      flex-shrink: 0;
      background: var(--line);
      color: var(--ink-soft);
      transition: background .2s, color .2s;
  }
  .step-tab.active .step-num { background: var(--accent); color: #fff; }
  .step-tab.done .step-num { background: var(--accent-lt); color: #fff; }

  /* ── SECTIONS ── */
  .section {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      margin-bottom: 1.25rem;
      overflow: hidden;
      box-shadow: var(--shadow);
      transition: box-shadow .2s;
  }
  .section:hover { box-shadow: var(--shadow-lg); }

  .section-header {
      display: flex;
      align-items: center;
      gap: .75rem;
      padding: 1.1rem 1.5rem;
      background: var(--cream);
      border-bottom: 1px solid var(--line);
      cursor: pointer;
      user-select: none;
  }
  .section-header:hover { background: var(--cream-dark); }
  .section-icon {
      width: 32px; height: 32px;
      background: var(--accent);
      border-radius: 6px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
  }
  .section-icon svg { width: 16px; height: 16px; color: #fff; fill: #fff; }
  .section-title-wrap { flex: 1; }
  .section-title {
      font-family: 'Fraunces', serif;
      font-size: 1rem;
      font-weight: 600;
      color: var(--ink);
      letter-spacing: -.01em;
  }
  .section-sub { font-size: .75rem; color: var(--ink-muted); font-weight: 300; }
  .section-chevron {
      color: var(--ink-muted);
      transition: transform .25s ease;
      flex-shrink: 0;
  }
  .section-chevron svg { width: 16px; height: 16px; }
  .section.collapsed .section-chevron { transform: rotate(-90deg); }

  .section-body {
      padding: 1.5rem;
      transition: all .2s;
  }
  .section.collapsed .section-body { display: none; }

  /* ── FORM ELEMENTS ── */
  .grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 1rem;
  }
  .form-group { display: flex; flex-direction: column; gap: .35rem; }
  .form-group.full-width { grid-column: 1 / -1; }

  label {
      font-size: .8rem;
      font-weight: 500;
      color: var(--ink-soft);
      letter-spacing: .01em;
  }

  input[type="text"],
input[type="number"],
input[type="date"],
select,
.date-input-wrap input {
    width: 100%;
    padding: .6rem .85rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: .88rem;
    color: var(--ink);
    background: var(--cream);
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
    -webkit-appearance: none;
}
input:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(30,77,58,.12);
    background: var(--white);
}
input::placeholder { color: var(--ink-muted); }

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8a82' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    padding-right: 2.2rem;
    cursor: pointer;
}

/* ── GERMAN DATE PICKER ── */
.date-input-wrap {
    position: relative;
}
.date-input-wrap input[type="text"] {
    padding-right: 2.6rem;
}
.date-cal-btn {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 2.4rem;
    display: flex; align-items: center; justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-muted);
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: color .15s, background .15s;
}
.date-cal-btn:hover { color: var(--accent); background: var(--accent-bg); }
.date-cal-btn svg { width: 15px; height: 15px; }

/* Calendar Popup */
.cal-popup {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 200;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    width: 270px;
    display: none;
}
.cal-popup.open { display: block; }
.cal-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: .75rem;
}
.cal-nav button {
    background: none; border: none; cursor: pointer;
    color: var(--ink-soft); padding: .25rem .5rem;
    border-radius: 4px; font-size: .85rem;
    transition: background .15s;
}
.cal-nav button:hover { background: var(--cream-dark); }
.cal-nav-label {
    font-family: 'Fraunces', serif;
    font-size: .9rem; font-weight: 600;
    color: var(--ink); cursor: pointer;
}
.cal-nav-label:hover { color: var(--accent); }
.cal-weekdays {
    display: grid; grid-template-columns: repeat(7,1fr);
    gap: 2px; margin-bottom: .35rem;
}
.cal-weekday {
    text-align: center; font-size: .68rem;
    color: var(--ink-muted); font-weight: 500;
    padding: .2rem 0;
}
.cal-days {
    display: grid; grid-template-columns: repeat(7,1fr);
    gap: 2px;
}
.cal-day {
    text-align: center; padding: .35rem .15rem;
    font-size: .8rem; border-radius: 4px;
    cursor: pointer; color: var(--ink);
    transition: background .1s, color .1s;
}
.cal-day:hover { background: var(--accent-bg); color: var(--accent); }
.cal-day.today { font-weight: 600; color: var(--accent); }
.cal-day.selected { background: var(--accent); color: #fff; }
.cal-day.other-month { color: var(--ink-muted); }
.cal-day.empty { cursor: default; }

.cal-year-grid {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 4px;
}
.cal-year-item {
    padding: .4rem .2rem; text-align: center; font-size: .8rem;
    border-radius: 4px; cursor: pointer; color: var(--ink);
    transition: background .1s;
}
.cal-year-item:hover { background: var(--accent-bg); color: var(--accent); }
.cal-year-item.selected { background: var(--accent); color: #fff; }

.cal-month-grid {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 4px;
}
.cal-month-item {
    padding: .5rem .2rem; text-align: center; font-size: .8rem;
    border-radius: 4px; cursor: pointer; color: var(--ink);
    transition: background .1s;
}
.cal-month-item:hover { background: var(--accent-bg); color: var(--accent); }
.cal-month-item.selected { background: var(--accent); color: #fff; }

/* ── RADIO CARDS ── */
.radio-card-group {
    display: flex; gap: .5rem; flex-wrap: wrap;
}
.radio-option {
    display: flex; align-items: center; gap: .4rem;
    padding: .45rem .85rem;
    border: 1.5px solid var(--line);
    border-radius: 20px;
    cursor: pointer;
    font-size: .83rem;
    font-weight: 400;
    color: var(--ink-soft);
    background: var(--cream);
    transition: all .15s;
    user-select: none;
}
.radio-option:hover { border-color: var(--accent); color: var(--accent); }
.radio-option input { display: none; }
.radio-option:has(input:checked) {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 500;
}

/* ── COLLAPSIBLE FIELDS ── */
.hidden-field {
    overflow: hidden;
    max-height: 0;
    transition: max-height .25s ease, opacity .2s;
    opacity: 0;
}
.hidden-field.visible {
    max-height: 120px;
    opacity: 1;
}
.hidden-field input { margin-top: .5rem; }

/* ── TOTAL BOX ── */
.total-box {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--accent-bg);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    color: var(--accent);
    font-size: .95rem;
}
.total-amount {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

/* ── SUBMIT ── */
.submit-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}
.btn-primary {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: .01em;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(30,77,58,.3);
}
.btn-primary:hover {
    background: var(--accent-lt);
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(30,77,58,.35);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary svg { width: 18px; height: 18px; }
.submit-note {
    font-size: .78rem;
    color: var(--ink-muted);
    text-align: center;
}

/* ── TRUST STRIP ── */
.trust-strip {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--line);
    margin-top: 1rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: var(--ink-muted);
    font-weight: 300;
}
.trust-item svg { width: 16px; height: 16px; color: var(--accent); }

/* ── FOOTER ── */
footer {
    background: var(--ink);
    color: rgba(255,255,255,.55);
    text-align: center;
    padding: 2rem 1.5rem;
    font-size: .78rem;
    line-height: 1.7;
}
footer a { color: rgba(255,255,255,.4); text-decoration: none; }
footer a:hover { color: #fff; }

/* ── DIVIDER ── */
.field-divider {
    grid-column: 1/-1;
    height: 1px;
    background: var(--line);
    margin: .25rem 0;
}

@media (max-width: 600px) {
    header { padding: 0 1rem; }
    .header-badge { display: none; }
    .hero { padding: 2.5rem 1rem 2rem; }
    main { padding: 1.5rem 1rem 4rem; }
    .progress-nav { display: none; }
    .grid { grid-template-columns: 1fr; }
    .section-body { padding: 1rem; }
}
