/* Mobile contrast and category tiles, 0.6.154. */
:root { --muted: #42536a; }
.modern-hero { background: linear-gradient(180deg, #07121fc4 0%, #10203024 35%, #101c2d9c 76%, #101c2dc9 100%), url("assets/hero-kirche.webp") center 46% / cover; }
.hero-top .wordmark { position: relative; width: 145px; height: 43px; overflow: hidden; flex-shrink: 0; }
.hero-top .brand-logo { position: absolute; width: 170px; height: auto; max-width: none; left: -12px; top: -40px; }
.categories { gap: 9px; }
.categories button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; border-radius: 14px; background: #fff9f5; border: 1px solid #e7cbbd; color: #26364b; box-shadow: 0 2px 5px #482a1610; font-size: 12px; }
.categories button svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.categories button[aria-pressed="true"] { background: #e6002d; border-color: #e6002d; color: #fff; }
.place { background: #fff; border: 1px solid #e4dcd7; border-radius: 16px; padding: 9px; box-shadow: 0 3px 10px #392e2310; overflow: hidden; }
.place-body h3 { font-size: 14px; color: #18283a; }
.place p.place-category { color: #465469; font-size: 11px !important; }
.place p.walk-time { color: #263e58; font-size: 12px !important; font-weight: 650; }
.place-description, .place p.place-description { color: #3f4d5f; font-size: 12px; line-height: 1.55; }
.mini-body h3 { color: #192a3e; font-size: 14px; }
.mini-body p { color: #3f4d5f; font-size: 12px; line-height: 1.55; }
.mini-body strong { color: #263d55; font-size: 12px; font-weight: 650; }
.mini-body small { color: #45546a; font-size: 11px; }
.mini-route { min-height: 128px; }
.map-cards .mini-place { min-width: 285px; max-width: 285px; display: flex; flex-direction: column; }
.map-cards .mini-route { flex: 1; }
.map-cards { align-items: flex-start; }
.mini-place > .community-rating { margin-top: 0; padding-bottom: 12px; }
.mini-art svg, .place-art svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.mini-art.food, .mini-art.cafes { color: #92502b; background: #fff1e3; }
.mini-art.parks { color: #286647; background: #eaf7ec; }
.mini-art.views { color: #654695; background: #f3edff; }
.mini-art.sights { color: #b62e4b; background: #fff0f3; }
.community-rating, #nearby-status, .overview-status, .overview-panel header p, .route-status, .route-bottom p, .route-bottom small, .recent-empty, .more-panel p { color: #465469; }
.bottom-nav button { color: #3f4e63; font-size: 10px; font-weight: 550; }
.bottom-nav button[aria-current="page"] { color: #cf0029; }
.bottom-nav svg { stroke-width: 1.9; }
.overview-pin { width: 42px; height: 46px; border: 3px solid #fff; border-radius: 18px 18px 18px 5px; background: #d9002b; box-shadow: 0 3px 9px #43243250; padding: 7px; }
.overview-pin svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.destination-pin svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.target-label { color: #18283c; font-size: 13px; font-weight: 650; border: 1px solid #d9dfe6; }
.position-dot { width: 24px; height: 24px; border: 4px solid #fff; box-shadow: 0 0 0 7px #168aff25, 0 2px 8px #005bbd70; }
@media(max-width:350px) { .categories button { font-size: 11px; min-height: 72px; } .hero-top .wordmark { width: 130px; } .hero-top .brand-logo { width: 155px; top: -37px; } }
/* Quellenhinweise, 0.6.154: Kontrast ca. 8:1 statt 2,5:1, Schrift 12 px. */
.source { font-size: 9px; line-height: 1.75; color: #2f3e52; margin: 24px 2px 0; padding: 14px 14px 16px; background: #f3efeb; border: 1px solid #e2d9d2; border-radius: 14px; }
.source a { color: #a3001f; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.route-bottom small { font-size: 9px; line-height: 1.5; color: #3b4a5e; margin-top: 11px; }
.route-bottom small a { color: #a3001f; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
/* Design 0.6.154: Route-Button auf Karten, Routen-Sheet mit Griff und Symbolen. */
.place p.walk-time { display: inline-block; white-space: nowrap; font-size: 10.5px !important; background: #eef2f6; border-radius: 99px; padding: 3px 8px; margin-top: 2px; }
.place .place-body h3 { font-size: 12px; line-height: 1.3; }
.place .community-rating { position: relative; z-index: 4; }
.route-header h2 { display: flex; flex-direction: column; gap: 1px; }
.route-header h2 small { font-size: 11px; font-weight: 500; color: #42536a; letter-spacing: 0; }
.route-header h2 strong { font-size: 17px; font-weight: 650; color: #18283a; letter-spacing: -0.3px; }
.sheet-handle { display: block; width: 38px; height: 4px; border-radius: 2px; background: #c3cad3; margin: 0 auto 12px; }
.route-stats { justify-content: flex-start; gap: 0; color: #263e58; font-size: 15px; }
.route-stats > span { display: inline-flex; align-items: center; gap: 7px; }
.route-stats .stat-walk { padding-right: 16px; margin-right: 16px; border-right: 1px solid #dbe0e6; }
.route-stats svg { width: 22px; height: 22px; fill: none; stroke: #263e58; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.route-stats strong { font-size: 22px; }
#route-caption { font-size: 13px; color: #3b4a5e; }
#route-message { color: #3b4a5e; font-size: 12px; }
/* Karte 0.6.154: Pulse-Standort, Zentrieren- und Info-Button kleiner, Ziel-Pin mit Spitze. */
.position-dot { animation: hay-pulse 2s ease-out infinite; }
@keyframes hay-pulse { 0% { box-shadow: 0 0 0 0 #168affaa, 0 2px 8px #005bbd70; } 70%, 100% { box-shadow: 0 0 0 20px #168aff00, 0 2px 8px #005bbd70; } }
@media (prefers-reduced-motion: reduce) { .position-dot { animation: none; } }
.turn-panel:not([hidden]) ~ .recenter { top: 170px; }
.target-label { border-radius: 99px; padding: 4px 10px; box-shadow: 0 1px 6px #0002; }
/* Karte 0.6.154 v2: Tropfen-Pin mit Kategorie-Symbol, runder Zentrieren-Button, Quellenhinweis als Pille. */
.target-marker { gap: 4px; }
.target-marker .destination-pin { display: block; width: 44px; height: 54px; background: none; border: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(0 3px 3px #2a1a2255); }
.destination-pin svg { width: 44px; height: 54px; stroke: none; fill: none; }
.destination-pin .pin-body { fill: #d9002b; stroke: #fff; stroke-width: 2.5; }
.target-label { border-radius: 99px; padding: 4px 11px; }
.recenter { top: 104px; right: 12px; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; background: #fff; border: 1px solid #d9dfe6; box-shadow: 0 1px 4px #0002; }
.recenter svg { width: 20px; height: 20px; fill: none; stroke: #2b3b50; stroke-width: 2; stroke-linecap: round; }
.maplibregl-ctrl-attrib a { color: #2f3e52; }
/* Karte 0.6.154 v3: Zielname erst bei starkem Zoom, Quellen-Pille einzeilig, Abstand unter dem Quellenkasten. */
.target-label { display: none; }
.zoomed-in .target-label { display: block; }
.maplibregl-ctrl-attrib { background: #ffffffcc; border-radius: 6px; padding: 1px 7px; margin: 0 8px 6px 0; font-size: 8px; line-height: 1.5; color: #2f3e52; white-space: nowrap; max-width: none; }
.maplibregl-ctrl-attrib a { color: #2f3e52; }
.source { margin-bottom: 96px; }
/* Design 0.6.154: gleich hohe Kacheln, weiße Filterkacheln mit Rand, Zuletzt-angesehen-Kacheln wie die Ortskacheln. */
.categories button { background: #fff; border: 1px solid #cfd6df; box-shadow: 0 1px 3px #1b2a3d0d; }
.categories button[aria-pressed="true"] { background: #e6002d; border-color: #e6002d; }
.places { align-items: stretch; }
.place { height: 100%; }
.place .place-art { height: 108px; }
.place .place-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.place .place-body h3 { min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.place .place-body p.walk-time { align-self: flex-start; }
.place .place-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.55em); margin-bottom: 8px; }
.place .community-rating { margin-top: auto; }
.recent-cards { align-items: stretch; }
.recent-cards .mini-place { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #e4dcd7; border-radius: 16px; padding: 10px; overflow: hidden; }
.recent-cards .mini-route { flex: 1; align-items: stretch; gap: 8px; }
.recent-cards .mini-art { height: 108px; }
.recent-cards .mini-body { display: flex; flex-direction: column; flex: 1; width: 100%; }
.recent-cards .mini-body h3 { font-size: 12px; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 4px; }
.recent-cards .mini-body small, .recent-cards .mini-body strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.5em); font-size: 11px; }
.recent-cards .community-rating { margin-top: auto; padding: 0; }
.recent-cards .mini-place .place-heart { top: 16px; right: 16px; }
/* Design 0.6.154: Hero-Herz als roter Kreis, tiefer gesetzt; ruhigere Statusmeldung. */
.modern-hero .hero-heart { top: auto; bottom: 112px; right: 18px; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; background: #e6002d; border: 2px solid #fff; color: #fff; border-radius: 50%; box-shadow: 0 3px 8px #00000040; }
.location-ready .modern-hero .hero-heart { top: auto; }
.hero-heart svg { width: 20px; height: 20px; stroke: #fff; }
.status { padding: 10px 12px; font-size: 12px; line-height: 1.5; border-radius: 12px; }
/* Design 0.6.154: Titel-Label als Pille, besser lesbare Texte, Tropfen-Pins auf der Übersichtskarte. */
#hero-location { display: inline-block; background: #e6002d; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; padding: 5px 11px; border-radius: 99px; margin-bottom: 4px; text-shadow: none; }
.recent-section header button { font-size: 13px; font-weight: 600; color: #3b4a5e; text-decoration: underline; text-underline-offset: 2px; }
.nearby-header .text-button { font-size: 12px; font-weight: 600; color: #26364b; border: 1px solid #cfd6df; background: #fff; border-radius: 99px; padding: 6px 12px; min-height: 0; }
.overview-pin { width: 40px; height: 49px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; display: block; filter: drop-shadow(0 3px 3px #2a1a2255); cursor: pointer; }
.overview-pin .pin-shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.overview-pin .pin-shape path { fill: #d9002b; stroke: #fff; stroke-width: 2.5; }
.overview-pin .pin-shape circle { fill: #fff; stroke: none; }
.overview-pin > svg:not(.pin-shape) { position: absolute; left: 11px; top: 8px; width: 18px; height: 18px; stroke: #d9002b; stroke-width: 2; }
/* Design 0.6.154: Namenssuche. */
.name-search { margin: 8px 0 4px; }
.name-search-btn { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid #cfd6df; color: #26364b; font-size: 13px; font-weight: 600; padding: 10px 14px; border-radius: 12px; margin-top: 6px; }
.name-search-note { font-size: 12px; color: #3b4a5e; margin: 6px 2px; }
.name-hits { display: grid; gap: 6px; margin-top: 6px; }
.name-hit { display: grid; gap: 2px; text-align: left; background: #fff; border: 1px solid #e4dcd7; border-radius: 12px; padding: 10px 14px; }
.name-hit strong { font-size: 13px; color: #18283a; }
.name-hit span { font-size: 11px; color: #3b4a5e; }
/* Design 0.6.154: Mehr Orte zeigen. */
.more-places { display: block; width: 100%; margin: 12px 0 0; padding: 11px 14px; background: #fff; border: 1px solid #cfd6df; border-radius: 12px; color: #26364b; font-size: 13px; font-weight: 600; }
.more-places:disabled { color: #3b4a5e; }
/* Design 0.6.154: Karte: Hinweis als kleine Pille oben, Kacheln mit Abstand zur Menüleiste. */
.map-cards { bottom: 26px; }
#overview-note { top: 140px; bottom: auto; left: 14px; right: auto; width: fit-content; max-width: calc(100% - 28px); font-size: 11px; font-weight: 600; color: #26364b; background: #fff; border: 1px solid #e4dcd7; border-radius: 99px; padding: 5px 12px; box-shadow: 0 2px 8px #1b2a3d1a; }
.overview-panel .maplibregl-ctrl-bottom-right, .overview-panel .maplibregl-ctrl-bottom-left { bottom: 250px; }
/* Design 0.6.154: Herz im Titelbild entfernt (Favoriten über die untere Leiste), Titel tiefer und näher an Suche. */
#hero-favorite, .hero-heart { display: none !important; }
.hero-copy, .location-ready .hero-copy { bottom: 112px; }
.hero-copy h1, .location-ready .hero-copy h1 { margin: 4px 0 0; }
/* Design 0.6.154: Karten-Kacheln gleich hoch, neue Kacheln gleiten von der Seite herein. */
.map-cards .mini-place { height: 206px; }
.map-cards .mini-body h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.map-cards .mini-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes card-in { from { opacity: 0; transform: translateX(44px); } to { opacity: 1; transform: none; } }
.map-cards .card-in { animation: card-in 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@media (prefers-reduced-motion: reduce) { .map-cards .card-in { animation: none; } }
/* Design 0.6.154: niedrigere Karten-Kacheln, Karte füllt am Desktop bis zur Menüleiste. */
.map-cards .mini-place { height: 142px; }
.map-cards .mini-route { min-height: 0; padding: 12px; }
.map-cards .mini-body p { -webkit-line-clamp: 1; margin-bottom: 6px; }
.map-cards .mini-body h3 { margin-bottom: 5px; }
.overview-open { margin-top: 0 !important; margin-bottom: 0 !important; padding-bottom: 0 !important; min-height: 0 !important; border-radius: 0 !important; }
.overview-panel { height: calc(100dvh - 64px); }
.overview-panel .maplibregl-ctrl-bottom-right, .overview-panel .maplibregl-ctrl-bottom-left { bottom: 196px; }
/* Design 0.6.154: Pin antippen wählt die Kachel aus. */
.map-cards .mini-place.selected { border-color: #e6002d; box-shadow: 0 0 0 2px #e6002d40, 0 4px 16px #263e5b1a; }
.overview-pin.active { z-index: 10; }
.overview-pin.active .pin-shape path { fill: #8f001d; }
/* Design 0.6.154: Route abbrechen, Ortsdetails, Foto-Upload. */
.route-cancel { display: block; width: 100%; margin: 8px 0 0; min-height: 44px; border: 1px solid #cfd6df; border-radius: 12px; background: #fff; color: #26364b; font-size: 14px; font-weight: 600; }
.route-view.navigating .maplibregl-ctrl-bottom-right, .route-view.navigating .maplibregl-ctrl-bottom-left { bottom: 300px; }
.route-cancel[hidden] { display: none; }
.place-photo-btn { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; background: transparent; border: 0; padding: 0; cursor: pointer; }
.mini-art { cursor: pointer; }
.detail-open { overflow: hidden; }
.detail-root { position: fixed; inset: 0; z-index: 1000; }
.detail-root[hidden] { display: none; }
.detail-backdrop { position: absolute; inset: 0; background: #101c2d99; }
.detail-sheet { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 487px); max-height: 90dvh; overflow-y: auto; background: #fff; border-radius: 22px 22px 0 0; animation: detail-up 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes detail-up { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.detail-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 6px #0003; display: grid; place-items: center; color: #18283a; padding: 0; }
.detail-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.detail-photo { position: relative; height: 200px; display: grid; place-items: center; overflow: hidden; background: #fff1e3; color: #92502b; }
.detail-photo.sights { background: #fff0f3; color: #b62e4b; }
.detail-photo.parks { background: #eaf7ec; color: #286647; }
.detail-photo.views { background: #f3edff; color: #654695; }
.detail-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-photo-icon { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.detail-credits { font-size: 10px; padding: 4px 18px 0; color: #3b4a5e; }
.detail-credits:empty { display: none; }
.detail-credit { color: inherit; }
.detail-body { padding: 14px 18px 22px; }
.detail-body h2 { font-size: 20px; margin: 0 0 2px; color: #18283a; letter-spacing: -0.3px; }
.detail-cat { font-size: 13px; color: #3b4a5e; margin: 0 0 8px; }
.detail-info { list-style: none; margin: 12px 0 4px; padding: 0; display: grid; gap: 10px; }
.detail-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #26364b; }
.detail-icon { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: #e6002d; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.detail-row a { color: #a3001f; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.detail-hours { display: grid; gap: 2px; }
.detail-empty { font-size: 13px; color: #3b4a5e; margin: 12px 0 4px; }
.detail-osm { display: inline-block; margin-top: 8px; font-size: 12px; color: #3b4a5e; text-decoration: underline; }
.detail-actions { display: grid; gap: 8px; margin-top: 16px; }
.detail-go, .detail-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.detail-add { background: #fff; border: 1px solid #cfd6df; color: #26364b; text-decoration: none; }
.detail-go svg, .detail-add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.detail-note { font-size: 12px; color: #3b4a5e; margin: 10px 0 0; }
@media (prefers-reduced-motion: reduce) { .detail-sheet { animation: none; } }
/* Design 0.6.154: Sport & Freizeit statt Aussicht. */
.place-art.sports { background: #e6f4f7; color: #1f6f86; }
.mini-art.sports { color: #1f6f86; background: #e6f4f7; }
.detail-photo.sports { background: #e6f4f7; color: #1f6f86; }
/* Design 0.6.154: Seite "Mehr" mit Kacheln. */
.more-panel { padding: 22px 16px 28px; }
.more-head h2 { font-size: 26px; margin: 0 0 4px; color: #18283a; }
.more-panel .more-head p { font-size: 13px; color: #3b4a5e; margin: 0 0 16px; }
.more-card { background: #fff; border: 1px solid #e4dcd7; border-radius: 16px; padding: 16px; margin: 0 0 12px; box-shadow: 0 2px 8px #1b2a3d0a; }
.more-card h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #18283a; margin: 0 0 10px; }
.more-icon { width: 34px; height: 34px; border-radius: 10px; background: #fff1f3; color: #e6002d; display: grid; place-items: center; flex: none; }
.more-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.more-panel .more-card p { font-size: 13px; line-height: 1.6; color: #3b4a5e; margin: 0 0 8px; }
.more-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.more-list li { display: grid; gap: 1px; font-size: 13px; color: #3b4a5e; line-height: 1.5; }
.more-list b { color: #18283a; }
.more-actions { display: grid; gap: 8px; }
.more-panel .more-actions button { background: #fff; border: 1px solid #cfd6df; color: #26364b; border-radius: 12px; min-height: 46px; font: 600 13px Inter, Arial, sans-serif; padding: 0 14px; text-align: left; }
.more-panel .more-actions button#clear-favorites { color: #a3001f; border-color: #f0c4cd; background: #fff7f8; }
.more-sources { margin: 0 0 10px; display: grid; gap: 10px; }
.more-sources div { display: grid; gap: 1px; }
.more-sources dt { font-size: 12px; font-weight: 600; color: #18283a; }
.more-sources dd { margin: 0; font-size: 13px; color: #3b4a5e; line-height: 1.5; }
.more-panel a { color: #a3001f; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.more-detail { display: block; font-size: 12px; color: #3b4a5e; }
.more-detail:empty { display: none; }
.more-panel .more-card p.more-hint { font-size: 12px; }

.more-link { display: inline-block; font-size: 14px; }
.more-panel p.more-version { text-align: center; font-size: 11px; color: #3b4a5e; margin: 14px 0 4px; }
/* Kontaktkachel */
.more-contact-list { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 12px; }
.more-contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: #3b4a5e; }
.more-contact-list b { display: block; color: #18283a; font-size: 12px; margin-bottom: 1px; }
.more-row-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #fff1f3; color: #e6002d; display: grid; place-items: center; }
.more-row-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Design 0.6.154: Hinweise zum Standort als Pop-up, Mehr-Seite ohne Leerraum. */
.more-panel { min-height: 0; padding-bottom: 8px; }
.info-head { padding: 22px 18px 6px; }
.info-head h2 { font-size: 20px; margin: 0 0 2px; color: #18283a; letter-spacing: -0.3px; padding-right: 44px; }
.info-head p { font-size: 13px; color: #3b4a5e; margin: 0; }
.info-list { list-style: none; margin: 0; padding: 14px 18px 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list b { display: block; font-size: 13px; color: #18283a; margin-bottom: 1px; }
.info-list p { margin: 0; font-size: 13px; line-height: 1.5; color: #3b4a5e; }
.info-actions { padding: 18px 18px 22px; }
.info-done { width: 100%; min-height: 48px; border-radius: 12px; font-size: 15px; font-weight: 600; }
/* Rückfrage vor dem Löschen. */
.confirm-actions { display: grid; gap: 8px; }
.confirm-yes { background: #e6002d; }
.info-head h2 { padding-right: 0; }
/* Karte: eigenen Standort zeigen. */
.map-locate { position: absolute; right: 14px; top: 140px; z-index: 4; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid #d9dfe6; display: grid; place-items: center; padding: 0; box-shadow: 0 1px 6px #0003; cursor: pointer; }
.map-locate svg { width: 22px; height: 22px; fill: none; stroke: #2b3b50; stroke-width: 2; stroke-linecap: round; }
.map-locate:active svg { stroke: #e6002d; }
.overview-panel[hidden] .map-locate, [hidden].map-locate { display: none; }
/* Locate button: smaller, quieter, centred next to the count badge. */
.map-locate { top: 139px; right: 16px; width: 30px; height: 30px; background: #ffffffe6; border-color: #e3e7ec; box-shadow: 0 1px 3px #0002; }
.map-locate svg { width: 16px; height: 16px; stroke-width: 1.8; stroke: #5b6b7e; }
/* Map pins: no white circle, the icon itself is white on the red drop. */
.overview-pin .pin-shape circle { display: none; }
.overview-pin > svg:not(.pin-shape) { left: 9px; top: 6px; width: 22px; height: 22px; stroke: #fff; stroke-width: 2.1; }
.map-locate svg .dot { fill: #5b6b7e; stroke: none; }
.map-locate:active svg .dot { fill: #e6002d; }
.map-locate svg { width: 20px; height: 20px; stroke-width: 1.7; }
/* Voice search inside the map search field. */
.voice-search.map-voice { bottom: auto; top: 87px; right: 20px; width: 36px; height: 36px; padding: 8px; z-index: 5; }
.map-search-label input { padding-right: 48px; }
/* Hero: weather sits left of date and time, all a bit larger. */
.hero-meta { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 9px; font-size: 12.5px; line-height: 1.3; white-space: nowrap; }
.hero-meta button { order: -1; grid-column: auto; justify-self: auto; font-size: 12.5px; min-height: 30px; padding: 4px 10px; }
.hero-meta button svg { width: 16px; height: 16px; }
@media (max-width: 400px) { .hero-meta { gap: 6px; font-size: 11.5px; } .hero-meta button { font-size: 11.5px; padding: 4px 8px; } }
/* Start photo: whole picture, smaller and further back; the dark fade only sits behind the text. */
.modern-hero, .location-ready .modern-hero {
  background-color: #101c2d;
  background-image:
    linear-gradient(180deg, #0a121e99 0, #0a121e00 90px),
    linear-gradient(0deg, #101c2d 0, #101c2dd9 190px, #101c2d00 340px),
    url("assets/hero-kirche.webp");
  background-size: 100% 100%, 100% 100%, 100% auto;
  background-position: 0 0, 0 0, center top;
  background-repeat: no-repeat;
}
/* Start photo fills the whole card again, with only a light fade for the text. */
.modern-hero, .location-ready .modern-hero {
  background-image:
    linear-gradient(180deg, #0a121e66 0, #0a121e00 90px),
    linear-gradient(0deg, #101c2d8c 0, #101c2d59 150px, #101c2d00 280px),
    url("assets/hero-kirche.webp");
  background-size: 100% 100%, 100% 100%, cover;
  background-position: 0 0, 0 0, 22% 30%;
}
.hero-copy h1, #hero-location { text-shadow: 0 2px 10px #000a; }
/* "Zuletzt angesehen" as a swipeable row. */
.recent-cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -18px; padding: 0 18px 6px; }
.recent-cards::-webkit-scrollbar { display: none; }
.recent-cards .mini-place { flex: 0 0 156px; width: 156px; scroll-snap-align: start; height: auto; }
.nearby + .recent-section { margin-top: 6px; }
/* Pin icons a little smaller, still centred in the drop. */
.overview-pin > svg:not(.pin-shape) { left: 10.5px; top: 7.5px; width: 19px; height: 19px; }
/* Install card */
.install-card { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); width: min(460px, calc(100% - 28px)); z-index: 60; display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid #e3e7ec; border-radius: 18px; box-shadow: 0 10px 34px #10203040; padding: 14px; animation: install-in .35s ease-out; }
.install-card img { width: 48px; height: 48px; border-radius: 12px; border: 1px solid #e3e7ec; flex: none; }
.install-card strong { font-size: 15px; color: #14202e; }
.install-card p { margin: 3px 0 10px; font-size: 13px; line-height: 1.45; color: #4b5b6d; }
.install-actions { display: flex; gap: 8px; justify-content: flex-end; }
.install-actions button { font: 600 13px Inter, Arial, sans-serif; min-height: 40px; padding: 0 16px; border-radius: 20px; cursor: pointer; }
.install-later { background: #f0f2f5; color: #29384b; border: 1px solid #d5dbe3; }
.install-yes { background: #e6002d; color: #fff; border: 1px solid #e6002d; }
@keyframes install-in { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .install-card { animation: none; } }
/* Map pins a bit smaller overall. */
.overview-pin { width: 34px; height: 42px; }
.overview-pin > svg:not(.pin-shape) { left: 9px; top: 6.5px; width: 16px; height: 16px; }
/* Map pins like Google Maps: small round dots with a white icon; the chosen one is bigger and darker. */
.overview-pin { width: 30px; height: 30px; box-sizing: border-box; border: 2.5px solid #fff; border-radius: 50%; background: #d9002b; filter: none; box-shadow: 0 2px 6px #1a122650; }
.overview-pin .pin-shape { display: none; }
.overview-pin > svg:not(.pin-shape) { left: 50%; top: 50%; width: 15px; height: 15px; transform: translate(-50%, -50%); stroke: #fff; stroke-width: 2.1; }
.overview-pin.active { width: 38px; height: 38px; background: #8f001d; box-shadow: 0 0 0 4px #d9002b44, 0 3px 9px #1a122660; }
.overview-pin.active > svg:not(.pin-shape) { width: 19px; height: 19px; }
/* Chosen pin only slightly bigger than the others. */
.overview-pin.active { width: 33px; height: 33px; box-shadow: 0 0 0 2px #d9002b40, 0 2px 7px #1a122655; }
.overview-pin.active > svg:not(.pin-shape) { width: 16px; height: 16px; }
/* Category chips on the map */
.map-filters { position: absolute; z-index: 4; left: 0; right: 0; top: 178px; display: flex; gap: 8px; overflow-x: auto; padding: 2px 14px 4px; scrollbar-width: none; }
.map-filters::-webkit-scrollbar { display: none; }
.map-filter { flex: none; font: 600 12px Inter, Arial, sans-serif; color: #29384b; background: #ffffffee; border: 1px solid #d9dfe6; border-radius: 18px; min-height: 34px; padding: 0 13px; box-shadow: 0 1px 4px #1a122626; cursor: pointer; }
.map-filter[aria-pressed="true"] { background: #e6002d; border-color: #e6002d; color: #fff; }
/* Map: category chips on top, the search field below them. */
.map-filters { top: 76px; padding: 2px 14px 4px; }
.map-filter { min-height: 32px; font-size: 12px; padding: 0 12px; }
.map-search-label { top: 118px; }
.voice-search.map-voice { top: 123px; }
#overview-note { top: 174px; }
.map-locate { top: 173px; }
/* A running navigation: small red dot on the Route button while the route page is hidden. */
.bottom-nav [data-view="route"] { position: relative; }
.nav-running .bottom-nav [data-view="route"]::after { content: ""; position: absolute; top: 6px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: #e6002d; border: 2px solid #fff; }
/* Rotating headline: soft fade between the lines. */
#hero-line { display: block; transition: opacity .45s ease; }
#hero-line.fading { opacity: 0; }
@media (prefers-reduced-motion: reduce) { #hero-line { transition: none; } }
/* The map is its own layer: pins stay below the search, chips and the card strip. */
#overview-map { z-index: 1; }
/* Map credit on the overview: small (i) button above the cards; tap it to read the credit. */
.overview-panel .maplibregl-ctrl-attrib.maplibregl-compact { min-height: 24px; min-width: 24px; padding: 0; margin: 0 10px 0 0; border-radius: 12px; background: #ffffffdd; }
.overview-panel .maplibregl-ctrl-attrib.maplibregl-compact-show { padding: 2px 30px 2px 10px; white-space: normal; max-width: 260px; }
.overview-panel .maplibregl-ctrl-attrib-button { width: 24px; height: 24px; background-size: 18px; }
.overview-panel .maplibregl-ctrl-attrib-button { width: 24px; height: 24px; min-height: 0; background-repeat: no-repeat; background-position: center; background-size: 16px 16px; opacity: .8; }

/* ===== Rating row: five stars, average, number of ratings ===== */
.star-row { position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 1px; color: #d5dae2; white-space: nowrap; }
.star-row::before { content: "★★★★★"; }
.star-row > i { position: absolute; left: 0; top: 0; width: var(--fill, 0%); overflow: hidden; white-space: nowrap; color: #f5b301; font-style: normal; }
.star-row > i::before { content: "★★★★★"; }
.community-rating { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.community-rating .rating-summary { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #465469; }
.community-rating .rating-score { color: #1d2b3d; font-size: 13px; font-weight: 700; }
.community-rating .rating-count { color: #6a788b; font-size: 12px; }
.community-rating .rating-empty { color: #7a8798; font-size: 12px; }
.community-rating .rate-place { font: 650 12px Inter, Arial, sans-serif; color: #c8002a; background: #fff1f3; border: 0; border-radius: 99px; min-height: 30px; padding: 0 12px; cursor: pointer; text-decoration: none; }

/* ===== Map cards: a more modern tile ===== */
.map-cards .mini-place { height: auto; min-width: 300px; max-width: 300px; display: flex; flex-direction: column; padding: 0; border: 1px solid #e8ecf1; border-radius: 22px; background: #fff; box-shadow: 0 6px 20px #1c2c4412; overflow: hidden; }
.map-cards .mini-place.selected { border-color: #e6002d; box-shadow: 0 0 0 2px #e6002d33, 0 8px 22px #1c2c4420; }
.map-cards .mini-route { display: flex; align-items: center; gap: 14px; padding: 14px 52px 10px 14px; min-height: 0; flex: none; }
.map-cards .mini-art { width: 78px; height: 78px; flex: none; border-radius: 18px; }
.map-cards .mini-art svg { width: 32px; height: 32px; }
.map-cards .mini-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.map-cards .mini-body h3 { margin: 0; font-size: 15px; font-weight: 750; letter-spacing: -.2px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.map-cards .mini-body p { margin: 0; font-size: 12px; line-height: 1.4; color: #5a6879; -webkit-line-clamp: 1; }
.map-cards .mini-body strong { margin-top: 3px; display: inline-flex; align-items: center; background: #f0f3f8; color: #243349; border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.map-cards .mini-place > .community-rating { margin: 0; padding: 9px 14px 11px; border-top: 1px solid #eef1f5; background: #fafbfd; }
.map-cards .mini-place .place-heart { top: 12px; right: 12px; }

/* ===== Thank-you state of the rating window ===== */
.rating-thanks-box { display: grid; justify-items: center; gap: 8px; padding: 26px 8px 18px; text-align: center; }
.rating-thanks-box[hidden] { display: none; }
.thanks-check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #1f9d55; color: #fff; font-size: 34px; line-height: 1; animation: thanks-pop .35s ease-out; }
.thanks-title { font-size: 24px; color: #14202e; }
.thanks-text { font-size: 14px; line-height: 1.5; color: #4b5b6d; max-width: 280px; }
.rating-dialog.thanks .rating-eyebrow, .rating-dialog.thanks #rating-title, .rating-dialog.thanks #rating-own-label, .rating-dialog.thanks #rating-stars, .rating-dialog.thanks #rating-message, .rating-dialog.thanks #rating-save, .rating-dialog.thanks .rating-disclosure { display: none; }
@keyframes thanks-pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .thanks-check { animation: none; } }

/* ===== Map credit as a clearly visible round (i) button ===== */
.overview-panel .maplibregl-ctrl-bottom-right { bottom: 196px; right: 4px; }
.overview-panel .maplibregl-ctrl-attrib.maplibregl-compact { box-sizing: border-box; min-width: 34px; min-height: 34px; margin: 0 8px 0 0; padding: 0; border-radius: 17px; background: #fff; border: 1.5px solid #9aa7b8; box-shadow: 0 2px 8px #1b2a3d40; }
.overview-panel .maplibregl-ctrl-attrib-button { position: relative; width: 31px; height: 31px; background: none !important; opacity: 1; outline: none; }
.overview-panel .maplibregl-ctrl-attrib-button::after { content: "i"; position: absolute; inset: 0; display: grid; place-items: center; font: 800 17px/1 Inter, Arial, sans-serif; color: #1f2f44; }
/* text only while the (i) is open, however MapLibre sets its own state */
details.maplibregl-ctrl-attrib:not([open]) .maplibregl-ctrl-attrib-inner { display: none !important; }
.overview-panel details.maplibregl-ctrl-attrib[open] { border-radius: 17px; padding: 0 12px 0 0; display: flex; flex-direction: row-reverse; align-items: center; }
.overview-panel details.maplibregl-ctrl-attrib[open] .maplibregl-ctrl-attrib-inner { display: block !important; padding: 0 4px 0 12px; font-size: 11px; line-height: 1.35; color: #26364b; max-width: 250px; white-space: normal; }

/* Card strip sits low, just above the bottom menu. */
.map-cards { bottom: 4px; padding-bottom: 6px; }
.overview-panel .maplibregl-ctrl-bottom-right { bottom: 176px; }

/* ===== Favourite heart: a clean round button, the heart exactly in the middle ===== */
.place-heart { box-sizing: border-box; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 1.5px solid #dde2ea; background: #fff; color: #6b7687; border-radius: 50%; box-shadow: 0 1px 4px #1b2a3d1a; line-height: 0; }
.place-heart svg { display: block; width: 18px; height: 18px; margin: 0 !important; fill: none; stroke: currentColor; stroke-width: 2; }
.place-heart[aria-pressed="true"] { color: #e6002d; border-color: #ffc9d3; background: #fff5f7; }
.place-heart[aria-pressed="true"] svg { fill: #e6002d; stroke: #e6002d; }
.mini-place .place-heart { width: 34px; height: 34px; padding: 0; }
.map-cards .mini-place .place-heart { top: 12px; right: 12px; }
.recent-cards .mini-place .place-heart { top: 14px; right: 14px; width: 30px; height: 30px; }
.recent-cards .mini-place .place-heart svg { width: 16px; height: 16px; }

/* Map page: the map credit is a small link in the header (full credit on the Hilfe page). */
.overview-panel header { position: relative; }
.map-credit { position: absolute; right: 16px; bottom: 9px; font-size: 10.5px; color: #5a6879; text-decoration: underline; text-underline-offset: 2px; }
.map-credit { top: 18px; bottom: auto; right: 16px; }

/* ===== Map page, variant A: taller header, search on top, filters below, no count badge ===== */
.overview-panel > header { padding: 20px 18px 15px; }
.overview-panel header p { font-size: 12px; }
#overview-map { inset: 80px 0 0; }
.map-search-label { top: 92px; }
.voice-search.map-voice { top: 97px; }
.map-filters { top: 146px; }
#overview-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; border: 0; }
.map-locate { top: auto; bottom: 186px; right: 14px; width: 36px; height: 36px; }
.map-locate svg { width: 20px; height: 20px; }
.map-credit { top: 22px; }

/* ===== Map search field: readable text and a proper clear button ===== */
#map-search { font-size: 15px; color: #13202f; font-weight: 500; }
#map-search::placeholder { color: #566679; opacity: 1; font-weight: 400; }
#map-search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin: 0 6px 0 8px; cursor: pointer; border-radius: 50%; background: #e6eaf0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23243349' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 12px no-repeat; }
.overview-panel header h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 120px); }

/* ===== Location note on the start page: a calm info card with a clearly visible (i) ===== */
.welcome .privacy { display: flex; align-items: flex-start; gap: 11px; margin: 12px 0 0; padding: 11px 14px 12px 12px; background: #f3f6fb; border: 1px solid #dfe6f0; border-radius: 14px; font-size: 12.5px; line-height: 1.5; color: #34445a; }
.welcome .privacy .info { flex: none; width: 22px; height: 22px; margin-top: 0; border-radius: 50%; display: grid; place-items: center; background: #2457c5; color: #fff; border: 0; font: 700 13px/1 Georgia, "Times New Roman", serif; font-style: italic; }
.welcome .privacy > span:last-child { min-width: 0; }

/* ===== Location status message: small, tidy, with a status dot ===== */
.welcome .status { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 0; padding: 10px 14px 10px 12px; background: #eef4fc; border: 1px solid #d6e3f5; border-radius: 12px; font-size: 13px; line-height: 1.45; color: #243a56; }
.welcome .status[hidden] { display: none; }
.welcome .status::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #2457c5; box-shadow: 0 0 0 4px #2457c533; animation: status-pulse 1.4s ease-in-out infinite; }
.welcome .status[data-kind="error"] { background: #fff4f2; border-color: #f4cfc8; color: #6e2a22; }
.welcome .status[data-kind="error"]::before { background: #d6402c; box-shadow: 0 0 0 4px #d6402c2b; animation: none; }
@keyframes status-pulse { 0%, 100% { box-shadow: 0 0 0 3px #2457c533; } 50% { box-shadow: 0 0 0 6px #2457c51a; } }
@media (prefers-reduced-motion: reduce) { .welcome .status::before { animation: none; } }
.welcome .secondary { margin: 8px auto 0; font-size: 13px; font-weight: 600; color: #2457c5; text-decoration: none; padding: 6px 12px; border-radius: 99px; }
.welcome .secondary:hover { background: #eef4fc; }

/* ===== Place details sheet: tidier, with chips, labelled rows and calm buttons ===== */
.detail-sheet { border-radius: 26px 26px 0 0; }
.detail-photo { height: 176px; }
.detail-photo-icon { box-sizing: content-box; width: 30px; height: 30px; padding: 17px; border-radius: 50%; background: #ffffffb3; }
.detail-body { padding: 16px 18px 24px; }
.detail-body h2 { font-size: 21px; line-height: 1.25; margin: 0 0 8px; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.detail-chip { font-size: 12px; font-weight: 650; padding: 4px 11px; border-radius: 99px; background: #eef1f6; color: #2b3b52; }
.detail-chip.kind { background: #fff1e3; color: #92502b; }
.detail-chip.kind.sights { background: #fff0f3; color: #a3001f; }
.detail-chip.kind.parks { background: #eaf7ec; color: #286647; }
.detail-chip.kind.views { background: #f3edff; color: #654695; }
.detail-chip.kind.sports { background: #e6f4f7; color: #1f6f86; }
.detail-info { gap: 8px; margin: 14px 0 6px; }
.detail-row { align-items: center; gap: 12px; padding: 10px 12px; background: #f6f8fb; border-radius: 14px; }
.detail-icon-wrap { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff0f3; display: grid; place-items: center; }
.detail-icon-wrap .detail-icon { width: 18px; height: 18px; margin: 0; }
.detail-row-text { min-width: 0; font-size: 14px; line-height: 1.45; }
.detail-row-text small { display: block; font-size: 11px; font-weight: 650; color: #6a788b; margin-bottom: 1px; }
.detail-osm { margin: 12px 2px 0; font-size: 12.5px; color: #4b5b6d; }
.detail-actions { margin-top: 18px; gap: 10px; }
.detail-go, .detail-add { min-height: 50px; border-radius: 14px; transition: background-color .15s, filter .15s, transform .1s; }
.detail-go:hover { filter: brightness(.93); }
.detail-go:active, .detail-add:active:not(.locked) { transform: scale(.985); }
.detail-add:hover:not(.locked) { background: #f1f4f9; border-color: #b6c1cf; }
.detail-add.locked { background: #fafbfd; border: 1px dashed #c9d1dc; color: #7b8899; cursor: not-allowed; }
.detail-note { margin: 10px 4px 0; font-size: 12.5px; line-height: 1.5; color: #4b5b6d; }
.detail-note.nudge { animation: detail-nudge .45s ease; }
@keyframes detail-nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .detail-note.nudge { animation: none; } }
/* close button with hover */
.detail-close { transition: background-color .15s, transform .15s, box-shadow .15s; cursor: pointer; }
.detail-close:hover { background: #eef1f6; transform: scale(1.08); box-shadow: 0 3px 12px #0004; }
.detail-close:active { transform: scale(.94); }
.detail-close:focus { outline: none; }
.detail-close:focus-visible { outline: 3px solid #e6002d66; outline-offset: 2px; }

/* ===== Rating strip on the two-column list cards ===== */
.place .community-rating { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid #eef1f5; }
.place .community-rating .rating-summary { flex-wrap: wrap; row-gap: 2px; }
.place .community-rating .rating-empty { flex-basis: 100%; font-size: 11.5px; }
.place .community-rating .rate-place { align-self: flex-start; }

/* ===== Count line above the place list ===== */
#nearby-status { margin: 4px 0 14px; font-size: 12.5px; color: #4b5b6d; }
#nearby-status .count-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#nearby-status .count-line b { background: #eef4fc; color: #1f3552; font-weight: 700; border-radius: 99px; padding: 3px 11px; }
#nearby-status small { display: block; margin-top: 8px; font-size: 12px; line-height: 1.45; color: #6a788b; }

/* ===== Rating strip on the "Zuletzt angesehen" cards: stars on top, text below ===== */
.recent-cards .mini-place > .community-rating { flex-direction: column; align-items: flex-start; justify-content: flex-start; flex-wrap: nowrap; gap: 4px; margin-top: 8px; padding: 8px 0 0; border-top: 1px solid #eef1f5; min-width: 0; }
.recent-cards .community-rating .rating-summary { flex-wrap: wrap; row-gap: 2px; min-width: 0; }
.recent-cards .community-rating .star-row { font-size: 14px; }
.recent-cards .community-rating .rating-empty { flex-basis: 100%; font-size: 11px; white-space: normal; }
.recent-cards .community-rating .rate-place { align-self: flex-start; min-height: 28px; }

/* ===== Visitor photos: gallery in the place window, count on the tiles ===== */
.detail-photo .detail-gallery { position: absolute; inset: 0; z-index: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.detail-photo .detail-gallery::-webkit-scrollbar { display: none; }
.detail-photo .detail-gallery img { position: static; flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.detail-photo.has-photo .detail-photo-icon { display: none; }
.detail-counter { position: absolute; z-index: 2; right: 12px; bottom: 10px; font-size: 12px; font-weight: 650; color: #fff; background: #0009; padding: 3px 10px; border-radius: 99px; }
.detail-thumbs { display: flex; gap: 8px; padding: 10px 18px 0; overflow-x: auto; scrollbar-width: none; }
.detail-thumbs::-webkit-scrollbar { display: none; }
.detail-thumb { flex: none; width: 56px; height: 44px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #eef1f6; cursor: pointer; opacity: .75; transition: opacity .15s, border-color .15s; }
.detail-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.detail-thumb:hover { opacity: 1; }
.detail-thumb.on { opacity: 1; border-color: #e6002d; }
.photo-count { position: absolute; z-index: 2; right: 8px; bottom: 8px; font-size: 11.5px; font-weight: 650; color: #fff; background: #000a; padding: 3px 9px; border-radius: 99px; line-height: 1.3; }
.place-art, .mini-art { position: relative; }
.detail-none { color: #8793a4; font-style: italic; }
.detail-row .detail-none { font-size: 14px; }

/* ===== Favourites pages ===== */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 18px 0 6px; }
.pager[hidden] { display: none; }
.pager button { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid #d3d9e2; background: #fff; color: #26364b; font: 600 14px Inter, Arial, sans-serif; cursor: pointer; transition: background-color .15s, border-color .15s; }
.pager button:hover:not(:disabled):not([aria-current]) { background: #f1f4f9; border-color: #b6c1cf; }
.pager button[aria-current="page"] { background: #e6002d; border-color: #e6002d; color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }
.pager .step { font-size: 20px; line-height: 1; }
.pager-info { flex-basis: 100%; text-align: center; font-size: 12px; color: #5b6a7d; margin-top: 4px; }
/* Location note on the start page, a little smaller */
.welcome .privacy { font-size: 11.5px; line-height: 1.5; }

/* ===== Place window: on phones it fills the whole screen from top to bottom ===== */
@media (max-width: 600px) {
  .detail-sheet { top: 0; bottom: 0; height: 100dvh; max-height: 100dvh; width: 100%; border-radius: 0; }
  .detail-photo { height: 250px; }
  .detail-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: 14px; width: 42px; height: 42px; }
  .detail-body { padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
}
/* Larger screens: tall centred window instead of a short sheet */
@media (min-width: 601px) {
  .detail-sheet { max-height: 94dvh; }
}
/* Favourites: cards keep their own height even when the page area is held taller */
#favorite-cards { align-content: start; }

/* ===== Map layers button and sheet ===== */
.map-layers { position: absolute; right: 14px; bottom: 232px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #d9dfe6; background: #fff; display: grid; place-items: center; padding: 0; box-shadow: 0 1px 4px #0003; cursor: pointer; transition: background-color .15s, transform .1s; }
.map-layers:hover { background: #f1f4f9; }
.map-layers:active { transform: scale(.94); }
.map-layers svg { width: 20px; height: 20px; fill: none; stroke: #2b3b50; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.overview-panel[hidden] .map-layers, [hidden].map-layers { display: none; }
.layer-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 9; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -6px 24px #1c2c4433; padding: 14px 16px 18px; }
.layer-sheet[hidden] { display: none; }
.layer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 16px; color: #14202e; }
.layer-close { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #eef1f6; font-size: 22px; line-height: 1; cursor: pointer; color: #26364b; }
.layer-close:hover { background: #e2e7ef; }
.layer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.layer-option { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 8px; border-radius: 16px; border: 2px solid #e4e8ef; background: #fff; cursor: pointer; font-family: inherit; transition: border-color .15s, background-color .15s; }
.layer-option:hover { background: #f7f9fc; }
.layer-option[aria-pressed="true"] { border-color: #e6002d; background: #fff7f8; }
.layer-option strong { font-size: 14px; color: #14202e; }
.layer-option small { font-size: 11.5px; line-height: 1.35; color: #5b6a7d; }
.layer-swatch { display: block; width: 100%; height: 62px; border-radius: 11px; position: relative; overflow: hidden; background: #f3f1ee; }
.layer-swatch::before, .layer-swatch::after { content: ""; position: absolute; }
.layer-swatch.standard { background: #f6f5f0; }
.layer-swatch.standard::before { left: 0; right: 0; top: 28px; height: 8px; background: #f8d6a5; }
.layer-swatch.standard::after { left: 30%; top: 0; bottom: 0; width: 8px; background: #fff; box-shadow: 0 0 0 1px #ddd; }
.layer-swatch.detail { background: #f3f1ee; }
.layer-swatch.detail::before { left: 10px; top: 8px; width: 40px; height: 26px; background: #e4e0da; box-shadow: 54px 20px 0 #e4e0da, 0 34px 0 #cdeac0; border-radius: 3px; }
.layer-swatch.detail::after { left: 0; right: 0; top: 40px; height: 7px; background: #fff; box-shadow: 0 -1px 0 #cfd2d8, 0 1px 0 #cfd2d8; }
.layer-swatch.walk { background: #f1f1ef; }
.layer-swatch.walk::before { left: 0; right: 0; top: 14px; height: 9px; background: #e6e8ec; }
.layer-swatch.walk::after { left: 8px; right: 8px; top: 40px; height: 0; border-top: 4px dotted #e6002d; }
.layer-swatch.d3 { background: #eef0ec; }
.layer-swatch.d3::before { left: 14px; top: 14px; width: 26px; height: 34px; background: #d9d4cc; box-shadow: 30px 8px 0 #cfc9c0, 56px -4px 0 #d9d4cc; transform: skewY(-8deg); border-radius: 2px; }
/* Design 0.6.154: Willkommen-Zeile mit Ortsname und kleinem Text darunter. */
#hero-sub { margin: 8px 0 0; font-size: 14px; line-height: 1.35; font-weight: 500; color: #fff; text-shadow: 0 2px 10px #000a; max-width: 290px; }
#hero-sub[hidden] { display: none; }
.w-city { display: block; font-size: 54px; line-height: 1.05; font-weight: 800; letter-spacing: -1.6px; margin-top: 2px; }
#hero-line.mid .w-city { font-size: 44px; }
#hero-line.long .w-city { font-size: 36px; }
#hero-line.xlong .w-city { font-size: 28px; }
/* Design 0.6.154: Das rote Etikett zeigt den Gruß nach Tageszeit, luftig, normale Schrift, gut erkennbare Symbole. */
#hero-location { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 10px; margin-bottom: 10px; font-size: 13px; line-height: 1.2; font-weight: 700; letter-spacing: 0; text-transform: none; opacity: 1; }
#hero-location svg { width: 18px; height: 18px; flex: none; }
#hero-location b { font-weight: 700; }
#hero-location .sun-core { fill: #ffd34d; stroke: #ffd34d; }
#hero-location .sun-ray { fill: none; stroke: #ffd34d; stroke-width: 2.4; stroke-linecap: round; }
#hero-location .moon { fill: #fff1b8; stroke: none; }
/* Design 0.6.154: "Standort <Ort>" unter Datum und Uhrzeit, gut lesbar auf dunkler Pille. */
#hero-place { position: absolute; right: 20px; top: 70px; z-index: 3; display: flex; align-items: center; gap: 5px; color: #fff; font-size: 12px; line-height: 1.2; background: #0a141f99; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); border: 1px solid #ffffff30; border-radius: 99px; padding: 5px 11px 5px 8px; white-space: nowrap; max-width: calc(100% - 190px); }
#hero-place[hidden] { display: none; }
#hero-place svg { width: 15px; height: 15px; flex: none; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
#hero-place span { opacity: .9; }
#hero-place b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
/* Design 0.6.154: Wetter, Datum und Uhr zusammen in einer ruhigen Pille, gut lesbar auf dem Foto. */
.hero-meta { display: grid !important; grid-template-columns: auto auto; column-gap: 9px; row-gap: 0; align-items: center; justify-content: end; padding: 5px 12px 5px 5px; background: #0a141f99; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid #ffffff30; border-radius: 16px; white-space: nowrap; }
.hero-meta button { order: 0 !important; grid-column: 1; grid-row: 1 / span 2; align-self: stretch; margin: 0; min-height: 0; padding: 4px 11px 4px 8px; background: none !important; border: 0 !important; border-right: 1px solid #ffffff3a !important; border-radius: 0 !important; box-shadow: none !important; font-size: 13px; font-weight: 600; }
#home-date { grid-column: 2; grid-row: 1; font-size: 10.5px; line-height: 1.25; opacity: .85; }
#home-clock { grid-column: 2; grid-row: 2; font-size: 16px; line-height: 1.15; font-weight: 700; }
/* Design 0.6.154: Zentrieren-Knopf rechts unten, direkt über dem weißen Fenster. */
.route-bottom .recenter { top: -54px; right: 14px; bottom: auto; }
/* Design 0.6.154: Karten-Kacheln unten haben alle die gleiche Höhe (die der Kachel mit zweizeiligem Titel). */
.map-cards { align-items: stretch; }
.map-cards .mini-place { min-height: 158px; }
.map-cards .mini-route { flex: 1 1 auto; }
/* Design 0.6.154: Weißes Fenster unten lässt sich über den grauen Strich auf Zeit und Meter einklappen. */
.sheet-toggle { display: block; width: 100%; margin: -10px 0 0; padding: 10px 0 8px; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sheet-toggle .sheet-handle { margin: 0 auto; }
.route-bottom.folded #route-message,
.route-bottom.folded #route-caption,
.route-bottom.folded #navigation-start,
.route-bottom.folded #discover-next,
.route-bottom.folded #route-cancel,
.route-bottom.folded small { display: none !important; }
.route-bottom.folded { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
/* Design 0.6.154: Abbiegehinweis oben als kleine weiße Karte mit rotem Pfeil, nicht mehr als breiter dunkler Balken. */
.turn-panel { top: 88px; left: 12px; right: auto; width: fit-content; max-width: calc(100% - 20px); gap: 10px; padding: 7px 16px 7px 8px; border-radius: 18px; background: #fffffff2; color: #1a2a3c; border: 1px solid #e4e9f0; box-shadow: 0 4px 16px #1c2c4426; backdrop-filter: none; -webkit-backdrop-filter: none; }
.turn-panel > span { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e6002d; color: #fff; font-size: 22px; line-height: 1; }
.turn-panel div > span { display: block; margin: 0 0 1px; font-size: 11.5px; font-weight: 600; color: #5a6879; opacity: 1; }
.turn-panel strong { display: block; font-size: 14px; line-height: 1.25; font-weight: 650; letter-spacing: -0.1px; color: #1a2a3c; }
/* Quellenangabe der Routenkarte: kleiner (i)-Knopf oben rechts in der Titelzeile, Text öffnet sich darunter. */
.route-header .route-credit { margin-left: auto; width: 30px; min-height: 0; height: 30px; padding: 0; border: 1px solid #cfd6df; border-radius: 50%; background: #fff; color: #2b3b50; font: 800 15px/1 Inter, Arial, sans-serif; display: grid; place-items: center; }
.route-credit-text { position: absolute; top: 62px; right: 12px; z-index: 5; max-width: 240px; padding: 8px 12px; border-radius: 12px; background: #fffffff5; box-shadow: 0 3px 14px #1c2c4430; font-size: 11px; line-height: 1.5; color: #2f3e52; }
.route-credit-text[hidden] { display: none; }
.route-credit-text a { color: inherit; text-decoration: underline; }
/* Pfeile im Abbiegehinweis: klare, kräftige Linienpfeile. */
.turn-panel > span svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
/* Symbole in der Routenleiste: Fußgänger und Weg mit Start und Ziel. */
.route-stats svg { width: 25px; height: 25px; stroke-width: 1.8; }
.route-stats .stat-dist svg { stroke: #e6002d; }
/* Design 0.6.154: Werbe-Banner im Format 2:1 (etwa 345 x 172 auf dem Handy), Kennzeichen oben, Text unten, nichts überlagert sich. */
.sponsor-slot { transition: opacity .3s ease; }
.sponsor-slot.fading { opacity: 0; }
.sponsor-slot[hidden] { display: none; }
.sponsor-in-list { grid-column: 1 / -1; margin: 6px 0; }
.sponsor-banner { position: relative; display: flex; flex-direction: column; align-items: flex-start; aspect-ratio: 2 / 1; padding: 14px 16px 14px; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; background: var(--c, #e6002d) center / cover; box-shadow: 0 8px 22px #1c2c4426; }
.sponsor-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, #ffffff2e 0%, #0000 45%, #00000052 100%); pointer-events: none; }
.sponsor-banner::after { content: attr(data-initials); position: absolute; right: -4px; top: -22px; font-size: 110px; font-weight: 800; letter-spacing: -5px; line-height: 1; color: #ffffff22; pointer-events: none; }
.sponsor-banner > * { position: relative; z-index: 1; }
.sponsor-tag { flex: none; font-size: 9.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #00000052; border-radius: 99px; padding: 2px 9px; }
.sponsor-banner strong { margin-top: auto; font-size: 19px; font-weight: 800; line-height: 1.15; letter-spacing: -0.3px; max-width: 88%; text-shadow: 0 1px 8px #0003; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sponsor-text { margin-top: 3px; font-size: 12.5px; line-height: 1.3; max-width: 86%; opacity: .96; text-shadow: 0 1px 6px #0003; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sponsor-more { flex: none; margin-top: 8px; font-size: 12px; font-weight: 700; color: #18283a; background: #fff; border-radius: 99px; padding: 4px 12px; }
.sponsor-on-start { margin: 6px 18px 18px; }
@media (prefers-reduced-motion: reduce) { .sponsor-slot { transition: none; } }
/* Design 0.6.154: Eigenes kleines Fenster für "Navigation abbrechen?" mit rotem Knopf. */
.confirm-dialog { padding: 24px 22px 20px; }
.confirm-dialog h2 { margin: 6px 0 10px; }
.confirm-dialog > p#confirm-text { font-size: 14px; line-height: 1.5; color: #3b4a5e; margin: 0 0 20px; }
.confirm-dialog .primary { width: 100%; min-height: 50px; font-size: 15px; }
.confirm-dialog .confirm-no { display: block; width: 100%; min-height: 48px; margin-top: 10px; border: 1px solid #cfd6df; border-radius: 14px; background: #fff; color: #26364b; font: 600 15px Inter, Arial, sans-serif; cursor: pointer; }
/* Banner auf der Startseite nur unten (nach "Zuletzt angesehen"), und nicht doppelt, wenn die Liste mit ihrem Banner da ist. */
.location-ready .sponsor-on-start { display: none !important; }
/* Fertiges Banner-Bild (1200 x 600): unverändert gezeigt, nur das kleine Wort "Werbung" darüber. */
.sponsor-image { padding: 0; background: #fff; }
.sponsor-image::before, .sponsor-image::after { display: none; }
.sponsor-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sponsor-image .sponsor-tag { position: absolute; top: 8px; right: 8px; }
/* Großes Werbe-Fenster: Bild oben, Schrift darunter gut lesbar, Knopf zur Webseite. */
.sponsor-image { cursor: pointer; }
.sponsor-dialog { border: 0; border-radius: 24px; padding: 0; width: min(420px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto; box-shadow: 0 20px 70px #13263859; color: #17283e; }
.sponsor-dialog::backdrop { background: #142336b3; backdrop-filter: blur(3px); }
.sd-close { position: absolute; z-index: 3; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #000000a6; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.sd-pic { position: relative; aspect-ratio: 2 / 1; background: #fff; }
.sd-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sd-pic .sponsor-tag { position: absolute; right: 10px; bottom: 10px; }
.sd-body { padding: 18px 22px 22px; }
.sd-body h2 { margin: 0 0 8px; font: 750 22px/1.25 Inter, Arial, sans-serif; letter-spacing: -0.4px; }
.sd-body p { margin: 0 0 12px; font-size: 15px; line-height: 1.45; color: #3b4a5e; }
.sd-body ul { list-style: none; margin: 0 0 14px; padding: 0; }
.sd-body li { position: relative; padding: 5px 0 5px 28px; font-size: 15px; line-height: 1.4; color: #18283a; font-weight: 550; }
.sd-body li::before { content: "✓"; position: absolute; left: 4px; top: 5px; color: #e6002d; font-weight: 800; }
.sd-body #sd-tagline { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5a6879; margin-bottom: 16px; }
.sd-body .primary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; font-size: 16px; text-decoration: none; }
/* Einheitlicher weißer Knopf "Zur Webseite" unten rechts in jedem Banner. */
.sponsor-go { position: absolute; z-index: 2; right: 10px; bottom: 10px; display: inline-flex; align-items: center; background: #fff; color: #18283a; font: 700 12px/1 Inter, Arial, sans-serif; text-decoration: none; border-radius: 99px; padding: 8px 14px; box-shadow: 0 2px 10px #0003; }
.sponsor-go:active { transform: scale(.97); }
/* Knopf "Mehr erfahren": kleiner, hebt sich beim Darüberfahren leicht an. */
.sponsor-go { right: 9px; bottom: 9px; font-size: 10.5px; padding: 6px 11px; transition: transform .2s ease, box-shadow .2s ease; }
.sponsor-go:hover, .sponsor-go:focus-visible { transform: translateY(-3px); box-shadow: 0 7px 16px #0004; }
.sponsor-go:active { transform: translateY(-1px) scale(.98); }
@media (prefers-reduced-motion: reduce) { .sponsor-go { transition: none; } .sponsor-go:hover, .sponsor-go:focus-visible { transform: none; } }
/* Pop-up mit nur dem Bild (antippen führt zur Webseite). */
.sponsor-dialog { width: min(560px, calc(100vw - 20px)); background: #fff; }
.sd-pic { display: block; position: relative; aspect-ratio: auto; background: #fff; line-height: 0; cursor: default; }
.sd-pic[href] { cursor: pointer; }
.sd-pic img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 40px); object-fit: contain; }
.sd-pic .sponsor-tag { position: absolute; right: 10px; bottom: 10px; line-height: 1.5; }
.sd-pic .sponsor-tag[hidden] { display: none; }
/* Das Banner selbst reagiert nicht; nur der Knopf "Mehr erfahren" öffnet das Pop-up, darin führt der gleiche Knopf zur Webseite. */
.sponsor-image { cursor: default; }
button.sponsor-go { border: 0; cursor: pointer; }
.sd-pic { cursor: default; }
.sd-pic .sponsor-tag { right: auto; bottom: auto; left: 10px; top: 10px; }
/* Banner antippen: Pop-up mit Bild (ohne Weiterleitung). Der Knopf "Mehr erfahren" führt zur Webseite. */
.sponsor-image { cursor: pointer; }
.sd-pic { cursor: default; }
.sd-pic .sponsor-tag { left: auto; top: auto; right: 10px; bottom: 10px; }
/* "Zuletzt angesehen": Bewertungszeile genau wie bei den Orten in der Liste. */
.recent-cards .mini-place > .community-rating { gap: 6px; margin-top: auto; padding: 10px 0 0; border-top: 1px solid #eef1f5; }
.recent-cards .community-rating .star-row { font-size: 15px; }
.recent-cards .community-rating .rating-empty { flex-basis: 100%; font-size: 11.5px; color: #7a8798; }
/* Hinweis nach der Bewertung (keine Änderung mehr möglich). */
.community-rating .rated-note { align-self: flex-start; font-size: 11.5px; font-weight: 650; color: #1c7a43; background: #eaf6ee; border-radius: 99px; padding: 4px 10px; }
/* Titelbild-Überschriften etwas größer. */
.hero-copy h1, .location-ready .hero-copy h1 { font-size: 36px; line-height: 1.1; letter-spacing: -1.4px; max-width: 340px; }
@media (max-width: 350px) { .hero-copy h1, .location-ready .hero-copy h1 { font-size: 31px; max-width: 290px; } }
