.napfrechner {
  width: min(980px, 88%);
  padding-block: clamp(24px, 5vw, 62px) 60px;
}
.napfrechner .napf-intro { margin-bottom: 24px; }
.napfrechner .napf-intro h1 { margin-block: 9px 12px; }
.napfrechner .napf-intro > p:last-child { max-width: 64ch; color: var(--muted); }
.napfrechner .kicker { font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.napfrechner .species {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}
.napfrechner .species legend { margin-bottom: 6px; padding: 0; font-size: .9rem; font-weight: 700; }
.napfrechner .species label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid #a6b3a6;
  border-radius: 4px;
  cursor: pointer;
}
.napfrechner .species label:has(:checked) { background: #e7ede4; border-color: var(--forest); }
.napfrechner .species input { margin: 0; accent-color: var(--forest); }
.napfrechner .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; }
.napfrechner .sample {
  min-height: 44px;
  padding: 6px 13px;
  border: 1px solid #a6b3a6;
  border-radius: 4px;
  background: transparent;
  color: var(--forest);
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
}
.napfrechner .sample:hover { background: #e7ede4; }
.napfrechner :is(input, button):focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.napfrechner .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.napfrechner .card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  padding: clamp(16px, 3vw, 25px);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffdf8;
}
.napfrechner .card.natural { background: #e7ede4; }
.napfrechner .card h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); }
.napfrechner :is(.sub, .sample-note, .fine, .quantity) { color: var(--muted); font-size: .875rem; }
.napfrechner .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.napfrechner .wide { grid-column: 1 / -1; }
.napfrechner .field { display: grid; align-content: start; gap: 4px; }
.napfrechner .field label { font-size: .875rem; font-weight: 700; }
.napfrechner .field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #a6b3a6;
  border-radius: 4px;
  background: #fffefa;
  color: var(--ink);
  font: inherit;
}
.napfrechner input[aria-invalid="true"] { border-color: #a13d2c; }
.napfrechner .error { color: #8b3528; font-size: .875rem; }
.napfrechner .error:empty, .napfrechner [hidden] { display: none; }
.napfrechner .totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.napfrechner .totals span { display: block; color: var(--muted); font-size: .8rem; }
.napfrechner .totals strong { display: block; overflow-wrap: anywhere; font-size: clamp(1.25rem, 3vw, 1.85rem); font-variant-numeric: tabular-nums; }
.napfrechner .daily-highlight { color: var(--forest); font-size: .95rem; }
.napfrechner .card p + p, .napfrechner .result p + p { margin-top: 0; }
.napfrechner .result {
  display: grid;
  gap: 3px;
  margin-top: 14px;
  padding: 17px 21px;
  border-radius: 5px;
  background: var(--forest);
  color: white;
}
.napfrechner .result strong { overflow-wrap: anywhere; font-size: 1.15rem; }
.napfrechner .result p:last-child { color: #e2eee4; font-size: .9rem; }
.napfrechner .next { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.napfrechner .next p { max-width: 56ch; }
.napfrechner .next .button { padding: 12px 16px; }
.napfrechner .fine { margin-top: 12px; }
.header nav a[aria-current="page"] { color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 620px) {
  .napfrechner { width: 92%; }
  .napfrechner .grid { grid-template-columns: 1fr; }
  .napfrechner .napf-intro h1 { font-size: clamp(2.55rem, 10vw, 3rem); }
}
