body {

}
/* Galerie (nur Menüpunkt 170) */
body.itemid-170 .blog-item {
    width: auto;
    max-width: none;
}
body.itemid-170 .com-content-category-blog__items.blog-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 991px) {
    body.itemid-170 .com-content-category-blog__items.blog-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body.itemid-170 .com-content-category-blog__items.blog-items {
        grid-template-columns: 1fr;
    }
}

/* test */
/* Nur Galerie */
body.itemid-170 .items-leading {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
}

body.itemid-170 .blog-item {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}
.tags a{
    background:none;
    border:0px solid #bbb;
    color:#666;
    border-radius:2px;
    font-size:.8rem;
}
/* Buchdetailseite */
/* Die Tags sollen eine ganze Zeile einnehmen */

.tags.list-inline {
    display: none;
}
.com-content-article .tags {
    width: 100%;
    flex-basis: 100%;
    display: none;
    margin-bottom: 2rem;
}
.com-content-article.item-page .tags {
    display: none;
}
.com-content-article {
        flex-direction: column;
    }

    .com-content-article .item-image {
        width: 220px;
        margin: 0 auto 2rem;
    }
}

.com-content-article {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.com-content-article .item-image {
    flex: 0 0 220px;
    margin: 0;
}

.com-content-article .item-image img {
    width: 100%;
    height: auto;
    display: block;
}

.com-content-article__body {
    flex: 1;
}

/* Buchdetailseite */
.com-content-article.item-page {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 2rem !important;
}
figure {
  /*  background:red !important;
    border:5px solid blue !important; */
}

.com-content-article__body {
  /*  background: lightgreen !important; */
}
@media (max-width:800px){

    .com-content-article{
        display:block;
    }

    .com-content-article .item-image{
        margin-bottom:2rem;
    }

}
/* Mobil */
@media (max-width: 768px) {
    .com-content-article {
        flex-direction: column;
    }

    .com-content-article .item-image {
        width: 220px;
        margin: 0 auto 2rem;
    }
}

/* Mobil */
@media (max-width: 768px) {
    .com-content-article {
        flex-direction: column;
    }

    .com-content-article .item-image {
        width: 220px;
        margin: 0 auto 2rem;
    }
}



.com-content-article img {
    max-width: 250px;
    max-height: 400px; /* Hier gewünschte Maximalhöhe in px, rem oder % eintragen */
    height: auto;
    object-fit: contain; /* Sorgt dafür, dass das Bild sauber eingepasst wird */
}

.blog_books  img {
    max-width: 220px;
    max-height: 400px; /* Hier gewünschte Maximalhöhe in px, rem oder % eintragen */
    height: auto;
    object-fit: contain; /* Sorgt dafür, dass das Bild sauber eingepasst wird */
}

h1  {
  font-size: 20px;
}

h2  {
   font-size: 20px;
  
}
h3  {
   font-size: 20px;
  
}
h2 .uk-margin-top {
  margin-top: 0;
}

.uk-panel .minimenu .uk-nav-default {
  background: #eee;
  font-size: 18px;
}
.buecher {
  font-size: 18px;
  background: #eee;
}

.blog_media .uk-article {
  border: solid 1px #ccc;
  background: #eee;
  border-radius: 8px;
}

#article-310 .uk-article {
transform: translateY(-20.000px); 
margin-top: -50px;

}

.uk-nav-default>li>a {
    color: #000
}

.uk-nav-default>li>a:hover {
    color: blue
}

.uk-nav-default>li.uk-active>a {
    color: red
}
/* =========================
   EDITION GRID (CARDS)
   fabrik.transit Bücher
   ========================= */

/* GRID spacing */
.blog_books .uk-grid {
  row-gap: 40px;
  column-gap: 30px;
}

/* CARD BASE */
.blog_books .uk-article {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.45s ease;
}

/* subtle hover (modern, editorial) */
.blog_books .uk-article:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* IMAGE AREA */
.blog_books .intro_image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  background: #fafafa;
  overflow: hidden;
}
.blog-item .item-image{
    height:340px;
    display:flex;
    justify-content:center;
    align-items:flex-end;
    overflow:hidden;
}

.blog-item .item-image img{
    max-height:320px;
    width:auto;
    object-fit:contain;
}
.blog-items{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:3rem;
}

blog-item{
    display:flex;
    flex-direction:column;
    height:100%;
}
.item-content{
    display:flex;
    flex-direction:column;
    flex:1;
}
.blog-item{
    background:#fff;
    border:1px solid #ececec;
    padding:24px;
    transition:.3s;
}

.blog-item:hover{
    box-shadow:0 12px 30px rgba(0,0,0,.08);
    transform:translateY(-4px);
}
/* cover behavior */
.blog_books .intro_image img {
  max-height: 100%;
  width: auto;
  transition: transform 0.35s ease;
}

/* soft zoom on hover */
.blog_books .uk-article:hover img {
  transform: scale(1.04);
}

/* TEXT AREA */
.blog_books [property="text"] {
  padding: 14px 16px 18px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #111;
}

/* reset paragraph spacing */
.blog_books [property="text"] p {
  margin: 0;
}

/* TITLE (book title emphasis) */
.blog_books strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 4px 0 6px;
  letter-spacing: 0.01em;
}

/* meta text (ISBN, price etc.) */
.blog_books [property="text"] {
  color: #333;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 640px) {
  .blog_books .intro_image {
    height: 240px;
  }
}

/* OPTIONAL: slightly cleaner links */
.blog_books a {
  text-decoration: none;
}
.blog_books a:hover {
  text-decoration: none;
}
/* =========================
   EDITION GRID (CARDS)
   fabrik.transit Bücher
   ========================= */

/* GRID spacing */
.blog_books .uk-grid {
  row-gap: 40px;
  column-gap: 30px;
}

/* CARD BASE */
.blog_books {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* subtle hover (modern, editorial) */
.blog_books .uk-article:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* IMAGE AREA */
.blog_books .intro_image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  background: #fafafa;
  overflow: hidden;
}

/* cover behavior */
.blog_books .intro_image img {
  max-height: 100%;
  width: auto;
  transition: transform 0.35s ease;
}

/* soft zoom on hover */
.blog_books img {
  transform: scale(1.04);
}

/* TEXT AREA */
.blog_books [property="text"] {
  padding: 14px 16px 18px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #111;
}

/* reset paragraph spacing */
.blog_books [property="text"] p {
  margin: 0;
}

/* TITLE (book title emphasis) */
.blog_books strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 4px 0 6px;
  letter-spacing: 0.01em;
}

/* meta text (ISBN, price etc.) */
.blog_books [property="text"] {
  color: #333;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 640px) {
  .blog_books .intro_image {
    height: 240px;
  }
}

/* OPTIONAL: slightly cleaner links */
.blog_books a {
  text-decoration: none;
}
.blog_books a:hover {
  text-decoration: none;
}

.blog_books .uk-article {
  background: #fff !important;
  border: 1px solid #eee !important;
  padding: 16px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.blog_books .uk-grid > * {
  padding-left: 20px !important;
}

/* EDITIONS-STYLE CARDS */

body .blog_books .uk-child-width-1-3\@m > div {
    padding: 10px;
}

body .blog_books .uk-article {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
    height: 100%;
}

body .blog_books .uk-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

body .blog_books .intro_image img {
    border-radius: 8px;
    transition: all 0.3s ease;
}

body .blog_books .uk-article:hover img {
    filter: contrast(1.05);
}
/* Mobil */
@media (max-width: 768px) {

    .com-content-article.item-page {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem;
    }

    .com-content-article.item-page .item-image {
        flex: none !important;
        width: 220px;
        margin: 0 auto !important;
    }

    .com-content-article.item-page .com-content-article__body {
        width: 100%;
    }
}