/* lp.css — landing/SEO pages for floorplaneditor.com
   Tokens copied 1:1 from webeditor/style.css so the marketing pages and the
   editor read as one product. Self-contained: no @import, no web fonts, no
   external requests of any kind (CSP- and GDPR-friendly). */

:root {
  --bg:            #f4f5f7;
  --panel:         #ffffff;
  --ink:           #1d2330;
  --ink-soft:      #5b6473;
  --line:          #e2e5ea;
  --line-strong:   #c9ced6;
  --accent:        #2f6fed;
  --accent-ink:    #ffffff;
  --accent-soft:   #eaf1ff;
  --danger:        #d4493a;
  --ok:            #1f9d63;

  --shadow: 0 1px 2px rgba(20,30,55,.06), 0 4px 16px rgba(20,30,55,.08);
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 68rem;
}

* { box-sizing: border-box; }

html {
  /* No JS scroll handlers anywhere: the TOC uses native anchor scrolling and
     scroll-padding keeps the sticky header from covering the target heading. */
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

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

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

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #2660d8; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--panel); color: var(--ink);
  padding: 10px 16px; border-radius: var(--radius); z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.head-row {
  display: flex; align-items: center; gap: 18px;
  min-height: 60px; padding-top: 8px; padding-bottom: 8px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand-mark { display: block; width: 32px; height: 32px; border-radius: 8px; flex: 0 0 auto; }
.brand-name { font-weight: 700; letter-spacing: .2px; font-size: 16px; }

.head-nav { display: flex; gap: 16px; flex-wrap: wrap; flex: 1 1 auto; }
.head-nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 600; }
.head-nav a:hover { color: var(--ink); text-decoration: underline; }

.head-cta { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.lang-switch { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.lang-switch a, .lang-switch span {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .4px;
  padding: 4px 7px; border-radius: 6px; text-decoration: none;
  color: var(--ink-soft); border: 1px solid var(--line);
}
.lang-switch a:hover { background: var(--accent-soft); color: var(--accent); }
.lang-switch [aria-current="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
  border: 1px solid var(--line-strong);
  background: var(--panel); color: var(--ink);
  border-radius: 8px; padding: 9px 15px; cursor: pointer;
  text-decoration: none;
  transition: background .12s, border-color .12s;
}
.btn:hover { background: #f0f2f6; color: var(--ink); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: #2660d8; color: var(--accent-ink); }
.btn-ghost { background: transparent; }
.btn-lg { font-size: 16px; padding: 12px 22px; border-radius: var(--radius); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 13px; color: var(--ink-soft); margin: 20px 0 4px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li::after { content: "›"; margin-left: 6px; color: var(--line-strong); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Document ---------- */
.doc { max-width: 46rem; margin: 0 auto 64px; }
.doc-index { max-width: 60rem; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: var(--accent); margin: 24px 0 6px;
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem);
  line-height: 1.15; letter-spacing: -.02em; margin: 0 0 16px; font-weight: 700;
}
h2 {
  font-size: clamp(1.25rem, 1.05rem + .9vw, 1.6rem);
  line-height: 1.25; letter-spacing: -.01em; margin: 40px 0 12px; font-weight: 700;
}
h3 { font-size: 1.05rem; margin: 24px 0 8px; font-weight: 700; }

p { margin: 0 0 16px; }

.lead p { font-size: 1.075rem; color: var(--ink-soft); }
.lead p:first-child { color: var(--ink); }

.doc ul, .doc ol { margin: 0 0 16px; padding-left: 1.35em; }
.doc li { margin-bottom: 6px; }

.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 1.6em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
}

/* ---------- Table of contents ---------- */
.toc {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 20px 12px; margin: 28px 0 8px;
}
.toc-title {
  font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 8px;
}
.toc ol { margin: 0; padding-left: 1.2em; font-size: 15px; }
.toc li { margin-bottom: 4px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ---------- Sections / FAQ ---------- */
.sec { margin-top: 8px; }

.faq { margin-top: 40px; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 18px 0 2px;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; }

/* ---------- CTA ---------- */
.cta-card {
  margin: 48px 0 8px; padding: 24px;
  background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.cta-card h2 { margin-top: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 0; }
.cta-row-top { margin: 0 0 8px; }

/* ---------- Tool callout ---------- */
.tool-card {
  margin: 36px 0; padding: 20px 22px;
  background: var(--accent-soft, #eaf1ff);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.tool-card h2 { margin: 2px 0 8px; font-size: 1.15rem; }
.tool-card p { margin: 0 0 12px; }
.tool-card p:last-child { margin-bottom: 0; }
.tool-kicker {
  margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft, #4f5a6b);
}

/* ---------- Card lists ---------- */
.card-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.card-list-wide { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.card {
  display: block; height: 100%;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
  text-decoration: none; color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: var(--ink); }
.card-title { font-weight: 700; font-size: 15px; line-height: 1.3; display: block; margin-bottom: 4px; }
.card-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; display: block; }

/* ---------- Hub family blocks ---------- */
.family-block { margin-top: 44px; }
.family-block > p { color: var(--ink-soft); max-width: 46rem; }

/* ---------- Footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 36px 0 28px; margin-top: 40px;
  font-size: 14px;
}
.foot-cols {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.foot-cols h2 {
  font-size: 12px; letter-spacing: .6px; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 10px;
}
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { margin-bottom: 6px; }
.foot-cols a { color: var(--ink-soft); text-decoration: none; }
.foot-cols a:hover { color: var(--accent); text-decoration: underline; }
.foot-note { color: var(--ink-soft); font-size: 13px; margin: 28px 0 0; }

/* ---------- Figure ----------
   The export itself, directly under the lead. Before this the guide pages had
   no images at all — 60 of 61 German pages — which for a product whose whole
   output is a picture was the biggest single gap on the site. The <img> carries
   width/height so the box is reserved and the text below never jumps. */
.figure { margin: 26px 0 30px; }
.figure img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule, #e5e7eb); border-radius: 10px;
  background: #fff;
}
.figure figcaption {
  margin-top: 10px; color: var(--ink-soft); font-size: 14px; line-height: 1.55;
}
.figure .figure-pdf { color: var(--accent); text-decoration: none; white-space: nowrap; }
.figure .figure-pdf:hover { text-decoration: underline; }
/* The photo -> plan pair reads as before/after, so it sits side by side where
   there is room and stacks where there is not. */
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.figure-pair figcaption { grid-column: 1 / -1; margin-top: 4px; }
@media (max-width: 640px) {
  .figure-pair { grid-template-columns: 1fr; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
      transition-duration: .001ms !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .head-nav { order: 3; width: 100%; gap: 12px; }
  .head-cta { margin-left: 0; }
  .doc { margin-bottom: 40px; }
}

@media print {
  .site-head, .site-foot, .cta-card, .tool-card, .toc, .crumbs, .related { display: none; }
  body { background: #fff; font-size: 12pt; }
}
