/* Numoteca – mobile first, system fonts only (no external requests). */
:root {
  --messing: #b48a3c;
  --tinte: #1d2b30;
  --nickel: #c5cbcc;
  --albumweiss: #f3f4f1;

  --bg: var(--albumweiss);
  --surface: #ffffff;
  --text: var(--tinte);
  --muted: #4a5a60;
  --line: var(--nickel);
  --accent: var(--messing);
  --link: #7a5a1e;
  --btn-bg: var(--tinte);
  --btn-text: var(--albumweiss);
  --focus: #1d5fa8;
  --warn-bg: #fff4d6;
  --warn-text: #5c4100;
  --error: #a3261b;

  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141e22;
    --surface: var(--tinte);
    --text: var(--albumweiss);
    --muted: #b9c1c3;
    --line: #3d4d53;
    --link: #dcb36a;
    --btn-bg: var(--messing);
    --btn-text: #141e22;
    --focus: #8cc0ff;
    --warn-bg: #3a2f14;
    --warn-text: #f5dfa8;
    --error: #ff9a8f;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: clamp(1.9rem, 6vw, 3rem);
  margin: 0.3em 0;
}

h2 {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  margin: 0 0 0.6em;
}

h3 {
  font-size: 1.2rem;
  margin: 1.2em 0 0.4em;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--surface);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.wrap {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.narrow {
  max-width: 44rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem; /* tap target ≥ 44 px */
  color: var(--text);
}

/* Draft banner */
.draft-banner {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-bottom: 2px solid var(--accent);
  padding: 0.6rem 0;
  font-weight: 600;
}

/* Sections */
main {
  display: block;
}

section {
  padding: 2.5rem 0;
}

section + section {
  border-top: 1px solid var(--line);
}

.hero {
  padding-top: 2rem;
}

.hero .claim {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0;
}

.hero .lead {
  font-size: 1.2rem;
  max-width: 38rem;
}

.trust {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.4rem;
  max-width: 44rem;
  font-size: 0.97rem;
}

.trust li {
  position: relative;
  padding-left: 1.6rem;
}

.trust li::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.45em;
  width: 0.45rem;
  height: 0.8rem;
  border: solid var(--accent);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* Line length: running text in the wide sections stays readable (about 70 characters). */
section .wrap > p {
  max-width: 44rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Buttons: pills with the brand coin (logo mark, img/mark.svg) at the left end. The coin is a decorative background image
   on ::before, so buttons created by common.js get it too and screen readers ignore it. */
.btn {
  --coin: 3rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.45rem 1.4rem 0.45rem calc(var(--coin) + 0.6rem);
  border: 2px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font: inherit;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  max-width: 100%;
}

.btn::before {
  content: '';
  position: absolute;
  left: -2px;
  top: calc(50% - var(--coin) / 2);
  width: var(--coin);
  height: var(--coin);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='32' fill='%23B48A3C'/%3E%3Ccircle cx='32' cy='32' r='26.4' fill='none' stroke='%231D2B30' stroke-opacity='.55' stroke-width='2.3' stroke-linecap='round' stroke-dasharray='0 4.6077'/%3E%3Cpath d='M23 45V31.5a9 9 0 0 1 18 0V45' fill='none' stroke='%231D2B30' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.btn-secondary {
  --coin: 2.75rem;
  min-height: 2.75rem;
  padding-left: calc(var(--coin) + 0.5rem);
  padding-right: 1.2rem;
  background: transparent;
  color: var(--text);
  border-color: var(--accent);
}

.btn-secondary::before {
  box-shadow: none;
}

/* "… – startet bald": dashed, no coin, so it does not look clickable. */
.btn:disabled {
  cursor: not-allowed;
  padding-left: 1.2rem;
  background: transparent;
  color: var(--muted);
  border-style: dashed;
  border-color: var(--line);
}

.btn:disabled::before {
  content: none;
}

@media (prefers-color-scheme: dark) {
  /* brass pill: a thin ink ring keeps the brass coin apart from it */
  .btn:not(.btn-secondary)::before {
    box-shadow:
      0 0 0 2px var(--tinte),
      0 2px 6px rgba(0, 0, 0, 0.5);
  }
}

/* Start page hero, once: the big round brass coin. */
.hero .actions {
  align-items: center;
  gap: 1rem 1.25rem;
}

.coin-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 8.75rem;
  height: 8.75rem;
  flex: none;
  border-radius: 50%;
  background-color: var(--messing);
  background-image: radial-gradient(circle at 35% 30%, #d9b66e, var(--messing) 62%, #8a6526);
  color: var(--tinte);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  box-shadow:
    0 6px 14px -6px rgba(0, 0, 0, 0.5),
    inset 0 0 0 5px rgba(29, 43, 48, 0.18);
}

.coin-btn::before {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 2px dotted rgba(29, 43, 48, 0.55);
}

.coin-btn span {
  position: relative;
  padding: 0 1.1rem;
}

.coin-btn:focus-visible {
  outline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .btn::before {
    transition: transform 0.35s ease;
  }

  .btn:hover::before,
  .btn:focus-visible::before {
    transform: rotate(-25deg);
  }

  .coin-btn {
    transition: transform 0.15s ease;
  }

  .coin-btn:active {
    transform: translateY(2px) scale(0.98);
  }
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1rem 1rem 1rem 3.5rem;
  position: relative;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--tinte);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps h3 {
  margin-top: 0;
}

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.card h2,
.card h3 {
  margin-top: 0;
}

/* Offers: the Sammlungs-Bericht is the main choice, Express and the Zusatzangebote are quieter. */
.card-main {
  border: 2px solid var(--accent);
  border-top-width: 6px;
}

.card-quiet,
.card-small {
  border-top: 1px solid var(--line);
}

.card-feature {
  border-top-width: 4px;
  margin: 1.25rem 0 1rem;
}

.card-feature > p,
.card-feature > ul {
  max-width: 44rem;
}

.card-later {
  border: 1px dashed var(--line);
  background: transparent;
}

.badge {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.1rem 0.6rem;
  border-radius: 1rem;
  background: var(--warn-bg);
  color: var(--warn-text);
  font-size: 0.88rem;
  font-weight: 600;
}

.badge-later {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.size-note {
  margin-top: -0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.price .per {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.addons {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-small .price,
.card-later .price {
  font-size: 1.35rem;
}

.card-small ul,
.card-small p:not(.price),
.card-later p:not(.price, .badge) {
  font-size: 0.97rem;
}

.more {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
}

.price {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0.2rem 0 0.6rem;
}

.order {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
}

.order-note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.small {
  font-size: 0.92rem;
}

.muted {
  color: var(--muted);
}

/* Calculator */
.calc {
  display: grid;
  gap: 1.25rem;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  padding: 0.75rem 1rem 1rem;
  margin: 0;
  min-width: 0;
}

legend {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 0 0.3rem;
}

.field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.5rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
}

.field + .field {
  border-top: 1px dashed var(--line);
}

.field label {
  line-height: 1.35;
}

.field .hint {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
}

input[type='text'] {
  width: 100%;
  min-height: 2.75rem;
  font: inherit;
  padding: 0.4rem 0.6rem;
  border: 2px solid var(--line);
  border-radius: 0.4rem;
  background: var(--bg);
  color: var(--text);
  text-align: right;
}

input[aria-invalid='true'] {
  border-color: var(--error);
}

.error {
  color: var(--error);
  font-weight: 600;
  min-height: 1.6em;
  margin: 0;
}

.result {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.result:focus {
  outline: 3px solid var(--focus);
}

.result dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 1rem;
  margin: 0 0 1rem;
}

.result dt {
  color: var(--muted);
}

.result dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.result .range {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
}

.stand {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.note {
  border-left: 4px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1rem;
  margin: 1rem 0;
}

/* FAQ */
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 0 0 0.75rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.6rem 0; /* with the box padding: tap target ≥ 44 px */
}

details {
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

details[open] summary {
  margin-bottom: 0.25rem;
}

/* Tables (Ratgeber) */
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  background: var(--surface);
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.4rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

th {
  font-weight: 600;
}

/* Article pages */
.article {
  padding: 2rem 0 3rem;
}

.article p,
.article li {
  max-width: 44rem;
}

.breadcrumb {
  font-size: 0.92rem;
  margin: 0;
}

.sources {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 1.5rem 0 2rem;
  font-size: 0.95rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* Ratgeber overview: whole heading line is the link, tall enough to tap. */
.small-h > a {
  display: inline-block;
  padding: 0.65rem 0;
}

.brand,
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

@media (min-width: 46rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .addons {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc .full {
    grid-column: 1 / -1;
  }
}

.small-h {
  font-size: 1.2rem;
  margin: 1rem 0 0.25rem;
}

/* Order page and photo guide */
.article .lead {
  font-size: 1.15rem;
}

.article .cards {
  margin: 1.25rem 0 0.5rem;
}

.article .steps {
  margin: 0 0 1.5rem;
}

.guide li {
  margin-bottom: 0.6rem;
}

@media (min-width: 62rem) {
  .addons {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Durchgang 2 (Kundensicht): Begriffe, nächster Schritt nach dem Ergebnis, Preis nach Albumseiten */
.glossar {
  max-width: 44rem;
  margin: 0.5rem 0 1rem;
}

.glossar dl {
  margin: 0 0 0.5rem;
}

.glossar dt {
  font-weight: 600;
  margin-top: 0.6rem;
}

.glossar dd {
  margin: 0;
}

.result .next {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 0.75rem;
}

.result .next h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

.result .next ol {
  margin: 0;
  padding-left: 1.4rem;
}

.result .next li {
  margin: 0 0 0.4rem;
}

.choice {
  max-width: 44rem;
  margin: 1.25rem 0 0.5rem;
}

.pages-price {
  max-width: 36rem;
  margin: 1rem 0;
}

.pages-price th,
.pages-price td {
  padding: 0.4rem 0.45rem;
  hyphens: auto;
}

.pages-price tbody td {
  white-space: nowrap;
}

.pages-price table td[colspan] {
  white-space: normal;
}

.pages-price caption {
  text-align: left;
  padding-bottom: 0.25rem;
}

.pages-price ul {
  margin-top: 0.25rem;
}
