/* Kartenseite: Karte füllt alles unter der Navigation */
html, body { height: 100%; margin: 0; overflow: hidden; }
body { height: 100dvh; }
body { display: flex; flex-direction: column; }
#map { flex: 1; min-height: 0; }

/* Willkommensfenster */
#willkommen {
  max-width: min(480px, calc(100vw - 32px));
  border: none;
  padding: 0;
  font-family: var(--schrift);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
#willkommen::backdrop { background: rgba(0, 0, 0, 0.4); }
#willkommen h3 {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--dunkel);
  color: var(--orange);
  text-transform: uppercase;
  font-weight: 600;
}
#willkommen p { padding: 0 1.25rem; margin: 1rem 0; }
#willkommen form { text-align: center; padding: 0 1.25rem 1.25rem; }
.knopf-rot {
  background-color: var(--rot);
  color: var(--creme);
  font-family: var(--schrift);
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  padding: 0.5em 1.2em;
  cursor: pointer;
}
.knopf-rot:hover { color: var(--dunkel); }

/* Markierungen Rom, Ostia, Tivoli (nur bei kleinem Maßstab sichtbar) */
.ort { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ort-punkt {
  width: 60px;
  height: 60px;
  border: 1px solid var(--creme);
  border-radius: 50%;
  background-color: rgb(255, 122, 0);
  opacity: 0.8;
}
.ort-gross .ort-punkt { width: 100px; height: 100px; border-width: 2px; }
.ort-name {
  color: var(--dunkel);
  font-family: "Lithos Pro Regular", var(--schrift);
  font-size: 24pt;
  font-weight: 700;
  text-shadow: 1px 1px 3px #fff;
  white-space: nowrap;
}
.ort-gross .ort-name { font-size: 32pt; font-weight: 800; }
.ort:hover .ort-punkt { background-color: rgb(36, 139, 163); border: 2px solid #000; }
.ort:hover .ort-name { color: #fff; text-shadow: 1px 1px 4px #000; }
@media (max-width: 600px) {
  .ort-punkt { width: 36px; height: 36px; }
  .ort-gross .ort-punkt { width: 60px; height: 60px; }
  .ort-name { font-size: 16pt; }
  .ort-gross .ort-name { font-size: 22pt; }
}

/* Info-Fenster einer Sehenswürdigkeit */
.maplibregl-popup-content { padding: 0; border-radius: 0; background: var(--creme); overflow: hidden; }
.maplibregl-popup-tip { border-top-color: var(--creme) !important; border-bottom-color: var(--creme) !important; }
.maplibregl-popup-close-button { color: var(--creme); font-size: 22px; padding: 0 8px; }
.info-kopf {
  background: var(--dunkel);
  color: var(--creme);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 15pt;
  padding: 0.6rem 2.2rem 0.6rem 1rem;
}
.info-text {
  font-size: 9.5pt;
  text-align: justify;
  padding: 0.75rem 1rem 0;
  max-height: 40vh;
  overflow-y: auto;
  color: #000;
}
.info-bild { text-align: center; padding: 0.6rem 1rem 0; }
.info-bild img { max-width: min(262px, 100%); max-height: 144px; }
.info-bild img[hidden] { display: none; }
.info-fuss { padding: 0.75rem 1rem; text-align: right; }
.info-fuss a { text-decoration: none; display: inline-block; }

/* Bedienelemente im dunklen Ton der alten Karte */
.maplibregl-ctrl-group { background: var(--dunkel); }
.maplibregl-ctrl-group button + button { border-top-color: #555; }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1); }
.maplibregl-ctrl-group button:not(:disabled):hover { background-color: var(--orange); }
.maplibregl-ctrl-scale { background: rgba(45, 41, 38, 0.65); color: #fff; border-color: #fff; }

/* Info-Leiste am unteren Rand (nur Handy, siehe karte.js) */
#info-leiste {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  background: var(--creme);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
  max-height: 55dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}
#info-leiste[hidden] { display: none; }
#info-leiste .info-kopf { font-size: 14pt; }
#info-leiste .info-text { max-height: none; flex: 1; font-size: 15px; line-height: 1.5; text-align: left; }
#info-leiste .info-bild img { max-height: 90px; }
.info-zu {
  position: absolute; top: 2px; right: 6px;
  background: none; border: none;
  color: var(--creme); font-size: 28px; line-height: 1;
  padding: 6px 10px; cursor: pointer;
}

@media (max-width: 600px) {
  .maplibregl-ctrl-scale { display: none; }
  #willkommen p { font-size: 15px; }
}
