* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: #f3f4f6;
    color: #111827;
}

header {
    background: linear-gradient(to bottom, #fff9b0, #f2c94c);
    color: black;
    padding: 1px;
    text-align: center;
    height:80px;
}

main {
    max-width: 900px;
    margin: auto;
    padding: 1rem;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

.werbung {
    background-color: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
    cursor: pointer;
    display: flex;
    align-items: center; /* vertikal zentriert */
    justify-content: center; /* horizontal zentriert */
    gap: 8px;
}

/* Karte */
#map {
    height: 200px;
    width: 100%;
    border-radius: 10px;
}

/* Controls */
.controls {
    margin-top: 1rem;
    display: grid;
    gap: .75rem;
}

button {
    padding: .6rem;
    border-radius: 8px;
    border: none;
    background: linear-gradient(to bottom, #fff9b0, #f2c94c);
    color: black;
    font-size: 1rem;
    cursor: pointer;
}

    button:hover {
        background: #f2c94c;
    }

.coords {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
}

select {
    padding: .4rem;
    border-radius: 6px;
    background: linear-gradient(to bottom, #fff9b0, #f2c94c);
}

/* Ergebnisse */
details {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    /*padding: .5rem; */
    margin-bottom: .5rem;
}

summary {
    cursor: pointer;
    font-weight: 600;
    background: linear-gradient(to bottom, #fff9b0, #f2c94c);
    padding: .5rem;
}

.result-meta {
    margin: 0 .5rem .5rem .5rem;
    font-size: 16px;
}

    .result-meta a {
        color: #2563eb;
        text-decoration: none;
    }

        .result-meta a:hover {
            text-decoration: underline;
        }

@media (max-width: 600px) {
    .coords {
        flex-direction: column;
        gap: .25rem;
    }
}

.services {
    list-style: none;
    padding-left: 0;
    margin: .5rem 0 0;
    font-size: .9rem;
}

    .services li {
        padding: .15rem 0;
    }

.info {
    cursor: pointer;
    padding: 0 9px 2px 9px;
    background: linear-gradient(to bottom, #fff9b0, #f2c94c);
    border-radius: 5px;
    font-family: Cambria, Cochin, Georgia, Times, Times New Roman, serif;
    font-weight: 900;
}

.bearbeiten {
    cursor: pointer;
    padding: 0 9px 2px 9px;
    background: linear-gradient(to bottom, #fff9b0, #f2c94c);
    border-radius: 5px;
    float:right;
}

#menue {
    position: fixed;
    top: 15px;
    right: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 5px 10px 5px 10px;
    z-index: 900;
    transition: all 0.3s ease;
}

/* Hamburger */
#hamburger {
    font-size: 26px;
    cursor: pointer;
    text-align: right;
    user-select: none;
}

/* Menü zunächst verstecken */
#menueunterpunkte {
    margin-top: 15px;
    display: none;
    animation: fadeIn 0.25s ease;
}

    /* Links */
    #menueunterpunkte a {
        display: block;
        padding: 8px 0;
        text-decoration: none;
        color: #333;
        font-weight: 500;
        transition: color 0.2s;
    }

        #menueunterpunkte a:hover {
            color: #0077cc;
        }

    #menueunterpunkte hr {
        border: none;
        border-top: 1px solid #eee;
        margin: 10px 0;
    }

/* Geöffnet */
#menue.open #menueunterpunkte {
    display: block;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

details.no-match > summary {
    background: linear-gradient(to bottom, #f5f5f5, #e3e3e3);
    color: #666;
    border-radius: 6px;
    padding: 6px 10px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"] {
    font-size: 16px;
    border: 1px solid gray;
    background-color: #f0f0f0; /* hellgrau */
    padding:5px;
    border-radius:5px;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .overlay.hidden {
        display: none;
    }

.overlay-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    width: 300px;
    text-align: center;
}

    .overlay-box input {
        width: 100%;
        padding: 0.5rem;
        margin: 1rem 0;
    }

.overlay-buttons {
    display: flex;
    justify-content: space-between;
}

.error-msg {
    color: red;
    margin-top: 0.5rem;
}

#status {
    font-size: x-small;
    margin-bottom: -5px;
}

.nowrap {
    white-space: nowrap;
}
