@charset "UTF-8";

:root {
  --green: #15803d;
  --orange: #ea580c;
  --red: #dc2626;
  --blue: #1d4ed8;
  --bridge: #4338ca;
}

body {
  margin:0;
  font-family:Arial, sans-serif;
}

#map {
  height:100vh;
  width:100%;
}

/* ---------------- UI ---------------- */

#ui {
  position:absolute;
  z-index:999;
  background:rgba(255,255,255,0.96);
  border-radius:14px;
  box-shadow:0 6px 18px rgba(0,0,0,0.2);
  overflow:hidden;
}

#uiHeader {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px;
}

#uiTitle {
  font-size:18px;
  font-weight:bold;
}

#toggleBtn {
  border:none;
  background:#eee;
  border-radius:10px;
  padding:8px 12px;
  font-size:18px;
  cursor:pointer;
}

#uiBody {
  padding:0 14px 14px 14px;
}

#ui.collapsed #uiBody {
  display:none;
}

.ui-inputs {
  display:flex;
  gap:10px;
}

.ui-field {
  flex:1;
}

#ui input {
  width:100%;
  font-size:16px;
  padding:10px;
  border-radius:10px;
  border:1px solid #ccc;
  box-sizing:border-box;
}

#status {
  margin-top:10px;
  font-size:14px;
  line-height:1.4;
}

/* ---------------- Farben ---------------- */

.ok {
  color:var(--green);
  font-weight:bold;
}

.warn {
  color:var(--orange);
  font-weight:bold;
}

.bad {
  color:var(--red);
  font-weight:bold;
}

.small {
  font-size:12px;
  opacity:0.85;
}

/* ---------------- Leaflet Popup ---------------- */

.leaflet-popup-content {
  font-size:16px;
  line-height:1.45;
}

/* ---------------- Marker ---------------- */

.marker {
  color:white;
  padding:6px 8px;
  border-radius:8px;
  font-size:13px;
  font-weight:bold;
  text-align:center;
  min-width:40px;
  box-sizing:border-box;
  white-space:nowrap;
}

.marker.bridge {
  min-width:52px;
}

/* ---------------- Willkommens-Popup ---------------- */

.welcome-overlay {
  display:none;
  position:fixed;
  z-index:5000;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.55);
}

.welcome-box {
  background:white;
  max-width:520px;
  margin:10vh auto;
  padding:22px;
  border-radius:14px;
  box-shadow:0 6px 20px rgba(0,0,0,0.3);
  font-family:Arial, sans-serif;
  font-size:16px;
  line-height:1.45;
  box-sizing:border-box;
}

.welcome-box h2 {
  margin-top:0;
}

.welcome-check {
  display:block;
  margin:18px 0;
  font-size:15px;
  line-height:1.4;
}

.welcome-check input {
  margin-right:8px;
}

#closeWelcome {
  padding:10px 16px;
  border:none;
  border-radius:10px;
  background:#15803d;
  color:white;
  font-size:16px;
  cursor:pointer;
}

/* ---------------- Mobile ---------------- */

@media (max-width:768px) {
  #ui {
    left:10px;
    right:10px;
    bottom:10px;
  }

  #ui input {
    font-size:18px;
    padding:12px;
  }

  .leaflet-popup-content {
    font-size:18px;
  }

  .welcome-overlay {
    padding:14px;
    overflow-y:auto;
    box-sizing:border-box;
  }

  .welcome-box {
    max-width:none;
    width:100%;
    margin:6vh auto;
    font-size:17px;
    line-height:1.5;
  }

  .welcome-check {
    font-size:16px;
    line-height:1.5;
  }

  .welcome-check input {
    transform:scale(1.25);
    margin-right:10px;
  }

  #closeWelcome {
    width:100%;
    padding:14px 16px;
    font-size:17px;
  }
}
