/* Liberaler Kompass – Redesign 2 – Entwurf A „Wortlaut“ (ruhig-souverän) */

@font-face { font-family: "LK Serif"; src: url(../../shared/fonts/source-serif-4-latin-opsz-normal.woff2) format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "LK Serif"; src: url(../../shared/fonts/source-serif-4-latin-opsz-italic.woff2) format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "LK Sans"; src: url(../../shared/fonts/public-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #FAF8F2;
  --paper-2: #F1EDE2;
  --white: #FFFFFF;
  --ink: #1B1F2A;
  --muted: #555A66;
  --blue: #1F3FB8;
  --blue-deep: #172F8C;
  --blue-tint: #E9EDFA;
  --yellow: #FFD400;
  --line: #DCD6C8;
  --serif: "LK Serif", Georgia, "Times New Roman", serif;
  --sans: "LK Sans", Arial, Helvetica, sans-serif;
  --head-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 24px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 19px/1.6 var(--serif); font-optical-sizing: auto; overflow-wrap: break-word; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
mark { background: linear-gradient(transparent 52%, var(--yellow) 52%, var(--yellow) 90%, transparent 90%); color: inherit; padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); padding: 10px 14px; font: 600 15px var(--sans); }
.skip:focus { top: 12px; }

.draftnote { background: var(--paper-2); color: var(--muted); font: 400 13px/1.4 var(--sans); text-align: center; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.draftnote a { color: var(--blue); margin-left: .4em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 2px solid var(--blue); border-radius: 3px; background: var(--blue); color: var(--white); font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue-tint); color: var(--blue-deep); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.textlink { font: 600 16px var(--sans); color: var(--blue); }
.textlink::after { content: " →"; }

/* Kopf */
.masthead { position: sticky; top: 0; z-index: 20; background: rgba(250, 248, 242, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.masthead-inner { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font: 600 21px var(--serif); letter-spacing: -.01em; }
.brand-claim { font: 600 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.chips { display: none; }

/* Raster */
.layout { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); }
.rail { position: sticky; top: calc(var(--head-h) + 40px); align-self: start; padding-top: 72px; font-family: var(--sans); }
.rail-title { font: 600 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.rail ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.rail li a { display: flex; gap: 12px; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 3px solid transparent; color: var(--ink); text-decoration: none; font-size: 15px; }
.rail li a span { color: var(--muted); min-width: 26px; font-variant-numeric: tabular-nums; }
.rail li a:hover { color: var(--blue); }
.rail li a[aria-current="true"] { border-left-color: var(--yellow); color: var(--blue); font-weight: 600; }
.rail-goal { margin-top: 36px; padding: 18px 0 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--muted); }
.rail-goal-num { font: 600 52px/1 var(--serif); color: var(--blue); margin: 0 0 6px; letter-spacing: -.02em; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 7vw, 96px); }
.eyebrow { font: 600 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 22px; }
.hero h1 { font-size: clamp(44px, 6.2vw, 88px); line-height: 1.02; letter-spacing: -.025em; font-variation-settings: "opsz" 60; margin-bottom: 28px; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; color: var(--ink); max-width: 36em; margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.sheet { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 2px; padding: 26px 26px 22px; box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(27, 31, 42, .35); transform: rotate(-1.4deg); font-family: var(--sans); }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.sheet-head span:first-child { color: var(--ink); font-weight: 700; }
.sheet-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; min-height: 50px; padding: 8px 0 6px; border-bottom: 1px solid var(--line); font-size: 14px; }
.sheet-row-head { min-height: auto; padding: 10px 0 8px; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sheet-row:not(.sheet-row-head) span:not(.sig) { font-family: var(--serif); font-style: italic; color: var(--blue); font-size: 15px; line-height: 1.25; }
.sig svg { width: 100%; height: 34px; }
.sig-path { fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 0; animation: sign 2.2s .6s ease-out backwards; }
@keyframes sign { from { stroke-dashoffset: 420; } }
.sheet-facts { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.sheet-facts li { padding: 6px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; }
.sheet-facts b { color: var(--blue); }

/* Abschnitte */
.sec { padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.sec-head { max-width: 46em; margin-bottom: clamp(32px, 4vw, 52px); }
.para { font: 600 14px var(--sans); color: var(--blue); letter-spacing: .06em; margin-bottom: 10px; }
.sec h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 18px; }
.sec-intro { font-size: 20px; color: var(--muted); }
.sec h3 { font-size: 24px; line-height: 1.25; margin-bottom: 12px; }
.small { font: 400 14px/1.5 var(--sans); color: var(--muted); }

/* Wortlaut */
.wortlaut-tools { margin-bottom: 20px; }
.toggle { font: 600 15px var(--sans); color: var(--blue); background: transparent; border: 1px solid var(--blue); border-radius: 99px; padding: 9px 18px; cursor: pointer; }
.toggle[aria-pressed="true"] { background: var(--blue); color: var(--white); }
.wortlaut { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 2px; padding: clamp(24px, 4vw, 52px); font-size: clamp(19px, 1.65vw, 23px); line-height: 1.62; }
.wortlaut p { margin: 0; transition: color .25s; }
.wortlaut-lead { font-style: italic; margin-bottom: 18px !important; }
.clause { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.clause::before { content: attr(data-n); grid-column: 1; grid-row: 1; font: 600 30px/1 var(--serif); color: var(--blue); }
.clause-label { grid-column: 1; grid-row: 1; align-self: start; margin-top: 40px !important; font: 600 13px/1.35 var(--sans) !important; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.clause p:not(.clause-label) { grid-column: 2; grid-row: 1; }
.wortlaut.is-focus p:not(.clause-label) { color: #8A867C; }
.wortlaut.is-focus mark { color: var(--ink); }
.begruendung { margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.begruendung summary, .faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 600 17px/1.4 var(--sans); }
.begruendung summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.begruendung summary::after, .faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 28px/1 var(--sans); color: var(--blue); }
details[open] > summary::after { content: "–"; }
.begruendung-body { max-width: 44em; padding-bottom: 12px; }

/* Schritte */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps li::before { content: "0" counter(step); display: block; font: italic 500 56px/1 var(--serif); color: var(--blue); margin-bottom: 18px; }
.steps p { font-size: 18px; }
.envelope { position: relative; font-style: normal; font: 500 17px/1.5 var(--sans); background: var(--white); border: 1px solid var(--line); padding: 18px 20px 16px; margin-top: 6px; }
.envelope::after { content: ""; position: absolute; top: 12px; right: 12px; width: 30px; height: 36px; background: var(--yellow); border: 2px dashed rgba(27, 31, 42, .25); }
.envelope-label { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.note { margin-top: 36px; padding: 18px 22px; background: var(--blue-tint); border-left: 4px solid var(--blue); font: 400 17px/1.5 var(--sans); }

/* Haltung */
.pull { margin: 0 0 clamp(40px, 5vw, 64px); }
.pull blockquote { margin: 0; }
.pull blockquote p { font: 600 clamp(40px, 5.6vw, 76px)/1.05 var(--serif); letter-spacing: -.025em; margin-bottom: 20px; }
.pull figcaption { font-size: 20px; color: var(--muted); max-width: 36em; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.leitlinien { margin: 0; padding-left: 2.2em; list-style: upper-roman; }
.leitlinien li { padding: 10px 0 10px 6px; border-bottom: 1px solid var(--line); }
.leitlinien li::marker { font: 600 20px var(--serif); color: var(--blue); }

/* Warum */
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.reasons article { border-top: 2px solid var(--yellow); padding-top: 18px; }
.reasons p { font-size: 18px; }

/* Vergleich */
.table-wrap { overflow-x: auto; margin-bottom: 18px; }
.synopse { width: 100%; border-collapse: collapse; font: 400 16px/1.5 var(--sans); background: var(--white); border: 1px solid var(--line); }
.synopse th, .synopse td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.synopse thead th { font: 600 17px/1.3 var(--serif); background: var(--paper-2); }
.synopse thead th.ours { background: var(--yellow); }
.synopse tbody th { font-weight: 600; width: 22%; color: var(--ink); }
.synopse td { width: 39%; color: var(--muted); }
.synopse td.ours { color: var(--ink); background: #FFFBE6; border-left: 3px solid var(--yellow); }
.synopse tr:last-child > * { border-bottom: 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 52em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details p { padding-bottom: 14px; max-width: 46em; }

/* Teilen */
.share { display: grid; gap: clamp(40px, 5vw, 64px); }
.share h3 { font-size: 26px; margin-bottom: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs button { font: 600 15px var(--sans); background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 16px; color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--yellow); }
textarea, input[type="text"], select { width: 100%; font: 400 16px/1.5 var(--sans); color: var(--ink); background: var(--white); border: 1px solid #B9B3A5; border-radius: 3px; padding: 12px 14px; }
textarea { resize: vertical; }
.share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.status { font: 600 15px var(--sans); color: var(--blue); }
.tile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.tile-preview { background: var(--paper-2); border: 1px solid var(--line); padding: clamp(16px, 2vw, 28px); display: flex; justify-content: center; }
.tile-preview canvas { width: 100%; height: auto; max-height: 640px; object-fit: contain; box-shadow: 0 18px 40px -24px rgba(27, 31, 42, .45); }
.tile-preview canvas[data-format="story"] { width: auto; max-width: 100%; }
.tile-form { display: grid; gap: 8px; font-family: var(--sans); }
.tile-form > label { font: 600 15px var(--sans); margin-top: 8px; }
.tile-form > label span { font-weight: 400; color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
legend { font: 600 15px var(--sans); padding: 0; margin-bottom: 6px; width: 100%; }
.opt { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; cursor: pointer; }
.opt input { accent-color: var(--blue); width: 18px; height: 18px; }
.tile-form .btn { margin-top: 16px; }

/* Fuß */
.foot { background: var(--blue); color: var(--white); margin-top: 40px; }
.foot-inner { max-width: 1320px; margin: 0 auto; padding: 56px clamp(20px, 4vw, 48px) 44px; display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 32px; align-items: start; font: 400 15px/1.55 var(--sans); }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand .brand-mark { width: 40px; height: 40px; }
.foot-title { font: 600 22px/1.2 var(--serif); margin: 0; }
.foot-text p { color: #DCE3F7; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot a { color: var(--white); }
.foot :focus-visible { outline-color: var(--yellow); }

/* Rechtstexte */
.legal { max-width: 760px; margin: 0 auto; padding: 64px clamp(20px, 4vw, 48px) 80px; }
.legal h1 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 28px; letter-spacing: -.02em; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal mark.ph { background: #FFF2A8; }

/* Responsiv */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 clamp(20px, 4vw, 48px) 10px; scrollbar-width: none; font: 600 14px var(--sans); }
  .chips::-webkit-scrollbar { display: none; }
  .chips a { flex: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); text-decoration: none; background: var(--white); }
  .chips a[aria-current="true"] { border-color: var(--blue); color: var(--blue); box-shadow: inset 0 -3px 0 var(--yellow); }
  :root { --head-h: 64px; }
  html { scroll-padding-top: 130px; }
}
@media (max-width: 860px) {
  body { font-size: 18px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .sheet { transform: rotate(-1deg); max-width: 520px; }
  .steps, .reasons, .twocol, .tile-grid { grid-template-columns: minmax(0, 1fr); }
  .clause { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .clause::before { font-size: 24px; }
  .clause-label { grid-row: 2; margin-top: 0 !important; }
  .clause p:not(.clause-label) { grid-column: 1; grid-row: 3; }
  .foot-inner { grid-template-columns: minmax(0, 1fr); }
  .synopse thead { display: none; }
  .synopse, .synopse tbody, .synopse tr, .synopse th, .synopse td { display: block; width: 100%; }
  .synopse tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .synopse tbody th { padding-bottom: 4px; font-family: var(--serif); font-size: 19px; border: 0; }
  .synopse td { border: 0; padding-top: 6px; }
  .synopse td::before { content: attr(data-label); display: block; font: 600 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .synopse td.ours { border-left: 3px solid var(--yellow); }
}
@media (max-width: 520px) {
  .brand-claim { display: none; }
  .brand-name { font-size: 19px; }
  .masthead .btn-small { padding: 8px 12px; font-size: 14px; }
  .actions .btn { width: 100%; }
}
