.button, .icon-button { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; line-height: 1.18; text-align: center; white-space: normal; touch-action: manipulation; transition: transform var(--duration), background var(--duration), box-shadow var(--duration); min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.button { padding: 10px 16px; }
.icon-button { width: 44px; min-width: 44px; padding: 0; white-space: nowrap; }
.button:hover, .icon-button:hover, .place-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.button svg, .icon-button svg, .nav-item svg, .bottom-nav svg { flex: 0 0 auto; }
.button-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.button-danger { background: var(--error); border-color: var(--error); color: #fff; }
.button:disabled, .icon-button:disabled { opacity: .58; cursor: wait; transform: none; }
.button.is-busy { position: relative; }
.search-box { min-width: min(32vw, 420px); max-width: 520px; height: 46px; border: 1px solid var(--border); border-radius: 999px; padding: 0 14px; display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--text-muted); }
.search-box input { border: 0; outline: 0; background: transparent; color: var(--text); width: 100%; }
.search-box span { display: inline-flex; align-items: center; }
.grid { display: grid; gap: 16px; }
.kpi-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.card-grid { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.list-grid { grid-template-columns: 1fr; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius); box-shadow: var(--shadow-soft); padding: clamp(14px, 2vw, 18px); }
.panel, .place-card, .modal, .toolbar, .map-shell, .map-stage, .map-side { min-width: 0; }
.panel h2, .panel h3 { margin: 0 0 14px; letter-spacing: 0; }
.kpi { min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; }
.kpi span { color: var(--text-muted); font-size: 13px; font-weight: 750; }
.kpi strong { font-size: clamp(24px, 3vw, 32px); line-height: 1.05; overflow-wrap: anywhere; }
.place-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform var(--duration), box-shadow var(--duration); min-width: 0; }
.place-card-image { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--surface-hover); }
.gallery-image { aspect-ratio: 16 / 11; }
.place-card-body { padding: 14px; display: grid; gap: 10px; }
.place-card h3 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.place-card.is-list { display: grid; grid-template-columns: minmax(150px, 22%) minmax(0, 1fr); }
.place-card.is-list .place-card-image { aspect-ratio: auto; height: 100%; min-height: 150px; }
.meta { color: var(--text-muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; max-width: 100%; padding: 5px 9px; border-radius: 999px; background: var(--surface-hover); color: var(--text); font-size: 12px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.score { width: 58px; height: 58px; min-width: 58px; border-radius: 16px; background: color-mix(in srgb, var(--primary), white 84%); color: var(--primary-strong); display: grid; place-items: center; font-weight: 900; font-size: 20px; line-height: 1; text-align: center; }
[data-theme="dark"] .score { background: color-mix(in srgb, var(--primary), black 62%); color: #ffe4f1; }
.card-topline { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-width: 0; }
.toolbar > * { min-width: 0; }
.toolbar > select, .toolbar > input { flex: 1 1 170px; max-width: 260px; }
.compact-toolbar { padding: 10px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-soft); }
.wide-list-action { width: min(280px, 100%); justify-self: center; margin: 4px auto 0; }
.empty { padding: 42px 18px; text-align: center; color: var(--text-muted); }
.hero-detail { min-height: clamp(280px, 44vh, 520px); border-radius: 26px; overflow: hidden; position: relative; background: var(--surface-hover); }
.hero-detail img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.hero-detail-content { position: absolute; inset: auto 0 0; padding: 34px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.66)); }
.hero-detail h2 { font-size: clamp(32px, 6vw, 70px); margin: 0; letter-spacing: 0; overflow-wrap: anywhere; }
.modal-root { position: fixed; inset: 0; z-index: 5000; display: none; place-items: center; padding: 18px; background: rgba(12, 18, 16, .45); backdrop-filter: blur(8px); }
.modal-root.is-open { display: grid; }
.modal { width: min(760px, 100%); max-height: min(90vh, 900px); max-height: min(90dvh, 900px); overflow: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); padding: 22px; scrollbar-gutter: stable; }
.modal-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; min-width: 0; }
.modal-header h2 { min-width: 0; overflow-wrap: anywhere; }
.toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 6000; display: grid; gap: 10px; width: min(360px, calc(100vw - 24px)); }
.toast { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--surface), transparent 3%); border: 1px solid var(--border); box-shadow: var(--shadow); font-weight: 750; line-height: 1.25; overflow-wrap: anywhere; backdrop-filter: blur(16px); }
.toast strong { display: block; font-size: 14px; }
.toast.error { border-color: color-mix(in srgb, var(--error), white 40%); color: var(--error); }
.toast.info { border-color: color-mix(in srgb, var(--primary), white 42%); color: var(--primary-strong); }
.toast.warning { border-color: color-mix(in srgb, var(--warning), white 42%); color: var(--warning); }
.skeleton-card { min-height: 220px; border-radius: var(--card-radius); background: linear-gradient(90deg, var(--surface), var(--surface-hover), var(--surface)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border: 1px solid var(--border); }
@keyframes shimmer { to { background-position-x: -200%; } }
.map-shell { display: grid; gap: 12px; }
.map-toolbar { padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-soft); }
.map-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 14px; align-items: stretch; }
.map-canvas { min-height: 68vh; min-height: 68dvh; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-soft); background: var(--surface-hover); }
.map-canvas.is-picking { cursor: crosshair; outline: 3px solid color-mix(in srgb, var(--primary), transparent 50%); outline-offset: 3px; }
.map-canvas .leaflet-pane { z-index: 1; }
.map-canvas .leaflet-tile-pane { z-index: 1; }
.map-canvas .leaflet-overlay-pane { z-index: 2; }
.map-canvas .leaflet-shadow-pane { z-index: 3; }
.map-canvas .leaflet-marker-pane { z-index: 4; }
.map-canvas .leaflet-tooltip-pane { z-index: 5; }
.map-canvas .leaflet-popup-pane { z-index: 6; }
.map-canvas .leaflet-top, .map-canvas .leaflet-bottom { z-index: 10; }
.map-hint { display: flex; align-items: center; gap: 10px; border-color: color-mix(in srgb, var(--primary), var(--border) 58%); background: color-mix(in srgb, var(--primary), var(--surface) 91%); font-weight: 800; }
.map-hint::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary), transparent 82%); }
.map-side { max-height: 68dvh; overflow: auto; display: grid; align-content: start; gap: 12px; }
.map-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.map-stat { min-height: 58px; border-radius: 14px; background: var(--surface-hover); padding: 9px; display: grid; align-content: center; }
.map-stat strong { font-size: 22px; line-height: 1; overflow-wrap: anywhere; }
.map-stat span { color: var(--text-muted); font-size: 11px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.map-list { display: grid; gap: 8px; }
.map-list-item { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); display: grid; grid-template-columns: 52px minmax(0, 1fr) 42px; gap: 10px; align-items: center; padding: 8px; text-align: left; }
.map-list-item:hover { background: var(--surface-hover); }
.map-list-item img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.map-list-item strong, .map-list-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-list-item small { color: var(--text-muted); margin-top: 3px; }
.map-list-item b { justify-self: end; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary), white 84%); color: var(--primary-strong); }
.travel-marker-wrap { background: transparent; border: 0; }
.travel-marker {
    --marker: var(--primary);
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50% 50% 50% 12px;
    transform: rotate(-45deg);
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--marker), white 12%), var(--marker));
    color: #fff;
    border: 3px solid #fff;
    box-shadow: 0 14px 30px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.28);
}
.travel-marker::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,.32);
}
.travel-marker::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 6px;
    left: 2px;
    bottom: -10px;
    border-radius: 50%;
    background: rgba(0,0,0,.22);
    filter: blur(3px);
    transform: rotate(45deg);
}
.travel-marker span {
    transform: rotate(45deg);
    font-size: 14px;
    font-weight: 950;
    line-height: 1;
    text-shadow: 0 1px 8px rgba(0,0,0,.25);
}
.travel-marker b {
    position: absolute;
    right: -9px;
    top: -9px;
    min-width: 24px;
    height: 24px;
    padding: 0 5px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    transform: rotate(45deg);
    background: #fff;
    color: var(--marker);
    border: 1px solid color-mix(in srgb, var(--marker), white 62%);
    box-shadow: 0 8px 18px rgba(0,0,0,.2);
    font-size: 10px;
    line-height: 1;
}
.pick-marker { --marker: var(--success); animation: pickPulse 1.2s ease-in-out infinite; }
@keyframes pickPulse {
    0%, 100% { box-shadow: 0 14px 30px rgba(0,0,0,.28), 0 0 0 0 color-mix(in srgb, var(--success), transparent 60%); }
    50% { box-shadow: 0 14px 30px rgba(0,0,0,.28), 0 0 0 12px color-mix(in srgb, var(--success), transparent 92%); }
}
.leaflet-marker-icon:hover .travel-marker { transform: rotate(-45deg) translateY(-3px) scale(1.04); }
.travel-cluster-wrap { background: transparent; border: 0; }
.travel-cluster {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: grid;
    place-items: center;
    align-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: 3px solid #fff;
    box-shadow: 0 16px 34px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.25);
}
.travel-cluster strong { font-size: 18px; line-height: 1; }
.travel-cluster small { font-size: 10px; font-weight: 900; opacity: .86; text-transform: uppercase; letter-spacing: 0; }
.map-popup { width: 230px; max-width: 100%; display: grid; gap: 7px; font: 14px/1.3 Inter, system-ui, sans-serif; overflow-wrap: anywhere; }
.map-popup img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.map-popup strong { font-size: 16px; }
.map-popup span { color: #68716e; }
.map-popup p { display: flex; gap: 8px; margin: 2px 0 0; }
.map-popup a { color: var(--primary); font-weight: 800; text-decoration: none; }
.map-add-popup { width: 210px; max-width: 100%; display: grid; gap: 8px; font: 14px/1.3 Inter, system-ui, sans-serif; overflow-wrap: anywhere; }
.map-add-popup strong { font-size: 16px; }
.map-add-popup span { color: #68716e; font-size: 12px; }
.map-add-popup .button { width: 100%; min-height: 40px; }
.comparison { grid-template-columns: 1fr 1fr; }
.comparison > * { min-width: 0; }
.stat-canvas { min-height: 280px; }
.native-bar { height: 12px; border-radius: 999px; background: var(--surface-hover); overflow: hidden; }
.native-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.compact-kpis .kpi { min-height: 92px; }
.compact-panel p:last-child { margin-bottom: 0; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; min-width: 0; }
.settings-block { padding: 0; overflow: hidden; transition: border-color var(--duration), box-shadow var(--duration), background var(--duration); }
.settings-block:hover { border-color: color-mix(in srgb, var(--primary), var(--border) 58%); box-shadow: var(--shadow); }
.settings-block summary { list-style: none; cursor: pointer; min-height: 66px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.settings-block summary::-webkit-details-marker { display: none; }
.settings-summary-text { display: grid; gap: 4px; min-width: 0; }
.settings-summary-text strong { font-size: 18px; font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
.settings-summary-text small { color: var(--text-muted); font-size: 13px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.settings-summary-action { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
.settings-summary-action em { font-style: normal; }
.settings-summary-action em::before { content: "Öffnen"; }
.settings-block[open] .settings-summary-action em::before { content: "Schließen"; }
.settings-summary-action i { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-hover); display: grid; place-items: center; transition: transform var(--duration), background var(--duration), border-color var(--duration); }
.settings-summary-action i::before { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.settings-block[open] .settings-summary-action i { transform: rotate(180deg); background: color-mix(in srgb, var(--primary), var(--surface-hover) 84%); border-color: color-mix(in srgb, var(--primary), var(--border) 55%); color: var(--primary-strong); }
.settings-block > :not(summary) { margin: 0 18px 18px; }
.settings-block[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin-bottom: 4px; }
.user-list { display: grid; gap: 10px; }
.user-row { min-width: 0; display: grid; grid-template-columns: 46px minmax(150px, 1fr) minmax(180px, auto) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-hover); }
.user-avatar { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-weight: 950; }
.user-row strong, .user-row span { display: block; min-width: 0; overflow-wrap: anywhere; }
.user-row span { color: var(--text-muted); font-size: 13px; margin-top: 3px; }
.user-facts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.user-actions { justify-content: flex-end; }
.mobile-menu { display: grid; gap: 16px; }
.mobile-menu-section { display: grid; gap: 9px; min-width: 0; }
.mobile-menu-section h3 { margin: 0; color: var(--text-muted); font-size: 12px; font-weight: 950; line-height: 1.2; text-transform: uppercase; letter-spacing: .06em; }
.mobile-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mobile-menu-grid .button { justify-content: flex-start; min-height: 48px; padding-inline: 13px; }
.mobile-menu-grid .button svg { color: var(--primary); }
.mobile-menu-grid .button-danger svg { color: currentColor; }
.stat-panel { display: grid; gap: 14px; }
.stat-bars { display: grid; gap: 12px; }
.stat-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(120px, 2fr) 44px; align-items: center; gap: 12px; min-width: 0; }
.stat-row strong { display: block; overflow-wrap: anywhere; }
.stat-row span { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.stat-row b { text-align: right; font-size: 14px; }
.quality-list { display: flex; flex-wrap: wrap; gap: 8px; }
.quality-list .pill { color: var(--warning); }
.image-manager { display: grid; gap: 12px; border: 1px solid var(--border); border-radius: 18px; padding: 12px; background: var(--surface-hover); min-width: 0; }
.image-manager-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; }
.image-manager-head div { min-width: 0; }
.image-manager-head strong, .image-manager-head span { display: block; overflow-wrap: anywhere; }
.image-manager-head strong { color: var(--text); font-size: 15px; font-weight: 900; line-height: 1.15; }
.image-manager-head span { margin-top: 3px; color: var(--text-muted); font-size: 12px; font-weight: 750; line-height: 1.2; }
.image-upload-button { flex: 0 0 auto; }
.image-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; min-width: 0; }
.image-preview-item { position: relative; min-width: 0; border: 1px solid var(--border); border-radius: 15px; padding: 8px; background: var(--surface); display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: center; }
.image-preview-item.is-cover { border-color: color-mix(in srgb, var(--primary), var(--border) 45%); box-shadow: inset 3px 0 0 var(--primary); }
.image-preview-item img, .image-preview-placeholder { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--surface-hover); }
.image-preview-placeholder { display: grid; place-items: center; color: var(--text-muted); }
.image-preview-item strong, .image-preview-item span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-preview-item strong { color: var(--text); font-size: 13px; font-weight: 900; line-height: 1.15; }
.image-preview-item span { margin-top: 3px; color: var(--text-muted); font-size: 12px; font-weight: 750; line-height: 1.15; }
.image-preview-item.queued { grid-template-columns: 72px minmax(0, 1fr); }
.image-preview-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.image-preview-actions .icon-button { width: 100%; min-width: 0; border-radius: 11px; }
.image-preview-actions .modal-delete-image { color: var(--error); }
.lightbox-image { max-height: 76vh; width: 100%; object-fit: contain; border-radius: 18px; background: #000; }
.context-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sticky-mobile-actions { position: sticky; bottom: 12px; z-index: 5; background: color-mix(in srgb, var(--surface), transparent 7%); backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: 18px; padding: 10px; box-shadow: var(--shadow-soft); }
