/* View startseite (NEU 2026-10-16): Vollbild-Karte, schwebende Fotos, Header des Templates darueber, Suchpanel unten */
html.sx-seite, html.sx-seite body { overflow: hidden !important; height: 100%; }
html.sx-seite header.header,
html.sx-seite .container-header {
    position: fixed !important; top: 0; left: 0; right: 0; z-index: 1200;
    background: rgba(255, 255, 255, .86) !important; background-image: none !important;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    box-shadow: 0 1px 10px rgba(0, 0, 0, .12);
}
html.sx-seite footer.footer, html.sx-seite .container-footer, html.sx-seite .container-banner,
html.sx-seite .container-top-a, html.sx-seite .container-top-b, html.sx-seite .container-bottom-a,
html.sx-seite .container-bottom-b { display: none !important; }
html.sx-seite .site-grid { display: block; }
html.sx-seite main, html.sx-seite .container-component { margin: 0 !important; padding: 0 !important; }

.sx-root { position: fixed; inset: 0; z-index: 1; background: #e8e4d9; font-family: inherit; }
.sx-map { position: absolute; inset: 0; z-index: 0; }
.sx-tint .leaflet-tile-pane { filter: sepia(.38) saturate(.75) contrast(.94) brightness(1.03); }
.sx-osm .leaflet-tile-pane { filter: grayscale(.9) brightness(1.12) contrast(.78); }
.sx-osm.sx-tint .leaflet-tile-pane { filter: grayscale(.6) sepia(.3) brightness(1.1) contrast(.8); }
.sx-map .leaflet-bottom { bottom: var(--sx-pb, 0px); }
.sx-vektor.sx-tint .maplibregl-canvas, .sx-vektor.sx-tint .leaflet-gl-layer { filter: sepia(.38) saturate(.75) contrast(.94) brightness(1.03); }
.sx-karte-wahl { background: #fff; padding: 2px; }
.sx-karte-wahl select { border: 0; font-size: 13px; padding: 4px; max-width: 70vw; background: #fff; cursor: pointer; }
.sx-map .leaflet-control-zoom { margin-top: 70px; margin-right: 12px; border: none; box-shadow: 0 2px 8px rgba(0,0,0,.2); }

/* Fotokarten */
.sx-karte { background: none !important; border: 0 !important; }
.sx-karte a {
    display: block; width: 100%; height: 100%; box-sizing: border-box; background: #fff; padding: 5px 5px 0; border-radius: 3px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transform: rotate(var(--sx-rot, 0deg)); transform-origin: 50% 100%;
    text-decoration: none; color: #333; transition: transform .25s, box-shadow .25s; animation: sx-ein .7s ease both;
}
.sx-karte a:hover { transform: rotate(0deg) scale(1.35); box-shadow: 0 10px 26px rgba(0, 0, 0, .5); z-index: 5; }
.sx-karte a { overflow: hidden; }
.sx-karte .sx-bild { display: block; position: relative; width: 100%; height: calc(100% - 22px); overflow: hidden; background: #ddd; }
.sx-karte .sx-bild img { position: absolute !important; left: 0; top: 0; display: block; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; object-fit: cover; }
.sx-karte .sx-bt { display: block; height: 22px; line-height: 22px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.sx-karte.sx-aus a { animation: sx-aus .5s ease both; }
@keyframes sx-ein { from { opacity: 0; transform: rotate(var(--sx-rot, 0deg)) translateY(-14px) scale(.85); } to { opacity: 1; } }
@keyframes sx-aus { to { opacity: 0; transform: rotate(var(--sx-rot, 0deg)) scale(.8); } }
.sx-punkt { background: #b3261e; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 4px rgba(0, 0, 0, .5); }

/* Suchpanel unten */
.sx-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.sx-panel > * { pointer-events: auto; }
.sx-panel-toggle { width: 54px; height: 22px; border: 0; border-radius: 12px 12px 0 0; background: rgba(255,255,255,.92); cursor: pointer; box-shadow: 0 -2px 8px rgba(0,0,0,.15); }
.sx-chev { display: inline-block; width: 9px; height: 9px; border-right: 2px solid #31708a; border-bottom: 2px solid #31708a; transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s; }
.sx-panel.sx-zu .sx-chev { transform: rotate(-135deg) translate(-2px, -2px); }
.sx-panel-body { width: 100%; box-sizing: border-box; background: rgba(255,255,255,.93); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 12px 16px 16px; box-shadow: 0 -4px 18px rgba(0,0,0,.18); }
.sx-panel.sx-zu .sx-panel-body { display: none; }
.sx-panel-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1100px; margin: 0 auto 10px; }
.sx-titel { font-size: 1.15rem; margin: 0; font-weight: 600; color: #1d4e63; }
.sx-info-btn { border: 1px solid #31708a; background: transparent; color: #31708a; border-radius: 16px; padding: 4px 14px; cursor: pointer; white-space: nowrap; min-height: 32px; }
.sx-info-btn:hover { background: #31708a; color: #fff; }
.sx-kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 1100px; margin: 0 auto; }
.sx-kachel { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 64px; padding: 8px 12px; border-radius: 8px; color: #fff; text-decoration: none; font-weight: 600;
    background: var(--k, #31708a); background: linear-gradient(135deg, var(--k, #31708a), color-mix(in srgb, var(--k, #31708a) 58%, #000)); color: var(--kt, #fff); box-shadow: 0 2px 8px rgba(0,0,0,.2); transition: transform .15s; }
.sx-kachel:hover { transform: translateY(-2px); color: var(--kt, #fff); }

/* Infofenster */
.sx-info { position: absolute; z-index: 1100; left: 50%; top: 80px; transform: translateX(-50%); width: min(640px, calc(100% - 32px)); max-height: calc(100% - 260px); overflow-y: auto;
    background: rgba(255,255,255,.97); border-radius: 10px; padding: 18px 22px; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.sx-info[hidden] { display: none; }
.sx-info h2 { margin: 0 0 8px; font-size: 1.3rem; }
.sx-info p { margin: 0 0 10px; line-height: 1.45; }
.sx-info-close { position: absolute; top: 4px; right: 10px; border: 0; background: none; font-size: 28px; cursor: pointer; line-height: 1; }
.sx-noscript { position: absolute; top: 90px; left: 16px; z-index: 1100; background: #fff; padding: 8px 12px; border-radius: 6px; }

/* Einstellungen (Superuser) */
.sx-admin-btn { position: absolute; left: 12px; bottom: calc(var(--sx-pb, 0px) + 12px); z-index: 1050; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95);
    box-shadow: 0 2px 8px rgba(0,0,0,.3); font-size: 22px; line-height: 40px; padding: 0; cursor: pointer; color: #31708a; }
.sx-admin-btn:hover { background: #31708a; color: #fff; }
.sx-adm { position: absolute; z-index: 1300; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; padding: 12px; }
.sx-adm[hidden] { display: none; }
.sx-adm-box { background: #fff; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.4); width: min(760px, 100%); max-height: 100%; overflow-y: auto; padding: 16px 20px; box-sizing: border-box; }
.sx-adm-box h2 { margin: 0 0 6px; font-size: 1.25rem; }
.sx-adm-box h3 { margin: 16px 0 6px; font-size: 1.05rem; }
.sx-adm-hilfe { font-size: .85rem; color: #555; margin: 0 0 8px; }
.sx-adm-zeile { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 6px; padding: 6px; background: #f4f6f8; border-radius: 6px; }
.sx-adm-zeile input[type=text], .sx-adm-zeile select, .sx-adm-zeile input[type=number] { padding: 4px 6px; border: 1px solid #b8c2cc; border-radius: 4px; min-height: 32px; box-sizing: border-box; }
.sx-adm-zeile input[type=color] { width: 40px; height: 32px; padding: 0; border: 1px solid #b8c2cc; border-radius: 4px; background: #fff; }
.sx-adm-t { flex: 1 1 130px; min-width: 100px; } .sx-adm-u { flex: 2 1 200px; min-width: 140px; } .sx-adm-p { width: 70px; }
.sx-adm-zeile .sx-adm-del { border: 0; background: none; font-size: 20px; cursor: pointer; color: #b3261e; padding: 0 6px; }
.sx-adm-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sx-adm-btns button, .sx-adm-add { border: 1px solid #31708a; background: #fff; color: #31708a; border-radius: 16px; padding: 5px 14px; cursor: pointer; min-height: 34px; }
.sx-adm-btns .sx-adm-ok { background: #31708a; color: #fff; }
.sx-adm-meld { margin-top: 8px; font-size: .9rem; } .sx-adm-meld.fehler { color: #b3261e; }

@media (max-width: 700px) {
    /* GEAENDERT 2026-10-23: 8 Kacheln - am Handy deutlich kleiner (2 je Reihe), damit das Panel die Karte nicht dominiert */
    .sx-panel-body { padding: 6px 10px 8px; }
    .sx-panel-kopf { margin-bottom: 6px; }
    .sx-kacheln { grid-template-columns: repeat(2, 1fr); gap: 5px; }
    .sx-kachel { min-height: 32px; padding: 4px 8px; font-size: .74rem; line-height: 1.15; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
    .sx-titel { font-size: .95rem; }
    .sx-info-btn { min-height: 28px; padding: 2px 10px; font-size: .8rem; }
    .sx-map .leaflet-control-zoom { display: none; }
    .sx-info { top: 64px; max-height: calc(100% - 240px); }
}
@media (prefers-reduced-motion: reduce) { .sx-karte a { animation: none; transition: none; } }
