html, body { margin: 0; height: 100%; background: #f1f7fc; font: 14px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1a2b3c; }
#se-app { position: relative; width: 100%; height: 100%; overflow: hidden; }
#se-map { position: absolute; inset: 0; }

#se-titel, #se-uhr, #se-leiste, #se-legende {
  position: absolute; z-index: 2; background: rgba(255, 255, 255, .93); border-radius: 8px;
  box-shadow: 0 1px 4px rgba(13, 31, 60, .18);
}
#se-titel { top: 10px; left: 10px; max-width: calc(100% - 20px); padding: 6px 10px; font-weight: 700; font-size: 15px; }
#se-titel small { display: block; font-weight: 400; font-size: 12px; color: #4a5a6a; }
#se-uhr { top: 10px; right: 10px; padding: 6px 10px; text-align: right; font-variant-numeric: tabular-nums; }
#se-uhr b { display: block; font-size: 15px; }
#se-fahrt { font-size: 12px; color: #4a5a6a; }
#se-uhr.se-ereignis { background: #e03131; color: #fff; }
#se-uhr.se-ereignis #se-fahrt { color: #ffe3e3; }

#se-leiste { left: 10px; right: 10px; bottom: 34px; display: flex; align-items: center; gap: 10px; padding: 6px 10px; }
#se-play, #se-tempo { flex: none; border: 0; background: #0d1f3c; color: #fff; border-radius: 6px; cursor: pointer; }
#se-play { width: 36px; height: 32px; display: grid; place-items: center; }
#se-play svg { width: 18px; height: 18px; fill: currentColor; }
#se-play .se-i-pause, #se-play.se-laeuft .se-i-play { display: none; }
#se-play.se-laeuft .se-i-pause { display: block; }
#se-tempo { height: 32px; min-width: 42px; font-weight: 700; font-size: 13px; }
#se-pos { flex: 1; min-width: 0; accent-color: #31ae86; }

#se-legende { left: 10px; bottom: 82px; padding: 4px 8px; font-size: 12px; display: flex; gap: 10px; }
#se-legende span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.se-l-weg, .se-l-rest { display: inline-block; width: 18px; height: 0; border-top: 3px solid #31ae86; }
.se-l-rest { border-top: 2px dashed rgba(13, 31, 60, .5); }
.se-l-stern { color: #e03131; font-style: normal; font-size: 14px; }
.se-l-schlepp, .se-l-andere { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #e8590c; }
.se-l-andere { background: #868e96; }
#se-legende span[hidden] { display: none; }
#se-uhr::after { content: "Zeitlupe"; display: none; margin-top: 2px; font-size: 11px; font-weight: 700; color: #e8590c; }
.se-lupe #se-uhr::after { display: block; }
.se-lupe #se-uhr.se-ereignis::after { color: #fff; }

.maplibregl-ctrl-bottom-right, .maplibregl-ctrl-bottom-left { z-index: 1; }
.maplibregl-ctrl-bottom-right { bottom: 76px; }

/* Standbild (Beitragsbild 1200 × 675, ?standbild=1) */
#se-marke { display: none; }
.se-standbild body { font-family: Arial, "Liberation Sans", Helvetica, sans-serif; }   /* Render-Server hat keine Systemschrift */
.se-standbild #se-leiste, .se-standbild .maplibregl-ctrl-bottom-right, .se-standbild .maplibregl-ctrl-scale { display: none; }
.se-standbild #se-titel { top: 18px; left: 18px; padding: 10px 16px; font-size: 30px; line-height: 1.15; max-width: 760px; }
.se-standbild #se-titel small { font-size: 18px; margin-top: 4px; }
.se-standbild #se-uhr { top: 18px; right: 18px; padding: 10px 16px; }
.se-standbild #se-uhr b { font-size: 22px; }
.se-standbild #se-fahrt { font-size: 16px; }
.se-standbild #se-uhr::after { display: none !important; }
.se-standbild #se-legende { left: 18px; bottom: 18px; font-size: 15px; padding: 6px 12px; gap: 14px; }
.se-standbild #se-marke { display: block; position: absolute; z-index: 2; right: 18px; bottom: 18px; padding: 6px 12px;
  border-radius: 8px; background: #0d1f3c; color: #fff; font-size: 17px; text-align: right; }
.se-standbild #se-marke small { display: block; font-size: 11px; font-weight: 400; color: #c5d3e3; }
.se-standbild .maplibregl-ctrl-bottom-left, .se-standbild .maplibregl-ctrl-attrib { display: none; }

/* Video (Instagram-Reel 1080 × 1920, ?video=1): Texte ausserhalb von Profilkopf (oben), Bildunterschrift (unten)
   und Knoepfen (rechts) */
#se-outro { display: none; }
.se-video body { font-family: Arial, "Liberation Sans", Helvetica, sans-serif; }
.se-video #se-leiste, .se-video .maplibregl-ctrl-bottom-right, .se-video .maplibregl-ctrl-bottom-left,
.se-video .maplibregl-ctrl-attrib { display: none; }
.se-video #se-titel { top: 250px; left: 60px; right: 60px; max-width: none; padding: 22px 30px; border-radius: 18px;
  font-size: 54px; line-height: 1.1; }
.se-video #se-titel small { font-size: 32px; margin-top: 8px; }
.se-video #se-uhr { top: 470px; left: 60px; right: auto; padding: 16px 26px; border-radius: 16px; text-align: left; }
.se-video #se-uhr b { font-size: 44px; }
.se-video #se-fahrt { font-size: 30px; }
.se-video #se-uhr::after { font-size: 28px; margin-top: 6px; }
.se-video #se-legende { left: 60px; right: 180px; bottom: 470px; flex-wrap: wrap; font-size: 26px; padding: 12px 20px;
  gap: 8px 24px; border-radius: 14px; }
.se-video .se-l-weg, .se-video .se-l-rest { width: 34px; }
.se-video .se-l-schlepp, .se-video .se-l-andere { width: 18px; height: 18px; }
.se-video .se-l-stern { font-size: 28px; }
.se-video #se-marke { display: block; position: absolute; z-index: 2; left: 60px; bottom: 400px; padding: 0; background: none;
  color: #0d1f3c; font-size: 30px; font-weight: 700; text-shadow: 0 0 6px #fff, 0 0 3px #fff; }
.se-video #se-marke small { display: none; }
.se-video #se-outro { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px;
  position: absolute; z-index: 3; inset: 0; background: rgba(13, 31, 60, .88); color: #fff; text-align: center; opacity: 0; }
.se-video #se-outro b { font-size: 60px; line-height: 1.15; max-width: 860px; }
.se-video #se-outro span { font-size: 56px; font-weight: 700; color: #31ae86; }
.se-video #se-outro::after { content: "AIS-Daten · Karte © OpenStreetMap-Mitwirkende · EMODnet Bathymetry"; font-size: 24px;
  color: #c5d3e3; margin-top: 30px; }

@media (max-width: 520px) {
  #se-titel { font-size: 13px; }
  #se-uhr { top: auto; bottom: 82px; left: 10px; right: auto; text-align: left; }
  #se-uhr b { font-size: 13px; }
  #se-legende { display: none; }
}
