:root {
  --bg: #f6f7f9; --card: #ffffff; --text: #111827; --muted: #5b6472; --line: #e3e6eb;
  --accent: #1d4ed8; --accent-soft: #e7eefc; --ai: #f3f6fb; --pos: #15803d; --neg: #b91c1c; --neu: #6b7280;
  --chip: #eef0f3; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0f1720; --card: #17212c; --text: #e8edf3; --muted: #9aa6b4; --line: #263241;
  --accent: #7aa2ff; --accent-soft: #1c2b47; --ai: #1b2733; --pos: #4ade80; --neg: #f87171; --neu: #9ca3af;
  --chip: #213041; --shadow: none;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; }

.top {
  position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px 6px; max-width: 760px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.01em; margin-right: auto; }
.brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
.live.off i { background: var(--neu); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.icon-btn b { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 4px; }
[data-theme="dark"] .icon-btn b { color: #0f1720; }
.icon-btn b[hidden] { display: none; }

.searchrow { max-width: 760px; margin: 0 auto; padding: 4px 14px 8px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.search svg { color: var(--muted); width: 20px; height: 20px; flex: none; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; padding: 11px 0; min-width: 0; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 10px; max-width: 760px; margin: 0 auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 7px 13px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="dark"] .chip[aria-pressed="true"] { color: #0f1720; }

.filters { max-width: 760px; margin: 0 auto; padding: 4px 14px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filters[hidden] { display: none; }
.filters label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.filters select { font-size: 15px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); width: 100%; }
.filters .check { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text); font-weight: 500; }
.filters .check input { width: 20px; height: 20px; }
.reset { grid-column: 1 / -1; justify-self: start; border: 0; background: none; color: var(--accent); font-size: 15px; padding: 4px 0; cursor: pointer; }

main { max-width: 760px; margin: 0 auto; padding: 12px 12px 0; display: grid; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.card.fresh { animation: fresh 2.5s ease-out; }
@keyframes fresh { from { box-shadow: 0 0 0 3px var(--accent); } to { box-shadow: var(--shadow); } }
.media { position: relative; aspect-ratio: 16 / 9; background: var(--chip); }
.media:empty { display: none; }
.media img, .media video, .media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.media video { object-fit: contain; background: #000; }
.play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .45)); cursor: pointer; color: #fff; width: 100%; }
.play span { width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, .6); display: grid; place-items: center; }
.play svg { width: 30px; height: 30px; fill: #fff; stroke: none; margin-left: 4px; }
.play em { position: absolute; left: 12px; bottom: 10px; font-style: normal; font-size: 13px; font-weight: 600; background: rgba(0, 0, 0, .6); padding: 3px 8px; border-radius: 6px; }
.body { padding: 12px 14px 14px; }
.meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.meta .src { font-weight: 700; color: var(--text); }
.dot::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--muted); vertical-align: middle; }
.card h2 { font-size: 18px; line-height: 1.3; margin: 6px 0 6px; letter-spacing: -.005em; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.teaser { margin: 0 0 10px; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.teaser:empty { display: none; }
.lang { font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); }
.trans { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: -4px 0 10px; font-size: 13px; color: var(--muted); }
.toggle { border: 1px solid var(--line); background: var(--card); color: var(--accent); border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; cursor: pointer; }
.ai { background: var(--ai); border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.ai h3 { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.ai h3 svg { width: 15px; height: 15px; }
.ai p { margin: 0 0 6px; }
.ai .ctx { color: var(--muted); font-size: 14px; }
.ai.wait { color: var(--muted); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: var(--chip); color: var(--text); border: 0; cursor: pointer; }
.tag.cat { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.tag.s-positiv { color: var(--pos); }
.tag.s-negativ { color: var(--neg); }
.tag.s-neutral { color: var(--neu); }
.orig { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; }
.orig svg { width: 16px; height: 16px; }

.newpill { position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top) + 150px); background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); cursor: pointer; }
[data-theme="dark"] .newpill { color: #0f1720; }
.more { display: grid; place-items: center; padding: 26px; min-height: 60px; color: var(--muted); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.foot { max-width: 760px; margin: 0 auto; padding: 10px 16px calc(30px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 13px; }

@media (min-width: 720px) {
  .filters { grid-template-columns: repeat(3, 1fr); }
  .card { display: grid; grid-template-columns: 260px 1fr; }
  .card .media { aspect-ratio: auto; min-height: 100%; }
  .card.playing, .card.noimg { display: block; }
  .card.playing .media { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) { .live i, .card.fresh, .spinner { animation: none; } }

/* ---------- Werbung Kanal König ---------- */
.ad { --kk-blue: #1e5bb8; --kk-gold: #e3a21a; --kk-ink: #0f2142; color: var(--text); }
.ad svg { width: 18px; height: 18px; flex: none; }
.ad-tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ad-logo { display: block; width: 100%; height: auto; border-radius: 10px; background: #fff; }
.ad-name { font-weight: 800; font-size: 20px; letter-spacing: -.01em; color: var(--kk-blue); }
[data-theme="dark"] .ad-name { color: #8fb4ff; }
.ad-claim { margin: 10px 0 2px; font-weight: 800; font-size: 17px; line-height: 1.25; color: var(--kk-gold); }
.ad-slogan { margin: 2px 0 8px; font-size: 14px; font-weight: 600; }
.ad-sub { margin: 4px 0 10px; font-size: 13.5px; color: var(--muted); }
.ad-list { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.ad-list li { display: flex; gap: 7px; align-items: flex-start; }
.ad-list svg { color: var(--kk-gold); stroke-width: 2.4; margin-top: 2px; width: 16px; height: 16px; }
.ad-cta { display: flex; align-items: center; gap: 10px; text-decoration: none; background: var(--kk-gold); color: #1a1300; border-radius: 12px; padding: 9px 12px; margin-top: 8px; }
.ad-cta.ad-cta2 { background: var(--kk-blue); color: #fff; }
.ad-ltext { display: grid; line-height: 1.2; }
.ad-ltext b { font-size: 14.5px; }
.ad-ltext small { font-size: 12.5px; opacity: .85; }
.ad-photo, .ad-video { display: block; width: 100%; border-radius: 12px; margin: 6px 0 10px; background: #000; }
.ad-video { aspect-ratio: 9 / 16; max-height: 58vh; object-fit: cover; margin: 0; }
.ad-contacts { display: grid; gap: 4px; margin: 6px 0 8px; }
.ad-row { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 8px; border-radius: 10px; }
.ad-row:hover { background: var(--chip); }
.ad-row svg { color: var(--kk-blue); }
[data-theme="dark"] .ad-row svg { color: #8fb4ff; }
.ad-area { display: flex; gap: 7px; font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }

.ad-side { display: none; }
@media (min-width: 1300px) {
  .ad-side {
    display: block; position: fixed; z-index: 5; top: 152px;
    width: clamp(250px, calc((100vw - 760px) / 2 - 36px), 360px);
    max-height: calc(100vh - 164px); overflow-y: auto; scrollbar-width: thin;
    background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--kk-gold);
    border-radius: 16px; padding: 12px 14px 14px; box-shadow: var(--shadow);
  }
  .ad-left { right: calc(50% + 380px + 18px); }
  .ad-right { left: calc(50% + 380px + 18px); }
  .ad-side .ad-tag { margin-bottom: 6px; }
  .ad-bar, .ad-slot { display: none !important; }
}

/* Phones and tablets: slim bars at the bottom, closable per session. */
.ad-bar {
  position: fixed; z-index: 15; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom)) 12px;
  background: var(--kk-ink); color: #fff; border-top: 3px solid var(--kk-gold);
}
.ad-bar .ad-tag { color: #9fb0c8; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9px; }
.ad-bar-text { flex: 1; min-width: 0; display: grid; text-decoration: none; color: #fff; line-height: 1.2; }
.ad-bar-text b { font-size: 15px; color: var(--kk-gold); }
.ad-bar-text span { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #dbe4f3; }
.ad-bar-call { display: flex; align-items: center; gap: 6px; text-decoration: none; background: var(--kk-gold); color: #1a1300; border-radius: 999px; padding: 8px 13px; font-weight: 700; flex: none; }
.ad-bar-call .ad-ltext b { font-size: 14px; }
.ad-bar-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #9fb0c8; display: grid; place-items: center; cursor: pointer; }
body.has-adbar .foot { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
body.has-adbar .newpill { z-index: 16; }


/* Free ad slot "Hier könnte Ihre Werbung sein" */
.ad-slot {
  position: fixed; z-index: 14; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom)) 10px;
  background: var(--card); border-top: 2px dashed var(--kk-gold);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .08);
}
body.has-adbar .ad-slot { bottom: calc(56px + env(safe-area-inset-bottom)); padding-bottom: 6px; }
.ad-slot .ad-tag { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9px; }
.ad-slot-text { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.ad-slot-text b { font-size: 14.5px; color: var(--kk-blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-theme="dark"] .ad-slot-text b { color: #8fb4ff; }
.ad-slot-text span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-slot-acts { display: flex; gap: 6px; flex: none; }
.ad-slot-btn { display: flex; align-items: center; gap: 6px; text-decoration: none; border-radius: 999px; padding: 7px 9px; background: var(--kk-gold); color: #1a1300; font-weight: 600; font-size: 13.5px; }
.ad-slot-btn2 { background: var(--kk-blue); color: #fff; }
.ad-slot-btn .ad-ltext { display: none; }
.ad-slot .ad-bar-x { color: var(--muted); }
body.has-adslot .foot { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
body.has-adslot:not(.has-adbar) .foot { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (min-width: 520px) { .ad-slot-btn .ad-ltext { display: grid; } .ad-slot-btn { padding: 7px 12px; } }

.ad-slot .ad-tag { writing-mode: horizontal-tb; transform: none; position: absolute; top: -8px; left: 12px; font-size: 9.5px; background: var(--card); padding: 0 5px; border-radius: 4px; }

.ad-slot-page { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.ad-slot-page[hidden] { display: none; }
.ad-slot .ad-follow-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.ad-slotbox { position: relative; margin-top: 14px; border: 2px dashed var(--kk-gold); border-radius: 12px; padding: 12px 10px 10px; display: grid; gap: 8px; }
.ad-slotbox .ad-tag { position: absolute; top: -8px; left: 10px; background: var(--card); padding: 0 5px; font-size: 9.5px; }
.ad-slotbox .ad-slot-text b { white-space: normal; font-size: 16px; }
.ad-slotbox .ad-slot-text span { white-space: normal; }
.ad-slotbox .ad-slot-acts { flex-wrap: wrap; }
.ad-slotbox .ad-slot-btn .ad-ltext { display: grid; }
.ad-follow { margin-top: 14px; }
.ad-follow-title { display: block; font-size: 14px; margin-bottom: 6px; }
.ad-slot .ad-follow-title { display: inline; margin: 0; flex: none; color: var(--kk-blue); }
.ad-follow-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-follow-btn { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-size: 13px; font-weight: 600; color: var(--text); background: var(--card); white-space: nowrap; }
.ad-follow-btn svg { width: 16px; height: 16px; color: var(--kk-blue); }
@media (min-width: 1300px) { .ad-left .ad-logo { max-height: 120px; object-fit: contain; } }
.ad-slot-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ad-slot-head img { width: 34px; height: 34px; border-radius: 8px; }

.ad-video-wrap { position: relative; margin: 6px 0 10px; }
.ad-sound { position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 8px 12px; background: var(--kk-gold); color: #1a1300; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.ad-sound svg { width: 18px; height: 18px; }
@media (min-width: 1300px) {
  .ad-right .ad-name { font-size: 24px; }
  .ad-left .ad-claim { font-size: 20px; }
  .ad-left .ad-logo { max-height: 150px; }
}
.ad-foot { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--kk-gold); border-radius: 16px; padding: 12px 14px 14px; margin: 0 0 16px; color: var(--text); }
.ad-foot-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ad-foot-row .ad-logo { max-width: 200px; }
.ad-foot-text { flex: 1; min-width: 180px; }
.ad-foot-text .ad-claim { display: block; margin: 0; }
.ad-inline-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.ad-inline-cta .ad-cta { margin-top: 0; padding: 9px 10px; gap: 8px; }
.ad-inline-cta .ad-ltext small { font-size: 12px; white-space: nowrap; }
.ad-sponsor { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); text-decoration: none; border-top: 1px solid var(--line); padding-top: 8px; }

.ad-jobbox { border-top: 1px dashed var(--kk-gold); padding-top: 8px; display: grid; gap: 6px; }
.ad-job-text b { color: var(--kk-gold); }
.ad-slotbox .ad-job-text span { white-space: normal; }
/* Wide screens: header, search and topic chips span the full width above both side panels. */
@media (min-width: 1300px) {
  .bar, .searchrow, .chips, .filters { max-width: min(calc(100vw - 36px), calc(760px + 2 * (clamp(250px, calc((100vw - 760px) / 2 - 36px), 360px) + 18px))); }
  .chips { flex-wrap: wrap; overflow: visible; }
}

/* Fuad, video 16.11. 20:03: side panels reach down to the bottom of the screen ("das soll runter")
   and are wider ("breiter"); the news column gets a little narrower for that. */
@media (min-width: 1300px) {
  main { max-width: 680px; }
  .ad-side {
    width: clamp(260px, calc((100vw - 680px) / 2 - 28px), 440px);
    height: calc(100vh - 164px); max-height: none;
    display: flex; flex-direction: column;
  }
  .ad-left { right: calc(50% + 340px + 14px); }
  .ad-right { left: calc(50% + 340px + 14px); }
  .bar, .searchrow, .chips, .filters { max-width: calc(100vw - 28px); }
  .ad-left .ad-follow { margin-top: auto; padding-top: 14px; }
  .ad-right .ad-video-wrap { flex: 1 1 auto; min-height: 280px; }
  .ad-right .ad-video { height: 100%; max-height: none; aspect-ratio: auto; }
  .ad-side > * { flex: none; }
  .ad-right .ad-video-wrap { flex: 1 1 auto; }
}

/* Running ad band above the search (Fuad: "über der Suche soll ein Werbebanner laufen") */
.ad-ticker { max-width: 760px; margin: 0 auto 4px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 14px; height: 30px; font-size: 13px; overflow: hidden; }
.ad-ticker .ad-tag { flex: none; color: var(--kk-gold); }
.ad-tick-track { flex: 1; min-width: 0; overflow: hidden; display: flex; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ad-tick-run { display: flex; flex: none; gap: 34px; padding-right: 34px; align-items: center; animation: ad-tick var(--ticker-duration, 45s) linear infinite; }
.ad-ticker:hover .ad-tick-run, .ad-ticker:focus-within .ad-tick-run { animation-play-state: paused; }
.ad-tick { white-space: nowrap; text-decoration: none; color: var(--text); }
.ad-tick b { color: var(--kk-blue); }
[data-theme="dark"] .ad-tick b { color: #8fb4ff; }
.ad-tick-x { flex: none; width: 26px; height: 26px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; border-radius: 6px; }
.ad-tick-x svg { width: 16px; height: 16px; }
@keyframes ad-tick { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ad-tick-run { animation: none; } .ad-tick-track { overflow-x: auto; } .ad-tick-run + .ad-tick-run { display: none; } }
@media (min-width: 1300px) {
  .ad-ticker { max-width: calc(100vw - 28px); }
  .ad-side { top: var(--head-h, 152px); height: calc(100vh - var(--head-h, 152px) - 12px); }
}

/* City search: suggestions under the search field and the city page */
.searchrow { position: relative; }
.city-suggest { position: absolute; z-index: 30; left: 14px; right: 14px; top: calc(100% - 4px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); padding: 4px; }
.city-suggest[hidden] { display: none; }
.city-opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; color: var(--text); padding: 9px 10px; border-radius: 8px; cursor: pointer; font: inherit; }
.city-opt:hover, .city-opt.on { background: var(--chip); }
.city-opt svg { color: var(--accent); width: 20px; height: 20px; flex: none; }
.city-opt-text { display: grid; line-height: 1.25; }
.city-opt-text small { color: var(--muted); font-size: 12.5px; }
.city { max-width: 760px; margin: 0 auto; padding: 12px 12px 0; display: grid; gap: 14px; }
.city[hidden], main[hidden], .more[hidden] { display: none; }
.city-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.city-head h1 { margin: 0; font-size: 26px; }
.city-back { border: 1px solid var(--line); background: var(--card); color: var(--accent); border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 600; cursor: pointer; }
.city-sec { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.city-sec h2 { margin: 0 0 4px; font-size: 18px; }
.city-sec h3 { margin: 12px 0 2px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.city-note { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.city-empty { margin: 6px 0; padding: 10px 12px; border-radius: 10px; background: var(--chip); color: var(--muted); font-size: 14px; }
.city-item { display: grid; gap: 2px; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; }
.city-item:first-of-type { border-top: 0; }
.city-item b { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.city-item:hover b { text-decoration: underline; }
.city-item small { color: var(--muted); font-size: 12.5px; }
.city-more { display: inline-block; margin-top: 8px; color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; }
.city-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 30px 6px; }
@media (min-width: 1300px) { .city { max-width: 680px; } }

/* Fuad 16.11.: bigger banner on top, the ad band runs without stopping, the globe turns */
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand span { font-size: 22px; }
.brand img { animation: globe-turn 24s linear infinite; }
@keyframes globe-turn { to { transform: rotate(360deg); } }
.ad-ticker { height: 44px; font-size: 16.5px; margin-bottom: 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--kk-gold) 10%, var(--card)); }
.ad-ticker .ad-tag { font-size: 11px; }
.ad-tick-run { animation-duration: var(--ticker-duration, 45s); }
.ad-ticker:hover .ad-tick-run, .ad-ticker:focus-within .ad-tick-run { animation-play-state: running; }
@media (min-width: 1300px) { .ad-ticker { height: 52px; font-size: 18px; } .brand img { width: 58px; height: 58px; } .brand span { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { .brand img { animation: none; } }

/* Fuad 16.11.: no big ad in the middle while a topic loads (the footer moved up into the empty feed). */
body.feed-empty .foot { display: none; }

/* Jobsuche / Wohnungssuche buttons in the sticky header */
.ad-rubriken { position: relative; max-width: 760px; margin: -2px auto 0; padding: 0 14px 10px; display: flex; align-items: center; gap: 8px; }
.ad-rubriken .ad-tag { color: var(--kk-gold); }
.ad-rubrik-btn { border: 1.5px solid var(--kk-gold); background: color-mix(in srgb, var(--kk-gold) 14%, var(--card)); color: var(--text); border-radius: 999px; padding: 6px 13px; font-size: 14px; font-weight: 700; cursor: pointer; }
.ad-rubrik-btn[aria-pressed="true"] { background: var(--kk-gold); color: #1a1300; }
@media (min-width: 1300px) { .ad-rubriken { max-width: calc(100vw - 28px); } }

/* Live-Sport */
.chip-sport { flex: none; border: 1.5px solid #16a34a; background: color-mix(in srgb, #16a34a 12%, var(--card)); color: var(--text); border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chip-sport::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }
.chip-sport[aria-pressed="true"] { background: #16a34a; color: #fff; }
.chip-sport[aria-pressed="true"]::before { background: #fff; }
.sport { max-width: 760px; margin: 0 auto; padding: 12px 12px 0; display: grid; gap: 14px; }
.sport[hidden] { display: none; }
@media (min-width: 1300px) { .sport { max-width: 680px; } }
.sp-row { display: grid; grid-template-columns: 62px 1fr auto 52px; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.sp-when { display: grid; line-height: 1.15; font-size: 12.5px; color: var(--muted); }
.sp-when b { color: var(--text); font-weight: 600; }
.sp-teams { display: grid; gap: 3px; min-width: 0; }
.sp-team { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14.5px; }
.sp-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-team img { width: 18px; height: 18px; object-fit: contain; flex: none; }
.sp-event { font-weight: 600; font-size: 14.5px; }
.sp-score { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; text-align: right; }
.sp-status { font-size: 12px; color: var(--muted); text-align: right; }
.sp-live .sp-status { color: #dc2626; font-weight: 700; }
.sp-live .sp-score { color: #dc2626; }

/* Kanal König logo in the running band, 3D swing */
.ad-tick-logo { display: inline-flex; align-items: center; perspective: 400px; }
.ad-tick-logo img { height: 34px; width: auto; border-radius: 6px; background: #fff; animation: kk-3d 3.5s ease-in-out infinite; transform-style: preserve-3d; }
@media (min-width: 1300px) { .ad-tick-logo img { height: 42px; } }
@keyframes kk-3d { 0%, 100% { transform: rotateY(-28deg) scale(1); } 50% { transform: rotateY(28deg) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .ad-tick-logo img { animation: none; } }
/* Service */
.chip-service { flex: none; border: 1.5px solid var(--accent); background: var(--accent-soft); color: var(--text); border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.chip-service[aria-pressed="true"] { background: var(--accent); color: #fff; }
[data-theme="dark"] .chip-service[aria-pressed="true"] { color: #0f1720; }
.sv-balls { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 6px 0 4px; }
.sv-ball { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 16px; background: var(--chip); border: 2px solid var(--line); font-variant-numeric: tabular-nums; }
.sv-ball.sv-gold { background: #fde68a; border-color: #e3a21a; color: #1a1300; }
.sv-label { font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.sv-extra { margin: 4px 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.sv-now { font-size: 16px; font-weight: 600; margin: 6px 0; }
.sv-up { color: #16a34a; }
.sv-down { color: #dc2626; }
.sv-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 6px 0; }
.sv-day { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--chip); font-size: 14px; }
.sv-day small { color: var(--muted); }
.sv-place { display: flex; gap: 8px; margin: 6px 0; }
.sv-place input { flex: 1; min-width: 0; font-size: 15px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); }

/* Band: bigger slot text, turning globe */
.ad-tick b { font-size: 1.12em; }
.ad-ticker { height: 50px; font-size: 17.5px; }
@media (min-width: 1300px) { .ad-ticker { height: 58px; font-size: 20px; } }
.ad-tick-globe { display: inline-flex; align-items: center; }
.ad-tick-globe img { height: 34px; width: 34px; border-radius: 50%; animation: globe-turn 8s linear infinite; }
@media (min-width: 1300px) { .ad-tick-globe img { height: 42px; width: 42px; } }
@media (prefers-reduced-motion: reduce) { .ad-tick-globe img { animation: none; } }

/* Politics sub-topics */
.subcats { max-width: 760px; margin: -4px auto 0; padding: 0 14px 10px; display: grid; gap: 6px; }
.subcats[hidden] { display: none; }
.sub-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sub-row[hidden] { display: none; }
.sub-row::-webkit-scrollbar { display: none; }
.chip-sub { padding: 5px 11px; font-size: 13px; }
.sub-countries .chip-sub { font-size: 12.5px; }
.sub-toggle { justify-self: start; border: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 600; padding: 0; cursor: pointer; }
@media (min-width: 1300px) { .subcats { max-width: calc(100vw - 28px); } .sub-row { flex-wrap: wrap; } }

/* Live-Sport: area and sport filters, collapsible leagues */
.sp-filter { flex-wrap: nowrap; }
@media (min-width: 720px) { .sp-filter { flex-wrap: wrap; } }
.sp-group { margin: 6px 2px 0; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sp-league { padding: 0; }
.sp-league summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.sp-league summary::-webkit-details-marker { display: none; }
.sp-league summary b { font-size: 16.5px; }
.sp-league summary b::before { content: "+ "; color: var(--accent); }
.sp-league[open] summary b::before { content: "- "; }
.sp-league summary small { color: var(--muted); }
.sp-body { padding: 0 14px 12px; }
.sp-news { margin-top: 8px; }

/* Internationale Presse */
.pr-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .pr-grid { grid-template-columns: 1fr 1fr; } }
.pr-orig { font-style: italic; }
/* Ratgeber */
.ad-ratgeber-btn { border-color: var(--kk-blue); background: color-mix(in srgb, var(--kk-blue) 10%, var(--card)); white-space: nowrap; }
.ad-rubriken { overflow-x: auto; scrollbar-width: none; }
.ad-rg-left { width: 100%; border: 0; cursor: pointer; text-align: left; font: inherit; }
.rg-btns { display: flex; gap: 8px; }
.rg-logo { max-width: 220px; display: block; margin-bottom: 6px; border-radius: 8px; }
.rg-list { padding-left: 34px; }
.rg-list li { margin: 10px 0; }
.rg-list li p { margin: 2px 0 0; color: var(--muted); }
.rg-line { margin: 4px 0; font-size: 15.5px; }
@media print {
  body * { visibility: hidden; }
  #ratgeber, #ratgeber * { visibility: visible; }
  #ratgeber { position: absolute; left: 0; top: 0; width: 100%; max-width: none; padding: 0; }
  .no-print, .ad, .top { display: none !important; }
  .city-sec { box-shadow: none; border: 0; }
}

/* Anzeigetafel: left panel on wide screens, foldable stacked box on narrower screens */
.tafel { color: var(--text); }
.tf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.tf-head b { font-size: 17px; }
.tf-head small { color: #dc2626; font-weight: 700; font-size: 12px; }
.tf-h { margin: 10px 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tf-row { display: grid; gap: 2px; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); padding: 7px 0; cursor: pointer; font: inherit; }
.tf-league { font-size: 11.5px; color: var(--muted); }
.tf-live .tf-league { color: #dc2626; font-weight: 700; }
.tf-teams { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; font-size: 14px; }
.tf-teams span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-score { grid-row: span 2; align-self: center; font-variant-numeric: tabular-nums; font-size: 15px; }
.tf-live .tf-score { color: #dc2626; }
.tf-more { width: 100%; border: 0; margin-top: 10px; cursor: pointer; font: inherit; justify-content: center; }
.tf-src { font-size: 11.5px; color: var(--muted); margin: 6px 0 0; }
@media (min-width: 1300px) {
  .tafel-mobil { display: none; }
  .tafel { border-top-color: #16a34a; }
  .ad-right .ad-video-wrap { flex: none; height: 38vh; min-height: 220px; }
}
/* Jobsuche / Wohnungssuche pages */
.az-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 4px 0 14px; }
.az-field { display: grid; gap: 3px; font-size: 13px; color: var(--muted); flex: 1 1 140px; }
.az-field input, .az-field select { font: inherit; font-size: 15px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.anzeigen .city-sec { margin-bottom: 14px; }
.az-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.az-acts a, .az-more { text-decoration: none; display: inline-block; }
.az-more { margin-top: 10px; }
.az-ad { border-top: 3px solid var(--kk-gold); }
/* Konto (Anmeldung) */
.konto-btn .konto-dot { width: 10px; min-width: 10px; height: 10px; padding: 0; top: -3px; right: -3px; background: #22c55e; border: 2px solid var(--card); }
dialog.konto { width: min(420px, calc(100vw - 24px)); border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--text); padding: 16px 18px 18px; box-shadow: 0 18px 48px rgba(0, 0, 0, .25); }
dialog.konto::backdrop { background: rgba(10, 15, 25, .55); }
.konto-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.konto-head h2 { margin: 0; font-size: 21px; }
.konto-x { border: 0; background: none; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.konto-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.konto-tab { flex: 1; border: 1px solid var(--line); background: var(--chip); color: var(--text); border-radius: 10px; padding: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.konto-tab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.konto-form { display: grid; gap: 10px; }
.konto-field { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.konto-field input { font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.konto-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.konto-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.konto-msg { margin: 0; min-height: 1em; color: #dc2626; font-size: 14px; }
.konto-msg:empty { display: none; }
.konto-go { border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; font-size: 16px; padding: 11px; cursor: pointer; width: 100%; }
.konto-go:disabled { opacity: .6; }
.konto-out { background: var(--chip); color: var(--text); border: 1px solid var(--line); }
.konto-ok { color: #15803d; font-weight: 600; }
.konto-hint { color: var(--muted); font-size: 14px; }
@media (max-width: 420px) { .bar { gap: 6px; } .bar .live { font-size: 11px; } }
.az-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.az-tab { border: 1px solid var(--line); background: var(--chip); color: var(--text); border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.az-tab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.az-court { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.az-court form { flex: none; }
.az-zvg { margin: 0; }
.az-select { font: inherit; font-size: 15px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.anzeigen .az-field { margin-bottom: 10px; }
/* Anzeigetafel sections */
.tf-sec { border-top: 2px solid var(--line); padding-top: 6px; margin-top: 8px; }
.tf-sec:first-of-type { border-top: 0; margin-top: 0; }
.tf-h { display: flex; justify-content: space-between; align-items: baseline; }
.tf-h small { color: #dc2626; font-weight: 700; text-transform: none; letter-spacing: 0; }
.tf-hint { margin: 4px 0; font-size: 13px; color: var(--muted); }
.tf-hint.tf-new { color: #15803d; font-weight: 700; }
.tf-empty { margin: 4px 0; font-size: 13px; color: var(--muted); }
.tf-item { display: grid; gap: 1px; padding: 6px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.tf-item b { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tf-item small { font-size: 11.5px; color: var(--muted); }
.tf-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.tf-link { border: 1px solid var(--line); background: var(--chip); color: var(--text); border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; margin-top: 6px; text-align: left; }
.tf-stand { color: var(--muted) !important; font-weight: 500 !important; }
.tafel-mobil { max-width: 760px; margin: 10px auto 0; padding: 0 12px; }
.tafel-mobil > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid #16a34a; border-radius: 12px; padding: 9px 12px; font-size: 14px; }
.tafel-mobil > summary::-webkit-details-marker { display: none; }
.tafel-mobil > summary::after { content: "anzeigen"; margin-left: auto; color: var(--accent); font-weight: 600; font-size: 13px; }
.tafel-mobil[open] > summary::after { content: "zuklappen"; }
.tafel-mobil > summary span { color: var(--muted); }
.tf-body { background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; padding: 4px 12px 10px; margin-top: -6px; }
.tf-body .tf-teams span { white-space: normal; }
/* Live-Sport is reached from the Anzeigetafel now; the big topic button is hidden (Fuad 17.11.). */
.chip-sport { display: none !important; }
/* Lotto */
.sv-tablewrap { width: 100%; }
.sv-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 8px 0 4px; table-layout: fixed; }
.sv-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 4px; border-bottom: 1px solid var(--line); }
.sv-table td { padding: 5px 4px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.sv-table th:nth-child(1) { width: 46%; }
.sv-table .sv-num, .sv-table th:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.sv-jackpot { font-weight: 700; color: #b45309; margin: 6px 0; }
#service .city-sec { margin-bottom: 14px; }

/* Phone repair: keep the full header in normal flow and ads in one compact drawer. */
.ad-dock { display: none; }
@media (max-width: 1299px) {
  .ad-dock { display: block; position: fixed; z-index: 15; bottom: 0; left: 0; right: 0;
    padding: 0 max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
    background: var(--card); border-top: 1px solid var(--line); }
  .ad-dock summary { cursor: pointer; padding: 8px 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
  .ad-dock .ad-bar, .ad-dock .ad-slot { position: static; padding: 6px 4px; box-shadow: none; }
  .ad-dock:not([open]) > :not(summary) { display: none; }
  body { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
  body.ads-expanded { padding-bottom: calc(190px + env(safe-area-inset-bottom)); }
  body.has-adslot .foot, body.has-adbar .foot { padding-bottom: 20px; }
}
@media (max-width: 600px) {
  .top { position: relative; top: auto; }
  .bar { gap: 6px; padding: 6px max(8px, env(safe-area-inset-right)) 6px max(8px, env(safe-area-inset-left)); }
  .brand { gap: 5px; min-width: 0; flex: 1 1 auto; }
  .brand img { width: 30px; height: 30px; flex: none; }
  .brand span { font-size: clamp(14px, 4.2vw, 18px); white-space: nowrap; }
  .bar .live { flex: none; gap: 4px; margin: 0 3px; font-size: 9px; letter-spacing: 0; }
  .live i { width: 6px; height: 6px; animation: none; }
  .bar .icon-btn { width: 32px; height: 36px; flex: none; }
  .bar .icon-btn svg { width: 19px; height: 19px; }
  .searchrow { padding: 3px 10px 6px; }
  .search input { padding: 8px 0; }
  .chips { padding: 0 10px 6px; gap: 6px; }
  .chips > button { padding: 6px 10px; font-size: 13px; }
  .ad-rubriken { padding: 0 10px 6px; gap: 6px; margin: 0; }
  .ad-rubrik-btn { flex: none; white-space: nowrap; padding: 5px 10px; font-size: 12px; }
  .ad-rubriken .ad-tag { font-size: 9px; }
  .ad-ticker { height: 34px; margin-bottom: 3px; padding-left: 10px; font-size: 13px; }
  .ad-tick-track { align-items: center; height: 100%; }
  .ad-tick-run { align-items: center; }
  .ad-tick-logo img, .ad-tick-globe img { height: 24px; max-width: 80px; object-fit: contain; }
  .ad-tick-globe img { width: 24px; }
  .ad-ticker .ad-tag { font-size: 9px; }
  .ad-ticker .ad-tick-x { width: 28px; height: 30px; }
  .xpage { scroll-margin-top: 12px; }
  .city-head h1 { font-size: 24px; line-height: 1.25; }
  .sv-place input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ad-tick-run, .ad-ticker:hover .ad-tick-run, .ad-ticker:focus-within .ad-tick-run { animation: none; }
}

.search-notice { padding: 12px; margin: 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); color: var(--text); font-size: 14px; }
.search-notice p { margin: 0 0 8px; }
.topic-toggle { display: none; }
@media (max-width: 600px) {
  .chips { flex-wrap: wrap; overflow: visible; }
  .chips > .chip { display: none; }
  .chips > .chip[aria-pressed="true"], .top.topics-open .chips > .chip { display: inline-flex; }
  .topic-toggle { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); cursor: pointer; }
  .ad-rubriken { flex-wrap: wrap; overflow: visible; }
  .ad-rubrik-btn { max-width: 100%; white-space: normal; }
  .ad-ticker { height: 44px; min-height: 44px; padding-top: 5px; padding-bottom: 5px; }
  .ad-tick-track { mask-image: none; height: 100%; overflow: hidden; }
  .ad-tick-run { width: max-content; flex: none; gap: 24px; padding-right: 24px; }
  .ad-tick { flex: none; white-space: nowrap; overflow-wrap: normal; line-height: 1.4; }
  .ad-tick-logo { flex: none; width: auto; }
  .ad-tick-logo img { width: auto; height: 24px; }
}

/* City-first home, outside the sticky header. */
.location-home,.location-content { max-width: 860px; margin: 16px auto; padding: 0 16px; box-sizing: border-box; }
.location-home h1 { font-size: clamp(28px,4vw,40px); line-height:1.15; margin:5px 0; overflow-wrap:anywhere; }
.location-eyebrow { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.08em; }
#location-status { color:var(--muted); font-size:13px; margin:8px 0; }
.location-actions { display:flex; gap:8px; flex-wrap:wrap; }
.location-privacy { color:var(--muted); font-size:12px; margin-top:10px; }
.location-privacy p { max-width:65ch; line-height:1.5; }
#location-picker:not([hidden]) { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; align-items:end; }
#location-picker label { display:grid; gap:5px; flex:1 1 210px; font-size:13px; }
#location-query { min-width:0; width:100%; box-sizing:border-box; padding:10px; border:1px solid var(--line); border-radius:8px; background:var(--card); color:var(--text); font:inherit; }
.near-section { border-top:1px solid var(--line); padding:16px 0; }
.near-section h2,.world-title { font-size:20px; margin:0 0 12px; }
.near-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.near-item { display:flex; flex-direction:column; gap:6px; color:var(--text); padding:12px; border:1px solid var(--line); border-radius:10px; text-decoration:none; background:var(--card); overflow-wrap:anywhere; }
.near-item b { font-size:14px; line-height:1.4; }
.near-item small { color:var(--muted); }
.near-services .city-back { margin:0 7px 7px 0; }
.ad-location-note { padding:10px; font-size:13px; line-height:1.4; }
.ad-general { opacity:.8; }
@media(min-width:1300px) { .location-home,.location-content { margin-left:auto; margin-right:auto; max-width:680px; } }
@media(max-width:600px) { .near-list { grid-template-columns:1fr; } .location-home,.location-content { padding:0 12px; margin-top:12px; } .location-actions .city-back { font-size:12px; padding:8px; } }

/* Company portal: keep controls in the page, not in the header. */
.portal-form,.portal-search { display:grid; gap:12px; margin:18px 0; }
.portal-search { grid-template-columns:repeat(2,minmax(0,1fr)); }
.portal-form textarea,.portal-card textarea { min-height:110px; resize:vertical; font:inherit; padding:10px; width:100%; border:1px solid var(--line); border-radius:8px; background:var(--card); color:var(--text); }
.portal-form input,.portal-search input { min-width:0; }
.portal-actions { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.portal-list { display:grid; gap:14px; }
.portal-card { border:1px solid var(--line); border-radius:12px; padding:16px; background:var(--card); overflow-wrap:anywhere; min-width:0; }
.portal-card h3 { margin:5px 0 12px; font-size:19px; }
.portal-meta,.portal-status { font-size:12px; color:var(--muted); }
.portal-description { white-space:pre-wrap; line-height:1.55; }
.portal-error { color:var(--neg); font-size:14px; }
.portal-contact { margin:12px 0; }
.portal-profile { border:1px solid var(--line); border-radius:10px; padding:14px; margin:18px 0; }
.portal-profile summary,.portal-removal summary { cursor:pointer; }
.portal-scope { font-size:19px; margin:12px 0 0; }
.portal-removal { margin:24px 0; }
.portal-home .portal-card { margin:10px 0; }
@media(max-width:600px) { .portal-search { grid-template-columns:1fr; } .portal-card { padding:12px; } .portal-form input,.portal-form select,.portal-form textarea,.portal-search input,.portal-search select { font-size:16px; } }

.chip-markt { flex:none; border:1.5px solid var(--accent); background:var(--accent-soft); color:var(--text); border-radius:999px; padding:7px 13px; font-size:14px; font-weight:700; cursor:pointer; white-space:nowrap; }
.chip-markt[aria-pressed="true"] { background:var(--accent); color:var(--card); }
.market-open .location-home,.market-open .tafel-mobil { display:none; }

@media(max-width:600px) { .markt { gap:10px; } .markt > p { margin:0 0 6px; } .markt .az-tabs { margin:0 0 6px; } .markt .az-tab { font-size:14px; padding:7px 10px; } .markt .portal-search { margin:8px 0; } }
@media(min-width:1300px) { .foot { max-width:680px; } }

/* Redaktion uses the established full-page form layout. */
.editorial-open #location-home,.editorial-open #location-content{display:none}
@media(max-width:1299px){.editorial-open .tafel-mobil{display:none}}
.redaktion{overflow-wrap:anywhere}
.redaktion .portal-form textarea{min-height:200px}
.editorial-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.editorial-photo{display:block;max-width:100%;max-height:450px;object-fit:contain;margin:12px 0;border-radius:10px}
.editorial-text summary{cursor:pointer;font-weight:700;padding:8px 0}
/* Start page hero (Fuad 17.11.): big picture story first, location block compact below it. */
.hero { max-width: 760px; margin: 14px auto 0; padding: 0 12px; box-sizing: border-box; }
.hero[hidden] { display: none; }
.hero-claim { margin: 0 0 10px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.hero-lead { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--chip); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.hero-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 18px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55) 35%, rgba(0, 0, 0, .85)); }
.hero-kicker { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.hero-cap h2 { margin: 6px 0 0; font-size: clamp(20px, 3.2vw, 30px); line-height: 1.2; overflow-wrap: anywhere; }
.hero-cap p { margin: 8px 0 0; font-size: 15px; line-height: 1.45; opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-lead:hover h2 { text-decoration: underline; }
.hero-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.hero-item { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--text); text-decoration: none; }
.hero-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--chip); }
.hero-item div { display: grid; gap: 4px; padding: 9px 10px 10px; }
.hero-item b { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.hero-item small { color: var(--muted); font-size: 12px; }
.hero-item:hover b { text-decoration: underline; }
/* Location block under the hero: smaller title, aligned with the feed column, region and country foldable. */
.location-home, .location-content { max-width: 760px; padding: 0 12px; }
.location-home { margin-top: 18px; }
.location-home h1 { font-size: clamp(22px, 3vw, 28px); margin: 2px 0; }
#location-status { margin: 4px 0 8px; }
.near-fold > summary { cursor: pointer; font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.near-fold:not([open]) > summary { margin: 0; }
@media (min-width: 1300px) { .hero, .location-home, .location-content { max-width: 680px; } }
@media (max-width: 600px) {
  .hero { padding: 0 12px; margin-top: 12px; }
  .hero-claim { font-size: 14px; margin-bottom: 8px; }
  .hero-lead { aspect-ratio: 4 / 3; border-radius: 14px; }
  .hero-cap { padding: 50px 14px 14px; }
  .hero-cap p { -webkit-line-clamp: 2; font-size: 14px; }
  .hero-more { grid-template-columns: 1fr; gap: 8px; }
  .hero-more .hero-item:nth-child(n+3) { display: none; }
  .hero-item { flex-direction: row; align-items: stretch; }
  .hero-item img { width: 112px; flex: none; aspect-ratio: auto; min-height: 80px; height: auto; }
  .hero-item div { align-content: center; }
  .location-home h1 { font-size: 22px; }
}
/* Visitor numbers in the admin area */
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.stats-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stats-box h2 { font-size: 14px; margin: 0; color: var(--muted); }
.stats-box p { margin: 2px 0; font-size: 13px; }
.stats-box .stats-big { font-size: 30px; font-weight: 700; margin: 6px 0 0; }
.stats-list { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: 14px; overflow-wrap: anywhere; }
.stats-list small { color: var(--muted); }
@media (max-width: 600px) { .stats-grid { grid-template-columns: 1fr; } }
/* Visitor-count notice under the header, closable */
.privacy-note { max-width: 760px; margin: 10px auto 0; padding: 8px 10px 8px 14px; box-sizing: border-box; display: flex; align-items: flex-start; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; line-height: 1.45; color: var(--muted); width: calc(100% - 24px); }
.privacy-note p { margin: 0; flex: 1; min-width: 0; }
.privacy-note a { color: var(--accent); }
.privacy-close { flex: none; border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 6px; min-width: 32px; min-height: 32px; }
.market-open .privacy-note, .editorial-open .privacy-note { display: none; }
@media (min-width: 1300px) { .privacy-note { max-width: 680px; } }
.foot-privacy { font-size: 12px; }
