/* BoatRefit – Website-Styles. Maritimes Blau (#213e6a). */
:root {
  --teal: #213e6a;
  --teal-dark: #1a3257;
  --teal-darker: #122440;
  --teal-light: #5e7cae;
  --sand: #f4efe6;
  --ink: #16202e;
  --muted: #5e6b7d;
  --line: #dde2ea;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(18, 36, 64, 0.12);
  --maxw: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.2; color: var(--ink); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .4em; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav-links a:hover { color: var(--teal-dark); text-decoration: none; }
/* Primaer-Button im Nav: weisser Text (sonst ueberschreibt .nav-links a die Button-Farbe). */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(33, 62, 106, .38); }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { background: #fff; color: var(--teal-dark); border-color: var(--line); }
.btn-outline:hover { border-color: var(--teal); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--teal-darker) 0%, var(--teal-dark) 45%, var(--teal) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 85% -10%, rgba(255,255,255,.14), transparent 70%),
    radial-gradient(500px 260px at 0% 110%, rgba(94,124,174,.35), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; padding: 78px 20px 88px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.3rem); margin: 0 0 18px; letter-spacing: -.5px; }
.hero p { color: rgba(255,255,255,.92); font-size: 1.2rem; max-width: 36ch; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badge {
  display: inline-block; font-size: .85rem; letter-spacing: .5px; text-transform: uppercase;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; font-weight: 600;
}
.hero-platforms { margin-top: 26px; font-size: .92rem; color: rgba(255,255,255,.78); }

/* Hero mock device */
.hero-art { display: flex; justify-content: center; }
.device {
  width: 240px; aspect-ratio: 9/18; background: #fff; border-radius: 30px;
  border: 9px solid #0e1c33; box-shadow: 0 24px 60px rgba(0,0,0,.35);
  overflow: hidden; display: flex; flex-direction: column;
}
.device-top { background: var(--teal); color: #fff; padding: 16px 14px 12px; font-weight: 600; font-size: .95rem; }
.device-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); flex: 1; }
.d-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.d-card b { font-size: .85rem; }
.d-bar { height: 7px; border-radius: 5px; background: #e3edf1; margin-top: 7px; }
.d-bar.fill { background: var(--teal-light); width: 65%; }
.d-chip { display: inline-block; font-size: .68rem; background: #e3edf1; color: var(--teal-dark); padding: 2px 8px; border-radius: 999px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .lead { margin: 0; }
.eyebrow { color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .82rem; margin: 0 0 10px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: 0 1px 2px rgba(0,0,0,.03); transition: box-shadow .18s ease, transform .18s ease;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(33,62,106,.10); color: var(--teal-dark); font-size: 1.4rem; margin-bottom: 16px;
}
.feature h3 { font-size: 1.18rem; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .n {
  width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Screenshots gallery */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.shot { display: flex; flex-direction: column; align-items: center; }
.shot-frame {
  width: 100%; max-width: 260px; aspect-ratio: 9 / 18;
  border: 9px solid #0e1c33; border-radius: 30px; overflow: hidden;
  background: var(--bg-soft); box-shadow: 0 16px 40px rgba(18, 36, 64, .20);
  position: relative; display: grid; place-items: center;
}
.shot-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.shot-frame .placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: var(--muted); font-size: .9rem; padding: 18px; gap: 8px;
}
.shot-frame .placeholder .ph-ico { font-size: 2rem; opacity: .5; }
.shot-frame img + .placeholder { display: none; }      /* hide label once image present */
.shot-frame img.broken { display: none; }
.shot-frame img.broken + .placeholder { display: grid; }
.shot figcaption { margin-top: 16px; font-weight: 600; color: var(--ink); text-align: center; }
.shot figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 760px; margin: 0 auto; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  display: flex; flex-direction: column;
}
.plan.featured { border: 2px solid var(--teal); box-shadow: var(--shadow); position: relative; }
.plan.featured .tag {
  position: absolute; top: -12px; right: 22px; background: var(--teal); color: #fff;
  font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px;
}
.plan h3 { font-size: 1.25rem; margin: 0 0 4px; }
.plan .price { font-size: 2rem; font-weight: 800; color: var(--ink); margin: 8px 0 2px; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan .note { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.plan li::before { content: "✓"; color: var(--teal); font-weight: 800; }
.plan li.off { color: var(--muted); }
.plan li.off::before { content: "–"; color: var(--muted); }
.plan .btn { margin-top: auto; justify-content: center; }

/* CTA band */
.cta-band { background: linear-gradient(140deg, var(--teal-dark), var(--teal)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 48ch; margin: 0 auto 26px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c7d6db; padding: 48px 0 28px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-footer a { color: #9fc6d3; }
.footer-col h4 { color: #fff; font-size: .95rem; margin: 0 0 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 18px; font-size: .85rem; color: #8aa6af; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Docs page ---------- */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; padding: 48px 0 80px; }
.docs-nav { position: sticky; top: 84px; }
.docs-nav h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 0 0 12px; }
.docs-nav ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 2px; }
.docs-nav a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--ink); font-size: .95rem; }
.docs-nav a:hover { background: var(--bg-soft); text-decoration: none; color: var(--teal-dark); }
.docs-content { max-width: 720px; }
.docs-content h1 { font-size: 2.2rem; margin: 0 0 6px; }
.docs-content > p.lead { margin-top: 0; margin-bottom: 36px; }
.docs-content h2 { margin-top: 48px; padding-top: 12px; border-top: 1px solid var(--line); }
.docs-content h2:first-of-type { border-top: none; padding-top: 0; }
.docs-content h3 { margin-top: 28px; font-size: 1.15rem; }
.docs-content ul, .docs-content ol { padding-left: 22px; }
.docs-content li { margin: 6px 0; }
.docs-content code {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 6px; font-size: .9em; font-family: "SFMono-Regular", Consolas, monospace; color: var(--teal-darker);
}
.docs-content pre {
  background: var(--ink); color: #e6eef1; border-radius: 10px; padding: 16px 18px; overflow-x: auto; font-size: .9rem;
}
.docs-content pre code { background: none; border: none; color: inherit; padding: 0; }
.callout {
  background: var(--bg-soft); border-left: 4px solid var(--teal); border-radius: 8px;
  padding: 14px 18px; margin: 22px 0; color: var(--ink);
}
.callout strong { color: var(--teal-dark); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 18px 0; }
th, td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: .96rem; }
th { background: var(--bg-soft); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; }
}
@media (max-width: 620px) {
  .nav-links { gap: 14px; }
  .nav-links a.hide-sm { display: none; }
  .features, .steps, .pricing { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}
