/* tischweb.de homepage + /entwickler (2026-10 rework). Standalone: does not use index-critical.css. */
:root {
  --paper: #ffffff;
  --ink: #222220;
  --muted: #4d5149;
  --line: #dcdfd8;
  --accent: #c44b2b;
  --accent-dark: #a33c20;
  --accent-tint: #fbefea;
  --chili: #7a1f14;
  --bon: #fbfbf8;
  --maxw: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 10px;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-size: 17px; line-height: 1.6; font-weight: 300; color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
strong, b { font-weight: 600; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 4rem); max-width: 15ch; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.6rem); max-width: 30ch; }
h3 { font-size: 1.15rem; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 64ch; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 50; }
.lead { font-size: clamp(1.1rem, 1.3vw, 1.25rem); color: #3a3d37; max-width: 60ch; }
.small { font-size: .9rem; color: var(--muted); }
section { padding: clamp(72px, 9vw, 128px) 0; }
section + section { border-top: 1px solid var(--line); }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px; font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-quiet { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; min-height: 72px; }
.site-head .site-brand { justify-self: start; }
.site-head nav { display: flex; gap: clamp(20px, 2.6vw, 40px); justify-self: center; }
.site-head nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-head nav a:hover { color: var(--accent); }
.head-actions { display: flex; gap: 20px; align-items: center; justify-self: end; }
.head-actions .btn { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.head-login { color: var(--ink); font-weight: 500; text-decoration: none; font-size: .95rem; }
@media (max-width: 860px) {
  .site-head .wrap { grid-template-columns: auto 1fr; }
  .site-head nav { display: none; }
}

/* Hero */
.hero { padding: clamp(56px, 7vw, 104px) 0 clamp(72px, 8vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
.hero .lead { margin-top: 18px; }
.hero-note { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.dev-hint { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); max-width: 52ch; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Receipt (the one memorable element) */
.bon { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .86rem; line-height: 1.55; background: var(--bon); border: 1px solid var(--line); padding: 30px 28px 34px; max-width: 420px; font-size: .92rem; justify-self: center; width: 100%; position: relative; box-shadow: 0 18px 40px -24px rgba(34,34,32,.35); transform: rotate(-1.2deg);
  -webkit-mask: radial-gradient(circle 6px at 6px 100%, transparent 98%, #000) 0 0 / 12px 100% repeat-x; mask: radial-gradient(circle 6px at 6px 100%, transparent 98%, #000) 0 0 / 12px 100% repeat-x; }
@media (prefers-reduced-motion: reduce) { .bon { transform: none; } }
.bon-title { text-align: center; font-weight: 700; margin: 0 0 2px; max-width: none; }
.bon-sub { text-align: center; color: var(--muted); margin: 0 0 14px; max-width: none; }
.bon hr { border: 0; border-top: 1px dashed #b9bdb5; margin: 10px 0; }
.bon-row { display: flex; justify-content: space-between; gap: 12px; }
.bon-row span:last-child { white-space: nowrap; }
.bon-row span:first-child { min-width: 0; }
@media (max-width: 480px) { .bon { font-size: .8rem; padding: 24px 18px 28px; transform: none; } }
.bon-total { font-weight: 700; font-size: .95rem; }
.bon-keep { font-weight: 700; font-size: .98rem; }
.bon-alt { color: var(--muted); }
.bon-head { margin: 0 0 2px; max-width: none; }
.bon-foot { margin: 14px 0 0; color: var(--muted); font-size: .78rem; max-width: none; }

/* Steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 72px); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.steps p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 28px; } }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); margin-top: 72px; align-items: start; }
.shots figure { margin: 0; }
.shots img { border: 1px solid var(--line); border-radius: var(--radius); background: #f3f4f1; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
.shots img.shot-right { object-position: right top; }
.shots figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }

/* Two paths */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 40px; border-top: 2px solid var(--ink); }
.path { padding: 36px clamp(32px, 4vw, 72px) 8px 0; }
.path + .path { padding: 36px 0 8px clamp(32px, 4vw, 72px); border-left: 1px solid var(--line); }
.path ul { padding-left: 1.1em; margin: 0 0 18px; }
.path li { margin-bottom: 6px; }
.path .price { font-weight: 600; }
@media (max-width: 760px) {
  .paths { grid-template-columns: 1fr; }
  .path, .path + .path { padding: 24px 0; border-left: 0; }
  .path + .path { border-top: 1px solid var(--line); }
}

/* Reference (Nora) */
.ref blockquote { margin: 24px 0 0; font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 500; line-height: 1.4; max-width: 34ch; }
.ref cite { display: block; margin-top: 16px; font-style: normal; font-size: 1rem; color: var(--muted); }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); margin-top: 36px; align-items: start; }
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; gap: 36px; } }
.field { margin-bottom: 26px; }
.field label, .field legend { display: flex; justify-content: space-between; font-weight: 500; margin-bottom: 8px; padding: 0; }
.field output { font-weight: 700; }
.field input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; }
fieldset.field { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { display: inline-flex; margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 500; font-size: .95rem; }
.seg input:checked + span { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-dark); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.result { border-top: 2px solid var(--ink); }
.result-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.result-row .val { font-weight: 700; font-size: 1.35rem; white-space: nowrap; }
.result-row small { display: block; color: var(--muted); font-size: .85rem; }
.result-row.platform .val { color: var(--ink); }
.result-row.diff .val { font-size: 2rem; }
.calc-note { margin-top: 18px; font-size: .85rem; color: var(--muted); }

/* Pricing */
.plan-group { margin-top: 56px; max-width: 70ch; }
.plan-group h3 { font-size: 1.3rem; margin-bottom: 6px; }
.plan-group p { color: var(--muted); margin: 0; }
.plan-group + .plans { margin-top: 20px; }
.plans-pro { border-top: 0; }
.plans { margin-top: 36px; border-top: 2px solid var(--ink); }
.plan { display: grid; grid-template-columns: minmax(220px, 1fr) 2.2fr minmax(200px, .8fr); gap: clamp(28px, 4vw, 64px); padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start; }
.plan h3 { margin-bottom: 4px; }
.plan .amount { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.plan .per { font-size: .9rem; color: var(--muted); }
.plan ul { margin: 0; padding-left: 1.1em; columns: 2; column-gap: 48px; }
.plan li { margin-bottom: 4px; break-inside: avoid; }
.plan .btn { width: 100%; }
.plan-pro { background: var(--accent-tint); padding: 36px 24px; margin: 0 -24px; border-bottom: 0; border-radius: var(--radius); }
.term { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 10px 0 6px; background: var(--paper); }
.term button { white-space: nowrap; font: inherit; font-size: .85rem; font-weight: 500; border: 0; background: transparent; padding: 0 12px; min-height: 44px; cursor: pointer; color: var(--ink); }
.term button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.plan-err { color: var(--chili); font-size: .9rem; margin-top: 8px; }
@media (max-width: 900px) {
  .plan { grid-template-columns: 1fr; gap: 14px; }
  .plan ul { columns: 1; }
  .plan .btn { width: auto; }
  .plan-pro { margin: 0 -12px; padding: 28px 12px; }
}
.plans-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px); margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.plans-facts dt { font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.plans-facts dd { margin: 0; font-size: .9rem; color: var(--muted); font-weight: 400; }
@media (max-width: 900px) { .plans-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .plans-facts { grid-template-columns: 1fr; } }
.plans-note { margin-top: 20px; font-size: .9rem; color: var(--muted); }

/* People */
.people { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.people address { font-style: normal; line-height: 1.9; }
.people address a { font-weight: 600; }
.people address { order: -1; }
@media (max-width: 860px) { .people { grid-template-columns: 1fr; gap: 28px; } .people address { order: 0; } }

/* FAQ */
#faq h2 { text-align: center; margin-left: auto; margin-right: auto; }
.faq { margin: 36px auto 0; border-top: 2px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.4rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.cf .fr { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .cf .fr { grid-template-columns: 1fr; } }
.cf .ff { display: flex; flex-direction: column; margin-bottom: 16px; }
.cf label { font-weight: 500; font-size: .95rem; margin-bottom: 6px; }
.cf input, .cf textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #b9bdb5; border-radius: 8px; min-height: 48px; background: #fff; color: var(--ink); }
.cf textarea { min-height: 120px; resize: vertical; }
.cf input:focus, .cf textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-tint); }
.cf .cf-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); margin: 4px 0 18px; }
.cf .cf-consent input { min-height: 0; margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.nf-sr { position: absolute !important; left: -9999px !important; }
.ferr, #pg-demo-contact-errors:not(:empty) { color: var(--chili); font-size: .9rem; margin-bottom: 12px; }
.fnote { font-size: .88rem; color: var(--muted); margin-top: 12px; }

/* Code (entwickler) */
pre.code { background: #1f2421; color: #e8ece6; padding: 20px 22px; border-radius: var(--radius); overflow-x: auto; font-size: .85rem; line-height: 1.6; margin: 18px 0 8px; }
pre.code code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.code-cap { font-size: .88rem; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 96px); margin-top: 32px; }
.split > *, .calc-grid > *, .hero-grid > *, .contact-grid > *, .people > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.builders { columns: 3; column-gap: 28px; padding-left: 1.1em; margin-top: 16px; }
@media (max-width: 700px) { .builders { columns: 2; } }
.status { display: inline-block; font-size: .85rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-dark); }
.status.later { background: #f1efe9; color: #6b5d3e; }
table.facts { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: .97rem; }
table.facts th, table.facts td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.facts th { font-weight: 600; width: 34%; }
@media (max-width: 600px) { table.facts th, table.facts td { display: block; width: auto; } table.facts th { border-bottom: 0; padding-bottom: 2px; } }

/* Footer */
.site-foot { background: #1e1c1a; color: #c9c5bf; padding: clamp(56px, 7vw, 88px) 0 32px; font-size: .95rem; }
.site-foot a { color: #f2efea; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.foot-brand img { height: 26px; width: auto; margin-bottom: 18px; }
.foot-brand p { max-width: 34ch; margin-bottom: 14px; }
.site-foot nav { display: flex; flex-direction: column; gap: 0; }
.site-foot nav a { display: flex; align-items: center; min-height: 44px; }
.site-foot nav h2 { font-size: .95rem; font-weight: 600; color: #fff; margin: 0 0 6px; letter-spacing: 0; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid #3a3734; font-size: .88rem; color: #a39e97; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Touch targets: >=44px hit area on small links without changing layout (inline padding does not affect line boxes). */
.site-head nav a, .head-login { padding-block: 12px; }
.hero-note a, .shots figcaption a, #wir address a, #kontakt p a, .cf-consent a { padding-block: 12px; }

/* Weight 300 renders too thin below 16px; small text uses 400. */
.hero-note, .bon-foot, .shots figcaption, .calc-note, .plan .per, .plans-note, .result-row small, .site-foot, .foot-bottom { font-weight: 400; }

/* Subpages on the 2026-10 design: city lokaler-markt block (markup from build-cities.js), city pills, 404 links, legal pages */
.lokaler-markt { padding: clamp(40px, 5vw, 64px) 0; }
.lokaler-markt-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.lokaler-markt .sec-ey { font-weight: 600; margin-bottom: 8px; }
.lokaler-markt-text { color: #3a3d37; }
.lokaler-markt-stat { color: var(--muted); font-size: .95rem; }
.lokaler-markt-figure { font-weight: 700; color: var(--ink); }
.lokaler-markt-source { font-size: .85rem; }
.city-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tw-city-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; }
.tw-city-pill:hover { border-color: var(--ink); color: var(--ink); }
.tw-city-pill-arrow { color: var(--muted); }
ul.city-links { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
ul.city-links a { display: inline-flex; align-items: center; min-height: 44px; }
.legal-shell { max-width: 860px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.legal-shell section { padding: 0; border-top: 0; }
.legal-lead { color: var(--muted); }
.legal-grid { margin-top: 32px; border-top: 2px solid var(--ink); }
.legal-card { padding: 28px 0; border-bottom: 1px solid var(--line); }
.legal-card h2 { font-size: 1.35rem; }
.legal-subhead { font-weight: 600; margin: 20px 0 4px; }
.legal-card p, .legal-card li { max-width: 72ch; }
.plans-note a, .calc-note a, .faq p a, .foot-brand a, .legal-card a, .site-brand { padding-block: 12px; }
.site-brand, .foot-brand > a:first-child { display: inline-block; padding-block: 9px; }
.after-split { margin-top: 32px; }
.split h3 { margin-bottom: 8px; }
:not(pre) > code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .88em; background: #f1f2ee; padding: 1px 5px; border-radius: 4px; }
table.facts th code { white-space: nowrap; }
