/* ─── RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #2563eb;
  --blue-dark:  #1d4ed8;
  --blue-light: #dbeafe;
  --violet:     #7c3aed;
  --violet-light: #ede9fe;
  --green:      #16a34a;
  --text:       #0f172a;
  --text-2:     #334155;
  --text-3:     #64748b;
  --border:     #e2e8f0;
  --bg:         #ffffff;
  --bg-2:       #f8fafc;
  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:     0 4px 20px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ─── NAV ───────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.logo {
  font-size: 1.3rem; font-weight: 800; color: var(--text);
  text-decoration: none; letter-spacing: -0.5px;
}
.logo span { color: var(--blue); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  text-decoration: none; color: var(--text-3); font-size: 0.9rem;
  font-weight: 500; transition: color .15s;
}
.nav-links a:hover { color: var(--text); }

/* ─── BUTTONS ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; border-radius: var(--radius-sm);
  transition: all .15s; cursor: pointer; border: none; font-family: inherit;
}
.btn-nav {
  background: var(--text); color: #fff; padding: 9px 18px; font-size: 0.85rem;
  border-radius: 8px;
}
.btn-nav:hover { background: #1e293b; transform: translateY(-1px); }

.btn-hero-primary {
  background: var(--blue); color: #fff;
  padding: 15px 28px; font-size: 1rem; border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}
.btn-hero-primary:hover {
  background: var(--blue-dark); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,99,235,0.4);
}
.btn-hero-ghost {
  background: transparent; color: var(--text-2);
  padding: 15px 28px; font-size: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}
.btn-hero-ghost:hover { background: var(--bg-2); color: var(--text); }

.btn-price-primary {
  background: var(--blue); color: #fff;
  padding: 14px 24px; font-size: 0.95rem;
  border-radius: var(--radius); width: 100%; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.btn-price-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-price-outline {
  background: transparent; color: var(--blue);
  padding: 14px 24px; font-size: 0.95rem;
  border: 1.5px solid var(--blue);
  border-radius: var(--radius); width: 100%; justify-content: center;
}
.btn-price-outline:hover { background: var(--blue-light); }
.btn-cta {
  background: #fff; color: var(--text);
  padding: 16px 32px; font-size: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ─── HERO ──────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 90px 0 80px;
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.3;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #3b82f6, transparent);
  top: -200px; left: -100px;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #7c3aed, transparent);
  bottom: -200px; right: -100px;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}
.hero-content { position: relative; text-align: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  padding: 7px 16px; border-radius: 99px; font-size: 0.8rem;
  font-weight: 500; margin-bottom: 28px; backdrop-filter: blur(4px);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -1.5px; margin-bottom: 24px; color: #fff;
}
.hero-highlight {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.65);
  max-width: 580px; margin: 0 auto 36px;
  line-height: 1.7; font-weight: 400;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-fine {
  font-size: 0.78rem; color: rgba(255,255,255,0.4);
  margin-top: 14px;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-top: 56px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 24px 40px;
  backdrop-filter: blur(8px);
  max-width: 680px; margin-left: auto; margin-right: auto;
}
.stat { text-align: center; padding: 0 32px; }
.stat-num {
  font-size: 2.2rem; font-weight: 900;
  color: #fff; letter-spacing: -1px;
}
.stat-num span { font-size: 1.3rem; color: #60a5fa; }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 4px; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.12); }

/* ─── PREVIEW CARD ──────────────────────────────────────────────── */
.preview-section { padding: 80px 0; background: var(--bg-2); }
.preview-wrapper { text-align: center; }
.preview-label {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-3); margin-bottom: 20px;
}
.preview-card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid var(--border); text-align: left;
  max-width: 760px; margin: 0 auto;
}
.preview-header {
  background: #f1f5f9; padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border);
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #e2e8f0;
}
.preview-dots span:nth-child(1) { background: #fca5a5; }
.preview-dots span:nth-child(2) { background: #fcd34d; }
.preview-dots span:nth-child(3) { background: #86efac; }
.preview-title { font-size: 0.82rem; color: var(--text-3); font-weight: 500; }
.preview-body { display: grid; grid-template-columns: 200px 1fr; gap: 0; }
.preview-col {
  padding: 24px; border-right: 1px solid var(--border);
  background: #fafafa;
}
.preview-text-col { padding: 24px; }
.preview-field-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-3); margin-bottom: 6px;
}
.preview-field-val { font-size: 0.88rem; color: var(--text); font-weight: 500; }
.preview-field-val small { color: var(--text-3); font-weight: 400; }
.preview-text {
  font-size: 0.88rem; color: var(--text-2); line-height: 1.7;
  font-style: italic; border-left: 3px solid var(--blue);
  padding-left: 14px; margin-bottom: 20px;
}
.preview-typing {
  display: inline-block; width: 2px; height: 14px;
  background: var(--blue); margin-left: 3px; vertical-align: middle;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.preview-summe {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-2); border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: 0.9rem;
}
.preview-summe strong { font-size: 1.1rem; color: var(--green); }
.preview-footer {
  padding: 14px 24px; border-top: 1px solid var(--border);
  display: flex; gap: 10px;
}
.preview-tag {
  background: #f0fdf4; color: var(--green);
  border: 1px solid #bbf7d0; border-radius: 99px;
  font-size: 0.75rem; font-weight: 600; padding: 4px 12px;
}

/* ─── SECTION HEADER ────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--blue); margin-bottom: 12px;
  background: var(--blue-light); padding: 5px 14px;
  border-radius: 99px;
}
.section-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.8px; line-height: 1.2;
}

/* ─── STEPS ─────────────────────────────────────────────────────── */
.steps-section { padding: 100px 0; background: #fff; }
.steps {
  display: flex; align-items: flex-start;
  justify-content: center; gap: 16px; flex-wrap: wrap;
}
.step {
  text-align: center; flex: 1; min-width: 220px; max-width: 280px;
  padding: 32px 24px; border-radius: var(--radius-lg);
  background: var(--bg-2); border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.step:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.step-num {
  font-size: 0.75rem; font-weight: 800; color: var(--blue);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px;
}
.step-icon { font-size: 2.4rem; margin-bottom: 14px; }
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--text-3); line-height: 1.6; }
.step-arrow {
  font-size: 1.5rem; color: var(--border); align-self: center;
  padding-top: 20px;
}

/* ─── FEATURES ──────────────────────────────────────────────────── */
.features-section { padding: 100px 0; background: var(--bg-2); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}
.feature-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-large { grid-column: span 1; }
.feature-icon-wrap {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 0.88rem; color: var(--text-3); line-height: 1.65; }
.feature-tag {
  display: inline-block; margin-top: 16px; font-size: 0.72rem;
  font-weight: 600; color: var(--blue); background: var(--blue-light);
  padding: 4px 10px; border-radius: 99px;
}

/* ─── TESTIMONIALS ──────────────────────────────────────────────── */
.testimonials-section { padding: 100px 0; background: #fff; }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.testimonial {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.testimonial-featured {
  background: linear-gradient(135deg, #1e1b4b, #1e3a8a);
  color: #fff; border-color: transparent;
}
.testimonial-featured p { color: rgba(255,255,255,0.85); }
.testimonial-featured .testimonial-role { color: rgba(255,255,255,0.5); }
.testimonial-stars { color: #fbbf24; font-size: 0.85rem; margin-bottom: 14px; }
.testimonial p { font-size: 0.9rem; line-height: 1.7; color: var(--text-2); margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.testimonial-name { font-size: 0.88rem; font-weight: 700; }
.testimonial-role { font-size: 0.78rem; color: var(--text-3); }

/* ─── PRICING ───────────────────────────────────────────────────── */
.pricing-section { padding: 100px 0; background: var(--bg-2); }
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; max-width: 760px; margin: 0 auto 20px;
}
.price-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  position: relative;
}
.price-card-featured {
  background: linear-gradient(160deg, #1e1b4b 0%, #1e3a8a 100%);
  border-color: transparent; color: #fff;
}
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: #fff; padding: 5px 18px; border-radius: 99px;
  font-size: 0.72rem; font-weight: 700; white-space: nowrap;
}
.price-name {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-3); margin-bottom: 10px;
}
.price-card-featured .price-name { color: rgba(255,255,255,0.6); }
.price-amount {
  font-size: 2.8rem; font-weight: 900; letter-spacing: -1.5px;
  margin-bottom: 6px; line-height: 1;
}
.price-amount span { font-size: 0.95rem; font-weight: 400; color: var(--text-3); }
.price-card-featured .price-amount span { color: rgba(255,255,255,0.5); }
.price-desc { font-size: 0.85rem; color: var(--text-3); margin-bottom: 24px; }
.price-card-featured .price-desc { color: rgba(255,255,255,0.6); }
.price-saving {
  font-size: 0.8rem; font-weight: 600; color: #4ade80;
  margin-bottom: 24px;
}
.price-features { list-style: none; margin-bottom: 28px; }
.price-features li {
  padding: 9px 0; font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.price-card-featured .price-features li { border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); }
.price-features li:last-child { border: none; }
.check { color: var(--green); font-weight: 700; flex-shrink: 0; }
.check.muted { color: var(--text-3); }
.pricing-note { text-align: center; font-size: 0.8rem; color: var(--text-3); }

/* ─── CTA BANNER ────────────────────────────────────────────────── */
.cta-section { padding: 80px 0; background: #fff; }
.cta-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #0f172a 100%);
  border-radius: 24px; padding: 72px 40px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-orb {
  position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.3), transparent);
  border-radius: 50%; top: -200px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.cta-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900;
  color: #fff; margin-bottom: 14px; letter-spacing: -1px;
}
.cta-card p {
  font-size: 1rem; color: rgba(255,255,255,0.6);
  margin-bottom: 32px; max-width: 440px; margin-left: auto; margin-right: auto;
}

/* ─── FOOTER ────────────────────────────────────────────────────── */
.footer { background: #0f172a; color: #94a3b8; padding: 64px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand .logo { color: #fff; display: block; margin-bottom: 10px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }
.footer-trust {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px;
}
.footer-trust span {
  font-size: 0.72rem; font-weight: 600; color: #64748b;
  background: #1e293b; border-radius: 99px; padding: 4px 10px;
}
.footer h4 {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #fff; margin-bottom: 14px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  font-size: 0.85rem; color: #64748b; text-decoration: none;
  transition: color .15s;
}
.footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b; padding-top: 24px;
  text-align: center; font-size: 0.8rem;
}

/* ─── APP PAGE ──────────────────────────────────────────────────── */
.app-layout { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-2); }
.app-header {
  background: #0f172a; padding: 0 24px;
  display: flex; align-items: center; height: 56px;
  border-bottom: 1px solid #1e293b;
}
.app-header .logo { color: #fff; font-size: 1.1rem; }
.app-header .logo span { color: #60a5fa; }
.app-body { display: flex; flex: 1; }

.sidebar {
  width: 230px; background: #fff; border-right: 1px solid var(--border);
  padding: 20px 12px; flex-shrink: 0;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: var(--radius-sm); text-decoration: none;
  color: var(--text-3); font-size: 0.88rem; font-weight: 500;
  margin-bottom: 4px; cursor: pointer; border: none;
  background: none; width: 100%; text-align: left; transition: all .15s;
}
.sidebar-link:hover { background: var(--bg-2); color: var(--text); }
.sidebar-link.active {
  background: var(--blue-light); color: var(--blue); font-weight: 600;
}
.app-content { flex: 1; padding: 32px; overflow-y: auto; max-width: 900px; }

/* ─── FORMS ─────────────────────────────────────────────────────── */
.app-content h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.3px; }
.form-section {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.form-section h3 {
  font-size: 0.95rem; font-weight: 700; margin-bottom: 20px;
  color: var(--text); padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.78rem; font-weight: 600; color: var(--text-3); letter-spacing: 0.3px; }
input, select, textarea {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px; font-size: 0.9rem; font-family: inherit;
  outline: none; transition: border-color .15s, box-shadow .15s; background: #fff;
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
textarea { resize: vertical; min-height: 90px; }

/* ─── POSITIONS TABLE ───────────────────────────────────────────── */
.position-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 10px; align-items: end; margin-bottom: 10px;
}
.btn-icon { background: none; border: none; cursor: pointer; color: #ef4444; font-size: 1.1rem; padding: 8px; border-radius: 6px; }
.btn-icon:hover { background: #fee2e2; }
.btn-add {
  background: var(--bg-2); border: 1.5px dashed var(--border); color: var(--text-3);
  padding: 10px 20px; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 0.88rem; font-weight: 500; transition: all .15s; margin-top: 8px;
  width: 100%;
}
.btn-add:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

/* ─── RESULTS ───────────────────────────────────────────────────── */
.result-box {
  background: #f0fdf4; border: 1.5px solid #86efac;
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}
.result-box h3 { color: var(--green); margin-bottom: 12px; font-size: 0.95rem; }
.result-text { font-size: 0.9rem; line-height: 1.8; white-space: pre-wrap; color: var(--text); }
.summen-grid { display: grid; grid-template-columns: auto auto; gap: 4px 24px; margin-top: 16px; font-size: 0.9rem; }
.summen-total { font-weight: 700; font-size: 1rem; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* ─── MAIN APP BUTTONS ──────────────────────────────────────────── */
.btn-primary {
  background: var(--blue); color: #fff;
  padding: 11px 22px; font-size: 0.92rem;
  border-radius: var(--radius-sm); border: none; cursor: pointer;
  font-family: inherit; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; transition: all .15s;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-outline {
  background: #fff; color: var(--blue); border: 1.5px solid var(--blue);
  padding: 11px 22px; font-size: 0.92rem; border-radius: var(--radius-sm);
  cursor: pointer; font-family: inherit; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; transition: all .15s;
}
.btn-outline:hover { background: var(--blue-light); }

/* ─── SPINNER ───────────────────────────────────────────────────── */
.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── ERROR BOX ─────────────────────────────────────────────────── */
.error-box {
  background: #fef2f2; border: 1px solid #fca5a5;
  border-radius: var(--radius-sm); padding: 14px 18px;
  color: #991b1b; font-size: 0.88rem; margin-bottom: 16px;
}

/* ─── CHECKBOX ──────────────────────────────────────────────────── */
.checkbox-row {
  display: flex; align-items: center; gap: 10px;
  grid-column: 1 / -1;
}
.checkbox-row input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; cursor: pointer;
  accent-color: var(--blue);
}
.checkbox-row label { font-size: 0.88rem; font-weight: 400; color: var(--text-2); cursor: pointer; }

/* ─── HIDDEN ────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ─── APP HEADER EXTRAS ─────────────────────────────────────────── */
.app-user-badge {
  background: rgba(96,165,250,0.15); color: #60a5fa;
  border: 1px solid rgba(96,165,250,0.3);
  padding: 4px 12px; border-radius: 99px;
  font-size: 0.72rem; font-weight: 700;
}

/* ─── SIDEBAR EXTRAS ────────────────────────────────────────────── */
.sidebar-section-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--text-3); padding: 8px 14px 4px;
}
.sidebar-divider { height: 1px; background: var(--border); margin: 10px 0; }
.sidebar-icon { font-size: 1rem; }

/* ─── VIEW HEADER ───────────────────────────────────────────────── */
.view-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 16px;
}
.view-header h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 4px; }
.view-sub { font-size: 0.88rem; color: var(--text-3); }
.step-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.step-pill {
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-3); font-size: 0.72rem; font-weight: 600;
  padding: 5px 12px; border-radius: 99px;
}
.step-pill.active { background: var(--blue-light); color: var(--blue); border-color: var(--blue-light); }

/* ─── FORM SECTION HEAD ─────────────────────────────────────────── */
.form-section-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.form-section-head h3 { font-size: 0.95rem; font-weight: 700; margin: 0; }
.form-section-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; flex-shrink: 0;
}

/* ─── POSITIONS NEW LAYOUT ──────────────────────────────────────── */
.pos-header {
  display: grid;
  grid-template-columns: 2fr 80px 100px 100px 80px 36px;
  gap: 8px; padding: 0 0 8px;
  border-bottom: 1px solid var(--border); margin-bottom: 10px;
}
.pos-header > div {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-3);
}
.pos-col-bez { }
.pos-col-sm { }

.pos-row {
  display: grid;
  grid-template-columns: 2fr 80px 100px 100px 80px 36px;
  gap: 8px; align-items: center; margin-bottom: 8px;
}
.pos-row input, .pos-row select {
  padding: 8px 10px; font-size: 0.88rem;
}
.pos-gesamt {
  font-size: 0.88rem; font-weight: 600; color: var(--text);
  text-align: right; padding-right: 4px;
}
.btn-add-pos {
  width: 100%; padding: 10px; margin-top: 8px;
  background: var(--bg-2); border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm); color: var(--text-3);
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.btn-add-pos:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

/* ─── LIVE SUMME ────────────────────────────────────────────────── */
.live-summe {
  margin-top: 16px; border-top: 2px solid var(--border);
  padding-top: 14px; margin-left: auto; max-width: 320px;
}
.live-summe-row {
  display: flex; justify-content: space-between;
  font-size: 0.88rem; color: var(--text-3); padding: 4px 0;
}
.live-summe-total {
  display: flex; justify-content: space-between;
  font-size: 1rem; font-weight: 800; color: var(--text);
  border-top: 1px solid var(--border); margin-top: 8px; padding-top: 10px;
}

/* ─── ACTION BAR ────────────────────────────────────────────────── */
.action-bar {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding: 20px 0 8px;
}

/* ─── INFO BOX ──────────────────────────────────────────────────── */
.info-box {
  background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: 0.85rem; color: #1e40af; margin-top: 16px;
}
.link-btn {
  background: none; border: none; color: var(--blue);
  font-weight: 600; cursor: pointer; font-size: inherit;
  text-decoration: underline; padding: 0; font-family: inherit;
}

/* ─── PROFIL PAGE ───────────────────────────────────────────────── */
.plan-current {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 20px; margin-top: 16px;
}
.plan-current-badge {
  background: #fef9c3; color: #854d0e;
  border: 1px solid #fde68a; border-radius: 99px;
  font-size: 0.72rem; font-weight: 700; padding: 4px 12px; white-space: nowrap;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .preview-body { grid-template-columns: 1fr; }
  .preview-col { border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .position-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; padding: 24px; }
  .stat-divider { width: 80px; height: 1px; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .sidebar { display: none; }
  .cta-card { padding: 48px 24px; }
}
