:root {
  color-scheme: light;
  --navy-950: #102338;
  --navy-900: #17324d;
  --navy-800: #244a68;
  --navy-100: #dce7ef;
  --sea: #2b7f91;
  --sea-light: #d9eef0;
  --sand: #f3dfb8;
  --paper: #f5f1e8;
  --paper-deep: #e8e0d1;
  --card: #fffdf8;
  --ink: #17212b;
  --muted: #607080;
  --green: #2b8068;
  --red: #a33b3b;
  --amber: #9c6418;
  --shadow: 0 18px 44px rgba(16, 35, 56, .11);
  --radius: 18px;
  --ui-scale: 1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: calc(16px * var(--ui-scale)); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 0%, rgba(243, 194, 112, .28), transparent 30rem),
    linear-gradient(145deg, #edf5f3 0, var(--paper) 34rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.places-loading { overflow: hidden; }
.place-load-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  background: linear-gradient(145deg, #f9f6ef, #e6f2f2);
  color: var(--navy-900);
  text-align: center;
}
.place-load-gate img { border-radius: 18px; box-shadow: 0 12px 36px rgba(23, 50, 77, .18); }
.place-load-gate strong { font-size: clamp(1.1rem, 2vw, 1.45rem); }
.place-load-gate span { max-width: 42rem; color: #496171; }
.place-load-gate::after {
  content: "";
  width: 34px;
  height: 34px;
  border: 4px solid #bdd4d9;
  border-top-color: #087f8c;
  border-radius: 50%;
  animation: place-load-spin .8s linear infinite;
}
.place-load-gate[aria-busy="false"]::after { display: none; }
@keyframes place-load-spin { to { transform: rotate(360deg); } }

a { color: var(--navy-800); text-underline-offset: .2em; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; overflow: hidden !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; padding: .7rem 1rem; background: white; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: .8rem 1rem;
  border-bottom: 1px solid rgba(23, 50, 77, .13);
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(14px);
}
.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: min(1500px, 100%);
  min-width: 0;
  margin: 0 auto;
}
.top-alerts {
  position: sticky;
  top: 81px;
  z-index: 9;
  display: grid;
  gap: .35rem;
  width: min(1500px, calc(100% - 2rem));
  margin: .55rem auto 0;
}
.general-disclaimer, .danger-banner, .sky-alerts, .offline-status { border-radius: 10px; box-shadow: 0 8px 24px rgba(72, 8, 13, .14); }
.offline-status { padding: .55rem .8rem; color: #584000; background: #fff4ca; font-weight: 800; }
.place-data-warning { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem .9rem; border: 1px solid #9aa5af; border-radius: 12px; color: #44515d; background: #eef1f3; font-size: .86rem; font-weight: 800; }
.place-data-warning .button { flex: 0 0 auto; padding: .35rem .6rem; background: white; }
.general-disclaimer { border: 2px solid #c00020; color: #8f0018; background: #fff1f2; }
.general-disclaimer summary { padding: .55rem .8rem; font-weight: 950; cursor: pointer; animation: warning-blink 1.5s step-end infinite; }
.general-disclaimer p { margin: 0; padding: 0 .8rem .7rem; font-size: .84rem; }
.quick-actions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .38rem; }
.quick-action { display: flex; min-width: 0; align-items: stretch; gap: .28rem; padding: .32rem .46rem; border: 1px solid rgba(23,50,77,.2); border-radius: 9px; background: rgba(255,255,255,.96); box-shadow: 0 4px 14px rgba(16,35,56,.08); }
.quick-action > button, .quick-action > a { display: grid; min-width: 0; flex: 1; gap: .08rem; padding: 0; border: 0; color: var(--navy-950); background: transparent; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.quick-action strong { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.quick-action > button > span, .quick-action > a > span { overflow: hidden; color: var(--muted); font-size: .67rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.quick-action-links { display: flex; flex-wrap: wrap; align-content: center; align-items: center; gap: .28rem; font-size: .66rem; white-space: nowrap; }
.quick-action-links .text-button { padding: 0; border: 0; color: var(--sea); background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.danger-banner { padding: .62rem .85rem; border: 4px solid #b00020; color: #8b0018; background: #fff0f0; font-size: 1.04rem; font-weight: 950; }
.danger-banner a { color: #710013; }
.sky-alerts { width: min(34rem, 100%); margin-left: auto; padding: .38rem .7rem; border: 1px solid #7357a8; color: #291b55; background: #f4f0ff; text-align: center; font-size: .76rem; line-height: 1.25; }
.sky-alerts p { margin: .08rem 0; }
.sky-alert-title, .sky-alert-detail { display: block; }
.sky-alert-title { font-weight: 900; }
@keyframes warning-blink { 0%, 60% { color: #9f001b; background: transparent; } 61%, 100% { color: white; background: #c00020; } }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--navy-950); text-decoration: none; }
.brand img { filter: drop-shadow(0 7px 10px rgba(16, 35, 56, .18)); }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: clamp(1.05rem, 2.2vw, 1.5rem); }
.eyebrow, .kicker { margin: 0 0 .25rem; color: var(--sea); font-size: .74rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.account-actions, .button-row, .button-row, .map-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.live-clock { display: grid; min-width: 152px; padding: .34rem .62rem; border-left: 3px solid var(--sea); color: var(--navy-950); line-height: 1.15; text-align: right; }
.live-clock strong { font-size: .78rem; }
.live-clock span { font-variant-numeric: tabular-nums; font-size: .92rem; font-weight: 800; }
.status-chip { padding: .38rem .72rem; border: 1px solid var(--navy-100); border-radius: 999px; color: var(--muted); background: white; font-size: .84rem; }

.page-shell {
  display: grid;
  grid-template-columns: minmax(270px, var(--map-column-width, 31%)) 10px minmax(0, 1fr);
  gap: clamp(.5rem, 1vw, .9rem);
  width: min(1500px, calc(100% - 2rem));
  margin: 1.4rem auto 3rem;
}
.map-column { min-width: 0; align-self: start; position: sticky; top: var(--map-sticky-top, 12.3rem); display: grid; gap: 1rem; }
.content-column { min-width: 0; display: grid; gap: 1rem; }
.column-resizer { min-width: 10px; align-self: stretch; border-radius: 999px; background: linear-gradient(90deg, transparent 4px, rgba(15,115,123,.5) 4px, rgba(15,115,123,.5) 6px, transparent 6px); cursor: col-resize; touch-action: none; }
.column-resizer:hover, .column-resizer:focus-visible { outline: none; background: linear-gradient(90deg, transparent 3px, var(--sea) 3px, var(--sea) 7px, transparent 7px); }
body.resizing-columns { cursor: col-resize; user-select: none; }
.card {
  min-width: 0;
  max-width: 100%;
  overflow-anchor: none;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  border: 1px solid rgba(23, 50, 77, .12);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, .95);
  box-shadow: var(--shadow);
}
.compact-card { padding: 1.15rem 1.3rem; }
.compact-card h2 { margin-bottom: .35rem; font-size: 1.1rem; }
.compact-card p:last-child { margin-bottom: 0; }
.hero { display: flex; justify-content: space-between; align-items: end; gap: 1rem; min-height: 150px; overflow: hidden; background: linear-gradient(120deg, rgba(255,253,248,.98), rgba(217,238,240,.95)); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h1, h2, h3 { margin: 0; color: var(--navy-950); line-height: 1.08; }
h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); }
p { margin-top: .55rem; }
.section-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1rem; }
.section-heading > a { font-size: .83rem; text-align: right; }

.button {
  min-height: 42px;
  padding: .62rem .95rem;
  border: 1px solid var(--navy-100);
  border-radius: 10px;
  color: var(--navy-950);
  background: white;
  font-weight: 780;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(16,35,56,.12); }
.button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(43,127,145,.28); outline-offset: 2px; }
.button-primary { border-color: var(--navy-900); color: white; background: var(--navy-900); }
.location-used { border-color: #2b8068; color: #155f48; background: #e5f5ef; }
.button-danger { border-color: #e0b8b8; color: var(--red); background: #fff8f7; }
.full-width { width: 100%; }

.map-card { padding: .9rem; }
.map-card .section-heading { padding: .3rem .3rem 0; }
.map-frame-wrap { position: relative; min-width: 0; }
.map-frame, .leaflet-container { overflow: hidden; }
.map-frame { display: block; width: 100%; height: 410px; min-height: 0; border: 0; border-radius: 13px; background: var(--sea-light); }
.map-reset-button { position: absolute; top: 76px; left: 10px; z-index: 500; display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 2px solid rgba(0,0,0,.28); border-radius: 4px; color: var(--navy-950); background: white; box-shadow: 0 1px 5px rgba(0,0,0,.35); font-size: 1.05rem; font-weight: 950; line-height: 1; }
.map-reset-button:hover, .map-reset-button:focus-visible { background: #f2f8f8; }
.map-layer-legend { display: flex; flex-wrap: wrap; gap: .45rem .8rem; padding: .65rem .2rem .05rem; color: var(--muted); font-size: .75rem; }
.map-layer-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.map-layer-legend a { color: var(--muted); font-weight: 800; }
.map-dot { width: .72rem; height: .72rem; border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 1px rgba(16,35,56,.25); }
.map-dot.ship, .live-map-marker.ship span { background: #0a8f73; }
.map-dot.aircraft, .live-map-marker.aircraft span { background: #2768c7; }
.map-dot.balloon, .live-map-marker.balloon span { background: #ba2e78; }
.live-map-marker { background: transparent; border: 0; }
.live-map-marker span { display: grid; width: 34px; height: 34px; place-items: center; border: 3px solid white; border-radius: 50%; color: white; text-shadow: 0 1px 2px #102338; box-shadow: 0 3px 12px rgba(16,35,56,.72), 0 0 0 2px rgba(16,35,56,.35); font-size: 1rem; font-weight: 950; }
.live-map-marker.poi span { width: 30px; height: 30px; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 1.35rem; line-height: 1; font-family: Arial, sans-serif; font-weight: 1000; text-shadow: -2px -2px 0 white, 2px -2px 0 white, -2px 2px 0 white, 2px 2px 0 white, 0 3px 4px rgba(16,35,56,.55); }
.live-map-marker.cluster span { width: 30px; height: 30px; border-width: 2px; font-size: .72rem; }
.delayed-map-hint { position: fixed; z-index: 2000; max-width: 230px; padding: .45rem .6rem; border: 1px solid var(--navy-100); border-radius: 7px; color: var(--navy-950); background: rgba(255,255,255,.98); text-align: center; box-shadow: 0 5px 16px rgba(16,35,56,.22); pointer-events: none; }
.manual-location-mode { cursor: crosshair; outline: 3px solid rgba(8,127,140,.35); outline-offset: -3px; }
#manual-location.active { border-color: #087f8c; color: white; background: #087f8c; }
.live-map-marker.poi-toilets span { font-size: .82rem; letter-spacing: -.08em; }
.live-map-marker.poi-toilets span { color: #0069c2; }
.live-map-marker.poi-doctors span { color: #d6002f; }
.live-map-marker.poi-defibrillators span { color: #c20c4d; font-size: 1rem; letter-spacing: -.15em; }
.live-map-marker.poi-gastronomy span { color: #e36b00; }
.live-map-marker.poi-shops span { color: #7b2cbf; }
.live-map-marker.poi-cinema span { color: #173f7a; }
.live-map-marker.poi-playground span { color: #008c45; }
.live-map-marker.poi-churches span { color: #7b2fa3; }
.live-map-marker.poi-groceries span { color: #d35400; }
.live-map-marker.poi-cash span { color: #005ea8; }
.live-map-marker.poi-geocaches span { color: #8a5b00; }
.live-map-marker.poi-waste span { color: #157a32; }
.live-map-marker.poi-postboxes span { color: #d0003b; }
.live-map-marker.poi-parking span { color: #315d9b; }
.live-map-marker.poi-bus span { color: #0077b6; }
.live-map-marker.poi-harbors span { color: #006d77; }
.live-map-marker.poi-rideshare span { color: #a44a00; }
.satellite-frame { display: block; width: 100%; min-height: 500px; border: 1px solid var(--navy-100); border-radius: 13px; background: #15283e; }
.satellite-fallback { margin: .35rem 0 0; color: var(--muted); font-size: .72rem; }
.map-actions { padding-top: .8rem; }
.filter-stack { display: grid; gap: .45rem; margin: .65rem 0; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .38rem; margin-top: .55rem; }
.filter-bar button { padding: .34rem .58rem; border: 1px solid var(--navy-100); border-radius: 999px; color: var(--navy-900); background: white; font-size: .74rem; font-weight: 800; }
.filter-bar button.active { border-color: var(--sea); color: white; background: var(--sea); }
#map-poi-controls { gap: .2rem; margin-top: .35rem; }
#map-poi-controls button { padding: .2rem .34rem; font-size: .59rem; line-height: 1.15; }
#map-poi-controls button.empty:not(.active), #map-poi-controls button:disabled { opacity: .48; }
#map-poi-controls button:disabled { cursor: not-allowed; filter: grayscale(1); }
.layer-count { display: inline-grid; min-width: 1.15em; height: 1.15em; padding: 0 .16em; place-items: center; border-radius: 999px; color: inherit; background: rgba(16,35,56,.1); font-size: .9em; line-height: 1; }
#map-poi-controls button.active .layer-count { background: rgba(255,255,255,.22); }
.map-layer-status { margin-top: .45rem; border-top: 1px solid var(--navy-100); padding-top: .35rem; color: var(--muted); font-size: .72rem; }
.map-layer-status summary { cursor: pointer; font-weight: 800; }
.map-layer-status table { width: 100%; margin-top: .35rem; border-collapse: collapse; font-size: .7rem; }
.map-layer-status th, .map-layer-status td { padding: .25rem .3rem; border-bottom: 1px solid var(--navy-100); text-align: left; vertical-align: top; }
.place-source-unavailable { position: relative; min-height: 3rem; opacity: .5; filter: grayscale(.75); }
.place-source-unavailable::before { display: block; margin-bottom: .45rem; padding: .5rem .65rem; border: 1px dashed #7d8790; border-radius: 9px; content: "Ortsdaten fehlen – bitte später erneut versuchen."; color: #3d4852; background: #f1f3f4; font-weight: 850; filter: none; }
.quick-action.source-unavailable { opacity: .58; filter: grayscale(1); }
.map-live-controls { display: contents; }
.ship-type-legend { display: flex; flex-wrap: wrap; gap: .3rem .6rem; padding: .4rem .2rem 0; color: var(--muted); font-size: .7rem; }
.ship-type-legend i { display: inline-block; width: .7rem; height: .7rem; margin-right: .2rem; border-radius: 50%; vertical-align: -.08rem; }
.fine-print { color: var(--muted); font-size: .82rem; }
.map-error-row { margin: 3px 0 0; text-align: right; }
.map-error-link { padding: 0; color: var(--muted); font-size: .72rem; font-weight: 600; }
.map-error-link:hover, .map-error-link:focus-visible { color: var(--red); }
.status-dot { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .58rem; border-radius: 999px; font-size: .76rem; font-weight: 780; white-space: nowrap; }
.status-dot.neutral { color: var(--muted); background: #edf1f3; }
.status-dot.secure { color: #17634f; background: #e5f5ef; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: .75rem; }
.metric { display: flex; flex-direction: column; justify-content: space-between; gap: .7rem; min-height: 108px; padding: .85rem; border: 1px solid var(--navy-100); border-radius: 12px; background: #f8fbfc; }
.metric span { color: var(--muted); font-size: .8rem; }
.metric strong { color: var(--navy-950); font-size: 1.35rem; }
.time-main, .relative-time { display: block; font-variant-numeric: tabular-nums; }
.relative-time { margin-top: .08rem; color: var(--muted); font-size: .68rem; font-weight: 650; line-height: 1.15; }
.skeleton { animation: pulse 1.6s infinite alternate; }
@keyframes pulse { from { opacity: .6; } to { opacity: 1; } }
.chart-wrap { overflow: hidden; margin-top: 1rem; border: 1px solid var(--navy-100); border-radius: 13px; background: #f9fcfc; }
canvas { display: block; width: 100%; height: auto; min-height: 220px; }
.chart-wrap .fine-print { padding: 0 .85rem; }
.chart-details, .notice-details, .next-day { margin-top: 1rem; border: 1px solid var(--navy-100); border-radius: 12px; background: #f9fcfc; }
.chart-details > summary, .notice-details > summary, .next-day > summary { padding: .72rem .85rem; color: var(--navy-950); font-weight: 800; cursor: pointer; }
.chart-details .chart-wrap { margin: 0; border: 0; border-top: 1px solid var(--navy-100); border-radius: 0 0 12px 12px; }
.chart-wrap { position: relative; }
.chart-hover { position: absolute; z-index: 4; width: max-content; max-width: 220px; padding: .38rem .5rem; border-radius: 6px; color: white; background: rgba(16,35,56,.94); font-size: .72rem; pointer-events: none; }
.notice-details { background: #fffaf0; }
.notice-details > p, .notice-details > a { margin-inline: .85rem; }
.notice-details > a { display: inline-block; margin-bottom: .8rem; }
.next-day { grid-column: 1 / -1; }
.next-day .event-list { padding: 0 .7rem .7rem; }
.lead-value { margin-bottom: .65rem; color: var(--navy-950); font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 800; }
.event-list { display: grid; gap: .55rem; margin-top: .9rem; }
.list-label { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.event-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .68rem .78rem; border-left: 4px solid var(--sea); border-radius: 8px; background: #f4f9fa; }
.event-time { color: var(--navy-950); font-size: 1.07rem; font-weight: 850; }
.event-time .relative-time, .event-detail .relative-time { font-size: .67rem; }
.event-detail { color: var(--muted); font-size: .83rem; }
.event-tag { padding: .24rem .5rem; border-radius: 999px; color: var(--navy-800); background: var(--navy-100); font-size: .74rem; font-weight: 800; }
.warning-note { padding: .72rem .85rem; border-left: 4px solid #d79535; border-radius: 8px; color: #684311; background: #fff6e4; font-size: .86rem; }
.connection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.connection-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 210px; padding: 1rem; border: 1px solid var(--navy-100); border-radius: 13px; background: #f8fbfc; }
.connection-card h3 { margin: .72rem 0 .35rem; color: var(--navy-950); }
.connection-card p { flex: 1; margin-top: 0; }
.connection-card .source-link { display: inline-flex; padding-top: .35rem; font-weight: 780; }
.muted-card { background: #f4f2ec; }

.weather-current { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: 13px; background: linear-gradient(120deg, #e7f4f5, #fff8e8); }
.weather-icon { font-size: 2.6rem; line-height: 1; }
.weather-temp { color: var(--navy-950); font-size: 2rem; font-weight: 850; }
.forecast-grid { display: grid; grid-template-columns: repeat(5, minmax(115px, 1fr)); gap: .65rem; margin-top: .85rem; }
.forecast-day { padding: .75rem; border: 1px solid var(--navy-100); border-radius: 11px; text-align: center; background: #fbfcfa; }
.forecast-day strong, .forecast-day span { display: block; }
.forecast-day .weather-icon { margin: .4rem 0; font-size: 2rem; }
.uv-day { margin-top: .35rem; color: #7f276f; font-size: .76rem; font-weight: 760; }
.certainty { display: flex !important; justify-content: center; align-items: center; gap: .35rem; margin-top: .45rem; color: var(--muted); font-size: .68rem; cursor: help; }
.traffic-light { display: inline-block; width: .72rem; height: .72rem; border: 2px solid rgba(16,35,56,.14); border-radius: 50%; }
.traffic-light.green { background: #36a269; }.traffic-light.amber { background: #e0a12e; }.traffic-light.red { background: #c85252; }
.connection-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-top: .5rem; }
.connection-links a { display: grid; gap: .2rem; padding: .7rem .8rem; border: 1px solid var(--navy-100); border-radius: 9px; color: var(--navy-950); background: #fff; text-decoration: none; }
.connection-links span { color: var(--muted); font-size: .78rem; }
.special-row { border-left-color: #d79535; }
.event-row.ferry-departure { border-left-color: #4f9b69; background: #edf8ef; }
.event-row.ferry-arrival { border-left-color: #4b83ad; background: #edf5fb; }
.ferry-departure .event-tag { color: #276b46; background: #d5eedb; }
.ferry-arrival .event-tag { color: #32678e; background: #d8eaf7; }
.capacity-warning { color: #b00020; }
.journey-details { margin-top: .45rem; }
.journey-details summary { color: var(--navy-800); font-size: .78rem; font-weight: 800; cursor: pointer; }
.journey-grid { display: flex; flex-wrap: wrap; gap: .45rem; margin: .45rem 0; }
.journey-grid > span { min-width: 150px; padding: .45rem .55rem; border-radius: 8px; background: rgba(255,255,255,.7); font-size: .78rem; }
.journey-grid strong { display: block; }
.transfer-chain { display: grid; gap: .35rem; margin-top: .55rem; padding: .55rem; border-radius: 9px; background: rgba(255,255,255,.76); font-size: .78rem; }
.transfer-chain > a, .transfer-chain .journey-grid a { font-weight: 800; }
.connection-status { margin-top: .45rem; padding: .48rem .55rem; border-left: 3px solid #397eb2; border-radius: 7px; background: #edf5fb; font-size: .75rem; }
.connection-status.delayed { border-left-color: #c77d00; background: #fff4d6; }
.connection-status.cancelled { border-left-color: #b00020; color: #860019; background: #fff0f2; }
.ferry-media { display: grid; justify-items: end; gap: .3rem; }
.ferry-thumb img { display: block; width: 84px; height: 54px; border-radius: 7px; object-fit: cover; }
.ferry-booking { font-size: .7rem; font-weight: 800; }
.event-row.bus-north { border-left-color: #3a9563; background: #edf8ef; }
.event-row.bus-south { border-left-color: #397eb2; background: #edf5fb; }
.travel-mode.unreachable { color: #8b4b4b; text-decoration: line-through; }
.seat-availability { color: #17634f; }
.idea-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.idea-grid article { display: grid; gap: .25rem; padding: .85rem; border: 1px solid var(--navy-100); border-radius: 11px; background: #f8fbfc; }
.idea-grid span { color: var(--muted); font-size: .82rem; }
.idea-grid article.idea-completed { border-color: #8bc7a6; background: #eef9f2; }
.venue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.venue-card { display: grid; gap: .18rem; padding: .8rem; border: 1px solid var(--navy-100); border-radius: 10px; color: var(--navy-950); background: #fff; text-decoration: none; }
.venue-card > span, .venue-card small { color: var(--muted); }
.venue-card .opening { margin-top: .25rem; font-weight: 800; }.venue-card .opening.open { color: #267146; }.venue-card .opening.closed { color: #8a4e4e; }
.webcam-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: .45rem; width: 100%; overflow: visible; }
.webcam-grid a { min-width: 0; overflow: hidden; border: 1px solid var(--navy-100); border-radius: 10px; color: var(--navy-950); background: #fff; text-decoration: none; }
.webcam-grid img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.webcam-grid span { display: block; padding: .5rem; font-size: .78rem; font-weight: 800; }
.member-teaser { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-style: dashed; background: linear-gradient(135deg, #fffdf8, #eef7f5); }
.member-only { display: grid; gap: 1rem; }

.card.has-card-controls { display: block; }
.card-toolbar { display: flex; min-width: 0; max-width: 100%; justify-content: flex-end; align-items: center; gap: .38rem; min-height: 34px; margin: -.2rem 0 .45rem; }
.card-toolbar-title { display: none; min-width: 0; flex: 1; overflow: hidden; color: var(--navy-950); font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
.toolbar-location-badge { margin-right: auto; white-space: nowrap; }
.map-card .section-heading { display: none; }
.card-control { display: inline-grid; width: 32px; height: 32px; padding: 0; place-items: center; border: 1px solid var(--navy-100); border-radius: 9px; color: var(--navy-950); background: #f7fbfb; font-size: 1.15rem; font-weight: 850; line-height: 1; cursor: pointer; }
.card-control:hover { border-color: var(--sea); background: #eaf5f4; }
.card-control:disabled { opacity: .5; cursor: wait; }
.card-body { min-width: 0; }
.hero > .card-body, .member-teaser > .card-body { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.card.is-collapsed { min-height: 0; padding-block: .72rem; overflow: hidden; }
.hero.is-collapsed { display: block; min-height: 0; }
.card.is-collapsed > .card-toolbar { margin: 0; }
.card.is-collapsed > .card-toolbar .card-toolbar-title { display: block; }
.card.is-collapsed > .card-body { display: none; }
.card.is-maximized { position: fixed; inset: .35rem; z-index: 1000; display: flex; width: auto; height: auto; max-width: none; margin: 0; flex-direction: column; overflow: hidden; background: var(--card); }
.card.is-maximized > .card-toolbar { position: sticky; top: -.2rem; z-index: 1002; padding: .35rem; border-radius: 10px; background: rgba(255,253,248,.96); box-shadow: 0 4px 12px rgba(16,35,56,.12); }
.card.is-maximized .card-maximize { width: auto; min-width: 92px; padding-inline: .65rem; }
.card.is-maximized > .card-body { flex: 1 1 auto; min-height: 0; overflow: auto; }
.card.is-maximized.map-card > .card-body, .card.is-maximized.satellite-card > .card-body { display: flex; flex-direction: column; overflow: hidden; }
.card.is-maximized.map-card > .card-body > :not(.map-frame-wrap), .card.is-maximized.satellite-card > .card-body > :not(.satellite-frame) { display: none; }
.card.is-maximized.map-card .map-frame-wrap { flex: 1 1 auto; min-height: 260px; }
.card.is-maximized.map-card .map-frame { height: 100%; min-height: 260px; }
.card.is-maximized.satellite-card .satellite-frame { flex: 1 1 auto; height: auto; min-height: 260px; }
body.has-maximized-card { overflow: hidden; }
.remember-login, .location-consent { margin: .7rem 0; }
.view-controls { display: flex; gap: .25rem; }
.mini-button { min-width: 32px; min-height: 32px; padding: .25rem .42rem; border: 1px solid var(--navy-100); border-radius: 8px; color: var(--navy-950); background: white; font-weight: 800; }
.compact-view .page-shell, .compact-view .content-column, .compact-view .map-column { gap: .55rem; }
.compact-view .card { padding: .72rem; border-radius: 11px; }
.compact-view .event-list { gap: .3rem; margin-top: .45rem; }
.compact-view .event-row { padding: .4rem .55rem; }
.accessible-badge { color: #155f48; }
.mini-links { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .75rem; }
.foehr-map { width: 100%; height: 430px; border: 1px solid var(--navy-100); border-radius: 12px; }
.infrastructure-group { display: grid; align-content: start; gap: .55rem; }
.infrastructure-group h3 { margin: 0 0 .2rem; color: var(--navy-950); }
.map-link-preview { position: fixed; z-index: 1200; width: 280px; overflow: hidden; border: 2px solid var(--navy-800); border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgba(16,35,56,.28); pointer-events: none; }
.map-link-preview-map { width: 100%; height: 174px; background: #dcebee; }
.map-link-preview p { margin: 0; padding: .55rem .65rem; color: var(--navy-950); background: #fff; font-size: .72rem; font-weight: 700; }
.text-button { padding: 0; border: 0; color: var(--navy-800); background: transparent; font: inherit; text-decoration: underline; text-underline-offset: .2em; }
.source-table { overflow-x: auto; }
.source-table table { width: 100%; border-collapse: collapse; }
.source-table th, .source-table td { padding: .48rem .55rem; border-bottom: 1px solid var(--navy-100); text-align: left; }
.source-failed { color: #a4001d; background: #fff0f2; animation: source-blink 1s steps(2, start) infinite; }
@keyframes source-blink { 50% { opacity: .42; } }
.panel-hidden { display: none !important; }
.box-manager { border: 3px solid var(--navy-950); background: #f7fbfc; }
.box-manager-list { display: grid; gap: .35rem; }
.box-manager-row { display: flex; justify-content: space-between; gap: .7rem; align-items: center; padding: .42rem .55rem; border-bottom: 1px solid var(--navy-100); }
.box-manager-row button { min-width: 32px; min-height: 30px; margin-left: .25rem; border: 1px solid var(--navy-100); border-radius: 7px; background: #fff; font-weight: 900; }
.box-manager-row[draggable="true"] { cursor: grab; }
.box-manager-row[draggable="true"]:active { cursor: grabbing; }
.box-manager-row.is-dragging { opacity: .42; }
.box-manager-row.drag-target { background: #e7f5f2; box-shadow: inset 0 2px #087f8c; }
.box-move-buttons { display: inline-flex; flex-wrap: nowrap; }
.notice-card { margin: .7rem 0; padding: .75rem .85rem; border-left: 4px solid #087f8c; border-radius: 8px; background: #edf8f6; color: var(--navy); }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.video-grid article { display: grid; gap: .4rem; }.video-grid iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; }
.link-cloud { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.link-cloud a { padding: .4rem .6rem; border: 1px solid var(--navy-100); border-radius: 999px; background: #fff; font-size: .78rem; font-weight: 800; }
.council-table td { vertical-align: top; }

.field { display: grid; gap: .38rem; margin-bottom: .9rem; }
.field > span { color: var(--navy-950); font-weight: 780; }
.field input, .field textarea { width: 100%; padding: .72rem .78rem; border: 1px solid #bdcdd8; border-radius: 10px; color: var(--ink); background: white; }
.field textarea { resize: vertical; }
.consent { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .65rem; align-items: start; margin: 1rem 0; padding: .85rem; border: 1px solid #d7c9aa; border-radius: 10px; background: #fffaf0; }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; }
.form-status { min-height: 1.3em; color: var(--muted); font-weight: 700; }
.form-status.error { color: var(--red); }
.form-status.success { color: var(--green); }
.image-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
.image-preview figure { margin: 0; }
.image-preview img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.image-preview figcaption { overflow: hidden; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }

.login-dialog { width: min(560px, calc(100% - 2rem)); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 26px 80px rgba(16,35,56,.3); }
.login-dialog::backdrop { background: rgba(16, 35, 56, .62); backdrop-filter: blur(5px); }
.login-dialog form { position: relative; padding: clamp(1.4rem, 5vw, 2.4rem); background: var(--card); }
.dialog-close { position: absolute; top: .7rem; right: .8rem; width: 40px; height: 40px; border: 0; border-radius: 50%; color: var(--navy-950); background: var(--paper); font-size: 1.7rem; }
.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; max-width: 420px; padding: .8rem 1rem; border-radius: 10px; color: white; background: var(--navy-950); box-shadow: var(--shadow); opacity: 0; transform: translateY(1rem); pointer-events: none; transition: .22s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
.site-footer { padding: 2rem max(1rem, calc((100% - 1500px) / 2)); color: #dce7ef; background: var(--navy-950); }
.site-footer a { color: white; }
.footer-details { max-width: 900px; font-size: .84rem; }
.legal-shell { width: min(100% - 2rem, 980px); margin: 1rem auto 3rem; }
.legal-shell .card { margin-bottom: 1rem; }
.legal-shell h1 { margin-top: 0; }
.legal-shell h2 { margin-top: 1.5rem; }
.legal-nav { display: flex; flex-wrap: wrap; gap: .55rem; }

@media (max-width: 1180px) {
  .quick-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-shell { grid-template-columns: 1fr; }
  .column-resizer { display: none; }
  .map-column { position: static; top: auto; }
  .map-frame { height: 390px; }
  .satellite-frame { min-height: 420px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .forecast-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .site-header-inner { align-items: flex-start; }
  .brand-copy .eyebrow, .status-chip { display: none; }
  .live-clock { min-width: 118px; padding-inline: .35rem; }
  .live-clock strong { font-size: .66rem; }
  .brand img { width: 48px; height: 48px; }
  .account-actions { justify-content: flex-end; }
  .page-shell { width: min(100% - 1rem, 1500px); margin-top: .6rem; }
  .hero > .card-body, .member-teaser > .card-body, .section-heading { align-items: stretch; flex-direction: column; }
  .section-heading > a { text-align: left; }
  .metric-grid, .forecast-grid, .connection-grid, .connection-links, .idea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .webcam-grid { width: 100%; }
  .event-row { grid-template-columns: 68px minmax(0, 1fr); }
  .event-tag { grid-column: 2; justify-self: start; }
  .top-alerts { top: 73px; width: min(100% - 1rem, 1500px); }
  .general-disclaimer summary { animation-duration: 2s; }
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-frame { height: 330px; }
  .satellite-frame { min-height: 360px; }
}
@media (max-width: 460px) {
  .connection-grid, .connection-links, .idea-grid, .venue-grid, .video-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
