/* Fester Header oben */
@import url('/css/navbar.css');

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    width: 100%;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background: #ecf0f1;
    color: #2c3e50;
}

main {
    flex: 1;
    overflow-y: auto;
}

#map {
    height: 100%;
    z-index: 500;
}

.text {
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

.card-category {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 20px;   /* Abstand zwischen den Karten */
}

.card-category summary {
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0.5rem 0;
}

.card-category[open] summary {
    color: #0077cc;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Abstand zwischen Karten */
    padding: 10px;
    margin: 0 20px;
}

.card-item {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    color: #2c3e50;
}

.card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card-thumb {
    width: 100px;
    height: auto;
    margin-right: 15px;
    border-radius: 4px;
}

.card-desc h2 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
}

.card-desc p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.4;
}

#search-container {
    position: absolute;
    top: 80px;          /* unter deiner Navbar */
    left: 20px;
    width: 300px;
    z-index: 1000;
}

#searchInput {
    width: 100%;
    padding: 6px;
    font-size: 16px;
}

.clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: white;
    cursor: pointer;
    font-size: 16px;
    display: none; /* erst sichtbar wenn Text drin */
}

#suggestions {
    position: absolute;
    width: 100%;
    background: white;
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}