:root {
  --ink: #15181d;
  --muted: #5a616b;
  --bg: #ffffff;
  --alt: #f4f5f7;
  --line: #e2e5ea;
  --accent: #f28c1e;      /* Orange aus dem Pinspect-Logo */
  --accent-dark: #c96d08;
  --yellow: #ffd21f;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.narrow { max-width: 680px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand img { height: 40px; width: auto; }
.nav { display: none; gap: 24px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-dark); }
.lang { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 700; font-size: .9rem; text-decoration: none; }
.lang:hover { border-color: var(--accent); }

/* Buttons: groß genug zum Tippen */
.btn { display: inline-block; min-height: 48px; padding: 12px 24px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--accent); }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,16,.88) 0%, rgba(10,12,16,.65) 55%, rgba(10,12,16,.25) 100%); }
.hero-text { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; }
.hero-text h1, .hero-text .lead { max-width: 640px; }
.hero .lead { color: #e6e8eb; }
.eyebrow { color: var(--yellow); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Abschnitte */
.section { padding: 64px 0; }
.alt { background: var(--alt); }
.pains { border-bottom: 1px solid var(--line); padding: 32px 0; }
.pains strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.pains p { color: var(--muted); margin: 0; }

.grid-2, .grid-3 { display: grid; gap: 24px; }
.cards { margin-top: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--muted); margin: 0; }
.note { color: var(--muted); margin-top: 20px; }

/* Schnittstellen-Shop */
.eyebrow-dark { color: var(--accent-dark); }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.badge.ok { background: #e3f5ec; color: #1d7a4e; }
.badge.test { background: #fff1dc; color: #a35a00; }
.badge.plan { background: #eceef2; color: #4a515b; }
.core { border-color: var(--accent); border-width: 2px; }
.core p { color: var(--ink); }
.shop-title { margin-top: 48px; }
.shop-title.first { margin-top: 0; }
.shop .card { display: flex; flex-direction: column; }
.shop .badge { align-self: flex-start; }
.shop .card p { margin-bottom: 12px; }
.shop .price { font-weight: 700; color: var(--ink); margin-top: auto; font-size: 1.2rem; }
.price small { display: block; font-size: .85rem; font-weight: 400; color: var(--muted); }
.core-price { font-weight: 700; font-size: 1.2rem; margin: 12px 0 0; }
.shop .btn { text-align: center; }
.btn-outline { background: transparent; color: var(--accent-dark); }
.btn-outline:hover { color: #fff; }

.split { display: grid; gap: 32px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.features, .steps { margin: 0; padding: 0; }
.features { list-style: none; }
.features li { padding: 12px 0 12px 38px; border-bottom: 1px solid var(--line); position: relative; }
/* Codex-Symbole, vorab in Akzentfarbe eingefärbt (Masken gehen per file:// nicht) */
.features li::before { content: ""; position: absolute; left: 0; top: 13px; width: 24px; height: 24px; background: center / contain no-repeat; }
.features .s-offline::before { background-image: url(img/sym/offline.png); }
.features .s-pins::before { background-image: url(img/sym/pins.png); }
.features .s-measure::before { background-image: url(img/sym/measure.png); }
.features .s-photo::before { background-image: url(img/sym/photo.png); }
.features .s-signature::before { background-image: url(img/sym/signature.png); }
.features .s-call::before { background-image: url(img/sym/call.png); }
.features .s-browser::before { background-image: url(img/sym/browser.png); }
.features .s-form::before { background-image: url(img/sym/form.png); }
.features .s-planreport::before { background-image: url(img/sym/planreport.png); }
.features .s-worklog::before { background-image: url(img/sym/worklog.png); }
.features .s-material::before { background-image: url(img/sym/material.png); }
.features .s-roles::before { background-image: url(img/sym/roles.png); }
.features .s-workflow::before { background-image: url(img/sym/workflow.png); }
.features .s-pricelist::before { background-image: url(img/sym/pricelist.png); }
.ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding: 20px 0; border-top: 1px solid var(--line); }
.ask p { margin: 0; }
.features.cols li { break-inside: avoid; }
.steps { padding-left: 1.4em; }
.steps li { margin-bottom: 12px; }

.cta { background: var(--ink); color: #fff; text-align: center; }
.cta .lead { color: #c9cdd3; margin-left: auto; margin-right: auto; }
.cta-price { color: #fff; margin-bottom: 24px; }
.cta-price a { color: var(--yellow); }
.grid-3.plans { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
.plans .card { text-align: center; padding: 22px 10px 16px; }
.plans .popular { border-color: var(--ink); }
.plans .card { position: relative; }
.plans .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap; }
.plan-price { font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 800; color: var(--ink) !important; margin: 4px 0 0 !important; }
.addon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.addon h3 { margin-bottom: 4px; }
.plan-btn { margin-top: 12px; }
.plan-free { display: inline-block; margin: 10px 0 0 !important; padding: 2px 10px; border-radius: 999px; background: #e3f5ec; color: #1d7a4e !important; font-size: .85rem; font-weight: 700; }
.plan-storage { margin: 10px 0 0 !important; font-weight: 700; color: var(--accent-dark) !important; }
.plan-price small { display: block; font-size: .95rem; font-weight: 400; color: var(--muted); }
.store-soon { display: inline-block; min-height: 48px; padding: 12px 24px; border-radius: 12px; border: 2px dashed var(--line); color: var(--muted); font-weight: 700; margin: 8px 0 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 24px 0; font-size: .95rem; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { color: var(--muted); white-space: nowrap; }
.foot-in + .foot-in { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.store-foot { min-height: 0; padding: 6px 14px; font-size: .9rem; margin: 0; }

/* Rechtstexte */
.legal { padding: 48px 0 64px; max-width: 760px; }
.todo { background: #fff6d6; border: 1px solid var(--yellow); border-radius: 8px; padding: 12px 16px; }

/* Handy: Reiter als wischbare Leiste unter dem Kopf */
@media (max-width: 759px) {
  html { scroll-padding-top: 112px; }
  .top-in { flex-wrap: wrap; row-gap: 0; }
  .nav { display: flex; order: 5; width: 100%; gap: 20px; overflow-x: auto; white-space: nowrap; padding: 0 0 10px; font-size: .95rem; }
  .nav a[aria-current="page"] { color: var(--accent-dark); }
  .plan-storage { font-size: .85rem; }
}

@media (min-width: 760px) {
  .nav { display: flex; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 48px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split-rev > img { order: 2; }
  .features.cols { columns: 2; column-gap: 48px; }
}
@media (min-width: 1000px) {
  .grid-3.plans { grid-template-columns: repeat(4, 1fr); }
  .hero-text { padding-top: 140px; padding-bottom: 140px; }
  .section { padding: 96px 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Shop in der Kopfzeile: Anmelden/Konto und Warenkorb (auch auf dem Handy sichtbar) */
.shop-account { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.shop-account:hover, .shop-cart:hover { color: var(--accent-dark); }
.shop-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--ink); }
.cart-count { position: absolute; top: 2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; line-height: 20px; text-align: center; }
.cart-count[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 400px) { .top-in { gap: 10px; } .brand img { height: 34px; } }
