/* Inserat prüfen /inserat-pruefen: Handy zuerst, ein Feld, ein Knopf, kurzes Ergebnis. Ruhig: Punkte in Grün, Amber, Blau, Grau, kein Rot, keine Warn-Grafik. Tokens aus styles.css. */
.ip { background: var(--grund); min-height: 100dvh; }
.ip-in { max-width: 640px; padding-block: 28px calc(48px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.ip-kopf { display: grid; gap: 8px; }
.ip-kopf h1 { font-size: clamp(34px, 9vw, 56px); letter-spacing: -.045em; line-height: 1.02; }
.ip-sub { color: var(--ink-2); font-size: 16.5px; line-height: 1.5; }

.ip-form { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-l); background: var(--weiss); box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 10px 40px rgba(17, 17, 18, .05); min-width: 0; }
.ip-form[hidden] { display: none; }
.ip-feld { font-weight: 700; font-size: 14.5px; }
.ip-form textarea { width: 100%; min-height: 176px; resize: vertical; border: 0; border-radius: var(--r-m); background: var(--grund); box-shadow: inset 0 0 0 1.5px var(--linie); padding: 14px 16px; font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink); }
.ip-form textarea:focus { outline: 2px solid var(--blau); outline-offset: 0; background: #fff; }
.ip-form textarea::placeholder { color: var(--grau); }

.ip-bild-zeile { display: grid; gap: 10px; min-width: 0; }
.ip-bild-knopf { width: 100%; cursor: pointer; }
.ip-datei { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ip-datei:focus-visible + .ip-vorschau, .ip-bild-knopf:focus-within { outline: 3px solid var(--blau); }
.ip-vorschau { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ip-vorschau[hidden] { display: none; }
.ip-vorschau img { width: 64px; height: 64px; object-fit: cover; object-position: top; border-radius: 12px; background: var(--grund); flex: none; }
.ip-weg { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; }
.ip-info { padding: 10px 14px; border-radius: var(--r-m); background: var(--grund); color: var(--ink-2); font-size: 14.5px; }
.ip-info[hidden] { display: none; }
.ip-meldung { padding: 12px 14px; border-radius: var(--r-m); background: var(--blau-hell); color: var(--ink); font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.ip-meldung[hidden] { display: none; }
.ip-los { width: 100%; }
.ip-los:disabled { opacity: .7; cursor: progress; }
.ip-klein { font-size: 13px; line-height: 1.4; color: var(--grau); }
.ip-klein a { color: var(--grau); font-weight: 600; display: inline-block; padding-block: 12px; margin-block: -12px; }
.ip-klein[hidden] { display: none; }

/* Ergebnis */
.ip-ergebnis { display: grid; gap: 14px; padding: 18px; border-radius: var(--r-l); background: var(--weiss); box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 10px 40px rgba(17, 17, 18, .05); outline: none; min-width: 0; }
.ip-ergebnis[hidden] { display: none; }
.ip-gesamt { font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.ip-zusatz { color: var(--ink-2); font-size: 15.5px; line-height: 1.45; margin-top: -8px; }
.ip-zeilen { list-style: none; margin: 0; padding: 0; display: grid; }
.ip-zeile { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 4px 10px; padding: 12px 0; border-top: 1px solid var(--linie); }
.ip-punkt { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--grau); }
.ip-punkt.gruen { background: var(--gut); }
.ip-punkt.amber { background: #d9920f; }
.ip-punkt.blau { background: var(--blau); }
.ip-punkt.grau { background: #b5b5b1; }
.ip-zeile-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; font-size: 16px; }
.ip-zeile-kopf span { font-size: 13.5px; font-weight: 600; color: var(--grau); }
.ip-zeile-kopf span.amber { color: var(--warn); }
.ip-zeile-kopf span.gruen { color: var(--gut); }
.ip-zeile-text { grid-column: 2; color: var(--ink-2); font-size: 15px; line-height: 1.45; display: grid; gap: 4px; }
.ip-zeile-text a { color: var(--blau-tief); font-weight: 700; display: inline-block; padding-block: 11px; margin-block: -6px -11px; }
.ip-regel { padding: 12px 14px; border-radius: var(--r-m); background: var(--grund); font-size: 16px; font-weight: 700; line-height: 1.35; }
.ip-mehr { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.ip-mehr a { color: var(--blau-tief); font-weight: 700; display: inline-block; padding-block: 11px; margin-block: -11px; }
.ip-grenze { font-size: 13px; color: var(--grau); line-height: 1.4; }
.ip-neu { width: 100%; }

/* Erklärung unter dem Werkzeug */
.ip-text { display: grid; gap: 10px; padding: 8px 2px 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.ip-text h2 { margin-top: 14px; font-size: 21px; letter-spacing: -.03em; color: var(--ink); }
.ip-text ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.ip-text b { color: var(--ink); }
.ip-text a { color: var(--blau-tief); font-weight: 600; padding-block: 10px; }
@media (min-width: 768px) {
  .ip-in { padding-top: 44px; }
  .ip-form, .ip-ergebnis { padding: 24px; }
  .ip-bild-knopf { width: auto; justify-self: start; }
}
