/* Perimea Desk — Kaufseite. Gestaltung wie Startseite / lizenz.html (CI). */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --brand: #2D5F2D; --brand-700: #234B23; --brand-900: #122612; --brand-400: #4CAF50;
  --ink: #0F1B12; --body: #41504A; --muted: #6B7A72; --line: #E4EAE4;
  --bg: #FFFFFF; --bg-soft: #F4F8F4; --bg-tint: #EAF3EA; --err: #C62828;
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 6px 24px rgba(18,38,18,0.07); --shadow-lg: 0 24px 60px rgba(18,38,18,0.16);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--body); line-height: 1.6; background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.02em; line-height: 1.15; }
a { color: var(--brand); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; gap: 16px; height: 64px; max-width: 1140px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand .mark { width: 30px; height: 30px; flex: 0 0 auto; }
.nav-actions { margin-left: auto; }
.lang-toggle { background: none; border: 1px solid var(--line); color: var(--body); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.lang-toggle:hover { border-color: var(--brand); color: var(--brand); }

/* Kopf */
.head { padding: 56px 0 36px; background: radial-gradient(ellipse 80% 70% at 50% 0%, var(--bg-tint), transparent 70%); }
.eyebrow, .pkicker { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.head h1 { white-space: pre-line; font-size: clamp(32px, 5vw, 50px); font-weight: 800; margin-bottom: 16px; max-width: 820px; }
.head .lead { font-size: 18px; max-width: 720px; }
.notice { border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14.5px; margin-top: 18px; border: 1px solid; max-width: 720px; }
.notice.ok { background: var(--bg-tint); border-color: #CFE4CF; color: var(--brand-700); }

/* Kaufbestätigung nach Rückkehr aus der Kasse */
.result { scroll-margin-top: 84px; background: var(--bg); border: 2px solid var(--brand); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 30px 32px; margin-bottom: 40px; outline: none; }
.result .tick { width: 52px; height: 52px; border-radius: 50%; background: var(--bg-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.result h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 8px; }
.result .ref { display: inline-block; font-family: var(--mono); font-size: 16px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 6px 14px; margin: 10px 0 4px; }
.result-steps { list-style: none; counter-reset: rs; margin: 16px 0 12px; display: grid; gap: 10px; }
.result-steps li { counter-increment: rs; display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink); }
.result-steps li::before { content: counter(rs); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 800; flex: 0 0 auto; margin-top: 1px; }
.result.cancelled { border-color: var(--line); box-shadow: var(--shadow); }
.result.cancelled .tick { display: none; }

/* Preiskarten (wie Startseite) */
main { padding: 8px 0 80px; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 18px; }
.price { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: var(--bg); position: relative; display: flex; flex-direction: column; }
.price.feat { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.price.feat::before, .price.consult::before { content: attr(data-tag); position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 16px; border-radius: 999px; }
.price.consult { border: 2px solid var(--ink); }
.price.consult::before { background: var(--ink); }
.price .pname { font-size: 21px; font-weight: 800; color: var(--ink); }
.price .pamt { font-size: 38px; font-weight: 900; color: var(--brand); margin-top: 6px; }
.price .pamt span { font-size: 16px; font-weight: 500; color: var(--muted); }
.price .pper { font-size: 15px; color: var(--muted); margin: 6px 0 20px; }
.price ul { list-style: none; margin-bottom: 26px; flex: 1; }
.price li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 15px; color: var(--body); border-bottom: 1px solid var(--line); }
.price li:last-child { border: none; }
.price li svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 3px; }
.price li .yes { color: var(--brand-400); }
.pbtn { display: block; width: 100%; text-align: center; padding: 14px; border-radius: 12px; border: none; font: inherit; font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.pbtn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pbtn.solid { background: var(--brand); color: #fff; }
.pbtn.solid:hover:not(:disabled) { background: var(--brand-700); }
.pbtn.dark { background: var(--ink); color: #fff; }
.pbtn:disabled { opacity: .6; cursor: wait; }
.tax { font-size: 13.5px; color: var(--muted); text-align: center; margin: 16px 0 40px; }

/* Projekt-Pass */
.price.addon { background: var(--bg-soft); }
.addon-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.addon-head .pamt { margin-top: 0; white-space: nowrap; }
.addon p { margin-bottom: 8px; max-width: 760px; }
.pass-form { display: grid; gap: 10px; max-width: 560px; margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.lbl { font-size: 14px; font-weight: 700; color: var(--ink); }
.pass-form input[type=file] { font: inherit; font-size: 14.5px; padding: 10px; border: 1px dashed #C5D3C5; border-radius: 10px; background: var(--bg); }
.hint { font-size: 13.5px; color: var(--muted); }
.status { font-size: 14.5px; font-weight: 600; min-height: 1em; }
.status.err { color: var(--err); }

/* Ablauf */
.steps-sec { margin-top: 56px; }
.steps-sec h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 18px; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { counter-increment: step; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; font-size: 15px; }
.step::before { content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.info { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14.5px; margin-top: 16px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.existing { margin-top: 40px; }
.existing h2 { font-size: 22px; margin-bottom: 8px; }
.existing p { margin-bottom: 10px; }

/* Fuß (wie Startseite) */
.footer { background: var(--brand-900); color: rgba(255,255,255,0.62); padding: 44px 0 30px; text-align: center; }
.footer .fb { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.footer .ft { font-size: 14px; margin-bottom: 22px; }
.footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.footer-links a { color: rgba(255,255,255,0.62); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer .cc { font-size: 12px; opacity: .5; }

@media (max-width: 820px) {
  .container { padding: 0 16px; }
  .head { padding: 36px 0 24px; }
  .pricing-grid, .steps { grid-template-columns: 1fr; }
  .price { padding: 24px 20px; }
  .result { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) { .pbtn { transition: none; } html { scroll-behavior: auto; } }
