:root {
  --bg: #0a1c2e;
  --bg-2: #12283e;
  --panel: #0d2338;
  --card: rgba(255,255,255,0.035);
  --card-hover: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.09);
  --gold: #b8933f;
  --gold-hell: #e0bd6e;
  --tiefblau: #1c4c78;
  --tiefblau-dunkel: #0d2138;
  --text: #f2f3f5;
  --text-dim: rgba(242,243,245,0.66);
  --text-faint: rgba(242,243,245,0.44);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --radius-card: 14px;
  --radius-btn: 10px;
  --shadow-1: 0 1px 2px rgba(0,0,0,0.20);
  --shadow-2: 0 6px 20px rgba(0,0,0,0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  background: linear-gradient(180deg, var(--tiefblau-dunkel) 0%, var(--bg) 420px, var(--bg) 100%);
}

a { color: var(--gold-hell); text-decoration: none; }
a.textlink:hover { text-decoration: underline; }

.icon { display: inline-block; vertical-align: -3px; flex-shrink: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 660px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */

nav.topnav {
  position: sticky;
  top: 0;
  z-index: 500;
  height: 56px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
nav.topnav.scrolled {
  background: rgba(10,28,46,0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: rgba(255,255,255,0.08);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.nav-brand img { width: 20px; height: 20px; border-radius: 5px; }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-dim); font-size: 13px; font-weight: 500; transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--tiefblau);
  padding: 7px 16px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.nav-cta:hover { background: #234f78; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 88px 24px 64px;
  text-align: center;
}

.hero-content { max-width: 700px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-hell);
  background: rgba(184,147,63,0.12);
  border: 1px solid rgba(184,147,63,0.28);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--text);
}

.hero .sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), opacity 0.18s var(--ease);
}

.btn-primary { background: var(--gold); color: #1b1200; }
.btn-primary:hover { background: #c6a250; }
.btn-primary:active { opacity: 0.85; }

.btn-ghost { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); }

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: default; }

/* ---------- Hero mock frame ---------- */

.hero-frame-wrap { margin-top: 52px; display: flex; justify-content: center; }

.phone-frame {
  width: 240px;
  border-radius: 30px;
  overflow: hidden;
  border: 5px solid #111820;
  box-shadow: var(--shadow-2);
}
.phone-frame img { display: block; width: 100%; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-scale {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal-scale.visible { opacity: 1; transform: translateY(0); }

/* ---------- Section rhythm ---------- */

section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section.alt { background: var(--panel); }

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-hell);
  margin: 0 0 12px;
}

.section-head { max-width: 600px; margin: 0 auto 48px; }
.section-head.center { text-align: center; }

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin: 0 0 14px;
  color: var(--text);
}

.section-head p { font-size: 1rem; color: var(--text-dim); line-height: 1.55; margin: 0; }

/* ---------- Feature rows ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.feature-row:first-of-type { border-top: none; }

@media (min-width: 860px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature-row.reverse .feature-text { order: 2; }
  .feature-row.reverse .feature-visual { order: 1; }
}

.feature-text h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 12px; }
.feature-text p { font-size: 0.98rem; color: var(--text-dim); line-height: 1.6; margin: 0; }

.feature-visual { display: flex; justify-content: center; }
.feature-visual img { width: 100%; max-width: 300px; border-radius: 16px; border: 1px solid var(--card-border); box-shadow: var(--shadow-2); }

/* ---------- Grid cards ---------- */

.card-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.feature-card:hover { background: var(--card-hover); border-color: rgba(255,255,255,0.14); }

.icon-wrap {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(184,147,63,0.14);
  color: var(--gold-hell);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature-card h4 { margin: 0 0 6px; font-size: 0.98rem; font-weight: 700; }
.feature-card p { margin: 0; color: var(--text-dim); font-size: 0.88rem; line-height: 1.55; }

/* ---------- Highlight callout ---------- */

.callout {
  max-width: 680px;
  margin: 40px auto 0;
  background: rgba(184,147,63,0.07);
  border: 1px solid rgba(184,147,63,0.22);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.callout .icon-wrap {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 9px;
  background: rgba(184,147,63,0.16);
  color: var(--gold-hell);
  display: flex; align-items: center; justify-content: center;
}
.callout h4 { margin: 0 0 6px; font-size: 1rem; font-weight: 700; }
.callout p { margin: 0; color: var(--text-dim); font-size: 0.92rem; line-height: 1.55; }

/* ---------- Pricing ---------- */

.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 600px; margin: 0 auto; }
@media (min-width: 640px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }

.price-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-card); padding: 24px 24px; }
.price-card.featured { border-color: rgba(184,147,63,0.4); background: rgba(184,147,63,0.055); }
.price-card .tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: #1b1200; background: var(--gold-hell);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}
.price-card h4 { margin: 0 0 4px; font-size: 0.98rem; font-weight: 700; color: var(--text-dim); }
.price-card .amount { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.01em; }
.price-card .amount span { font-size: 0.9rem; font-weight: 500; color: var(--text-faint); }
.price-card .note { color: var(--text-faint); font-size: 0.84rem; margin-top: 4px; }

.free-banner {
  max-width: 600px; margin: 0 auto 32px; text-align: center;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-card); padding: 14px 20px;
  font-size: 0.9rem; color: var(--text-dim); font-weight: 500;
}
.free-banner strong { color: var(--gold-hell); font-weight: 700; }

/* ---------- CTA band ---------- */

.cta-band { text-align: center; padding: 100px 24px; }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; }
.cta-band p { color: var(--text-dim); font-size: 1rem; max-width: 440px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */

footer.sitefoot { padding: 40px 24px 56px; text-align: center; color: var(--text-faint); font-size: 0.82rem; border-top: 1px solid rgba(255,255,255,0.07); }
footer.sitefoot .links { margin-bottom: 12px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
footer.sitefoot .links a { color: var(--text-dim); font-size: 0.85rem; }
footer.sitefoot .links a:hover { color: var(--text); }

/* ---------- Modal ---------- */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(6,14,24,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.modal-sheet {
  position: relative;
  width: 100%; max-width: 420px; max-height: 88vh; overflow-y: auto;
  background: var(--tiefblau-dunkel);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 30px 28px;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
  box-shadow: var(--shadow-2);
}
.modal-backdrop.open .modal-sheet { transform: translateY(0); opacity: 1; }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: none;
  color: var(--text-dim); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s var(--ease);
}
.modal-close:hover { background: rgba(255,255,255,0.12); }

.modal-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(184,147,63,0.14); color: var(--gold-hell);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.modal-sheet h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 6px; }
.modal-sheet .modal-sub { color: var(--text-dim); font-size: 0.88rem; line-height: 1.5; margin: 0 0 22px; }

.field { margin-bottom: 14px; text-align: left; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-faint); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 10px 12px; border-radius: 9px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  color: var(--text); font-size: 14.5px; font-family: inherit;
  transition: border-color 0.15s var(--ease);
}
.field input::placeholder { color: rgba(242,243,245,0.3); }
.field input:focus, .field select:focus { outline: none; border-color: rgba(184,147,63,0.5); }
.field select { appearance: none; }

.field-multi { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 7px 13px; border-radius: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-dim); font-size: 12.5px; font-weight: 500; cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
  user-select: none;
}
.chip.active { background: rgba(184,147,63,0.16); border-color: rgba(184,147,63,0.5); color: var(--gold-hell); font-weight: 600; }
.chip:hover:not(.active) { background: rgba(255,255,255,0.08); }

.form-msg { font-size: 12.5px; line-height: 1.5; padding: 9px 12px; border-radius: 9px; margin-bottom: 12px; display: none; }
.form-msg.error { display: block; background: rgba(200,80,70,0.10); color: #e5a099; border: 1px solid rgba(200,80,70,0.24); }
.form-msg.ok { display: block; background: rgba(80,170,120,0.10); color: #8fd1a8; border: 1px solid rgba(80,170,120,0.24); }

.modal-switch { text-align: center; margin-top: 14px; font-size: 12.5px; color: var(--text-faint); }
.modal-switch a { color: var(--gold-hell); font-weight: 600; cursor: pointer; }

.code-input {
  width: 100%; text-align: center;
  font-size: 24px; font-weight: 700; letter-spacing: 0.3em;
  padding: 14px 10px 14px 18px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  color: var(--text); font-family: ui-monospace, "SF Mono", monospace;
  margin-bottom: 14px;
}
.code-input:focus { outline: none; border-color: rgba(184,147,63,0.5); }

.step { display: none; }
.step.active { display: block; }

.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(27,18,0,0.3); border-top-color: #1b1200;
  border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.success-check {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(80,170,120,0.14); color: #6fce93;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}

.gesuch-summary {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px; padding: 14px 16px; margin: 16px 0;
  text-align: left; font-size: 13px; color: var(--text-dim); line-height: 1.6;
}
.gesuch-summary strong { color: var(--text); }

.hint { font-size: 11.5px; color: var(--text-faint); line-height: 1.5; margin: 8px 0 0; }

/* ---------- App-style Gesuch card ---------- */

.app-card {
  display: block; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-card); padding: 18px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
  font-family: inherit; color: inherit; cursor: pointer;
}
.app-card:hover { background: var(--card-hover); border-color: rgba(255,255,255,0.14); }

.ac-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ac-name { font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; gap: 6px; }
.ac-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(184,147,63,0.18); color: var(--gold-hell);
}
.ac-top-right { text-align: right; }
.ac-time { font-size: 0.74rem; color: var(--text-faint); }
.ac-termin { font-size: 0.76rem; font-weight: 600; color: var(--gold-hell); margin-top: 2px; }

.ac-split { position: relative; display: flex; height: 100px; border-radius: 11px; overflow: hidden; }
.ac-half { position: relative; width: 55%; height: 100%; padding: 11px 13px; color: #fff; }
.ac-von { clip-path: polygon(0 0, 100% 0, 78% 100%, 0% 100%); z-index: 1; }
.ac-nach { width: 65%; margin-left: -20%; clip-path: polygon(28% 0, 100% 0, 100% 100%, 0% 100%); text-align: right; }
.ac-label { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; opacity: 0.8; margin-bottom: 18px; }
.ac-landinfo { display: flex; align-items: center; gap: 7px; }
.ac-nach .ac-landinfo { justify-content: flex-end; }
.ac-landinfo .wappen { border-radius: 50%; background: rgba(255,255,255,0.85); padding: 2px; }
.ac-landinfo span { font-weight: 700; font-size: 0.86rem; }

.ac-oder { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: #fff; padding: 8px 13px; border-radius: 0 0 11px 11px; margin-top: -4px; }
.ac-oder-label { font-size: 0.62rem; font-weight: 700; opacity: 0.8; margin-right: auto; }
.ac-oder-name { font-weight: 600; font-size: 0.8rem; }
.ac-oder .wappen { border-radius: 50%; background: rgba(255,255,255,0.85); padding: 2px; }

.ac-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 13px; }
.ac-tags .tag { font-size: 0.74rem; font-weight: 500; color: var(--text-dim); background: rgba(255,255,255,0.05); border-radius: 7px; padding: 4px 10px; }
.tag-ring { color: #7fcf9c; background: rgba(80,170,120,0.10); display: inline-flex; align-items: center; gap: 4px; }
.tag-verified { color: var(--gold-hell); background: rgba(184,147,63,0.12); display: inline-flex; align-items: center; gap: 4px; }

.ac-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,0.07); }
.ac-anschreiben { font-size: 0.82rem; font-weight: 600; color: #1b1200; background: var(--gold); padding: 8px 15px; border-radius: 8px; }
.ac-details { font-size: 0.8rem; color: var(--text-faint); font-weight: 500; }

.detail-privacy {
  font-size: 0.8rem; color: var(--text-dim); line-height: 1.5;
  background: rgba(255,255,255,0.04); border-radius: 10px; padding: 11px 13px; margin: 0 0 18px;
  display: flex; gap: 8px; align-items: flex-start;
}

/* ---------- Börse filter ---------- */

.boerse-filter { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 680px; margin: 0 auto 36px; }
@media (min-width: 640px) { .boerse-filter { grid-template-columns: 1fr 1fr 1fr; } }
.boerse-filter .field { margin-bottom: 0; }
.boerse-filter select {
  width: 100%; padding: 10px 12px; border-radius: 9px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10);
  color: var(--text); font-size: 13.5px; font-family: inherit;
}

/* ---------- Legal pages ---------- */

.legal { max-width: 620px; margin: 0 auto; padding: 56px 24px 76px; color: var(--text-dim); font-size: 0.95rem; line-height: 1.7; white-space: pre-line; }
.legal h1 { color: var(--text); font-size: 1.5rem; font-weight: 700; margin-bottom: 18px; letter-spacing: -0.015em; }
.legal a { word-break: break-all; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--text-dim); font-size: 0.88rem; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  section { padding: 64px 0; }
}
