/* Standalone book page (/buch/): neutral, in the look of the book cover, without the website's branding. */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0B0C0E;
  --surface: #15171B;
  --surface-2: #1C1F24;
  --line: #2C3037;
  --text: #F2F3F5;
  --muted: #A3A9B3;
  --accent: #8FA9BD;      /* steel blue of the cover title */
  --accent-strong: #B7CBDA;
  --error: #F08A7A;
  --gap: clamp(1rem, 2.4vw, 1.5rem);
  --radius: 10px;
  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 20% -10%, #1A1F26 0%, var(--bg) 60%) no-repeat, var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--text-font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }

.bp { max-width: 1120px; margin: 0 auto; padding: clamp(1.5rem, 5vw, 4rem) 16px 2.5rem; }

/* Hero */
.bp-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.bp-cover { position: sticky; top: 2rem; }
.bp-cover img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06); }
.bp-kicker { margin: 0 0 .6rem; color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.bp-main h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
.bp-sub { margin: 1rem 0 0; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.15rem); max-width: 38em; }

.bp-facts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); max-width: 30rem; }
.bp-facts li { border-top: 1px solid var(--line); padding-top: .6rem; }
.bp-facts b { display: block; font: 800 clamp(1.6rem, 3vw, 2.1rem)/1 var(--display); color: var(--text); }
.bp-facts span { color: var(--muted); font-size: .9rem; }

/* Form card */
.bp-card { margin-top: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.bp-card h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 700; }
.bp-lead { margin: .6rem 0 0; color: var(--muted); }
.bp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.25rem; }
.bp-wide { grid-column: 1 / -1; }
.bp-field { position: relative; display: block; }
.bp-field input {
  width: 100%; height: 3.4rem; padding: 1.35rem .9rem .45rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color .15s;
}
.bp-field input:hover { border-color: #3B4049; }
.bp-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(143, 169, 189, .18); }
.bp-field span { position: absolute; left: .9rem; top: 1.05rem; color: var(--muted); font-size: 1rem; pointer-events: none; transition: transform .15s, font-size .15s, top .15s; }
.bp-field input:focus + span, .bp-field input:not(:placeholder-shown) + span { top: .45rem; font-size: .74rem; letter-spacing: .02em; }
.bp-field.bad input { border-color: var(--error); }
.bp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.bp-check { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1rem; color: var(--muted); font-size: .92rem; line-height: 1.5; cursor: pointer; }
.bp-check input { flex: none; width: 1.15rem; height: 1.15rem; margin: .12rem 0 0; accent-color: var(--accent); }
.bp-err { min-height: 1.4em; margin: .75rem 0 0; color: var(--error); font-size: .92rem; }
.bp-err:empty { min-height: 0; margin: 0; }

.bp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; min-height: 3.25rem;
  margin-top: 1rem; padding: .8rem 1.25rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--text); color: var(--bg); font: 700 1rem/1.2 var(--text-font); text-decoration: none;
  transition: background .15s, transform .15s;
}
.bp-btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.bp-btn:hover { background: var(--accent-strong); color: var(--bg); }
.bp-btn:active { transform: translateY(1px); }
.bp-btn[disabled] { opacity: .65; cursor: progress; }
.bp-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.bp-ghost:hover { background: var(--surface-2); color: var(--text); }
.bp-note { margin: .9rem 0 0; color: var(--muted); font-size: .82rem; text-align: center; }

.bp-done h2:focus { outline: none; }

/* Contents */
.bp-toc { margin-top: clamp(3rem, 8vw, 5.5rem); padding-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--line); }
.bp-toc > h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.bp-toc > .bp-lead { max-width: 44em; }
.bp-parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: 1.75rem; }
.bp-part { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.bp-part h3 { font-size: 1.05rem; font-weight: 700; }
.bp-part h3 span { display: block; margin-bottom: .3rem; color: var(--accent); font: 600 .75rem/1.2 var(--text-font); letter-spacing: .12em; text-transform: uppercase; }
.bp-part ol { margin: .9rem 0 0; padding-left: 1.6rem; color: var(--muted); font-size: .95rem; }
.bp-part li { margin: .3rem 0; padding-left: .15rem; }
.bp-part li::marker { color: var(--accent); font-weight: 600; }
.bp-annex { margin: .9rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

/* Footer */
.bp-foot { margin-top: clamp(3rem, 8vw, 5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.bp-foot p { margin: .5rem 0; }
.bp-quote { color: var(--text); font: 600 1.1rem/1.4 var(--display); }
.bp-legal { margin-top: .75rem; border: 1px solid var(--line); border-radius: 8px; padding: .7rem 1rem; }
.bp-legal summary { cursor: pointer; color: var(--text); font-weight: 600; }
.bp-legal p { max-width: 60em; }

@media (max-width: 960px) {
  .bp-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .bp-hero { grid-template-columns: 1fr; }
  .bp-cover { position: static; max-width: 15rem; margin: 0 auto; }
  .bp-main { text-align: left; }
  .bp-fields { grid-template-columns: 1fr; }
  .bp-parts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
