/* Fundus: nur, was grundlage.css nicht mitbringt. Zuerst für das Smartphone gebaut. */
[hidden] { display: none !important; }
.inhalt { max-width: 60rem; margin: 0 auto; padding: 1rem 1rem 4rem; }
h2 { margin: 0.2rem 0 0.8rem; font-family: var(--schrift-anzeige); font-weight: 500; font-size: 1.4rem; }
h3 { margin: 1.6rem 0 0.6rem; font-size: 1rem; }
.knopf { padding: 0.5rem 1rem; }

.suchzeile { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.6rem; }
.suchzeile #q { flex: 1 1 14rem; padding: 0.6rem 0.8rem; font-size: 1rem; }
.suchzeile select { flex: 0 1 11rem; min-width: 0; }

.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.7rem; }
.karte {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.75rem; align-items: start;
  padding: 0.6rem; color: var(--text); text-decoration: none;
  background: var(--grund); border: 1px solid var(--linie); border-radius: 14px;
}
.karte:hover { border-color: var(--linie-stark); }
.karte img, .karte .ohne-bild {
  width: 5.5rem; height: 5.5rem; object-fit: cover; border-radius: 10px; background: var(--tag-tief);
}
.karte .ohne-bild { display: grid; place-items: center; color: var(--text-leise); font-size: 0.75rem; text-align: center; }
.karte h4 { margin: 0 0 0.15rem; font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
.karte p { margin: 0; color: var(--text-leise); font-size: 0.85rem; overflow-wrap: anywhere; }
.karte .ort { color: var(--text); }
.marke { display: inline-block; padding: 0.05rem 0.5rem; margin-top: 0.25rem; font-size: 0.75rem; border-radius: 999px; }
.marke.offen { color: var(--offen); background: var(--offen-flaeche); }
.marke.fehler { color: var(--fehler); background: var(--fehler-flaeche); }
.marke.laeuft { color: var(--text); background: var(--laeuft-flaeche); }
.laeuft-punkt { display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.3rem; border-radius: 50%;
  background: var(--betont); animation: puls 1.2s ease-in-out infinite; }
@keyframes puls { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .laeuft-punkt { animation: none; } }

.leer { padding: 2.5rem 1rem; text-align: center; color: var(--text-leise); }
.fuss-aktion { margin-top: 1.5rem; font-size: 0.85rem; }
.fuss-aktion a { color: var(--text-leise); }

/* ---------- Aufnahme ---------- */
.kamera { position: relative; overflow: hidden; max-width: 34rem; margin: 0 auto 1rem; background: #111; border-radius: 16px; }
.kamera video { display: block; width: 100%; max-height: 62vh; object-fit: cover; aspect-ratio: 3 / 4; }
@media (min-width: 40rem) { .kamera video { aspect-ratio: 4 / 3; } }
.kamera-zeit { position: absolute; top: 0.7rem; left: 50%; transform: translateX(-50%); padding: 0.1rem 0.7rem;
  color: #fff; font-variant-numeric: tabular-nums; background: #c0392b; border-radius: 999px; }
.souffleur { position: absolute; left: 0; right: 0; bottom: 5.6rem; margin: 0; padding: 0.5rem 0.9rem;
  color: #fff; font-size: 0.9rem; text-align: center; background: linear-gradient(transparent, rgb(0 0 0 / 0.55)); }
.kamera-knoepfe { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 0.7rem 0.9rem; background: rgb(0 0 0 / 0.55); }
.kamera-knoepfe #verwerfen { justify-self: start; }
.ausloeser { grid-column: 2; width: 4.2rem; height: 4.2rem; padding: 0; background: transparent; border: 4px solid #fff;
  border-radius: 50%; cursor: pointer; }
.ausloeser span { display: block; width: 3rem; height: 3rem; margin: auto; background: #e74c3c; border-radius: 50%;
  transition: all 0.15s; }
.ausloeser.laeuft span { width: 1.6rem; height: 1.6rem; border-radius: 6px; }
.anders { max-width: 34rem; margin: 0 auto; }
.anders summary { padding: 0.5rem 0; color: var(--text-leise); cursor: pointer; }
.anders-knoepfe { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0; }
.anders textarea { width: 100%; margin: 0.5rem 0; }
.gewaehlt { margin: 0.3rem 0; padding-left: 1.1rem; color: var(--text-leise); font-size: 0.85rem; }
#ansicht-aufnahme h2, #ansicht-aufnahme > .hinweis, #zuletzt-titel, #durchgaenge-titel, .schmal { max-width: 34rem; margin-left: auto; margin-right: auto; }
.karten.schmal { grid-template-columns: 1fr; }

/* ---------- Ein Objekt ---------- */
.detail { display: grid; gap: 1.2rem; }
.detail > div { min-width: 0; }
@media (min-width: 46rem) { .detail { grid-template-columns: minmax(0, 22rem) 1fr; } }
.detail .titelbild { width: 100%; max-height: 26rem; object-fit: contain; background: var(--tag-tief); border-radius: 14px; }
.galerie { display: flex; gap: 0.4rem; margin-top: 0.5rem; overflow-x: auto; }
.galerie img { width: 4rem; height: 4rem; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: 0.75; }
.galerie img.gewaehlt-bild { opacity: 1; outline: 2px solid var(--betont); }
.detail h2 { margin-bottom: 0.2rem; }
.unterzeile { margin: 0 0 0.8rem; color: var(--text-leise); }
.standort { padding: 0.6rem 0.8rem; margin: 0 0 1rem; background: var(--gut-flaeche); border-radius: 12px; }
.standort.fehlt { color: var(--offen); background: var(--offen-flaeche); }
.standort b { display: block; font-size: 1.05rem; }
dl.angaben { display: grid; grid-template-columns: minmax(6rem, 38%) 1fr; gap: 0.3rem 1rem; margin: 0 0 1rem; }
dl.angaben dt { color: var(--text-leise); overflow-wrap: anywhere; }
dl.angaben dd { margin: 0; overflow-wrap: anywhere; }
.schlagworte span { display: inline-block; padding: 0.05rem 0.55rem; margin: 0 0.25rem 0.3rem 0; font-size: 0.8rem;
  background: var(--tag-tief); border-radius: 999px; }
.fragen { padding: 0.7rem 0.9rem; margin: 0 0 1rem; color: var(--offen); background: var(--offen-flaeche); border-radius: 12px; }
.fragen ul { margin: 0.3rem 0 0.6rem; padding-left: 1.1rem; }
.aktionen { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.schnellnotiz { display: flex; gap: 0.5rem; margin: 0.5rem 0 1rem; }
.schnellnotiz input { flex: 1; min-width: 0; padding: 0.5rem 0.7rem; }
.aufnahmen { font-size: 0.88rem; color: var(--text-leise); }
.aufnahmen li { margin-bottom: 0.4rem; }
.aufnahmen q { color: var(--text); }

/* ---------- Begleitung: angesagter Ort und Rückmeldung nach der Aufnahme ---------- */
.ortleiste, .pruefung { max-width: 34rem; margin: 0 auto 0.6rem; }
.ortleiste { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem 0.4rem 0.8rem;
  background: var(--gut-flaeche); border-radius: 12px; }
.ortleiste.ohne { background: var(--offen-flaeche); color: var(--offen); }
.ortleiste #ort-text { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.ortleiste .knopf { padding: 0.3rem 0.8rem; white-space: nowrap; }
.ort-zeichen { font-size: 1.2rem; line-height: 1; }
.pruefung { padding: 0.6rem 0.8rem; background: var(--grund); border: 1px solid var(--linie); border-radius: 12px; }
.pruefung p { margin: 0 0 0.3rem; overflow-wrap: anywhere; }
.pruefung .leise { color: var(--text-leise); font-size: 0.85rem; }
.pruefung.fragt { border-color: var(--offen); background: var(--offen-flaeche); }
.pruefung .frage { font-size: 1.05rem; font-weight: 600; color: var(--offen); }
.pruefung .aktionen { margin: 0.5rem 0 0; }
.ort-bekannt { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0; }
.ort-bekannt .knopf { padding: 0.3rem 0.8rem; font-size: 0.88rem; }
dialog.fenster { width: min(30rem, calc(100vw - 2rem)); }

/* ---------- Herkunft einer Angabe: aus dem Bild geschlossen ---------- */
.aus-bild { display: inline-block; padding: 0 0.4rem; font-size: 0.7rem; font-weight: 400; line-height: 1.5; vertical-align: 0.1em;
  color: var(--text-leise); border: 1px dashed var(--linie-stark); border-radius: 999px; }
.legende { margin: -0.4rem 0 1rem; color: var(--text-leise); font-size: 0.8rem; }

/* ---------- Profil „handel“: Preise ---------- */
.preis { color: var(--text) !important; font-weight: 600; }
.preis small { font-weight: 400; color: var(--text-leise); }
.marke.gut { color: var(--auf-petrol); background: var(--petrol-hell); }
.handel-kasten { padding: 0.6rem 0.8rem; margin: 0 0 1rem; background: var(--gut-flaeche); border-radius: 12px; }
.handel-kasten.pruefen, .handel-kasten.fehlt { background: var(--offen-flaeche); }
.handel-kasten .betrag { font-size: 1.5rem; font-weight: 600; }
.handel-kasten ul { margin: 0.3rem 0; padding-left: 1.1rem; color: var(--offen); }
.etikett { display: block; width: 100%; max-height: 14rem; object-fit: contain; margin-top: 0.5rem;
  background: var(--tag-tief); border-radius: 10px; }
.nur-offene { display: inline-flex; gap: 0.4rem; align-items: center; margin-bottom: 0.6rem; font-size: 0.9rem; }
.preisliste { display: grid; gap: 0.6rem; }
.preiszeile { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.4rem 0.75rem; padding: 0.6rem;
  background: var(--grund); border: 1px solid var(--linie); border-radius: 14px; }
.preiszeile.pruefen, .preiszeile.fehlt { border-color: var(--offen); }
.preiszeile > img:not(.etikett), .preiszeile .ohne-bild { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 10px;
  background: var(--tag-tief); }
.preiszeile h4 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.preiszeile h4 a { color: inherit; }
.preiszeile p { margin: 0.1rem 0; font-size: 0.85rem; color: var(--text-leise); }
.preiszeile .gruende { color: var(--offen); }
.preiszeile .etikett-link { grid-column: 1 / -1; }
.preiszeile .etikett { height: 10rem; max-height: none; margin: 0; cursor: zoom-in; }
.preiszeile form { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.preiszeile form input { width: 7rem; padding: 0.4rem 0.6rem; font-size: 1rem; }
@media (min-width: 46rem) {
  .preiszeile { grid-template-columns: 4.5rem minmax(0, 1fr) 14rem; }
  .preiszeile .etikett-link { grid-column: 3; grid-row: 1 / span 2; }
  .preiszeile .etikett { height: 8rem; }
  .preiszeile form { grid-column: 2; }
}

/* ---------- Modus 2: durchgehend filmen ---------- */
.modus-wahl { display: flex; max-width: 34rem; margin: 0 auto 0.7rem; padding: 0.2rem;
  background: var(--tag-tief); border-radius: 999px; }
.modus-wahl .modus { flex: 1; padding: 0.45rem 0.8rem; font: inherit; font-size: 0.95rem; color: var(--text-leise);
  background: transparent; border: 0; border-radius: 999px; cursor: pointer; }
.modus-wahl .modus[aria-pressed="true"] { color: var(--auf-petrol); background: var(--petrol-hell); font-weight: 600; }
.durchgaenge { display: grid; gap: 0.6rem; }
.durchgang { padding: 0.6rem 0.8rem; background: var(--grund); border: 1px solid var(--linie); border-radius: 14px; }
.durchgang.fehler { border-color: var(--fehler); }
.durchgang > p { margin: 0 0 0.3rem; }
.durchgang .leise { color: var(--text-leise); font-size: 0.85rem; }
.durchgang .reihe { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.2rem; }
.durchgang .reihe a { flex: 0 0 auto; width: 4.2rem; color: var(--text); text-decoration: none; font-size: 0.7rem;
  line-height: 1.2; }
.durchgang .reihe img, .durchgang .reihe .ohne-bild { display: grid; place-items: center; width: 4.2rem; height: 4.2rem;
  object-fit: cover; border-radius: 8px; background: var(--tag-tief); color: var(--text-leise); }
.durchgang .reihe span { display: block; margin-top: 0.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Freisteller: der Gegenstand auf Weiß ---------- */
.galerie img.frei { object-fit: contain; background: #fff; }
.detail .titelbild[src*="/frei-"] { background: #fff; }
.karte img[src*="/frei-"] { object-fit: contain; background: #fff; }
.bildaktionen { margin: 0.5rem 0 0; }
.bildaktionen .knopf { padding: 0.3rem 0.8rem; font-size: 0.88rem; }

/* ---------- Inserat für Verkaufsplattformen ---------- */
#ansicht-inserat { max-width: 40rem; margin: 0 auto; }
#ansicht-inserat label { display: grid; gap: 0.2rem; font-size: 0.85rem; color: var(--text-leise); }
#ansicht-inserat label .feld { font-size: 1rem; color: var(--text); min-width: 0; }
.inserat-kopf { display: grid; grid-template-columns: 8rem 1fr; gap: 0.6rem; align-items: end; margin-bottom: 1rem; }
.inserat-kopf .breit, .inserat-kopf .knopf { grid-column: 1 / -1; }
.inserat-kopf .knopf { justify-self: start; }
.inserat-wahl { max-width: none; margin: 0 0 0.8rem; }
.inserat { display: grid; gap: 0.5rem; padding: 0.8rem; background: var(--grund); border: 1px solid var(--linie); border-radius: 14px; }
.inserat textarea { resize: vertical; line-height: 1.45; }
.inserat .aktionen { margin: 0; }
.knopf.klein { padding: 0.3rem 0.8rem; font-size: 0.88rem; }
.kopierzeile { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding-top: 0.5rem;
  border-top: 1px solid var(--linie); }
.kopierzeile span { min-width: 0; overflow-wrap: anywhere; }
.kopierzeile small { display: block; color: var(--text-leise); }
.inserat-bilder img { width: 5rem; height: 5rem; opacity: 0.4; }
.inserat-stand { align-items: center; justify-content: space-between; padding-top: 0.8rem; border-top: 1px solid var(--linie); }
#ansicht-inserat label.haken { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.95rem; color: var(--text); }
.marke.verkauft { color: var(--text-leise); background: var(--tag-tief); }
.karte.verkauft img { opacity: 0.45; }
