/* Doneforyou Ads (Bereich /ads) */
.ads-test { margin-top: 22px; background: #fff6dd; color: #6b4e00; border-radius: 16px; padding: 14px 18px; font-size: 15px; max-width: 900px; }
.ads-meldung { margin-top: 18px; }
.ads-liste { margin: 16px 0 0 20px; font-size: 15px; display: grid; gap: 6px; }
.ads-auswahl { margin-top: 18px; }
.ads-h3 { font-size: 16px; font-weight: 700; margin-top: 22px; }
.ads-label { margin-top: 18px; font-size: 15px; font-weight: 600; }
.ads-business { margin-top: 12px; font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.ads-fehlt { margin-top: 14px; display: grid; gap: 8px; }
.ads-fehlt .msg { margin: 0; }
.ads-kategorie .pill { display: inline-block; margin-bottom: 8px; }
/* Facebook-Seite als Karte: Profilbild, Name, Kategorie, Follower */
.ads-seiten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 10px; }
.ads-seite { flex-direction: row !important; align-items: center; gap: 12px !important; background: var(--bg); border-radius: 16px; padding: 12px 14px; cursor: pointer; border: 2px solid transparent; font-weight: 400 !important; min-width: 0; }
.ads-seite:has(input:checked) { border-color: var(--text); background: var(--surface); }
.ads-seite input { flex: none; width: auto; margin: 0; }
.ads-seite-bild { width: 44px; height: 44px; border-radius: 50%; background: var(--text); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex: none; overflow: hidden; }
.ads-seite-bild img { width: 100%; height: 100%; object-fit: cover; }
.ads-seite-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.ads-seite-text b { font-size: 15px; overflow-wrap: anywhere; }
.ads-seite-text .muted { font-size: 13px; }
.ads-ig { align-self: flex-start; margin-top: 4px; padding: 2px 9px; border-radius: 10px; overflow-wrap: anywhere; font-size: 12.5px; color: var(--muted, #66665f); background: rgba(0,0,0,.05); }
.ads-ig.ok { color: #0e0e0e; background: #b9f27c; font-weight: 600; }
.ads-kunde { display: block; font-size: 13px; margin-top: 2px; }
.ads-tabelle .muted { font-size: 14px; }
.ads-aktion { text-align: right; white-space: nowrap; }
.ads-aktion .btn-small { height: 36px; padding: 0 14px; font-size: 14px; }
.pill.pruefung { background: #fff6dd; color: #6b4e00; }

.ads-schritt h2 { display: flex; align-items: center; gap: 12px; }
.ads-nr { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--gruen); color: var(--text); align-items: center; justify-content: center; font-size: 15px; font-weight: 800; letter-spacing: 0; flex: none; }
.ads-schritt h3 { font-size: 17px; font-weight: 700; margin-top: 24px; }
.ads-link { margin-top: 14px; font-size: 15px; overflow-wrap: anywhere; }

.ads-bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.ads-bild { position: relative; display: block; border-radius: 16px; overflow: hidden; background: var(--bg); cursor: pointer; border: 2px solid transparent; }
.ads-bild:has(input:checked) { border-color: var(--text); }
.ads-bild input { position: absolute; top: 10px; left: 10px; z-index: 1; }
.ads-bild img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.ads-bild span { display: block; padding: 6px 10px; font-size: 13px; font-weight: 500; color: var(--muted); }

.ads-texte { display: grid; gap: 10px; margin-top: 12px; }
.ads-text { flex-direction: row !important; align-items: flex-start; gap: 12px !important; background: var(--bg); border-radius: 16px; padding: 14px 16px; cursor: pointer; border: 2px solid transparent; font-weight: 400 !important; }
.ads-text:has(input:checked) { border-color: var(--text); background: var(--surface); }
.ads-text input { margin-top: 3px; flex: none; }
.ads-text > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ads-text .pill { align-self: flex-start; }
.ads-text b { font-size: 16px; }
.ads-primaer { font-size: 14px; white-space: pre-line; color: var(--text); max-height: 7.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }

.ads-platz-gruppen { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.ads-platz-gruppe { border: 0; margin: 0; padding: 14px 16px; background: var(--bg); border-radius: 16px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.ads-platz-gruppe legend { float: left; width: 100%; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.ads-platz { align-items: flex-start !important; cursor: pointer; font-size: 15px; }
.ads-platz input { margin-top: 3px; flex: none; }
.ads-platz > span { display: flex; flex-wrap: wrap; gap: 0 6px; min-width: 0; }
.ads-platz .muted { font-size: 13px; font-weight: 400; }
.ads-platz-schwach { flex-basis: 100%; }
.ads-platz-hinweis { margin-top: 14px; display: grid; gap: 8px; }
.ads-platz-hinweis .knopf-reihe { display: flex; flex-wrap: wrap; gap: 8px; }

.ads-suche { margin-top: 20px; position: relative; }
.ads-treffer { list-style: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 5; margin-top: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--schatten-hoch); padding: 6px; max-height: 300px; overflow: auto; font-weight: 400; }
.ads-treffer button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.ads-treffer button:hover, .ads-treffer button:focus-visible { background: var(--bg); }
.ads-treffer button:disabled { opacity: .45; cursor: default; }
.ads-treffer li.msg, .ads-treffer .ads-ort-leer { padding: 10px 12px; }
.ads-orte { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.ads-ort { display: flex; align-items: center; gap: 14px; background: var(--bg); border-radius: 14px; padding: 8px 8px 8px 16px; }
.ads-ort > span:first-child { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 15px; }
.ads-ort > span:first-child .muted { font-size: 13px; }
.ads-ort select { height: 40px; font-size: 15px; }
.ads-ort .text-btn { padding: 0 8px; }
.ads-ort-leer { font-size: 14px; padding: 6px 0; }
.ads-fest { margin-top: 18px; }
.ads-budget { margin-top: 18px; margin-bottom: 14px; }
.ads-budget input:disabled { background: var(--bg); color: var(--muted); }

.ads-vs-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; font-size: 14px; color: var(--muted); font-weight: 600; }
.ads-vs-kopf .btn-small { height: 36px; width: 36px; padding: 0; margin-left: 6px; font-size: 20px; }
.ads-mockups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); gap: 20px; margin-top: 14px; }
.ads-mock { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; color: #050505; font-size: 14px; }
.ads-mock figcaption { background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; }
.mock-kopf { display: flex; align-items: center; gap: 10px; padding: 12px; }
.mock-kopf > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.mock-kopf > span:last-child span { font-size: 12px; color: #65676b; }
.mock-av { width: 36px; height: 36px; border-radius: 50%; background: var(--text); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; overflow: hidden; }
.ads-mock .mock-av img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.ads-mock .mock-text { margin: 0 12px 10px; white-space: pre-line; line-height: 1.4; max-height: 5.6em; overflow: hidden; }
.ads-mock img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg); }
.mock-fuss { display: flex; align-items: center; gap: 10px; background: #f0f2f5; padding: 10px 12px; }
.mock-fuss > span:first-child { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.mock-fuss small { color: #65676b; font-size: 12px; }
.mock-fuss b, .mock-fuss > span:first-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-fuss > span:first-child span { color: #65676b; font-size: 13px; }
.mock-cta { background: #e4e6eb; border-radius: 6px; padding: 8px 12px; font-weight: 600; white-space: nowrap; }
.mock-ig-cta { display: flex; justify-content: space-between; padding: 10px 12px; font-weight: 600; border-bottom: 1px solid #efefef; }
.ads-mock.ig .mock-text { margin-top: 10px; }
/* Story/Reels: 9:16-Bild mit Kopf oben und Button unten darübergelegt */
.mock-story { position: relative; max-width: 260px; margin: 12px auto; border-radius: 12px; overflow: hidden; background: #000; }
.ads-mock .mock-story img { aspect-ratio: 9 / 16; }
.mock-story .mock-kopf { position: absolute; inset: 0 0 auto; color: #fff; }
.mock-story .mock-kopf > span:last-child span { color: rgba(255, 255, 255, .8); }
.mock-story .mock-ig-cta { position: absolute; inset: auto 12px 14px; background: #fff; border-radius: 8px; border: 0; }
.ads-token { margin: 0 0 12px; }

.ads-start-karte .kv { margin-top: 14px; }
.ads-start-karte .msg { margin-top: 12px; }

.ads-dash-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.ads-status { font-size: 14px; padding: 5px 12px; }
.ads-dash-knoepfe { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.ads-dash-knoepfe .btn-small { height: 40px; }
#ads-dash-msg { margin-top: 12px; }

/* Bestätigung vor dem Starten (Kosten) */
.ads-bestaetigen .kv { margin-top: 14px; }
.ads-bestaetigen .hinweis { margin-top: 12px; }
.ads-bestaetigen > .sub { margin-top: 12px; }
.ads-bestaetigen .modal-actions { margin-top: 20px; }
.ads-bestaetigen .modal-actions .gruen { background: var(--gruen); color: var(--text); }
@media (max-width: 600px) {
  .ads-bestaetigen { width: 100%; max-width: none; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 100dvh; }
  .ads-bestaetigen .modal-actions { flex-direction: column-reverse; }
  .ads-bestaetigen .modal-actions button { width: 100%; }
}
.ads-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.ads-zahlen > div { background: var(--bg); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ads-zahlen span { color: var(--muted); font-size: 14px; }
.ads-zahlen b { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .ads-zahlen { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .ads-zahlen b { font-size: clamp(20px, 5.4vw, 26px); }
  .ads-dash-knoepfe { margin-left: 0; }
  .ads-ort { flex-wrap: wrap; }
  .ads-mockups { grid-template-columns: 1fr; }
  .ads-tabelle th:nth-child(4), .ads-tabelle td:nth-child(4) { display: none; }
}

/* Paket ohne Ads (Starter): Schloss und Upgrade-Karte */
.schloss { display: inline-block; vertical-align: -0.1em; }
.page-head h1 .schloss { width: .7em; height: .7em; margin-left: 6px; color: var(--muted); }
.ads-upgrade { margin-top: 22px; max-width: 760px; padding: 36px; }
.ads-upgrade-symbol { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; background: var(--gruen); color: var(--text); align-items: center; justify-content: center; margin-bottom: 16px; }
.ads-upgrade-symbol .schloss { width: 24px; height: 24px; }
.ads-upgrade .ads-liste { margin-bottom: 26px; }
.ads-upgrade-laufend { margin-top: 18px; max-width: 760px; }
.ads-upgrade-laufend .msg:empty { display: none; }
.ads-upgrade-trennen { margin-top: 14px; }
/* Paketliste in den Einstellungen: Funktion nicht enthalten */
#pakete { scroll-margin-top: 110px; }
.plan-limits li.ohne { text-decoration: line-through; opacity: .6; }

/* Handy: Tabelle wird zu Karten (panel.css) – Kennzahlen mit Bezeichnung statt nackter Zahlen/Striche */
@media (max-width: 900px) {
  :is(.ads-tabelle, .ads-frueher) td[data-titel] { display: flex; justify-content: space-between; gap: 12px; }
  :is(.ads-tabelle, .ads-frueher) td[data-titel]::before { content: attr(data-titel); color: var(--muted); }
}
