:root { --mobile-bg: #f7f9fc; --mobile-card: #ffffff; --mobile-border: #d8e1ec; --mobile-text: #1f2937; --mobile-subtext: #4b5563; --mobile-accent: #2563eb; } html[data-theme="dark"] { --mobile-bg: #0f172a; --mobile-card: #111827; --mobile-border: #1f2937; --mobile-text: #e5e7eb; --mobile-subtext: #9ca3af; --mobile-accent: #60a5fa; } * { box-sizing: border-box; } body.mobile-page { margin: 0; background: var(--mobile-bg); color: var(--mobile-text); font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif; overflow: hidden; overscroll-behavior: none; } /* Die Basis-Template-Hülle (main.container) darf bei den mobilen Views keinen Rand und keine Innenabstände belegen. */ body.mobile-page main.container { width: 100%; max-width: none; margin: 0; padding: 0; } .mobile-app { display: flex; flex-direction: column; height: 100dvh; width: 100vw; overflow: hidden; } .mobile-header { background: var(--mobile-card); border-bottom: 1px solid var(--mobile-border); padding: 0.4rem 0.6rem; padding-top: calc(0.4rem + env(safe-area-inset-top)); } .mobile-header-row { display: flex; align-items: center; gap: 0.5rem; } .mobile-group-select, .mobile-group-name { flex: 1 1 auto; min-width: 0; } .mobile-group-select { width: 100%; margin: 0; padding: 0.4rem 0.6rem; border-radius: 0.5rem; border: 1px solid var(--mobile-border); background: var(--mobile-card); color: var(--mobile-text); font-size: 0.9rem; } .mobile-group-name { font-weight: 600; font-size: 0.95rem; padding: 0.4rem 0.2rem; } .mobile-icon-btn { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--mobile-border); background: var(--mobile-card); color: var(--mobile-text); display: flex; align-items: center; justify-content: center; margin: 0; padding: 0; } .mobile-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--mobile-card); border-bottom: 1px solid var(--mobile-border); } .mobile-tab { border: none; background: transparent; color: var(--mobile-subtext); padding: 0.5rem 0; margin: 0; border-bottom: 2px solid transparent; border-radius: 0; } .mobile-tab.active { color: var(--mobile-text); border-bottom-color: var(--mobile-accent); } .mobile-main { flex: 1 1 auto; min-height: 0; position: relative; } .mobile-tab-panel { display: none; height: 100%; width: 100%; } .mobile-tab-panel.active { display: flex; flex-direction: column; } .mobile-map { flex: 1 1 auto; height: 100%; width: 100%; } .mobile-fab { position: absolute; right: 0.7rem; bottom: calc(5.5rem + env(safe-area-inset-bottom)); width: 3rem; height: 3rem; border-radius: 50%; border: none; background: var(--mobile-accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35); margin: 0; padding: 0; z-index: 1000; } .mobile-fab-secondary { bottom: calc(9rem + env(safe-area-inset-bottom)); background: var(--mobile-card); color: var(--mobile-text); border: 1px solid var(--mobile-border); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18); } .mobile-work-btn { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(1rem + env(safe-area-inset-bottom)); border-radius: 999px; background: var(--mobile-card); color: var(--mobile-text); border: 1px solid var(--mobile-border); padding: 0.5rem 1.2rem; margin: 0; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22); z-index: 1000; } .mobile-position-btn { position: absolute; top: 0.75rem; left: 0.75rem; width: auto; margin: 0; padding: 0.5rem 0.9rem; border-radius: 999px; border: 1px solid var(--mobile-accent); background: var(--mobile-accent); color: #fff; box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3); font-size: 0.85rem; font-weight: 600; z-index: 900; } .mobile-position-btn:hover, .mobile-position-btn:focus-visible { border-color: var(--mobile-accent); background: var(--mobile-accent); color: #fff; filter: brightness(1.06); } .mobile-nav-btn { position: absolute; top: 0.75rem; right: 0.7rem; width: 3rem; height: 3rem; border-radius: 50%; border: none; background: var(--mobile-accent); color: #fff; display: none; align-items: center; justify-content: center; margin: 0; padding: 0; box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35); z-index: 1000; } .mobile-nav-btn:not([hidden]) { display: flex; } .mobile-nav-btn:hover, .mobile-nav-btn:focus-visible { border-color: var(--mobile-accent); background: var(--mobile-accent); color: #fff; filter: brightness(1.06); } .mobile-nav-btn svg { width: 1.35rem; height: 1.35rem; } .mobile-chat-messages { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0.6rem 0.7rem; display: flex; flex-direction: column; gap: 0.4rem; } .mobile-chat-card { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.5rem 0.6rem; border-radius: 0.6rem; background: var(--mobile-card); border: 1px solid var(--mobile-border); } .mobile-chat-card.own { align-self: flex-end; background: rgba(37, 99, 235, 0.12); } html[data-theme="dark"] .mobile-chat-card.own { background: rgba(96, 165, 250, 0.18); } .mobile-chat-meta { font-size: 0.75rem; color: var(--mobile-subtext); } .mobile-chat-fromto { font-weight: 600; font-size: 0.88rem; } .mobile-chat-text { font-size: 0.9rem; word-break: break-word; } .mobile-chat-form { display: flex; gap: 0.4rem; padding: 0.5rem 0.6rem; padding-bottom: calc(0.5rem + env(safe-area-inset-bottom)); background: var(--mobile-card); border-top: 1px solid var(--mobile-border); } .mobile-chat-input { flex: 1 1 auto; margin: 0; padding: 0.45rem 0.6rem; border-radius: 999px; border: 1px solid var(--mobile-border); background: var(--mobile-bg); color: var(--mobile-text); } .mobile-chat-send { margin: 0; padding: 0.45rem 0.9rem; border-radius: 999px; } .mobile-street-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; } .mobile-street-item { width: 100%; text-align: left; margin: 0; padding: 0.5rem 0.7rem; border-radius: 0.6rem; border: 1px solid var(--mobile-border); background: var(--mobile-card); color: var(--mobile-text); } .mobile-street-item.active { border-color: var(--mobile-accent); box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25); } .mobile-dialog-hint { margin: 0 0 0.6rem; color: var(--mobile-subtext); font-size: 0.85rem; } .mobile-settings-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.6rem; } .mobile-settings-button { width: auto; margin: 0; padding: 0.35rem 0.8rem; border-radius: 999px; font-size: 0.85rem; } .mobile-settings-row input[role="switch"] { flex: 0 0 auto; margin: 0; } .mobile-settings-button.is-active { background: var(--mobile-accent); border-color: var(--mobile-accent); color: #fff; } .mobile-user-marker { position: relative; width: 16px; height: 16px; } .mobile-user-dot { width: 16px; height: 16px; border-radius: 50%; background: #2563eb; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.4); } .mobile-user-arrow { position: absolute; left: 50%; top: 50%; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 14px solid #2563eb; transform-origin: 50% 100%; transform: translate(-50%, -100%) rotate(0deg); } .mobile-group-marker { position: relative; width: 14px; height: 14px; } .mobile-group-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--marker-color); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.4); } @media (max-width: 420px) { .mobile-work-btn { bottom: calc(0.8rem + env(safe-area-inset-bottom)); } .mobile-fab { bottom: calc(5.2rem + env(safe-area-inset-bottom)); } .mobile-fab-secondary { bottom: calc(8.6rem + env(safe-area-inset-bottom)); } } /* Im installierten Standalone-Modus keine Browserleisten berücksichtigen. */ @media (display-mode: standalone) { body.mobile-page { height: 100dvh; } }