/* USPay Solution – Marketing-Website
   Farb-/Formsprache bewusst an die bestehende App angelehnt (dunkles Nachtblau,
   Cyan/Violett-Akzent, Bergsilhouette) – siehe style.css/winter-theme.css im Kassen-Projekt. */

:root {
  --go: #38d6ff;
  --go-dark: #7fe6ff;
  --violet: #7c5cff;
  --sun: #f6a01a;
  --bg: #050b18;
  --bg-2: #071026;
  --card: #101c36;
  --card-soft: #0c1730;
  --ink: #eaf1ff;
  --muted: #93a3c4;
  --line: #223255;
  --radius: 16px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 14px; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 19px; }
p { color: var(--muted); margin: 0 0 16px; }
.icon { width: 18px; height: 18px; flex: none; display: inline-block; }
.feature-icon .icon { width: 22px; height: 22px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--go); margin-bottom: 12px;
}
.branch-back {
  display: inline-block; font-size: 13px; color: var(--muted); text-decoration: none; margin-bottom: 22px;
}
.branch-back:hover { color: var(--ink); }

/* ---------- Branchen-Auswahl (Hauptseite) ---------- */
.branch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.branch-card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease;
}
.branch-card:hover { border-color: var(--go); transform: translateY(-2px); }
.branch-card .feature-icon { margin-bottom: 22px; }
.branch-card h3 { font-size: 21px; margin-bottom: 8px; }
.branch-card p { font-size: 14.5px; margin-bottom: 18px; }
.branch-card .branch-link { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--go); }
.branch-card.branch-card-muted { background: transparent; border-style: dashed; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.branch-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Weitere Branchen (Suche) ---------- */
.more-branches { margin-top: 40px; text-align: center; }
.more-branches h3 { font-size: 16px; color: var(--muted); font-weight: 700; margin-bottom: 16px; }
.branch-search { max-width: 360px; margin: 0 auto 18px; }
.branch-search input {
  width: 100%; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-family: inherit; font-size: 14.5px; text-align: center;
}
.branch-search input:focus { outline: none; border-color: var(--go); }
.branch-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.branch-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  font-size: 13.5px; font-weight: 600; transition: border-color .15s ease;
}
.branch-chip .icon { width: 15px; height: 15px; color: var(--go); }
.branch-chip:hover { border-color: var(--go); }
.branch-chip.hidden { display: none; }
.branch-chips-empty { font-size: 13px; color: var(--muted); margin-top: 4px; }
.branch-chips-empty.hidden { display: none; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 16.5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--go), var(--violet)); color: #04101f; box-shadow: 0 8px 24px rgba(56,214,255,.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(56,214,255,.35); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5,11,24,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 40px; color: var(--ink); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 120px 0 90px;
  background: linear-gradient(180deg, var(--bg-2) 0%, #050b18 55%, #04070f 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38vh; pointer-events: none;
  background: #0b1730;
  clip-path: polygon(0% 62%, 14% 38%, 26% 52%, 42% 22%, 58% 46%, 72% 30%, 86% 50%, 100% 36%, 100% 100%, 0% 100%);
  opacity: .55;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); text-wrap: balance; }
.hero .accent { background: linear-gradient(135deg, var(--go), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 18px; max-width: 560px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-top: 56px; font-size: 13px; color: var(--muted); }
.hero-badges span { display: flex; align-items: center; gap: 7px; }
.hero-badges svg { flex: none; color: var(--go); }

/* ---------- Feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px;
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(56,214,255,.16), rgba(124,92,255,.16));
  color: var(--go); margin-bottom: 18px; flex: none;
}
.feature-card p { margin-bottom: 0; font-size: 14.5px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(56,214,255,.12); color: var(--go); font-weight: 800; font-size: 14px; margin-bottom: 16px;
}
.step h3 { font-size: 16px; }
.step p { font-size: 14px; margin: 0; }

/* ---------- Pricing ---------- */
.pricing-note { text-align: center; font-size: 13.5px; color: var(--muted); margin: -28px 0 44px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--go); box-shadow: 0 0 0 1px var(--go), 0 20px 50px rgba(56,214,255,.12); position: relative; }
.price-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--go), var(--violet)); color: #04101f;
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
}
.price-card h3 { margin-bottom: 4px; }
.price-card .price-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.price-amount { font-size: 34px; font-weight: 800; margin-bottom: 2px; }
.price-amount span { font-size: 14px; font-weight: 600; color: var(--muted); }
.price-period { font-size: 12.5px; color: var(--muted); margin-bottom: 24px; }
.price-list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-list li { display: flex; gap: 10px; font-size: 14px; color: var(--ink); align-items: flex-start; }
.price-list li svg { flex: none; color: var(--go); margin-top: 2px; }
.price-list li.muted-item { color: var(--muted); }
.price-list li.muted-item svg { color: var(--muted); }

/* ---------- Compliance strip ---------- */
.strip {
  background: var(--card-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 46px 0;
}
.strip .wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: space-between; }
.strip-text { max-width: 640px; }
.strip-text h3 { margin-bottom: 6px; }
.strip-text p { margin: 0; font-size: 14.5px; }

/* ---------- Contact / Demo ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; gap: 12px; font-size: 14.5px; align-items: flex-start; }
.contact-list svg { flex: none; color: var(--go); margin-top: 2px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line);
  background: #0a1428; color: var(--ink); font-family: inherit; font-size: 14.5px;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--go); }
.form-row textarea { resize: vertical; min-height: 90px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 12px; margin-bottom: 0; }
.form-status { font-size: 13.5px; margin-top: 14px; display: none; }
.form-status.ok { color: #2fd3a5; display: block; }
.form-status.err { color: #ff6377; display: block; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 50px 0 34px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; margin-bottom: 34px; }
.footer-logo img { height: 26px; margin-bottom: 12px; }
.footer-logo p { font-size: 13.5px; max-width: 280px; margin: 0; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--ink); text-decoration: none; margin-bottom: 10px; }
.footer-col a:hover { color: var(--go); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-links.nav-links-open {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 24px 18px;
  }
  .nav-links.nav-links-open a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav-burger { display: block; }
  .nav { position: relative; }
  .grid-3, .steps, .pricing-grid { grid-template-columns: 1fr; }
  .grid-2, .branch-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-2col { grid-template-columns: 1fr; }
  .strip .wrap { flex-direction: column; align-items: flex-start; }
  .price-card.featured { order: -1; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 96px 0 70px; }
  .hero-badges { gap: 16px; }
  .nav { padding: 12px 18px; }
  .nav-actions .btn-primary { display: none; } /* Hero hat dieselbe CTA gleich darunter, spart hier Platz für den Burger */
  .nav-logo img { height: 24px; }
}
