
:root {
  --accent: #0b7285;
  --text-main: #111827;
  --text-muted: #6b7280;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "futura-100", sans-serif; font-weight: 400; font-style: normal;
  background: #000;
  color: var(--text-main);
}

#app,
#map {
  width: 100%;
  height: 100%;
}

.hidden {
  display: none !important;
}

/* Floating title */
.app-header {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  background: rgba(15, 23, 42, 0.75);
  color: #f9fafb;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  white-space: nowrap;

  font-family: "futura-100", sans-serif;
  font-weight: 700;
  font-style: normal;
}

/* Linke, vertikale Tages-Leiste */
.route-overview {
  position: fixed;
  top: 4.7rem;
  left: 0.8rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.6rem 0.5rem;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  max-height: 75vh;
  overflow-y: auto;
}

.route-overview::-webkit-scrollbar {
  width: 4px;
}

.route-overview::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.8);
  border-radius: 999px;
}

.route-btn {
  min-width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.9);
  background: rgba(249, 250, 251, 0.95);
  color: #111827;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.route-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.4);
}

/* heutiger Tag Button */
.route-btn-today {
  color: #ffffff;
}

/* Puls-Effekt für heutigen Button */
@keyframes btnPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.8);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(56, 189, 248, 0);
  }
}

.route-btn-today {
  animation: btnPulse 1.8s ease-out infinite;
  transform: scale(1.3);
  margin: 0.2rem 0;
  z-index: 5;
}

/* Passwort-Overlay */

#password-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: radial-gradient(circle at top left, #f97373, transparent 55%),
    radial-gradient(circle at bottom right, #4ade80, transparent 55%),
    #fef9c3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.password-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1.5rem;
  padding: 1.3rem 1.3rem 1.2rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(14px);
  text-align: center;
}

.password-card strong {
  font-size: 1.2rem;
}

.password-card p {
  margin: 0.6rem 0 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.password-input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  font-size: 0.95rem;
  outline: none;
}

.password-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(11, 114, 133, 0.5);
}

.password-button {
  width: 100%;
  margin-top: 0.7rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0ea5e9, #0b7285);
  color: #f9fafb;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.35);
}

.password-button:active {
  transform: translateY(1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.4);
}

.password-error {
  min-height: 1.1rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #b91c1c;
}

/* Route-Label auf der Karte */

.route-label {
  pointer-events: none;
}

.route-label-inner {
  min-width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid #0b7285;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.25);
}

/* Heutiges Label pulsierend */
@keyframes labelPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.9);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(56, 189, 248, 0);
  }
}

.route-label-today .route-label-inner {
  animation: labelPulse 1.9s ease-out infinite;
}

/* Puls-Effekt für heutige Route (Linie) */
@keyframes routePulse {
  0%, 100% {
    stroke-opacity: 1;
  }
  50% {
    stroke-opacity: 0.4;
  }
}

.leaflet-overlay-pane .route-today {
  animation: routePulse 1.6s ease-in-out infinite;
}

/* Info-Tafel unten rechts */
.tour-info {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 3200;
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  min-width: 13rem;
  max-width: 17rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.7);
  font-size: 0.85rem;
}

.tour-info-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.tour-info-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.08rem 0;
}

.tour-info-row span:last-child {
  font-variant-numeric: tabular-nums;
}

.tour-info-profile {
  margin-top: 0.45rem;
}

.tour-info-profile svg {
  width: 100%;
  height: 32px;
  display: block;
}

.tour-info-profile polyline {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.9;
}

/* auf grossen Screens etwas groesser */
@media (min-width: 1024px) {
  .app-header {
    font-size: 1rem;
    padding: 0.6rem 1.4rem;
  }

  .route-overview {
    top: 4.4rem;
  }

  .route-btn {
    min-width: 2.2rem;
    height: 2.2rem;
    font-size: 0.85rem;
  }

  .password-card {
    max-width: 460px;
    padding: 1.5rem 1.6rem 1.4rem;
  }

  .tour-info {
    font-size: 0.9rem;
    padding: 0.9rem 1.1rem;
  }
}
