/* TravelBuddy — Auto-taugliches Layout: HUD oben, großer POI in der Mitte, POI-Liste unten */
:root {
  --bg: #12161c;
  --panel: #1b2230;
  --panel-2: #232c3d;
  --text: #eef2f7;
  --muted: #9aa7bd;
  --accent: #2f9ae0;
  --ok: #2fae7a;
  --warn: #d08a2f;
  --err: #d0483f;
  --radius: 14px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; min-height: -webkit-fill-available; margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  height: 100vh; height: 100dvh; min-height: -webkit-fill-available; display: flex; flex-direction: column; overflow: hidden;
}
button, a { touch-action: manipulation; }

/* ---------- Startbildschirm / TravelBuddy-Logo ---------- */
.app-splash {
  position: fixed; z-index: 2000; inset: 0; display: grid; place-content: center; justify-items: center; gap: 9px;
  background: radial-gradient(circle at 50% 38%, #263b5a 0, #111a28 40%, #0b1019 100%);
  transition: opacity .42s ease, visibility .42s ease;
}
.app-splash.is-ready { opacity: 0; visibility: hidden; pointer-events: none; }
.skip-splash .app-splash { display: none; }
.app-logo {
  position: relative; width: 100px; height: 100px; border: 7px solid #299ee5; border-radius: 34px 34px 40px 40px;
  transform: rotate(45deg); box-shadow: 0 0 0 8px rgba(41,158,229,.12), 0 16px 36px rgba(0,0,0,.34);
}
.app-logo-road { position: absolute; top: 10px; bottom: 10px; left: 43px; width: 13px; border-radius: 9px; background: #f79731; }
.app-logo-road::after { content: ''; position: absolute; inset: 8px 5px; background: repeating-linear-gradient(to bottom, #fff 0 10px, transparent 10px 20px); }
.app-logo-pin { position: absolute; width: 31px; height: 31px; border: 6px solid #f79731; border-radius: 50%; background: #172439; top: 20px; left: 20px; box-shadow: 0 0 0 4px #172439; }
.app-splash-title { margin-top: 22px; color: #299ee5; font-size: 68px; font-weight: 800; letter-spacing: -.04em; }
.app-splash-title span { color: #f79731; }
.app-splash-subtitle { color: #a8bad0; font-size: 14px; letter-spacing: .02em; }
.app-splash-loader { width: 45px; height: 4px; overflow: hidden; margin-top: 12px; border-radius: 999px; background: rgba(255,255,255,.16); }
.app-splash-loader span { display: block; width: 45%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f79731, #299ee5); animation: app-splash-move 1.05s ease-in-out infinite; }
@keyframes app-splash-move { from { transform: translateX(-110%); } to { transform: translateX(230%); } }

/* ---------- HUD-Leiste ---------- */
.hud {
  flex: 0 0 auto; display: flex; align-items: center; gap: 18px;
  padding: 10px 18px; background: var(--panel); border-bottom: 1px solid #000;
}
.hud-stats { display: flex; gap: 22px; }
.hud-item { display: flex; flex-direction: column; align-items: center; min-width: 78px; }
.hud-val { font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.hud-lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.hud-status {
  flex: 1; text-align: center; color: var(--muted); font-size: 15px;
  padding: 6px 12px; background: var(--panel-2); border-radius: 20px;
}
.hud-status.ok { color: #d6ffe9; } .hud-status.busy { color: #ffe9c2; }
.hud-status.offline { color: #ffd7a1; } .hud-status.error { color: #ffbdb8; }
.hud-buttons { display: flex; gap: 10px; }
.hud-btn {
  background: var(--panel-2); color: var(--text); border: 1px solid #000;
  padding: 12px 16px; border-radius: var(--radius); font-size: 16px; cursor: pointer;
  min-height: 52px; min-width: 52px;
}
.hud-btn:active { background: var(--accent); }
.hud-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.search-toggle-icon { display: inline-block; margin-right: 3px; font-size: 27px; line-height: 0; vertical-align: -2px; }
#mode-toggle.gps-active { background: #173d2d; border-color: var(--ok); color: #65e5aa; }
#mode-toggle.gps-searching { border-color: #53728d; color: #c7d9e8; }
/* Zahnrad (Einstellungen) größer */
#settings-toggle { width: 68px; min-width: 68px; min-height: 64px; padding: 6px; font-size: 36px; line-height: 1; }

/* ---------- Hauptbereich ---------- */
.main { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* Große POI-Anzeige */
.poi-main { flex: 1; min-height: 0; padding: 20px; display: flex; flex-direction: column; }
.poi-main.detail-enter > .pv-body,
.poi-main.detail-enter > .pv-actions { animation: pv-detail-enter .34s ease-out both; }
@keyframes pv-detail-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.pv-body { flex: 1; min-height: 0; display: flex; gap: 24px; }
.pv-left { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pv-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.pv-emoji { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; flex: 0 0 auto; }
.pv-name { margin: 0; font-size: 34px; line-height: 1.1; }
.pv-meta { color: var(--muted); font-size: 17px; margin-top: 4px; }
.pv-desc {
  flex: 1; min-height: 0; overflow-y: auto; font-size: 19px; line-height: 1.55;
  background: var(--panel); border-radius: var(--radius); padding: 16px 18px;
  cursor: pointer;
}
.pv-photo {
  flex: 0 0 42%; max-width: 42%; border-radius: var(--radius); overflow: hidden;
  background: #0d1017; display: grid; place-items: center;
}
/* Detailfoto vollständig zeigen: besonders Hochformatbilder werden nicht an
   Kopf oder Fuß beschnitten, sondern mittig in die verfügbare Fläche eingepasst. */
.pv-photo img {
  width: auto; height: auto; max-width: 100%; max-height: 100%; display: block;
  object-fit: contain; object-position: center; border-radius: calc(var(--radius) - 2px); overflow: hidden;
}
.pv-photo.has-photo { cursor: zoom-in; }
.pv-photo-ph { font-size: 72px; opacity: .5; }

/* Übersichtliche Detailansicht mit fixierter Aktionsleiste. */
.pv-details-modal {
  position: fixed; z-index: 1350; inset: 0; display: grid; place-items: center; padding: 24px;
  background: rgba(0,0,0,.7); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.pv-details-modal[hidden] { display: none; }
.pv-details-card {
  position: relative; width: min(90vw, 1180px); height: min(90vh, 980px); height: min(90dvh, 980px); max-height: 90dvh; display: flex; flex-direction: column;
  overflow: hidden; border: 1px solid #cbd5e1; border-radius: 20px; background: #f8fafc; color: #111827; box-shadow: 0 22px 70px rgba(0,0,0,.72);
}
.pv-details-close {
  position: absolute; z-index: 2; top: 12px; right: 12px; width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.7); color: #fff; font-size: 21px; cursor: pointer;
}
.pv-details-content { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 24px 24px 18px; }
.pv-details-head { display: flex; align-items: center; gap: 13px; padding-right: 48px; margin-bottom: 16px; }
.pv-details-head h2 { margin: 0; color: #111827; font-size: 28px; line-height: 1.1; }
.pv-details-head p { margin: 4px 0 0; color: #475569; font-size: 15px; }
.pv-details-emoji { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; font-size: 24px; }
.pv-details-photo { display: block; width: auto; height: auto; max-width: 100%; max-height: 42vh; margin: 0 auto 18px; border-radius: 14px; }
.pv-details-text { margin: 0; white-space: pre-line; color: #111827; font-size: 18px; line-height: 1.58; }
.pv-details-actions {
  display: flex; flex-wrap: nowrap; gap: 9px; padding: 13px 18px calc(13px + env(safe-area-inset-bottom));
  border-top: 1px solid #34425a; background: #111925;
}
.pv-details-actions > * { min-width: 0; flex: 1 1 0; min-height: 52px; display: grid; place-items: center; border: 0; border-radius: 12px; color: #fff; font: inherit; font-weight: 750; text-decoration: none; white-space: nowrap; cursor: pointer; }
.pv-details-speak { background: var(--ok); }
.pv-details-speak.auto { background: #23875f; box-shadow: inset 0 3px 7px rgba(0,0,0,.4), inset 0 0 0 2px rgba(0,0,0,.34); transform: translateY(1px); }
.pv-details-speak.speaking { background: var(--err); }
.pv-details-speak.loading { background: var(--warn); }
.pv-details-speak.loading::before { content: ''; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.42); border-top-color: #fff; border-radius: 50%; animation: pv-spin .75s linear infinite; }
.pv-details-ai { background: #111; border: 1px solid #fff !important; }
.pv-details-directions { background: var(--accent); }
.pv-details-actions > *:disabled { opacity: .45; cursor: default; }

/* Vergrößerte Detailansicht des POI-Fotos */
.pv-photo-modal {
  position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 28px;
  background: rgba(0, 0, 0, .82);
}
.pv-photo-modal[hidden] { display: none; }
.pv-photo-modal-card {
  position: relative; width: min(80vw, 1500px); height: min(84vh, 1000px); display: grid; place-items: center;
  border-radius: 18px; overflow: hidden; background: #080b10; box-shadow: 0 22px 70px rgba(0,0,0,.72);
}
.pv-photo-modal-card img { width: 100%; height: 100%; object-fit: contain; }
.pv-photo-modal-card > img { cursor: ew-resize; user-select: none; -webkit-user-select: none; touch-action: pan-y; transition: opacity .14s ease, transform .14s ease; }
.pv-photo-modal-card > img.is-fading-out { opacity: 0; transform: scale(.985); }
.pv-photo-modal-card > img.is-fading-in { animation: pv-photo-fade-in .26s ease-out both; }
@keyframes pv-photo-fade-in { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: scale(1); } }
.pv-photo-modal-close {
  position: absolute; z-index: 1; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.72); color: #fff; font-size: 22px; cursor: pointer;
}
.pv-photo-modal-loading {
  position: absolute; left: 18px; bottom: 16px; z-index: 1; display: flex; align-items: center; gap: 8px;
  padding: 8px 11px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; font-size: 13px;
}
.pv-photo-modal-loading[hidden] { display: none; }
.pv-photo-modal-loading span { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: pv-spin .75s linear infinite; }
.pv-photo-modal-more {
  position: absolute; z-index: 1; left: 18px; bottom: 16px; min-height: 62px; padding: 16px 25px; border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px; background: rgba(0,0,0,.78); color: #fff; font: inherit; font-size: 19px; font-weight: 750; cursor: pointer;
}
.pv-photo-modal-more:disabled { cursor: wait; opacity: .8; }
.pv-photo-modal-thumbs { position: absolute; z-index: 1; right: 15px; bottom: 15px; display: flex; gap: 8px; max-width: 62%; overflow-x: auto; }
.pv-photo-modal-thumb { width: 62px; height: 50px; flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #000; cursor: pointer; }
.pv-photo-modal-thumb.active { border-color: var(--accent); }
.pv-photo-modal-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Aktionsbuttons (groß) */
.pv-actions { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.pv-btn {
  font-size: 20px; font-weight: 600; padding: 16px 24px; border-radius: var(--radius);
  border: none; cursor: pointer; min-height: 60px; color: #fff; text-decoration: none;
  display: inline-flex; align-items: center;
}
.pv-speak { background: var(--ok); }
.pv-speak.auto { background: #23875f; box-shadow: inset 0 3px 7px rgba(0,0,0,.4), inset 0 0 0 2px rgba(0,0,0,.34); transform: translateY(1px); }
.pv-speak.speaking { background: var(--err); } /* während der Ausgabe rotes „Stop" */
.pv-speak.loading { background: var(--warn); }
.pv-speak.loading::before {
  content: ''; width: 17px; height: 17px; margin-right: 9px; border: 3px solid rgba(255,255,255,.42);
  border-top-color: #fff; border-radius: 50%; animation: pv-spin .75s linear infinite;
}
@keyframes pv-spin { to { transform: rotate(360deg); } }
.pv-full { background: var(--accent); }
.pv-details { background: #f8fafc; color: #111827; }
.pv-ai { background: #000; color: #fff; border: 2px solid #fff; }
.pv-ai.needs-setup { background: #2a3446; border-color: #8ca0bb; color: #e7eef8; }
.pv-stop { background: var(--err); }
.pv-wiki { background: var(--panel-2); color: var(--accent); }
.pv-btn:disabled { opacity: .4; cursor: default; }

/* Hinweis, wenn KI-Buddy noch nicht eingerichtet ist. */
.pv-ai-hint-modal { position: fixed; z-index: 1500; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.68); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.pv-ai-hint-modal[hidden] { display: none; }
.pv-ai-hint-card { position: relative; width: min(460px, 92vw); padding: 30px; border: 1px solid #485b78; border-radius: 20px; background: #1c2739; color: #eef2f7; box-shadow: 0 22px 70px rgba(0,0,0,.72); text-align: center; }
.pv-ai-hint-card h2 { margin: 8px 0 12px; font-size: 24px; }
.pv-ai-hint-card p { margin: 8px 0; line-height: 1.55; }
.pv-ai-hint-icon { font-size: 38px; }
.pv-ai-hint-note { color: #aebfd5; font-size: 14px; }
.pv-ai-hint-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #2d3a50; color: #fff; font-size: 19px; cursor: pointer; }
.pv-ai-hint-settings { width: 100%; min-height: 52px; margin-top: 16px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: inherit; font-weight: 750; cursor: pointer; }

/* Als Karten-/Detail-Overlay jederzeit erreichbar. */
.fullscreen-toggle {
  position: fixed; z-index: 100; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 7px; min-height: 46px; padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.42); border-radius: 999px; background: rgba(18,22,28,.88); color: #fff;
  box-shadow: 0 7px 20px rgba(0,0,0,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 700 14px/1 system-ui, sans-serif; cursor: pointer;
}
.fullscreen-toggle:active { transform: translateY(1px); background: var(--accent); }

/* ---------- Suche ---------- */
.search-modal { position: fixed; z-index: 1400; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.62); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.search-modal[hidden] { display: none; }
.search-card { position: relative; width: min(1040px, 80vw); height: 80dvh; overflow: auto; padding: 26px; border: 1px solid #34425a; border-radius: 20px; background: #172033; box-shadow: 0 22px 70px rgba(0,0,0,.72); }
.search-card h2 { margin: 0; font-size: 27px; }
.search-card > p { margin: 3px 48px 18px 0; color: var(--muted); }
.search-close { position: absolute; top: 14px; right: 16px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--panel-2); color: #fff; font-size: 20px; cursor: pointer; }
.search-card input { width: 100%; min-height: 55px; padding: 12px 16px; border: 2px solid #cbd5e1; border-radius: 14px; background: #f8fafc; color: #172033; font: inherit; font-size: 17px; }
.search-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,154,224,.25); }
.search-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 0 8px; }
.search-shortcuts button { padding: 8px 11px; border: 1px solid #3a4b67; border-radius: 999px; background: var(--panel-2); color: var(--text); font: inherit; cursor: pointer; }
.search-group { margin: 18px 0 7px; color: #9eb7d5; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.search-result { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 10px; border: 0; border-bottom: 1px solid #2a3446; background: transparent; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.search-result:hover, .search-result:focus-visible { background: #26374d; outline: none; }
.search-result-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: #26374d; font-size: 20px; }
.search-result-copy { min-width: 0; display: grid; gap: 2px; }
.search-result b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result small { color: var(--muted); }
.search-empty, .search-loading { padding: 20px 4px; color: var(--muted); text-align: center; }
.search-back { margin: 14px 0; padding: 9px 12px; border: 1px solid #3a4b67; border-radius: 10px; background: var(--panel-2); color: var(--text); font: inherit; cursor: pointer; }
.search-place-info { padding: 22px; border: 1px solid #34425a; border-radius: 16px; background: #202c3e; }
.search-place-info h3 { margin: 0; font-size: 25px; }
.search-place-type { margin: 5px 0 16px; color: #9eb7d5; }
.search-place-text { margin: 0; color: #eef2f7; font-size: 18px; line-height: 1.6; white-space: pre-line; }
.search-poi-photo { display: block; width: auto; height: auto; max-width: 100%; max-height: 36vh; margin: 0 auto 16px; border-radius: 14px; object-fit: contain; }
.search-place-actions { display: flex; margin-top: 22px; }
.search-place-actions button { min-height: 52px; padding: 12px 16px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.search-place-actions button:disabled { opacity: .65; cursor: wait; }
.search-place-results { margin-top: 18px; border-top: 1px solid #34425a; }

/* ---------- POI-Liste unten (scrollbar, ~1/3 Höhe) ---------- */
.poi-strip {
  flex: 0 0 32vh; min-height: 190px; display: flex; gap: 14px;
  overflow-x: auto; overflow-y: hidden; padding: 14px 18px;
  background: var(--panel); border-top: 1px solid #000; scroll-snap-type: x proximity;
}
.strip-card {
  flex: 0 0 200px; height: 100%; scroll-snap-align: start;
  display: flex; flex-direction: column; text-align: left;
  background: var(--panel-2); border: 2px solid transparent; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; color: var(--text); padding: 0;
}
.strip-card.active { border-color: var(--accent); }
.strip-photo { flex: 1; min-height: 0; background: #0d1017; display: grid; place-items: center; }
.strip-photo img { width: 100%; height: 100%; object-fit: cover; }
.strip-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 80px; }
.strip-name { padding: 8px 10px 2px; background: rgba(0,0,0,.72); font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-meta { padding: 0 10px 10px; background: rgba(0,0,0,.72); color: #d6dfec; font-size: 13px; }
.strip-empty { color: var(--muted); padding: 20px; }

/* ---------- Modal (Einstellungen) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 1200; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(0, 0, 0, .55);
}
.modal.open { display: flex; }
.set-card {
  width: min(660px, 100%); max-height: 88vh; overflow-y: auto; position: relative;
  background: linear-gradient(180deg, #1e2636 0%, var(--panel) 60%);
  border: 1px solid #2a3446; border-radius: 22px; padding: 0 0 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .65);
}
/* Kopfzeile klebt oben beim Scrollen */
.set-card h2 {
  position: sticky; top: 0; z-index: 1; margin: 0;
  padding: 20px 26px 16px; font-size: 22px;
  background: linear-gradient(180deg, #1e2636, rgba(30, 38, 54, .96));
  border-bottom: 1px solid #2a3446; border-radius: 22px 22px 0 0;
}
.set-card h2::before { content: '⚙︎ '; opacity: .8; }
.set-close {
  position: absolute; top: 14px; right: 16px; background: var(--panel-2); color: var(--text);
  border: 1px solid #2a3446; width: 42px; height: 42px; border-radius: 50%;
  font-size: 18px; cursor: pointer; z-index: 2; transition: background .15s;
}
.set-close:hover { background: var(--err); border-color: var(--err); }
.set-tabs {
  position: sticky; top: 61px; z-index: 1; display: flex; gap: 7px; padding: 12px 26px;
  background: rgba(30, 38, 54, .96); border-bottom: 1px solid #2a3446;
}
.set-tab {
  flex: 1; padding: 10px 8px; border: 1px solid #34425a; border-radius: 10px; background: var(--panel-2);
  color: var(--muted); font: inherit; font-weight: 700; cursor: pointer;
}
.set-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.set-pane { padding: 8px 0 12px; }

/* Jede Einstellung als „Kachel" */
.set-row {
  display: block; margin: 14px 26px; padding: 16px 18px;
  background: rgba(255, 255, 255, .035); border: 1px solid #2a3446; border-radius: 14px;
}
.set-row > span:first-child, .set-row { color: var(--text); font-weight: 600; }
.set-row b { color: var(--accent); font-weight: 700; }
.set-row input[type=range] {
  width: 100%; margin-top: 12px; height: 10px; accent-color: var(--accent); cursor: pointer;
}
.set-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* Kategorie-Chips + Toggles */
.set-check {
  display: inline-flex; align-items: center; gap: 10px; background: var(--panel-2);
  padding: 12px 16px; border-radius: 999px; cursor: pointer; font-weight: 600;
  border: 2px solid transparent; transition: border-color .15s, background .15s;
}
.set-check:hover { background: #2b3750; }
.set-check:has(input:checked) { border-color: var(--accent); background: #26374d; }
.set-check input { width: 22px; height: 22px; accent-color: var(--accent); }

/* Section-Toggles (Places / Gemini) volle Breite */
.set-pane > .set-check { display: flex; margin: 14px 26px 6px; border-radius: 14px; }

/* Textfelder */
.set-card input[type=text], .set-card input[type=password] {
  display: block; width: calc(100% - 52px); margin: 8px 26px 4px; padding: 13px 15px;
  border-radius: 12px; border: 1px solid #cbd5e1; background: #f8fafc; color: #172033;
  font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.set-card select {
  display: block; width: 100%; margin-top: 10px; padding: 13px 15px; border-radius: 12px;
  border: 1px solid #cbd5e1; background: #f8fafc; color: #172033; font-size: 15px;
}
.set-hint { margin: 10px 0 0; color: var(--muted); font-size: 13px; font-weight: 400; }
.set-card input[type=text]:focus, .set-card input[type=password]:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 154, 224, .25);
}
.set-card input:disabled { opacity: .45; }

/* Über uns / Impressum */
.set-about { padding: 16px 26px 8px; }
.set-about-card { margin-bottom: 14px; padding: 18px; border: 1px solid #34425a; border-radius: 16px; background: #202c3e; }
.set-about-card p { margin: 10px 0; color: #d8e2ef; line-height: 1.55; }
.set-about-card h3 { margin: 0 0 12px; font-size: 19px; }
.set-about-card a { color: #78c6f5; }
.set-about-logo { color: #299ee5; font-size: 30px; font-weight: 850; letter-spacing: -.04em; }
.set-about-logo span { color: #f79731; }
.set-about-version { color: #9eb7d5 !important; font-weight: 750; }
.set-about-note { color: var(--muted) !important; font-size: 13px; }
.set-google-card { overflow: hidden; }
.set-google-copy { margin-bottom: 15px !important; }
.set-google-button { min-height: 42px; margin: 14px 0; }
.set-google-notice { margin: 10px 0 !important; color: #a8f1c9 !important; font-weight: 700; }
.set-google-error { margin: 10px 0 !important; color: #ffbbb7 !important; font-weight: 700; }
.set-google-state { display: flex; align-items: center; gap: 11px; margin: 14px 0; padding: 11px; border-radius: 12px; background: #172033; }
.set-google-state[hidden], .set-google-button[hidden] { display: none; }
.set-google-state > span { min-width: 0; display: grid; flex: 1; }
.set-google-state b, .set-google-state small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-google-state small { color: var(--muted); }
.set-google-avatar { width: 42px; height: 42px; border-radius: 50%; background: #34425a; object-fit: cover; }
.set-google-signout { padding: 8px 10px; border: 1px solid #52647e; border-radius: 9px; background: transparent; color: #d8e2ef; font: inherit; cursor: pointer; }

/* Ortssuche im Simulations-Fenster */
.sim-search { position: absolute; top: 56px; left: 12px; z-index: 1000; width: min(400px, 72vw); }
.sim-search input {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid #2a3446;
  background: var(--panel); color: var(--text); font-size: 15px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .45);
}
.sim-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 154, 224, .25); }
.sim-results {
  list-style: none; margin: 6px 0 0; padding: 0; max-height: 46vh; overflow-y: auto;
  background: var(--panel); border: 1px solid #2a3446; border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
}
.sim-results:empty { display: none; }
.sim-results li { padding: 11px 14px; border-bottom: 1px solid #0d1017; cursor: pointer; font-size: 14px; line-height: 1.35; }
.sim-results li:last-child { border-bottom: none; }
.sim-results li:hover { background: var(--panel-2); }

/* Positions-Marker (nur im Simulations-Fenster genutzt) */
.pos-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--accent);
  border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(47, 154, 224, .35); }
.poi-marker, .poi-pin { }

/* ---------- Schmale / hochkant Displays ---------- */
@media (max-width: 720px), (max-aspect-ratio: 1/1) {
  .hud { gap: 7px; padding: calc(7px + env(safe-area-inset-top)) 8px 7px; }
  .hud-stats { gap: 7px; }
  .hud-item { min-width: 35px; }
  .hud-val { font-size: 21px; }
  .hud-lbl { font-size: 8px; letter-spacing: 0; }
  .hud-status { min-width: 0; padding: 4px 7px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hud-buttons { gap: 5px; }
  .hud-btn { min-height: 43px; min-width: 43px; padding: 7px 9px; font-size: 13px; }
  .search-toggle-icon { font-size: 22px; }
  #settings-toggle { width: 47px; min-width: 47px; min-height: 43px; font-size: 28px; }
  .poi-main { padding: 12px; }
  .pv-body { flex-direction: column; gap: 12px; }
  .pv-photo { flex: 0 0 34%; max-width: 100%; }
  .pv-name { font-size: 27px; }
  .pv-meta { font-size: 14px; }
  .pv-desc { font-size: 17px; padding: 13px 15px; }
  .pv-actions { gap: 8px; margin-top: 10px; }
  .pv-btn { min-height: 46px; padding: 10px 12px; font-size: 15px; }
  .poi-strip { flex-basis: 28dvh; min-height: 155px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .strip-card { flex-basis: 166px; }
  .pv-details-modal { padding: 12px; }
  .pv-details-card { width: 90vw; height: calc(90dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom)); max-height: calc(90dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .pv-details-content { padding: 20px 16px 14px; }
  .pv-details-head h2 { font-size: 23px; }
  .pv-details-text { font-size: 17px; }
  .pv-details-actions { gap: 6px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .pv-details-actions > * { min-height: 46px; font-size: 13px; }
  #search-toggle { min-width: auto; }
  .search-modal { padding: 12px; }
  .search-card { width: 100%; height: calc(80dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
  .search-card h2 { font-size: 24px; }
}
