/* Gewerke-, Städte- und Ratgeberseiten. Grundlage sind die Tokens und
   Bausteine der Startseite (website/index.html), damit beides aus einem Guss wirkt. */
:root {
  --acc: #e85d04; --acc-d: #ff7c20; --steel: #1b1f26; --steel2: #14171c;
  --ink: #15181d; --muted: #5d6470; --faint: #9aa1ab;
  --line: #e7e9ee; --paper: #f5f6f8; --panel: #fff;
  --good: #1f9d57;
  --r: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Hanken Grotesk", system-ui, sans-serif; color: var(--ink); background: var(--panel); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.ovl { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

.btn { display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 22px; border-radius: 11px; font-weight: 700; font-size: 15px; cursor: pointer; border: none; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-p { background: var(--acc); color: #fff; box-shadow: 0 6px 18px rgba(232,93,4,.30); }
.btn-p:hover { filter: brightness(1.05); }
.btn-g { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-g:hover { border-color: #cfd4db; }
.btn-w { background: #fff; color: var(--ink); }

.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.logo svg { width: 34px; height: 34px; }

nav.bar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar .row { display: flex; align-items: center; gap: 30px; height: 72px; }
.bar .links { display: flex; gap: 28px; margin-left: 18px; }
.bar .links a { font-size: 14.5px; font-weight: 500; color: var(--muted); }
.bar .links a:hover, .bar .links a[aria-current] { color: var(--ink); }
.bar .sp { flex: 1; }
.bar .act { display: flex; align-items: center; gap: 14px; }
.bar .act .ghost { font-size: 14.5px; font-weight: 600; }

/* Kopf */
.phero { padding: 40px 0 44px; background: radial-gradient(900px 420px at 85% -20%, rgba(232,93,4,.09), transparent 60%), linear-gradient(180deg, var(--paper), #fff 85%); border-bottom: 1px solid var(--line); }
.phero h1 { font-size: 46px; line-height: 1.07; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 0; max-width: 860px; text-wrap: balance; }
.phero .lead { font-size: 18.5px; line-height: 1.6; color: var(--muted); margin: 18px 0 0; max-width: 720px; }
.phero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.phero .stand { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); font-family: "IBM Plex Mono", monospace; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--faint); margin-bottom: 26px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* Inhalt + Randspalte */
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; padding-top: 56px; padding-bottom: 40px; align-items: start; }
.prose { max-width: 740px; font-size: 17px; line-height: 1.72; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 29px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; margin: 52px 0 0; scroll-margin-top: 90px; }
.prose h3 { font-size: 20px; line-height: 1.3; font-weight: 700; margin: 32px 0 0; scroll-margin-top: 90px; }
.prose p, .prose ul, .prose ol { margin: 16px 0 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--acc); }
.prose a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 26px 0 0; padding: 18px 22px; border-left: 4px solid var(--acc); background: rgba(232,93,4,.06); border-radius: 0 12px 12px 0; }
.prose blockquote p:first-child { margin-top: 0; }
.prose code { font-family: "IBM Plex Mono", monospace; font-size: .88em; background: var(--paper); padding: 2px 6px; border-radius: 6px; }
.tbl { overflow-x: auto; margin: 22px 0 0; border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--paper); font-weight: 700; font-size: 13.5px; }
.prose tr:last-child td { border-bottom: none; }

.toc { border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; background: var(--paper); margin-bottom: 36px; }
.toc ol { margin: 10px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.toc li { margin: 6px 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--acc); }

.side { position: sticky; top: 96px; }
.sidebox { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: #fff; box-shadow: 0 18px 44px rgba(20,24,33,.08); }
.sidebox b { display: block; font-size: 18px; line-height: 1.35; margin: 10px 0 0; letter-spacing: -.01em; }
.sidebox ul { list-style: none; padding: 0; margin: 16px 0 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.sidebox li { display: flex; gap: 10px; align-items: flex-start; }
.sidebox li i { width: 20px; height: 20px; border-radius: 6px; background: rgba(31,157,87,.12); color: var(--good); display: grid; place-items: center; flex: 0 0 20px; margin-top: 1px; }
.sidebox li svg { width: 12px; height: 12px; }
.sidebox .btn { width: 100%; justify-content: center; }
.sidebox small { display: block; text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 10px; }

/* FAQ */
.faq { margin-top: 56px; }
.faq h2 { margin-bottom: 18px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; font-size: 16.5px; line-height: 1.45; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 13px; font-size: 22px; font-weight: 500; color: var(--acc); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 16px; }
.faq details > div > :first-child { margin-top: 0; }

/* Weiterführend */
.more { padding: 24px 0 72px; }
.more h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 44px 0 18px; }
.hub { padding-top: 56px; }
.hub .intro { margin-bottom: 12px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 46px; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: #d5d9e0; box-shadow: 0 14px 34px rgba(20,24,33,.08); transform: translateY(-2px); }
.card b { font-size: 18px; letter-spacing: -.01em; }
.card > span:not(.ovl) { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.card i { position: absolute; left: 22px; bottom: 18px; color: var(--acc); }
.card i svg { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { font-size: 14px; font-weight: 600; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.chips a:hover { border-color: var(--acc); color: var(--acc); }

/* Abschluss */
.cta-wrap { padding: 0 0 88px; }
.ctaband { background: linear-gradient(120deg, var(--acc), #ff8a35); color: #fff; border-radius: 24px; padding: 56px; text-align: center; }
.ctaband h2 { font-size: 34px; font-weight: 800; letter-spacing: -.025em; margin: 0; }
.ctaband p { font-size: 17px; opacity: .92; margin: 14px 0 28px; }
.ctaband .btn svg { width: 18px; height: 18px; }

footer { background: var(--steel2); color: #c4cad3; padding: 56px 0 30px; }
footer .row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
footer .logo { color: #fff; }
footer h4 { color: #fff; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 14px; font-family: "IBM Plex Mono", monospace; }
footer a { display: block; font-size: 14px; color: #9aa1ab; margin-bottom: 9px; }
footer a:hover { color: #fff; }
footer .fcols { display: grid; grid-template-columns: 1fr 2fr 1.4fr; gap: 30px; margin-top: 44px; padding-top: 34px; border-top: 1px solid #2a2f38; }
footer .fcols > div:nth-child(2) { columns: 2; column-gap: 30px; }
footer .fcols > div:nth-child(2) h4 { column-span: all; }
footer .legal { border-top: 1px solid #2a2f38; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; font-size: 12.5px; color: #79808b; flex-wrap: wrap; gap: 10px; }

@media (max-width: 1020px) {
  .pgrid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .side { position: static; }
  .sidebox { max-width: 420px; }
}
@media (max-width: 920px) {
  .bar .links { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer .row, footer .fcols { grid-template-columns: 1fr 1fr; }
  .phero h1 { font-size: 36px; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .bar .row { gap: 12px; }
  .bar .act .ghost { display: none; }
  .bar .btn { height: 40px; padding: 0 14px; font-size: 14px; }
  .phero h1 { font-size: 30px; }
  .phero .lead { font-size: 17px; }
  .prose { font-size: 16.5px; }
  .prose h2 { font-size: 24px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  footer .row, footer .fcols { grid-template-columns: minmax(0, 1fr); }
  .ctaband { padding: 40px 22px; }
  .ctaband h2 { font-size: 26px; }
}
