/* VIP-Tag Onboarding — Branding nach Business DNA design.md
   Palette: Dunkel Türkis #09849a · Hell Türkis #c8e4e0 · Rosa #efbfcf
   Aubergine #5a385c · Mauve #a087a3 · Hell Rosa #ffe0e4 · Anthrazit #393939
   Schrift: Lato. Premium ohne Hype, viel Weißraum, dezente Interaktion. */

/* Optional: Ball-Pen-Akzentschrift aktivieren, wenn Web-Fonts vorliegen.
   Dateien in /fonts/ legen, dann diesen Block einkommentieren.
@font-face {
  font-family: 'Ball Pen';
  src: url('fonts/ballpen.woff2') format('woff2');
  font-display: swap;
}
*/

:root {
  --t-dark: #09849a;
  --t-light: #c8e4e0;
  --rosa: #efbfcf;
  --rosa-soft: #ffe0e4;
  --aubergine: #5a385c;
  --mauve: #a087a3;
  --ink: #393939;
  --bg: #fbf9f9;
  --card: #ffffff;
  --line: #e7e2e4;
  --radius: 16px;
  --font: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Ball Pen', 'Lato', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
}

.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.logo {
  height: 56px;
  width: auto;
  display: block;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.progress {
  height: 6px;
  background: var(--t-light);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}
.bar {
  height: 100%;
  background: var(--t-dark);
  border-radius: 99px;
  transition: width .4s ease;
}
.step {
  margin: 0 0 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--mauve);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 38px;
  box-shadow: 0 10px 40px rgba(90, 56, 92, .06);
}
.card.center { text-align: center; }

.fade { animation: fade .45s ease both; }
@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--t-dark);
}

h1 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--aubergine);
}
h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--aubergine);
}
.lead { margin: 0 0 22px; color: var(--ink); }
.signature {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--t-dark);
}

.field { margin-bottom: 24px; }
label {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}
.req { color: var(--rosa); }
.hint {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--mauve);
}
input, textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 17px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--t-dark);
  box-shadow: 0 0 0 3px rgba(9, 132, 154, .12);
}
input.error, textarea.error {
  border-color: var(--rosa);
  box-shadow: 0 0 0 3px rgba(239, 191, 207, .35);
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.btn {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 30px;
  border-radius: 99px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter .2s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--t-dark); color: #fff; }
.btn.ghost {
  background: transparent;
  color: var(--aubergine);
  border-color: var(--line);
}

.autosave {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--mauve);
  text-align: right;
}

.video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin: 0 0 24px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--t-light);
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 22px auto 0;
  border: 3px solid var(--t-light);
  border-top-color: var(--t-dark);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.foot {
  text-align: center;
  padding: 24px 20px 40px;
  color: var(--mauve);
  font-size: 13px;
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .card { padding: 28px 22px; }
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .btn { width: 100%; }
  .autosave { text-align: center; }
  .logo { height: 42px; }
}
