/* Inseratseite – modernes, responsives Layout */

.ins-body {
    margin: 0;
    background: #f2f4f7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #24292f;
    font-size: 16px;
    line-height: 1.55;
}

.ins-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 16px;
}

/* ---------- Kopf ---------- */
.ins-header {
    padding: 24px 8px 16px;
}

.ins-titel {
    margin: 0 0 4px;
    font-size: 2em;
    font-weight: 700;
    line-height: 1.2;
}

.ins-ort {
    color: #57606a;
    font-size: 1.05em;
    margin-bottom: 12px;
}

.ins-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ins-badge {
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.9em;
    white-space: nowrap;
}

/* ---------- Galerie ---------- */
.ins-galerie {
    margin-bottom: 16px;
}

.ins-galerie-haupt img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    display: block;
}

.ins-galerie-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.ins-galerie-thumbs img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    transition: opacity 0.15s;
}

.ins-galerie-thumbs img:hover {
    opacity: 0.8;
}

/* ---------- Karten (Sektionen) ---------- */
.ins-card {
    background: #ffffff;
    border: 1px solid #d8dee4;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.ins-card h2 {
    margin: 0 0 12px;
    font-size: 1.35em;
    border-bottom: 2px solid #2c6fad;
    display: inline-block;
    padding-bottom: 2px;
}

.ins-card h3 {
    font-size: 1.05em;
    margin: 18px 0 8px;
}

.ins-kurzbeschreibung {
    font-weight: 600;
    margin-top: 0;
}

/* ---------- Ausstattung / Entfernungen / Links ---------- */
.ins-ausstattung,
.ins-entfernungen,
.ins-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ins-ausstattung {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 4px 16px;
}

.ins-entfernungen li,
.ins-links li {
    padding: 2px 0;
}

.ins-links a {
    color: #2c6fad;
}

/* ---------- Preise ---------- */
.ins-preistabelle {
    border-collapse: collapse;
    width: 100%;
    max-width: 480px;
    margin-bottom: 8px;
}

.ins-preistabelle th,
.ins-preistabelle td {
    text-align: left;
    padding: 7px 12px;
    border-bottom: 1px solid #e4e8ec;
}

.ins-preistabelle th {
    background: #f6f8fa;
    font-weight: 600;
}

.ins-preisnotizen {
    margin: 12px 0 0;
    padding-left: 18px;
    color: #57606a;
    font-size: 0.92em;
}

.ins-preisspanne {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
}

/* ---------- Karte ---------- */
#inseratMap {
    height: 380px;
    border-radius: 8px;
}

/* ---------- Kalender + Formular Einbettung ---------- */
.ins-kalender-wrap,
.ins-formular-wrap {
    overflow-x: auto;
}

/* ---------- Footer ---------- */
.ins-footer {
    text-align: center;
    padding: 12px 0 24px;
    font-size: 0.88em;
}

.ins-footer a {
    color: #57606a;
}

/* ---------- Lightbox ---------- */
.ins-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ins-lightbox[hidden] {
    display: none;
}

.ins-lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
}

.ins-lb-close,
.ins-lb-prev,
.ins-lb-next {
    position: absolute;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.2em;
    cursor: pointer;
    padding: 12px 18px;
    line-height: 1;
}

.ins-lb-close { top: 8px; right: 12px; }
.ins-lb-prev  { left: 4px; top: 50%; transform: translateY(-50%); }
.ins-lb-next  { right: 4px; top: 50%; transform: translateY(-50%); }

.ins-lb-close:hover,
.ins-lb-prev:hover,
.ins-lb-next:hover {
    color: #c9d1d9;
}

/* ---------- Mobil ---------- */
@media (max-width: 620px) {
    .ins-container { padding: 8px; }
    .ins-titel { font-size: 1.5em; }
    .ins-card { padding: 14px 16px; }
    .ins-galerie-haupt img { max-height: 300px; }
    #inseratMap { height: 280px; }
}
