/* Portal-specific: map + price list */
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.25rem; align-items: start; }
.map-panel { position: sticky; top: 80px; }
.publisher-map { height: 420px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: hidden; background: var(--paper-2); }
.hc-pin { background: transparent; border: 0; }
.hc-pin-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--magenta); border: 2.5px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,0.35); transition: transform 0.15s; }
.hc-pin-dot:hover { transform: scale(1.25); }
.hc-pin-dot.is-active { background: var(--ink); transform: scale(1.3); }
.hc-pin-dot.is-dim { opacity: 0.35; }
.hc-tooltip { border: 0 !important; border-radius: 8px !important; box-shadow: var(--shadow-lg) !important; padding: 0.55rem 0.7rem !important; font-family: var(--font-ui) !important; }
.hc-tip-name { font-weight: 700; font-size: 0.85rem; }
.hc-tip-meta { font-size: 0.74rem; color: var(--muted); }
.hc-tip-stats { display: flex; gap: 0.6rem; font-size: 0.74rem; margin-top: 0.25rem; }
.leaflet-container { font-family: var(--font-ui); }
.leaflet-control-attribution { font-size: 9px !important; }
.selbar { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 50; background: var(--ink); color: #fff; padding: 0.6rem 0.75rem 0.6rem 1rem; border-radius: 999px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 0.75rem; font-size: 0.88rem; animation: pop 0.2s var(--ease); }
.selbar .btn { border-radius: 999px; }
.rate-table td.check, .rate-table th.check { width: 36px; padding-right: 0; }
.rate-table input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--magenta); }
.rate-table tr.is-map-highlight td { background: var(--yellow-soft); }
.rate-table tr.is-selected td { background: var(--magenta-soft); }
.onboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.onboard .step-card { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem; display: grid; gap: 0.4rem; background: #fff; }
.onboard .step-card .n { font-family: var(--font-display); font-size: 1.6rem; color: var(--rule-2); }
.hero-card { background: linear-gradient(135deg, #17160f 0%, #2a2818 100%); color: #f2eddc; border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; box-shadow: var(--shadow); }
.hero-card h2 { color: #fff; font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; }
.hero-card p { color: #cfc9b6; font-size: 0.9rem; max-width: 56ch; }
.hero-card .hero-stats { margin-left: auto; display: flex; gap: 1.5rem; }
.hero-card .hero-stats div { display: grid; gap: 0.1rem; }
.hero-card .hero-stats .v { font-family: var(--font-mono); font-size: 1.35rem; color: #fff; font-weight: 600; }
.hero-card .hero-stats .l { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: #a9a391; }
@media (max-width: 1100px) { .workspace { grid-template-columns: minmax(0, 1fr); } .map-panel { position: static; } .publisher-map { height: 320px; } }
/* Guthaben: Aufladen einspaltig über dem Kontoauszug */
@media (max-width: 1100px) { .topup-card { order: -1; scroll-margin-top: 90px; } }
@media (max-width: 860px) { .onboard { grid-template-columns: 1fr; } .hero-card .hero-stats { margin-left: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; width: 100%; } .hero-card .hero-stats .l { font-size: 0.6rem; letter-spacing: 0.05em; } .hero-card .hero-stats .v { font-size: 1.15rem; } }

/* ======================= Anzeige buchen (Assistent) & Vorlagen-Galerie ======================= */
.bk-wiz { max-width: 1180px; }
.bk-sec { display: flex; flex-direction: column; gap: .55rem; padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--rule); }
.bk-sec:last-of-type { border-bottom: 0; }
.bk-sec h3 { margin: 0; font-size: 1.02rem; }
.bk-name { font-size: 1.15rem; font-weight: 700; padding: .65rem .8rem; border: 1.5px solid var(--rule-2); border-radius: var(--radius); background: #fff; max-width: 560px; }
.bk-name:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.bk-more, .bk-want, .bk-notes { border: 1px solid var(--rule); border-radius: var(--radius); padding: .55rem .8rem; background: #fff; }
.bk-more summary, .bk-want summary, .bk-notes summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.bk-more[open] summary, .bk-want[open] summary, .bk-notes[open] summary { margin-bottom: .6rem; }
.bk-notes textarea { width: 100%; }
.bk-wiz .card-body > .form-actions { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.bk-est-big.soft { font-size: 1.35rem; }
.bk-mail { margin-right: auto; color: var(--muted); }
.bk-src { flex-wrap: wrap; }
.bk-ad { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.25rem; align-items: start; }
.bk-ad-prev { background: var(--paper-2); border-radius: var(--radius); padding: 1rem; display: flex; justify-content: center; }
.bk-ad-prev .ad-frame { max-width: 100%; box-shadow: 0 6px 24px -10px rgba(0,0,0,.35); }
.bk-ad-side .btn { justify-content: center; }
.tpl-hint { background: var(--yellow-soft); border-left: 3px solid var(--yellow); padding: .5rem .65rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0; }
.bk-up { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1rem; border: 1.5px dashed var(--rule-2); border-radius: var(--radius); background: #fff; }
/* Galerie */
.tgf { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }
.tgf-style, .tgf-look, .tgf-q { border: 1px solid var(--rule-2); border-radius: 8px; padding: .42rem .6rem; background: #fff; font: inherit; font-size: .85rem; }
.tgf-q { flex: 1 1 220px; min-width: 180px; }
.tgf-br { display: flex; flex-wrap: wrap; gap: .35rem; margin: .7rem 0 .9rem; }
.chip-btn { border: 1px solid var(--rule-2); background: #fff; border-radius: 999px; padding: .3rem .7rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; align-items: start; }
.tgc { display: flex; flex-direction: column; gap: .45rem; padding: .5rem; border: 1.5px solid transparent; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); cursor: pointer; text-align: left; font: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.tgc:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.35); border-color: var(--ink); }
.tgc-thumb { background: var(--paper-2); border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1.1; }
.tgc-thumb img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 2px 8px -2px rgba(0,0,0,.3); }
.tgc-thumb.f-half img { width: 100%; }
.tgc-thumb.f-quarter img, .tgc-thumb.f-full img, .tgc-thumb.f-advertorial img { height: 100%; }
.tgc-blank { width: 70%; height: 82%; border: 2px dashed var(--rule-2); border-radius: 4px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; font-size: .8rem; font-weight: 700; color: var(--muted); }
.tgc-blank span { width: 38px; height: 38px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; }
.tgc-meta strong { display: block; font-size: .86rem; line-height: 1.25; }
.tgc-meta span { display: block; font-size: .74rem; color: var(--muted); margin-top: .1rem; }
.tg-none { grid-column: 1 / -1; }
/* Vorlagen-Dialog */
.tpl-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.25rem; align-items: start; }
.tpl-prev { background: var(--paper-2); border-radius: var(--radius); padding: 1rem; display: flex; justify-content: center; max-height: 72vh; overflow: auto; }
.tpl-prev .ad-frame { box-shadow: 0 6px 24px -10px rgba(0,0,0,.35); }
.tpl-side p { margin: 0; }
.tpl-btn { width: 100%; justify-content: center; padding: .7rem 1rem; font-size: .95rem; }
/* Schritt 2 */
.bk2 { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.5rem; align-items: start; }
.bk2-est { position: sticky; top: 1rem; }
.bk-budget { display: flex; align-items: baseline; gap: .5rem; }
.bk-budget input { width: 180px; font-size: 1.6rem; font-weight: 800; padding: .45rem .7rem; border: 1.5px solid var(--rule-2); border-radius: var(--radius); background: #fff; font-variant-numeric: tabular-nums; }
.bk-budget span { color: var(--muted); font-weight: 600; }
.bk-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.bk2 [name=region] { max-width: 520px; padding: .55rem .7rem; border: 1.5px solid var(--rule-2); border-radius: var(--radius); background: #fff; font: inherit; }
.bk2 [name=start_from] { max-width: 220px; margin-top: .45rem; }
.bk-fmtline { margin: 0; font-size: .9rem; color: var(--ink-2); display: flex; gap: .4rem; align-items: center; }
.bk-est-top { display: flex; flex-direction: column; gap: .1rem; }
.bk-est-big { font-family: var(--font-display); font-size: 2.2rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.bk-est-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .8rem 0 .6rem; padding: .7rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.bk-est-row .l { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.bk-est-row strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
#bk-est p { margin: .45rem 0 0; }
/* Schritt 3 */
.bk3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem; align-items: start; }
.bk3-ad { background: var(--paper-2); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.bk3-ad .ad-frame { box-shadow: 0 6px 24px -10px rgba(0,0,0,.35); max-width: 100%; }
.bk-next { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: .8rem 1rem; }
.bk-next h4 { margin: 0 0 .4rem; font-size: .9rem; }
.bk-next ol { margin: 0; padding-left: 1.2rem; font-size: .88rem; line-height: 1.45; display: flex; flex-direction: column; gap: .3rem; }
.book-hero .btn-lg { margin-top: .9rem; }
@media (max-width: 980px) {
  .bk-ad, .tpl-detail, .bk2, .bk3 { grid-template-columns: minmax(0, 1fr); }
  .bk2-est { position: static; order: -1; }
  .tpl-prev { max-height: 50vh; }
}
@media (max-width: 640px) {
  .tg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .tgf-br { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-left: -2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tgf-br .chip-btn { flex: none; }
  .tgf-style, .tgf-look { flex: 1 1 auto; }
  .bk-budget input { width: 140px; font-size: 1.35rem; }
  .bk-wiz .form-actions { flex-wrap: wrap; }
  .bk-mail { width: 100%; order: 3; }
  /* Preisliste als Karten: Auswahl/Karten-Markierung auf der ganzen Karte statt je Zelle */
  .rate-table.stack-mobile tr.is-selected { background: var(--magenta-soft); }
  .rate-table.stack-mobile tr.is-map-highlight { background: var(--yellow-soft); }
  .rate-table.stack-mobile tr.is-selected td, .rate-table.stack-mobile tr.is-map-highlight td { background: transparent; }
  .publisher-map { height: 260px; }
}

.side-cta { display: flex; align-items: center; justify-content: center; gap: .45rem; margin: .2rem .75rem .6rem; padding: .62rem .8rem; border-radius: 10px; background: var(--yellow); color: #141414; font-weight: 800; font-size: .9rem; text-decoration: none; box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.side-cta span { font-size: 1.15rem; line-height: 1; }
.side-cta:hover { filter: brightness(1.05); }
.csv-skip { margin: .35rem 0 0; padding-left: 1.1rem; }
.csv-skip li { margin: .12rem 0; }
/* Stil-Umschalter im Vorlagen-Dialog */
.tpl-looks { display: grid; gap: .35rem; }
.tpl-look-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.tpl-look-chips .chip-btn { font-size: .8rem; padding: .28rem .6rem; }

/* iOS Safari zoomt beim Fokus in Felder unter 16px – auf Mobil/Touch immer 16px (Regeln aus app.css, daher hier) */
@media (max-width: 860px), (pointer: coarse) {
  .tgf-style, .tgf-look, .tgf-q, .bk2 [name=region] { font-size: 16px; }
}

/* Touch: mehr Abstand zwischen den (größeren) Chips */
@media (pointer: coarse) { .bk-chips, .tgf-br, .tpl-look-chips { gap: .5rem; } }

/* Auswahlleiste der Preisliste: letzte Zeilen und Knöpfe bleiben darüber erreichbar */
.has-selbar .page { padding-bottom: 6rem; }
@media (max-width: 860px) { .has-selbar .page { padding-bottom: 8.5rem; } }
/* Hochgeladene Motive (Bild/PDF) in Assistent und Auswahl */
.ad-file-img { display: block; max-width: 100%; max-height: 420px; object-fit: contain; box-shadow: 0 6px 24px -10px rgba(0,0,0,.35); background: #fff; }
.pick-ad .ad-file-img { width: 100%; max-height: 180px; box-shadow: none; border-radius: 3px; }
.ad-file-pdf { font-size: 1rem; text-align: center; }
.ad-file-pdf span { display: grid; gap: .4rem; justify-items: center; }
.ad-file-pdf small { font-family: var(--font-body, inherit); color: var(--ink); word-break: break-all; }
