/* Screens added for parity with the Android app. */
.ext-heading { font-size: 18px; font-weight: 900; margin-bottom: 12px; }
.ext-subheading { font-size: 14px; font-weight: 800; margin: 16px 0 8px; color: var(--text-main); }
.ext-note { font-size: 11px; color: var(--text-muted); margin-top: 10px; }
.ext-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ext-link { color: var(--berlin-red); font-weight: 700; text-decoration: none; cursor: pointer; }

.ext-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ext-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 6px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: #fff; color: var(--text-main); font-size: 12px; font-weight: 700; cursor: pointer; }
.ext-tile i { font-size: 22px; color: var(--berlin-red); }

.ext-news { display: block; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: #fff; color: var(--text-main); text-decoration: none; }
.ext-news-source { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.ext-news-title { font-size: 14px; font-weight: 700; line-height: 1.3; }

.ext-sponsor { position: relative; display: block; color: inherit; text-decoration: none; }
.ext-sponsor-img { display: block; width: 100%; max-height: 190px; object-fit: contain; background: #fff; }
.ext-ad-label { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 6px; background: #F59E0B; color: #111; font-size: 11px; font-weight: 800; }

.ext-heart { border: 0; background: none; color: #CBD5E1; font-size: 18px; cursor: pointer; }
.ext-heart.on { color: var(--berlin-red); }

.ext-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ext-actions .chip-btn { text-decoration: none; }
.ext-detail { position: relative; max-height: 88vh; overflow-y: auto; }
.ext-close { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(255, 255, 255, 0.9); }
.ext-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 10px; }
.ext-gallery img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; }
.ext-coupon { margin-top: 10px; padding: 10px; border-radius: 8px; background: var(--berlin-yellow-light); font-size: 13px; font-weight: 700; }

.ext-call-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px; }
.ext-call-row .chip-btn { flex-shrink: 0; text-decoration: none; }
.ext-weather { display: flex; justify-content: space-between; margin-top: 10px; text-align: center; font-size: 18px; }
.ext-weather span, .ext-weather small { display: block; font-size: 11px; color: var(--text-muted); }
.ext-quote { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-color); color: var(--text-main); font-size: 14px; text-decoration: none; }
.ext-quote:last-child { border-bottom: 0; }
.ext-list { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.ext-cta { display: block; margin-top: 12px; text-align: center; text-decoration: none; }

/* Keeps the app navigation on screen, like the Android bottom bar. */
.bottom-nav { position: fixed; left: 50%; right: auto; bottom: 0; width: 100%; max-width: 680px; transform: translateX(-50%); padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
.main-content { padding-bottom: 88px; }

/* Remaining APK screens. */
.ext-chips { margin: 8px -16px; }
.ext-manset { position: relative; display: block; margin-bottom: 12px; height: 190px; border-radius: var(--radius-md); overflow: hidden; color: #fff; text-decoration: none; }
.ext-manset img { width: 100%; height: 100%; object-fit: cover; }
.ext-manset div { position: absolute; inset: auto 0 0 0; padding: 12px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.82)); }
.ext-manset span { display: block; font-size: 11px; opacity: 0.85; }
.ext-manset strong { font-size: 15px; line-height: 1.25; }
.ext-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.ext-quick button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--surface-color); color: var(--text-main); font-size: 11.5px; font-weight: 700; cursor: pointer; }
.ext-quick i { font-size: 19px; color: var(--berlin-red); }
.ext-kiez-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.ext-kiez-scroll button { flex: 0 0 110px; border: 0; padding: 0; background: none; color: var(--text-main); font-size: 12px; font-weight: 700; cursor: pointer; }
.ext-kiez-scroll img { display: block; width: 110px; height: 76px; object-fit: cover; border-radius: 10px; margin-bottom: 4px; }
.ext-views { display: flex; gap: 6px; margin: 10px 0; }
.ext-views button { flex: 1; padding: 8px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--surface-color); color: var(--text-main); font-size: 12px; font-weight: 700; cursor: pointer; }
.ext-views button.on { background: var(--berlin-red); border-color: var(--berlin-red); color: #fff; }
.ext-map { height: 380px; margin-bottom: 12px; border-radius: var(--radius-md); overflow: hidden; z-index: 1; }
.ext-code { margin: 12px 0; padding: 14px; border: 2px dashed var(--berlin-red); border-radius: 10px; text-align: center; font-size: 22px; font-weight: 900; letter-spacing: 1px; color: var(--text-main); }
.ext-clubs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ext-clubs a { padding: 12px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--surface-color); color: var(--text-main); font-size: 13px; font-weight: 700; text-decoration: none; }
.ext-comments { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-color); }
.ext-comment { margin-bottom: 6px; font-size: 13px; color: var(--text-main); }
.ext-switch { position: relative; width: 46px; height: 26px; border: 0; border-radius: 13px; background: var(--border-color); cursor: pointer; }
.ext-switch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.ext-switch.on { background: var(--berlin-red); }
.ext-switch.on span { left: 23px; }
.ext-live-pill { background: var(--berlin-red) !important; color: #fff !important; border: 0; cursor: pointer; }
.ext-b2b-pill { cursor: pointer; }
.ext-tile, .ext-news { background: var(--surface-color); }

@media (max-width: 480px) {
  .top-bar-right { gap: 4px; }
  .apk-btn-text, .admin-btn-text, .ext-b2b-pill span { display: none; }
  .brand-title { display: none; }
  .ext-live-pill { padding: 6px 8px; font-size: 11px; }
}

html.ext-dark {
  --bg-color: #0F172A;
  --surface-color: #1E293B;
  --surface-variant: #273449;
  --border-color: #334155;
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-light: #64748B;
}
html.ext-dark body, html.ext-dark .card-item, html.ext-dark .modal-card, html.ext-dark .form-control, html.ext-dark .top-bar, html.ext-dark .chip-btn { background-color: var(--surface-color); color: var(--text-main); }
html.ext-dark body { background-color: var(--bg-color); }
html.ext-dark .chip-btn.active { background-color: var(--berlin-red); color: #fff; }

.ext-weather-week { overflow-x: auto; gap: 12px; }
.ext-weather-week > div { flex: 0 0 52px; }
.ext-up { color: var(--berlin-green); }
.ext-down { color: var(--berlin-red); }
.ext-table { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--text-main); }
.ext-table th, .ext-table td { padding: 6px 4px; border-bottom: 1px solid var(--border-color); text-align: right; }
.ext-table th:nth-child(2), .ext-table td:nth-child(2) { text-align: left; }
.ext-table tr.ext-berlin { background: var(--berlin-red-light); font-weight: 800; }
html.ext-dark .ext-table tr.ext-berlin { color: #111; }
.ext-place { display: block; width: 100%; padding: 8px 10px; margin-bottom: 6px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--surface-color); color: var(--text-main); text-align: left; cursor: pointer; }
.ext-place span { display: block; font-size: 11px; color: var(--text-muted); }

/* ---------- Advertising (app-werbung.js): sponsors, packages, unverified businesses ---------- */
.mkb-ad { display: block; text-decoration: none; color: inherit; position: relative; }
.mkb-ad-example { border: 2px dashed var(--berlin-red); background: var(--surface-color, #fff); }
.mkb-packages { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 8px 0 12px; }
.mkb-pk { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 2px solid #121212; border-radius: 16px; background: var(--surface-color, #fff); color: inherit; text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.mkb-pk.hl { border-width: 3px; box-shadow: 6px 6px 0 #F0D722, 0 8px 24px rgba(0, 0, 0, .08); }
.mkb-pk b { font-size: 19px; font-weight: 800; }
.mkb-pk small { color: var(--text-muted, #606770); font-size: 13px; }
.mkb-price { font-size: 32px; font-weight: 800; line-height: 1; color: #E30613; }
.mkb-price small { font-size: 13px; font-weight: 700; }
.mkb-start { background: #F0D722; color: #000; border: 1.5px solid #121212; border-radius: 10px; padding: 5px 8px; font-size: 13px; font-weight: 700; }
.mkb-pk ul { margin: 2px 0 6px; padding: 0; list-style: none; font-size: 13.5px; }
.mkb-pk li { padding-left: 22px; position: relative; margin: 4px 0; }
.mkb-pk li::before { content: "✅"; position: absolute; left: 0; font-size: 13px; }
.mkb-badge { position: absolute; top: -12px; right: 12px; background: #F0D722; color: #000; border: 2px solid #121212; border-radius: 20px; padding: 1px 10px; font-size: 12px; font-weight: 800; }
.mkb-unverified { display: grid; gap: 4px; margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: rgba(240, 215, 34, .18); font-size: 12.5px; }
.mkb-unverified a { color: #0288D1; font-weight: 700; text-decoration: none; }
.mkb-unverified-tag { color: #B26A00; font-weight: 700; }
