/* JUSTIMMO Objekte – Riedler Immo */
.jir { --jir-accent: #1f2a37; --jir-muted: #6b7280; --jir-line: #e5e7eb; --jir-bg: #f8f9fa; --jir-radius: 10px; box-sizing: border-box; }
.jir *, .jir *::before, .jir *::after { box-sizing: inherit; }
.jir a { text-decoration: none; }
.jir h3 { margin: 0 0 .6em; }

.jir-notice, .jir-empty { padding: 1rem 1.25rem; background: var(--jir-bg, #f8f9fa); border: 1px solid #e5e7eb; border-radius: 10px; }
.jir-count { color: var(--jir-muted); margin: 0 0 1rem; font-size: .95em; }

/* Liste */
.jir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin: 0; }
.jir-card { display: flex; flex-direction: column; border: 1px solid var(--jir-line); border-radius: var(--jir-radius); overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.jir-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.jir-card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #eef0f2; overflow: hidden; }
.jir-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.jir-card:hover .jir-card-media img { transform: scale(1.03); }
.jir-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--jir-muted); }
.jir-badge { position: absolute; top: .75rem; left: .75rem; background: var(--jir-accent); color: #fff; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; }
.jir-badge-inline { position: static; display: inline-block; margin-right: .5rem; vertical-align: middle; }
.jir-card-body { padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.jir-card-meta { margin: 0; color: var(--jir-muted); font-size: .85em; }
.jir-card-title { margin: 0; font-size: 1.1em; line-height: 1.35; }
.jir-card-title a { color: inherit; }
.jir-facts { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9em; }
.jir-facts li span { display: block; color: var(--jir-muted); font-size: .8em; }
.jir-price { margin: .25rem 0 0; font-weight: 700; font-size: 1.15em; }
.jir-price-lg { font-size: 1.5em; }
.jir-btn { display: inline-block; margin-top: auto; padding: .6rem 1.1rem; border: 1px solid var(--jir-accent); border-radius: 6px; color: var(--jir-accent); font-size: .9em; text-align: center; cursor: pointer; background: transparent; transition: background .2s, color .2s; }
.jir-btn:hover, .jir-btn-primary { background: var(--jir-accent); color: #fff; }
.jir-btn-primary:hover { opacity: .9; }

.jir-pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: 2rem 0 0; }
.jir-pagination a, .jir-pagination span { padding: .45rem .8rem; border: 1px solid var(--jir-line); border-radius: 6px; color: inherit; }
.jir-pagination .jir-current { background: var(--jir-accent); border-color: var(--jir-accent); color: #fff; }

/* Detail */
.jir-back { margin: 0 0 1rem; font-size: .9em; }
.jir-detail-head { margin-bottom: 1.25rem; }
.jir-detail-title { margin: .25rem 0 .5rem; line-height: 1.25; }
.jir-gallery { margin-bottom: 2rem; }
.jir-gallery-main { position: relative; aspect-ratio: 3 / 2; background: #eef0f2; border-radius: var(--jir-radius); overflow: hidden; }
.jir-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jir-gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #111; font-size: 1.6rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.jir-gal-prev { left: .75rem; } .jir-gal-next { right: .75rem; }
.jir-thumbs { display: flex; gap: .5rem; overflow-x: auto; margin-top: .6rem; padding-bottom: .25rem; }
.jir-thumb { flex: 0 0 auto; width: 88px; height: 66px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #eef0f2; cursor: pointer; opacity: .75; }
.jir-thumb.is-active, .jir-thumb:hover { opacity: 1; border-color: var(--jir-accent); }
.jir-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.jir-detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 860px) { .jir-detail-grid { grid-template-columns: 1fr; } }
.jir-section { margin-bottom: 2rem; }
.jir-box { padding: 1.25rem; border: 1px solid var(--jir-line); border-radius: var(--jir-radius); background: var(--jir-bg); margin-bottom: 1.25rem; }
.jir-dl { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: .4rem 1rem; margin: 0; }
.jir-dl dt { color: var(--jir-muted); font-weight: 400; }
.jir-dl dd { margin: 0; font-weight: 500; }
.jir-dl-prices dd { text-align: right; }
.jir-small { font-size: .85em; color: var(--jir-muted); margin: .75rem 0 0; }
.jir-tags { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.jir-tags li { background: var(--jir-bg); border: 1px solid var(--jir-line); border-radius: 999px; padding: .25rem .7rem; font-size: .85em; }
.jir-docs { padding-left: 1.2rem; }
.jir-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: .5rem; }
.jir-contact p { margin: 0 0 .4rem; }

/* Formular */
.jir-form { display: flex; flex-direction: column; gap: .75rem; }
.jir-form label { display: flex; flex-direction: column; gap: .25rem; font-size: .9em; }
.jir-form input[type=text], .jir-form input[type=email], .jir-form input[type=tel], .jir-form textarea { width: 100%; padding: .55rem .7rem; border: 1px solid #cfd4da; border-radius: 6px; font: inherit; background: #fff; }
.jir-check { flex-direction: row !important; align-items: flex-start; gap: .5rem !important; }
.jir-check input { margin-top: .25rem; }
.jir-hp { position: absolute; left: -9999px; }
.jir-msg { padding: .75rem 1rem; border-radius: 6px; margin-bottom: .75rem; }
.jir-msg-ok { background: #e6f4ea; color: #1e6b34; }
.jir-msg-err { background: #fdecea; color: #a12622; }
