/* harstconsulting.de - Infoseite KI-Druckdaten.
 * Die Seite nutzt die Bausteine aus main.css (page-band, split, card, steps,
 * faq, form). Hier steht nur, was es dort nicht gibt: Vorher/Nachher-Regler,
 * Pixelrechner, Tabelle und die Prompt-Kaesten. */

/* Einleitung unter zentrierten Abschnittsueberschriften */
.ki-einleitung { max-width: 760px; margin: 10px auto 40px; }
.ki-zwischen { margin: 60px 0 30px; }
.ki-abschluss { max-width: 760px; margin: 60px auto 20px; }

/* Karten auf dieser Seite: kleinere Titel, damit lange Woerter passen */
#probleme .card__title,
#service .card__title,
.ki-prompt .card__title,
.ki-dodont .card__title { font-size: 24px; line-height: 1.2; }
.card { padding: 25px 20px; }
.card p strong { color: var(--blue); }

/* --------------------------------------------------------------------------
   Vorher/Nachher-Regler
   -------------------------------------------------------------------------- */
.vergleich {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  background: var(--grey);
}
.vergleich img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vergleich__vorher {
  image-rendering: pixelated;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.vergleich__linie {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  margin-left: -1px;
  background: var(--white);
  pointer-events: none;
}
.vergleich__linie::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.vergleich__regler {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.vergleich__text { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Pixelrechner
   -------------------------------------------------------------------------- */
.ki-rechner {
  padding: 25px 20px;
  background: var(--grey);
  border-radius: 15px;
}
.ki-rechner[hidden] { display: none; }
.ki-rechner__ergebnis { margin-top: 10px; }
.ki-rechner__zahl { margin: 0 0 10px; font-size: 18px; font-weight: 700; color: var(--ink); }
.ki-rechner__zahl [data-dpi] { font-family: var(--font-head); font-size: 28px; }
.ki-rechner__stufe { color: var(--muted); }
.ki-rechner__balken {
  height: 6px;
  border-radius: 3px;
  background: var(--white);
  overflow: hidden;
}
.ki-rechner__balken i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue);
  transition: width 0.3s ease;
}
.ki-rechner__ergebnis[data-stufe="gut"] .ki-rechner__stufe { color: #2e7d32; }
.ki-rechner__ergebnis[data-stufe="knapp"] .ki-rechner__stufe { color: #b26a00; }
.ki-rechner__ergebnis[data-stufe="klein"] .ki-rechner__stufe { color: #c62828; }
.ki-rechner__ergebnis[data-stufe="klein"] .ki-rechner__balken i { background: #c62828; }
.ki-rechner__text { margin: 12px 0 0; font-size: 16px; line-height: 1.5; }

/* --------------------------------------------------------------------------
   Tabelle
   -------------------------------------------------------------------------- */
.ki-tabelle-rahmen { margin-top: 50px; overflow-x: auto; }
.ki-tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.ki-tabelle caption {
  margin-bottom: 12px;
  font-weight: 700;
  text-align: left;
  color: var(--ink);
}
.ki-tabelle th,
.ki-tabelle td {
  padding: 10px 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  white-space: nowrap;
}
.ki-tabelle thead th { border-bottom: 2px solid var(--ink); }
.ki-tabelle tbody th { font-weight: 600; }
.ki-tabelle__hinweis { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* Was die einzelnen KI-Programme liefern: graue Karten auf weissem Grund */
.ki-programme .card { background: var(--grey); }
.ki-programme .card__title { font-size: 24px; line-height: 1.2; }
.ki-programme + .ki-tabelle__hinweis { margin-top: 20px; }

/* --------------------------------------------------------------------------
   Prompts
   -------------------------------------------------------------------------- */
.ki-baukasten { max-width: 860px; margin-inline: auto; padding: 30px; }
.ki-baukasten ol { margin: 0; padding-left: 1.3em; font-size: 18px; line-height: 1.7; }
.ki-hinweis { font-size: 14px; color: var(--muted); }
.card p.ki-hinweis { margin-top: 0; padding-top: 0; font-size: 14px; }

.ki-prompt pre {
  position: relative;
  margin: 4px 0 0;
  padding: 16px 16px 48px;
  background: var(--grey);
  border-radius: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.ki-prompt--beispiel { margin: 20px 0 10px; }
.ki-prompt--beispiel p { margin: 0 0 8px; }
.ki-prompt .ki-prompt__warum { font-size: 14px; color: var(--muted); }
.ki-kopieren {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  font: 700 13px/1 var(--font-body);
  cursor: pointer;
}
.ki-kopieren:hover { background: var(--blue-dark); }
.ki-kopieren[data-kopiert] { background: #2e7d32; }

code {
  padding: 1px 5px;
  background: var(--grey);
  border-radius: 4px;
  font-size: 0.9em;
}
.ki-prompt pre code { padding: 0; background: none; font-size: inherit; }

.ki-dodont { margin-top: 30px; }
.ki-dodont .icon-list { margin-top: 4px; }
.ki-dodont .icon-list li { margin-bottom: 10px; line-height: 1.5; }

/* Ablauf: zweite Reihe Abstand */
#anliefern .steps,
#service .steps { row-gap: 40px; margin-top: 50px; }

@media (max-width: 767px) {
  .ki-baukasten { padding: 25px 20px; }
  .ki-baukasten ol { font-size: 16px; }
  .ki-zwischen { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .ki-rechner__balken i { transition: none; }
}
