/* as_referenz.css | Version 1.6 | 05.12.2026 */
.as-ref-frontend{
    font-family:Arial,sans-serif;
    color:#222;
}
.as-ref-frontend h2{
    color:#2E7FC0;
    margin:0 0 14px 0;
}
.as-ref-mehr,
.as-ref-zurueck{
    display:inline-block;
    padding:8px 12px;
    border:0;
    border-radius:5px;
    background:#2E7FC0;
    color:#fff !important;
    text-decoration:none;
    font-weight:bold;
    cursor:pointer;
}
.as-ref-mehr:hover,
.as-ref-zurueck:hover{
    background:#1f6ba8;
}
.as-ref-hinweis{
    padding:10px;
    margin:10px 0;
    border-radius:5px;
}
.as-ref-hinweis{
    background:#f5f8fb;
    border:1px solid #d6e2ee;
}
.as-ref-liste{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));
    gap:16px;
}
.as-ref-karte{
    display:flex;
    flex-direction:column;
    min-width:0;
    border:1px solid #d7dfe7;
    border-radius:8px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 2px 6px rgba(0,0,0,.08);
}
.as-ref-karte > .as-ref-kartenbild{
    display:block;
    position:relative;
    flex:none;
    height:var(--as-ref-kartenbild-hoehe,170px);
    overflow:hidden;
}
.as-ref-karte > .as-ref-kartenbild > img{
    position:absolute;
    inset:0;
    width:min(100%,var(--as-ref-kartenbild-breite,100%));
    height:100%;
    max-height:100%;
    margin:auto;
    object-fit:contain;
    display:block;
}
.as-ref-karte-inhalt{
    display:flex;
    flex:1;
    flex-direction:column;
    align-items:flex-start;
    gap:0.6rem;
    padding:13px;
}
.as-ref-karte-inhalt > :is(h3,p){
    margin:0;
}
.as-ref-karte-inhalt > .as-ref-mehr{
    margin-top:auto;
    padding:0.35rem 0.65rem;
    font-size:0.875rem;
    line-height:1.35;
    font-weight:600;
}
.as-ref-karte h3{
    color:#2E7FC0;
}
.as-ref-karte h3 a{
    color:#2E7FC0;
    text-decoration:none;
}
.as-ref-kategorie{
    display:inline-block;
    padding:3px 7px;
    background:#eef5fb;
    color:#2E7FC0;
    border-radius:4px;
    font-size:12px;
    font-weight:bold;
}
.as-ref-kategorie-nav{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin:0 0 16px;
}
.as-ref-kategorie-nav a{
    display:inline-block;
    padding:6px 10px;
    border:1px solid #b8cfe2;
    border-radius:5px;
    background:#f5f8fb;
    color:#245f8f;
    text-decoration:none;
}
.as-ref-kategorie-nav a.aktiv,
.as-ref-kategorie-nav a:hover{
    background:#2E7FC0;
    color:#fff;
}
.as-ref-untertitel{
    font-weight:bold;
    color:#555;
}
.as-ref-detail{
    padding:15px;
    border:1px solid #d7dfe7;
    border-radius:8px;
    background:#fff;
}
.as-ref-detail-aktionen{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(min(100%,10rem),1fr));
    max-width:21rem;
    gap:0.5rem;
    margin-block-start:1rem;
}
.as-ref-detail-aktionen > a{
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:2rem;
    margin:0;
    padding:0.35rem 0.65rem;
    font-size:0.875rem;
    line-height:1.35;
    font-weight:600;
    text-align:center;
}
.as-ref-detail-aktionen > .as-ref-zurueck{
    background:#245f8f;
}
.as-ref-detail-aktionen > .as-ref-zurueck:hover,
.as-ref-detail-aktionen > .as-ref-zurueck:focus-visible{
    background:#1b4c73;
}
.as-ref-meta{
    padding:8px;
    background:#f5f8fb;
    border-radius:5px;
    color:#555;
}
.as-ref-bilder{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--as-ref-galerie-breite,220px)),1fr));
    gap:14px;
    margin:15px 0;
}
.as-ref-bilder figure{
    margin:0;
    border:1px solid #d7dfe7;
    border-radius:6px;
    overflow:hidden;
    background:#fafafa;
}
.as-ref-bilder img{
    width:100%;
    height:190px;
    object-fit:cover;
    display:block;
}
.as-ref-bilder .as-ref-bild-mit-breite{
    width:min(100%,var(--as-ref-bild-breite));
    box-sizing:border-box;
}
.as-ref-bilder .as-ref-bild-mit-breite > img{
    height:auto;
}
.as-ref-bilder figcaption{
    padding:8px;
    font-size:13px;
}
.as-ref-bilder figcaption span{
    color:#2E7FC0;
    font-weight:bold;
}
.as-ref-text{
    line-height:1.55;
    margin:15px 0;
}
.as-ref-detail-inhalt{
    display:flex;
    flex-wrap:wrap;
    align-items:flex-start;
    gap:16px;
    margin:15px 0;
}
.as-ref-detail-inhalt > .as-ref-bilder{
    flex:0 1 var(--as-ref-galerie-breite,20rem);
    min-width:0;
    grid-template-columns:minmax(0,1fr);
    margin:0;
}
.as-ref-detail-inhalt > .as-ref-text{
    flex:1 1 20rem;
    min-width:0;
    margin:0;
    overflow-wrap:anywhere;
}
@media (max-width:700px){
    .as-ref-liste,
    .as-ref-bilder{
        grid-template-columns:1fr;
    }
}
