/* ============================================
   GLOBAL: AD‑Schriftbild
============================================ */
body, button, input, textarea, select, #info-content {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #222;
    margin: 0;
    padding: 0;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}


/* ============================================
   MENÜ OBEN
============================================ */
#top-menu {
    display: flex;
    gap: 10px;
    padding: 8px 12px;
    background: #f4f4f4;
    border-bottom: 1px solid #ccc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    z-index: 5000;
}

#top-menu button {
    background: #fff;
    border: 1px solid #aaa;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
}

#top-menu button:hover {
    background: #e8e8e8;
}

/* ============================================
   KARTE (immer sichtbar!)
============================================ */
#map {
    position: absolute;
    top: 50px;    /* Platz für top-menu */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}


/* ============================================
   OVERLAY
============================================ */
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: none;
    z-index: 5500;
}
#overlay.visible {
    display: block;
}

/* ============================================
   INFOPANEL LINKS (40% Breite)
============================================ */
#info-panel {
    position: fixed;
    top: 0;
    left: -40vw;              /* Startposition */
    width: 40vw;              /* Panelbreite */
    height: 100%;
    background: #fff;
    border-right: 1px solid #bbb;
    box-shadow: 3px 0 6px rgba(0,0,0,0.15);
    transition: left 0.25s ease;
    z-index: 6000;
    display: flex;
    flex-direction: column;
}

#info-panel.open {
    left: 0;
}

/* ============================================
   PANEL-KOPF (AD-Stil)
============================================ */
#info-header-fixed {
    padding: 10px 12px;
    background: #f2f2f2;
    border-bottom: 1px solid #ccc;
}

#info-title {
    font-size: 18px;
    font-weight: normal;
    margin: 0;
    padding: 0;
}

#close-panel {
    float: right;
    background: #e0e0e0;
    border: 1px solid #aaa;
    padding: 2px 6px;
    cursor: pointer;
    border-radius: 3px;
}
#close-panel:hover {
    background: #d5d5d5;
}

/* ============================================
   TABS (nur bei Marker-Infos)
============================================ */
/* ===========================================
   AD‑Tabs
=========================================== */
#tab-bar {
    display: flex;
    border-bottom: 1px solid #999;
    background: #f2f2f2;
    padding: 0;
    margin: 0;
}

#tab-bar .tab {
    padding: 6px 12px;
    cursor: pointer;
    border-right: 1px solid #ccc;
    font-size: 14px;
    background: #e6e6e6;
    user-select: none;
}

#tab-bar .tab:last-child {
    border-right: none;
}

#tab-bar .tab.active {
    background: white;
    font-weight: bold;
    border-bottom: 2px solid white;
}


/* ============================================
   SCROLLBEREICH
============================================ */
#info-scroll {
    overflow-y: auto;
    padding: 12px;
    flex: 1;
}

/* ============================================
   AD‑Stil für Inhalte
============================================ */
#info-content p,
#info-content li {
    font-size: 14px;
    line-height: 1.45;
    color: #222;
}

#info-content h1,
#info-content h2,
#info-content h3 {
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: normal;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
}

#info-content ul {
    padding-left: 20px;
}

#info-content a {
    color: #0645ad;
    text-decoration: none;
}

#info-content a:hover {
    text-decoration: underline;
}

/* ============================================
   MARKER-LABELS (ruhiger AD-Stil)
============================================ */
/* Menü unten */
#bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f4f4f4;
    border-top: 1px solid #ccc;
    padding: 6px 10px;
    display: flex;
    gap: 10px;
    z-index: 5000;
}

#bottom-menu button {
    background: #fff;
    border: 1px solid #aaa;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
}

#bottom-menu button:hover {
    background: #e8e8e8;
}

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9000;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border: 3px solid #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
/* ===========================================
   Lightbox Fade
=========================================== */
#lightbox {
    opacity: 0;
    transition: opacity 0.25s ease;
}

#lightbox.visible {
    opacity: 1;
}


/* ===========================================
   Marker-Label (Rahmen, Hintergrund, Stil)
=========================================== */
.ort-label {
    position: relative;
    background: white;
    border: 1px solid black;
    padding: 2px 4px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    border-radius: 3px;
}

.ort-label::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid black;
}



