/* =========================================================================
   Motorrad-Umbau-Konfigurator · autoservice hille
   Übernommen von autoservice-hille.de: schwarzer Kopfbalken mit Logo,
   strikt monochrom, kleingeschriebene Seitentitel, dünne Aktiv-Unterstriche,
   fast keine Rundungen. Systemschriften, kein externer Font-Abruf.
   ========================================================================= */

:root {
  --black:     #0D0D0D;   /* Kopf- und Fußbalken, Buttons */
  --ink:       #141414;   /* Fließtext und Überschriften */
  --ink-soft:  #6A6A6A;   /* Nebentext, wie die Website */
  --line:      #DCDCDC;
  --line-soft: #EDEDED;
  --bg:        #FAFAFA;
  --wash:      #F4F4F4;   /* Flächen wie Preisbox */
  --card:      #FFFFFF;
  --ok:        #1D7A47;
  --err:       #B3261E;

  --radius:   4px;
  --radius-s: 3px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

body.no-actionbar { padding-bottom: 0; }

/* --- Kopfleiste ---------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--black);
}

.topbar__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.wordmark { display: block; line-height: 0; margin-right: auto; }
.wordmark__logo { width: 152px; height: auto; display: block; }

.wordmark__sub {
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  padding-bottom: 4px;
  border-bottom: 1.5px solid rgba(255, 255, 255, .8);
}

.topbar__reset {
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .7);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
}

.topbar__reset:hover { color: #fff; }

.progress { height: 3px; background: rgba(255, 255, 255, .18); }

.progress__bar {
  height: 100%;
  width: 0;
  background: #fff;
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

/* --- Layout -------------------------------------------------------------- */
.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 8px;
}

.screen { display: none; }
.screen.is-active { display: block; animation: rise .28s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding-bottom: 5px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1.5px solid var(--ink);
}

.display {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* Seitentitel klein geschrieben, wie „philosophie" und „team" */
.display--page {
  font-size: 46px;
  line-height: 1.02;
  letter-spacing: -.035em;
  margin-bottom: 16px;
}

.display--s { font-size: 25px; }

.lede { margin: 0 0 22px; color: var(--ink-soft); font-size: 15px; }
.lede--s { font-size: 14px; margin-bottom: 16px; }

/* --- Upload -------------------------------------------------------------- */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 20px;
  background: var(--card);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: border-color .2s, background .2s;
  position: relative;
  overflow: hidden;
}

.dropzone:hover,
.dropzone.is-hover { border-color: var(--black); background: var(--wash); }

.dropzone__icon { width: 34px; height: 34px; color: var(--black); }
.dropzone__icon svg { width: 100%; height: 100%; stroke-linecap: round; stroke-linejoin: round; }
.dropzone__title { font-weight: 700; font-size: 16px; }
.dropzone__hint { font-size: 13px; color: var(--ink-soft); }

.dropzone__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tiplist {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.tiplist__title { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.tiplist ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 14px; }
.tiplist li { margin-bottom: 4px; }

/* --- Karten -------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.card--request { padding-bottom: 22px; }
.cardtitle { margin: 0 0 4px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.note { margin: 0 0 14px; font-size: 13px; color: var(--ink-soft); }

.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 600; }

.thumb { width: 100%; border-radius: var(--radius); display: block; }

/* --- Optionen ------------------------------------------------------------ */
.options { display: grid; gap: 10px; }

.option {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}

.option:hover { border-color: #C4C4C4; }
.option:active { transform: scale(.995); }

.option.is-selected {
  border-color: var(--ink);
  background: var(--wash);
}

.option__mark {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #C4C4C4;
  position: relative;
  top: 3px;
}

.option.is-selected .option__mark {
  border-color: var(--black);
  background: var(--black);
  box-shadow: inset 0 0 0 3px #fff;
}

.option__body { flex: 1; }
.option__label { display: block; font-weight: 600; font-size: 15px; }
.option__hint { display: block; font-size: 13px; color: var(--ink-soft); }
.option__price { font-size: 12px; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.option.is-selected .option__price { color: var(--ink); font-weight: 600; }

/* --- Farbwahl ------------------------------------------------------------ */
.paint { margin-top: 20px; }
.paint__label { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }

.swatch {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--card);
  outline: 1.5px solid var(--line);
  cursor: pointer;
  padding: 0;
  transition: transform .12s;
}

.swatch:hover { transform: scale(1.06); }
.swatch.is-selected { outline: 2.5px solid var(--black); outline-offset: 1px; }

.paint__custom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
}

.paint__custom input[type="color"] {
  width: 44px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: none;
  padding: 2px;
  cursor: pointer;
}

/* --- Zusammenfassung ----------------------------------------------------- */
.summary { list-style: none; margin: 0 0 4px; padding: 0; }

.summary li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.summary li:last-child { border-bottom: 0; }
.summary__step { color: var(--ink-soft); flex: 0 0 34%; }
.summary__value { font-weight: 700; flex: 1; }
.summary__price { color: var(--ink-soft); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.pricebox {
  margin-top: 14px;
  padding: 16px;
  background: var(--wash);
  border-radius: var(--radius-s);
  display: grid;
  gap: 2px;
}

.pricebox__label { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.pricebox__value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pricebox__note { font-size: 12px; color: var(--ink-soft); }

/* --- Vorher/Nachher ------------------------------------------------------ */
.compare {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  touch-action: pan-y;
}

.compare__img { display: block; width: 100%; }

.compare__clip {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid #fff;
}

.compare__clip .compare__img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
}

.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.compare__tag {
  position: absolute;
  bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  padding: 4px 8px;
  border-radius: 3px;
  pointer-events: none;
}

.compare__tag--l { left: 10px; }
.compare__tag--r { right: 10px; background: #fff; color: var(--ink); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-s);
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, opacity .15s;
}

.btn--primary { background: var(--black); color: #fff; flex: 1; }
.btn--primary:hover:not(:disabled) { background: #333; }
.btn--primary:disabled { opacity: .4; cursor: not-allowed; }

.btn--ghost { background: var(--card); border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--wash); }

.rowbtns { display: flex; gap: 10px; margin-bottom: 18px; }
.rowbtns .btn { flex: 1; font-size: 14px; padding: 12px 16px; }

/* --- Aktionsleiste ------------------------------------------------------- */
.actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

.actionbar__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  gap: 10px;
}

/* --- Formular ------------------------------------------------------------ */
.field { display: block; margin-bottom: 12px; }
.field__label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-bottom: 5px; }

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  font: inherit;
  font-size: 15px;
  background: var(--card);
  color: var(--ink);
  resize: vertical;
}

.field input:focus,
.field textarea:focus { outline: none; border-color: var(--ink); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; cursor: pointer; }
.check input { margin-top: 2px; accent-color: var(--ink); width: 17px; height: 17px; flex: 0 0 auto; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.error, .success { font-size: 14px; font-weight: 600; margin: 10px 0 0; }
.error { color: var(--err); }
.success { color: var(--ok); }

.disclaimer { font-size: 12px; color: var(--ink-soft); margin: 4px 0 20px; }

/* --- Ladeoverlay --------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(36, 36, 40, .82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.loader__box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  max-width: 320px;
  width: 100%;
}

.loader__spark { display: flex; gap: 6px; justify-content: center; margin-bottom: 16px; }

.loader__spark i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--black);
  animation: pulse 1s infinite ease-in-out;
}

.loader__spark i:nth-child(2) { animation-delay: .15s; }
.loader__spark i:nth-child(3) { animation-delay: .3s; }

@keyframes pulse {
  0%, 100% { opacity: .25; transform: scale(.85); }
  40%      { opacity: 1;   transform: scale(1); }
}

.loader__title { margin: 0 0 4px; font-weight: 800; font-size: 17px; }
.loader__note { margin: 0; font-size: 13px; color: var(--ink-soft); }

/* --- Zugänglichkeit ------------------------------------------------------ */
:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 559px) {
  .wordmark__sub { display: none; }
  .wordmark__logo { width: 132px; }
}

@media (min-width: 640px) {
  .display { font-size: 36px; }
  .display--page { font-size: 64px; }
  .wordmark__logo { width: 178px; }
  .display--s { font-size: 29px; }
  .shell { padding-top: 34px; }
}


/* --- Feinhinweise -------------------------------------------------------- */
.finehint {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.finehint a, .check a, .note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* --- Fußbereich ---------------------------------------------------------- */
.footer {
  background: var(--black);
  color: #B8B8B8;
  margin-top: 8px;
}

.footer__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 34px;
  font-size: 13px;
  line-height: 1.6;
}

.footer p { margin: 0; }
.footer__logo { width: 150px; height: auto; display: block; margin-bottom: 14px; }
.footer__contact { margin-top: 8px; }
.footer a { color: #B8B8B8; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.footer a:hover { color: #fff; border-bottom-color: #fff; }

.footer__legal {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer__legal a { border-bottom: 0; font-weight: 600; }

.footer__addr { color: #B8B8B8; }
