
/* Bestellseite unser-hsh.de/buch. Ohne externe Schriften (Datenschutz). Gelb markiert = vor dem Live-Gang ausfüllen. */
:root {
  --bg: #f3f5f6;
  --surface: #ffffff;
  --fg: #1c2a33;
  --muted: #5b6b75;
  --line: #d5dde1;
  --accent: #0f6f7a;
  --accent-fg: #ffffff;
  --ink: #23394a;
  --ph-bg: #fff6cc;
  --ph-line: #c99a00;
  --ph-fg: #6b5200;
  --error: #b3261e;
  --ok-bg: #e6f3ef;
  --ok-fg: #155c45;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12191e; --surface: #1a242b; --fg: #e4eaed; --muted: #9aaab3; --line: #2e3d46;
    --accent: #4fb3bd; --accent-fg: #0c1a1e; --ink: #2a4356;
    --ph-bg: #3a3214; --ph-line: #d9b23a; --ph-fg: #f1d98a;
    --error: #ff8a80; --ok-bg: #173329; --ok-fg: #9fdcc2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12191e; --surface: #1a242b; --fg: #e4eaed; --muted: #9aaab3; --line: #2e3d46;
  --accent: #4fb3bd; --accent-fg: #0c1a1e; --ink: #2a4356;
  --ph-bg: #3a3214; --ph-line: #d9b23a; --ph-fg: #f1d98a;
  --error: #ff8a80; --ok-bg: #173329; --ok-fg: #9fdcc2;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
  padding-inline: 16px; padding-block: 0 48px;
}
.wrap { max-width: 1040px; margin: 0 auto; }


header.site { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 22px 8px; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--fg); }
.brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--muted); }
.nl-link { font-size: 15px; color: var(--accent); }

.grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; margin-top: 24px; align-items: start; }
@media (max-width: 820px) { .grid { grid-template-columns: 1fr; gap: 28px; } }

/* Buchspalte */
.book { display: grid; gap: 20px; }
.cover {
  width: 220px; max-width: 100%; aspect-ratio: 2 / 3;
  background: var(--ink); color: #f2f5f7;
  border-radius: 3px 6px 6px 3px;
  box-shadow: inset 10px 0 0 rgba(0,0,0,.18), 0 14px 30px -12px rgba(0,0,0,.35);
  display: flex; flex-direction: column; justify-content: space-between; padding: 22px 18px 18px 26px;
  position: relative;
}
.cover .t { font-family: var(--font-display); font-size: 21px; line-height: 1.2; text-wrap: balance; }
.cover .s { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.cover .ph-tag { position: absolute; top: 10px; right: 10px; }
.cover-img { width: 100%; max-width: 420px; height: auto; border-radius: 8px; display: block; }
.gallery { margin: 0; display: grid; gap: 10px; }
.thumbs { display: flex; gap: 10px; }
.thumb { padding: 0; border: 2px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; overflow: hidden; line-height: 0; }
.thumb img { width: 72px; height: auto; display: block; }
.thumb[aria-pressed="true"] { border-color: var(--accent); }
h1 .sub { display: block; font-weight: 500; font-size: .55em; color: var(--muted); margin-top: 6px; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4.2vw, 38px); line-height: 1.15; margin: 0; text-wrap: balance; }
.lead { color: var(--muted); margin: 0; max-width: 34em; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price strong { font-family: var(--font-display); font-size: 34px; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: 15px; }
.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.facts li { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.facts b { font-weight: 600; color: var(--muted); }

/* Platzhalter */
.ph {
  background: var(--ph-bg); color: var(--ph-fg);
  outline: 1px dashed var(--ph-line); outline-offset: 1px;
  border-radius: 3px; padding: 0 4px;
}
.ph-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--ph-bg); color: var(--ph-fg); border: 1px dashed var(--ph-line); border-radius: 3px; padding: 1px 6px;
}

/* Formular */
form { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 28px clamp(18px, 3vw, 32px); display: grid; gap: 26px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
legend { font-family: var(--font-display); font-weight: 700; font-size: 20px; padding: 0; margin-bottom: 4px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row.plz { grid-template-columns: 8em 1fr; }
@media (max-width: 480px) { .row, .row.plz { grid-template-columns: 1fr; } }
.field { display: grid; gap: 5px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; }
.field label .opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px;
}
textarea { min-height: 84px; resize: vertical; }
input:focus-visible, textarea:focus-visible, button:focus-visible, .check input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.field.invalid input { border-color: var(--error); }
.err { color: var(--error); font-size: 14px; min-height: 0; }
.err:empty { display: none; }

.qty { display: flex; align-items: center; gap: 0; width: max-content; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.qty button { font: inherit; font-size: 20px; width: 44px; height: 44px; border: 0; background: var(--bg); color: var(--fg); cursor: pointer; }
.qty input { width: 64px; text-align: center; border: 0; border-inline: 1px solid var(--line); border-radius: 0; font-variant-numeric: tabular-nums; }

.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }
.check small { display: block; color: var(--muted); font-size: 14px; }
.nl-box { border: 1px solid var(--line); border-radius: 6px; padding: 14px; }

.sum { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum .total { font-weight: 700; font-size: 19px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.legal { font-size: 14px; color: var(--muted); margin: 0; }
.legal a, .facts a { color: var(--accent); }
.submit {
  font: inherit; font-weight: 700; font-size: 18px; cursor: pointer;
  background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 6px; padding: 14px 22px; width: 100%;
}
.submit:hover { filter: brightness(1.08); }

.done { background: var(--ok-bg); color: var(--ok-fg); border-radius: 8px; padding: 24px; display: grid; gap: 10px; }
.done h2 { font-family: var(--font-display); margin: 0; font-size: 24px; }
.done dl { margin: 0; display: grid; grid-template-columns: 9em 1fr; gap: 4px 12px; font-size: 15px; }
.done dt { font-weight: 600; }
.done dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.done button { justify-self: start; font: inherit; background: none; border: 1px solid currentColor; color: inherit; border-radius: 6px; padding: 8px 14px; cursor: pointer; }

footer { margin-top: 40px; font-size: 14px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: inherit; }
@media (prefers-reduced-motion: no-preference) { .submit, .qty button { transition: filter .15s; } }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: var(--ok-bg); color: var(--ok-fg); border-radius: 8px; padding: 24px; display: grid; gap: 10px; }
.notice.error { background: var(--ph-bg); color: var(--ph-fg); }
