/* OfferFrame Form — page-level layout on top of styles.css tokens.
   Overrides .of-root for full-page scroll (not artboard-fixed). */

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--of-bg);
}

.of-root {
  height: auto;
  width: auto;
  overflow: visible;
  min-height: 100vh;
}

.of-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Navigation ───────────────────────────────────────────── */
.of-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 32px;
  background: oklch(0.14 0.005 60 / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--of-line);
}

.of-nav-logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--of-fg);
  letter-spacing: -0.025em;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.of-bracket-group { position: absolute; inset: 0; pointer-events: none; }
.of-br { position: absolute; width: 10px; height: 10px; border: 0 solid var(--of-amber); }
.of-br-tl { top: 0; left: 0; border-top-width: 1.4px; border-left-width: 1.4px; }
.of-br-tr { top: 0; right: 0; border-top-width: 1.4px; border-right-width: 1.4px; }
.of-br-bl { bottom: 0; left: 0; border-bottom-width: 1.4px; border-left-width: 1.4px; }
.of-br-br { bottom: 0; right: 0; border-bottom-width: 1.4px; border-right-width: 1.4px; }

.of-wordmark { color: var(--of-fg); }
.of-wordmark-dot { color: var(--of-amber); font-weight: 600; }

.of-nav-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--of-fg-dim);
  text-transform: uppercase;
}
.of-nav-divider { color: var(--of-line-2); }

.of-nav-exit {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--of-fg-mute);
  text-decoration: none;
  transition: color .15s;
}
.of-nav-exit:hover { color: var(--of-fg); }

@media (max-width: 720px) {
  .of-nav { padding: 14px 18px; gap: 12px; }
  .of-nav-meta { display: none; }
}

/* ── Main / Step layout ───────────────────────────────────── */
.of-main {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  padding: 56px 24px 80px;
}

.of-step {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.of-step-head { display: flex; flex-direction: column; gap: 14px; }

/* Progress bar */
.of-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.of-progress-tick {
  flex: 1 1 auto;
  height: 2px;
  background: var(--of-line);
  border-radius: 1px;
  transition: background .25s ease;
}
.of-progress-tick.is-done { background: var(--of-amber-dim, oklch(0.55 0.12 65 / 0.6)); }
.of-progress-tick.is-current { background: var(--of-amber); }

.of-step-title {
  font-family: var(--of-sans);
  font-weight: 300;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--of-fg);
  margin: 0;
}
.of-step-title .of-serif-italic {
  font-family: var(--of-serif, "Instrument Serif", serif);
  font-style: italic;
  font-weight: 400;
  color: var(--of-amber);
}

.of-step-lede {
  font-size: 15.5px;
  color: var(--of-fg-mute);
  line-height: 1.55;
  max-width: 56ch;
  margin: 0;
}

.of-step-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.of-step-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 20px 0;
  border-top: 1px solid var(--of-line);
}
.of-step-foot .of-btn-primary[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.of-case-id {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--of-fg-dim);
  margin: 0;
  text-transform: uppercase;
  text-align: center;
}

@media (max-width: 720px) {
  .of-main { padding: 28px 14px 56px; }
  .of-step-title { font-size: 32px; }
  .of-step-body { padding: 20px; gap: 18px; }
}

/* ── Form fields ──────────────────────────────────────────── */
.of-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.of-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .of-field-row { grid-template-columns: 1fr; }
}

.of-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--of-fg-dim);
  font-weight: 500;
}
.of-req { color: var(--of-amber); margin-left: 2px; }

.of-input,
.of-select,
.of-textarea {
  width: 100%;
  background: oklch(0.18 0.005 60);
  border: 1px solid var(--of-line);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--of-fg);
  font-family: var(--of-sans);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color .15s, background .15s;
  box-sizing: border-box;
}
.of-textarea {
  font-family: var(--of-sans);
  resize: vertical;
  min-height: 88px;
}
.of-input::placeholder,
.of-textarea::placeholder { color: var(--of-fg-dim); }

.of-input:focus,
.of-select:focus,
.of-textarea:focus {
  outline: none;
  border-color: var(--of-amber);
  background: oklch(0.19 0.006 60);
}

/* Amber-Markierung leerer Pflichtfelder beim Klick auf "Weiter".
   Wird per JS (form.js → markEmptyRequiredFields) gesetzt, beim ersten
   Tippen wieder entfernt. */
.of-field-invalid .of-input,
.of-field-invalid .of-select,
.of-field-invalid .of-textarea {
  border-color: var(--of-amber);
  box-shadow: 0 0 0 3px oklch(from var(--of-amber) l c h / 0.18);
  background: oklch(0.19 0.006 60);
}
.of-field-invalid .of-radio-row,
.of-field-invalid .of-check {
  border-radius: 8px;
  box-shadow: 0 0 0 3px oklch(from var(--of-amber) l c h / 0.18);
}
.of-field-invalid > .of-label {
  color: var(--of-amber);
}
.of-field-invalid .of-radio-pill {
  border-color: var(--of-amber);
}
.of-field-invalid .of-check-box {
  border-color: var(--of-amber);
}

.of-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 5 L6 8 L9 5' stroke='%23a8a29e' stroke-width='1.4' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.of-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.of-input-wrap .of-input { padding-right: 56px; }
.of-input-suffix {
  position: absolute;
  right: 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--of-fg-dim);
  text-transform: uppercase;
  pointer-events: none;
}

.of-help {
  font-size: 12.5px;
  color: var(--of-fg-dim);
  line-height: 1.5;
}
.of-err {
  font-family: var(--of-mono, "Geist Mono", monospace);
  font-size: 12px;
  color: oklch(0.72 0.14 60);
  min-height: 1.2em;
  letter-spacing: 0.01em;
}
.of-err:empty { display: none; }

.of-global-err {
  border: 1px solid oklch(0.5 0.14 60 / 0.6);
  background: oklch(0.25 0.06 60 / 0.25);
  color: oklch(0.85 0.12 65);
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* Radio pills */
.of-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.of-radio-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--of-line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  color: var(--of-fg-mute);
  transition: border-color .15s, color .15s, background .15s;
  user-select: none;
}
.of-radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.of-radio-pill:hover { border-color: var(--of-line-2); color: var(--of-fg); }
.of-radio-pill:has(input:checked) {
  border-color: var(--of-amber);
  background: oklch(0.22 0.04 65 / 0.4);
  color: var(--of-fg);
}

/* Pilotphase-Pakt (Step 5) — visueller Tausch-Block, hebt die beiden
   Pflicht-Bedingungen klar von den restlichen Feldern ab. */
.of-pilot-pact {
  margin-top: 28px;
  padding: 20px 22px 16px;
  border: 1px solid color-mix(in srgb, var(--of-accent) 35%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--of-accent) 6%, transparent);
}
.of-pilot-pact-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--of-accent);
  margin: 0 0 14px;
}
.of-pilot-pact .of-field-check + .of-field-check {
  margin-top: 10px;
}
.of-pilot-pact-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--of-fg-mute);
  line-height: 1.55;
}

/* Checkbox */
.of-field-check { gap: 4px; }
.of-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--of-fg-mute);
  line-height: 1.5;
}
.of-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.of-check-box {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid var(--of-line-2);
  border-radius: 4px;
  margin-top: 2px;
  background: oklch(0.18 0.005 60);
  position: relative;
  transition: border-color .15s, background .15s;
}
.of-check:has(input:checked) .of-check-box {
  background: var(--of-amber);
  border-color: var(--of-amber);
}
.of-check:has(input:checked) .of-check-box::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 10px;
  border: solid oklch(0.14 0.005 60);
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}
.of-check-label { color: var(--of-fg); }
.of-inline-link { color: var(--of-amber); text-decoration: underline; text-underline-offset: 2px; }

/* ── Footer ───────────────────────────────────────────────── */
.of-footer {
  border-top: 1px solid var(--of-line);
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--of-fg-dim);
}
.of-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.of-footer-meta {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--of-fg-dim);
}
.of-footer-links {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.of-footer-links a { color: var(--of-fg-mute); text-decoration: none; transition: color .15s; }
.of-footer-links a:hover { color: var(--of-fg); }
.of-footer-note {
  font-size: 13px;
  color: var(--of-fg-mute);
  line-height: 1.5;
  max-width: 60ch;
  margin: 0;
}

@media (max-width: 720px) {
  .of-footer { padding: 22px 18px; }
  .of-footer-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ── Step 4 / Photo upload ────────────────────────────────── */
.of-photo-zone {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.of-photo-errors {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.of-photo-err {
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid oklch(0.5 0.14 60 / 0.6);
  background: oklch(0.25 0.06 60 / 0.25);
  color: oklch(0.85 0.12 65);
  letter-spacing: 0.02em;
}

/* Drop zone */
.of-dropzone {
  position: relative;
  display: block;
  border: 1.5px dashed var(--of-line-2);
  border-radius: 10px;
  padding: 28px 20px;
  background: oklch(0.16 0.005 60);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.of-dropzone:hover,
.of-dropzone.is-dragover {
  border-color: var(--of-amber);
  background: oklch(0.18 0.01 65);
}
.of-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}
.of-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  pointer-events: none;
}
.of-dropzone-icon { color: var(--of-fg-dim); }
.of-dropzone:hover .of-dropzone-icon,
.of-dropzone.is-dragover .of-dropzone-icon { color: var(--of-amber); }
.of-dropzone-title {
  font-size: 15px;
  color: var(--of-fg);
  font-weight: 400;
}
.of-dropzone-sub {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--of-fg-dim);
}

.of-dropzone-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(0.16 0.005 60 / 0.9);
  border-radius: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--of-amber);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.of-dropzone-loading.htmx-request,
.htmx-request .of-dropzone-loading { opacity: 1; }

/* Hint chips */
.of-photo-hints {
  border: 1px solid var(--of-line);
  border-radius: 8px;
  padding: 14px 16px;
  background: oklch(0.17 0.005 60);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.of-photo-hints-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--of-fg-dim);
}
.of-photo-hints-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.of-chip {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--of-line-2);
  border-radius: 999px;
  color: var(--of-fg-mute);
}
.of-photo-hints-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--of-fg-mute);
  line-height: 1.45;
}

/* Photo grid */
.of-photo-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
@media (max-width: 560px) {
  .of-photo-grid { grid-template-columns: repeat(2, 1fr); }
}

.of-photo-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.of-photo-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: oklch(0.12 0.005 60);
  border-radius: 4px;
}
.of-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.of-photo-frame .of-bracket-group .of-br {
  width: 14px;
  height: 14px;
  border-width: 0;
  border-color: var(--of-amber);
}
.of-photo-frame .of-br-tl { border-top-width: 1.4px; border-left-width: 1.4px; }
.of-photo-frame .of-br-tr { border-top-width: 1.4px; border-right-width: 1.4px; }
.of-photo-frame .of-br-bl { border-bottom-width: 1.4px; border-left-width: 1.4px; }
.of-photo-frame .of-br-br { border-bottom-width: 1.4px; border-right-width: 1.4px; }

.of-photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: oklch(0.10 0.005 60 / 0.75);
  color: var(--of-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
  backdrop-filter: blur(4px);
}
.of-photo-remove:hover {
  background: oklch(0.50 0.14 30 / 0.85);
}

.of-photo-cat {
  width: 100%;
  background: oklch(0.18 0.005 60);
  border: 1px solid var(--of-line);
  border-radius: 4px;
  padding: 6px 26px 6px 8px;
  color: var(--of-fg-mute);
  font-size: 11px;
  letter-spacing: 0.04em;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'><path d='M3 5 L6 8 L9 5' stroke='%23a8a29e' stroke-width='1.4' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
}
.of-photo-cat:focus {
  outline: none;
  border-color: var(--of-amber);
  color: var(--of-fg);
}

.of-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 10px;
}
.of-field-group > .of-label { margin-bottom: 4px; }

.of-photo-disclaimer,
.of-photo-tip {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--of-fg-dim);
  line-height: 1.5;
  margin: 0;
  padding: 12px 14px;
  border-left: 2px solid var(--of-amber);
  background: oklch(0.16 0.005 60 / 0.6);
  border-radius: 0 4px 4px 0;
}
.of-photo-tip {
  margin-bottom: 10px;
  border-left-color: oklch(0.7 0.13 70);
}

/* ── Thanks page ──────────────────────────────────────────── */
.of-thanks .of-tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--of-amber);
  text-transform: uppercase;
}

.of-thanks-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px;
}
.of-thanks-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: baseline;
}
.of-thanks-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--of-fg-dim);
  text-transform: uppercase;
}
.of-thanks-value {
  font-size: 15px;
  color: var(--of-fg);
}

.of-thanks-next {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.of-thanks-next-title {
  font-family: var(--of-sans);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--of-fg);
  margin: 0;
}
.of-thanks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.of-thanks-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: 14.5px;
  color: var(--of-fg-mute);
  line-height: 1.55;
}
.of-thanks-step {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--of-amber);
}

/* ── HTMX state hints ─────────────────────────────────────── */
.htmx-request.of-input,
.htmx-request.of-select,
.htmx-request.of-textarea {
  border-color: var(--of-amber-dim, oklch(0.55 0.12 65 / 0.6));
}

/* ── Legal pages (Impressum / Datenschutz) ──────────────────── */
.of-legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 32px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.of-legal-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.of-legal-title {
  font-family: var(--of-sans);
  font-weight: 300;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--of-fg);
  margin: 0;
}

.of-legal-lede {
  font-size: 15.5px;
  color: var(--of-fg-mute);
  line-height: 1.6;
  max-width: 62ch;
  margin: 0;
}

.of-legal-body {
  padding: 32px 36px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--of-fg);
}

.of-legal-body h2 {
  font-family: var(--of-sans);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--of-fg);
  margin: 32px 0 10px;
}
.of-legal-body h2:first-child { margin-top: 0; }

.of-legal-body h3 {
  font-family: var(--of-sans);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--of-fg);
  margin: 22px 0 8px;
}

.of-legal-body p {
  margin: 0 0 14px;
  color: var(--of-fg-mute);
}
.of-legal-body p strong { color: var(--of-fg); font-weight: 500; }

.of-legal-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--of-fg-mute);
}
.of-legal-body li { margin-bottom: 8px; }
.of-legal-body li strong { color: var(--of-fg); font-weight: 500; }

.of-legal-body a {
  color: var(--of-amber);
  text-decoration: none;
  border-bottom: 1px solid oklch(0.7 0.12 65 / 0.35);
  transition: border-color .15s ease;
}
.of-legal-body a:hover { border-bottom-color: var(--of-amber); }

.of-legal-body code {
  font-family: var(--of-mono, "Geist Mono", monospace);
  font-size: 13px;
  background: oklch(0.2 0.005 60 / 0.5);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--of-fg);
}

.of-legal-note {
  display: inline-block;
  font-size: 13.5px;
  color: var(--of-fg-mute);
  font-style: italic;
}

.of-legal-meta {
  font-size: 12px;
  color: var(--of-fg-mute);
  text-align: right;
  opacity: 0.7;
}

@media (max-width: 600px) {
  .of-legal { padding: 32px 18px 48px; }
  .of-legal-title { font-size: 34px; }
  .of-legal-body { padding: 22px 20px; }
}

/* ════════════════════════════════════════════════════════════════
 * Ergebnis-Seite (Deliverable_Spec §3) — Verteiler & Arbeitsfläche
 * Erbt of-card, of-frame, of-btn aus styles.css.
 * ════════════════════════════════════════════════════════════════ */
.of-result {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.of-result-bike {
  margin-top: 4px;
  font-size: 13px;
  color: var(--of-fg-dim);
  letter-spacing: 0.02em;
}
.of-result-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.of-result-h {
  margin: 0;
  font-family: var(--of-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}
.of-result-h .of-tag { font-size: 11px; letter-spacing: 0.08em; }
.of-result-aside {
  margin: 0;
  font-size: 14px;
  color: var(--of-fg-mute);
  line-height: 1.5;
}

/* ── Verbessert-Block ─────────────────────────────────────────── */
.of-score-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--of-mono);
}
.of-score-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--of-fg-dim);
  text-transform: uppercase;
}
.of-score-value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  color: var(--of-amber);
  font-variant-numeric: tabular-nums;
}
.of-improve-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.of-improve-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--of-fg);
}
.of-improve-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--of-amber);
}

/* ── Plattform-Tabs ──────────────────────────────────────────── */
.of-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--of-line);
  border-radius: 6px;
  background: oklch(from var(--of-bg) calc(l + 0.02) c h);
}
.of-tab {
  flex: 1 1 auto;
  min-width: 96px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--of-fg-mute);
  font-family: var(--of-sans);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.of-tab:hover { color: var(--of-fg); }
.of-tab.is-active {
  background: var(--of-bg);
  border-color: var(--of-amber);
  color: var(--of-fg);
}
.of-platform-note {
  font-size: 12px;
  color: var(--of-fg-dim);
  min-height: 1.4em;
}

/* ── Copy-Cards ──────────────────────────────────────────────── */
.of-copy-card {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.of-copy-card.is-recommended { border-color: var(--of-amber); }
.of-copy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.of-copy-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--of-fg-dim);
  text-transform: uppercase;
}
.of-copy-btn {
  padding: 6px 10px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.of-copy-btn.is-copied {
  border-color: var(--of-amber);
  color: var(--of-amber);
}
.of-copy-body {
  margin: 0;
  font-family: var(--of-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--of-fg);
  white-space: pre-wrap;
  word-wrap: break-word;
}
pre.of-copy-body {
  font-family: var(--of-sans);
}
.of-title-count, .of-desc-count {
  margin: 0;
  font-size: 11px;
  color: var(--of-fg-dim);
  letter-spacing: 0.04em;
}
.of-title-count.is-over { color: var(--of-amber); }
.of-title-count.is-over [data-title-count-current] { font-weight: 600; }

/* ── Interne Preisnotiz (nur Verkäufer, nie kopierbar) ──────── */
.of-internal-note {
  padding: 14px 16px;
  background: oklch(from var(--of-bg) calc(l + 0.025) c h);
  border-left: 2px solid var(--of-amber);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.of-internal-note-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--of-fg-mute);
  font-style: italic;
}

/* ── Quick Wins ──────────────────────────────────────────────── */
.of-qw-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.of-qw-item label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--of-line);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s, opacity 0.15s;
}
.of-qw-item label:hover { border-color: var(--of-fg-mute); }
.of-qw-item input[type="checkbox"] { margin-top: 3px; accent-color: var(--of-amber); }
.of-qw-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--of-fg);
}
.of-qw-item.is-done label { opacity: 0.55; border-color: var(--of-amber); }
.of-qw-item.is-done .of-qw-text { text-decoration: line-through; color: var(--of-fg-mute); }

/* ── Downloads ───────────────────────────────────────────────── */
.of-dl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.of-dl-grid .of-btn { justify-content: space-between; padding: 14px 18px; }
.of-btn.is-pending { opacity: 0.55; pointer-events: none; }
.of-pending-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--of-fg-dim);
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .of-result { padding: 24px 16px 48px; gap: 28px; }
  .of-tab { min-width: 0; flex: 1 1 30%; font-size: 12px; padding: 7px 8px; }
  .of-score-value { font-size: 18px; }
  .of-copy-card { padding: 14px 14px; }
  .of-copy-btn-label { display: none; }
}

/* ── Print (Spec §3.5: Nav/Buttons aus) ─────────────────────── */
@media print {
  .of-nav, .of-step-foot, .of-copy-btn,
  .of-tabs, .of-platform-note,
  .of-qw-item input, .of-dl-grid { display: none !important; }
  .of-result { padding: 0; }
  .of-card { border: 1px solid #999; }
}
