/* ===================================================================
   PSBK NEWS THEME
   Paul-Spiegel-Berufskolleg
   Version 1.0

   Teil 1
   - Grundlayout
   - Variablen
   - Listenansicht (Cards)
   =================================================================== */


/* ===================================================================
   01 Variablen
   =================================================================== */

:root {

    --psbk-radius: 18px;
    --psbk-radius-small: 12px;

    --psbk-shadow:
        0 10px 30px rgba(0,0,0,.08);

    --psbk-shadow-hover:
        0 20px 45px rgba(0,0,0,.14);

    --psbk-border: #e6ebf2;

    --psbk-light: #f5f8fc;

    --psbk-transition: .3s ease;

}


/* ===================================================================
   02 Grundlayout
   =================================================================== */

.news img{
    max-width:100%;
    height:auto;
}

.news a{
    transition:all var(--psbk-transition);
}

.news h1,
.news h2,
.news h3,
.news h4{
    line-height:1.3;
}

#c228 .element-header {
    color: var(--psbk-blue);
}

#c228 .element-header::after {
    content: "";
    display: block;
    width: 4rem;
    height: 3px;
    background: var(--psbk-green);
    margin-top: .75rem;
}


/* ===================================================================
   03 Listenansicht
   =================================================================== */

.news-list-view{

    display:grid;

    grid-template-columns:repeat(3,minmax(0,1fr));

    gap:2rem;

    margin:2rem 0;

}


/* ===================================================================
   Card
   =================================================================== */

.news-list-view .article{

    display:flex;
    flex-direction:column;

    background:#fff;

    border-radius:var(--psbk-radius);

    overflow:hidden;

    box-shadow:var(--psbk-shadow);

    transition:all var(--psbk-transition);

    /* border-top:4px solid var(--bs-primary);*/

}

.news-list-view .article:hover{

    transform:translateY(-8px);

    box-shadow:var(--psbk-shadow-hover);

}
.news-list-view .more {
    letter-spacing: .04em;
    font-size: .95rem;
}

.news-list-category {
    display: block;
    margin-top: .75rem;
    margin-bottom:0;


    font-size: .82rem;
    font-weight: 500;
	line-height: 1.2;
    color: #7b7b7b;
}

/* ===================================================================
   Reihenfolge
   =================================================================== */

.news-list-view .footer{

    order:1;

    padding:1.25rem 1.5rem .25rem;

    border:none;

    margin:0;

}

.news-list-view .news-img-wrap{

    order:2;

    margin:1.25rem 1.5rem;

}

.news-list-view .header{

    order:3;

    padding:0 1.5rem;
	
	margin-bottom: 1.25rem;

}

.news-list-view .teaser-text{

    order:4;

    padding:0 1.5rem 1.5rem;

    font-size:.98rem;

    line-height:1.65;

    color:#444;

}


/* ===================================================================
   Datum & Kategorie
   =================================================================== */

.news-list-view .footer p{

    margin:0;

}

.news-list-date{

    display:inline-block;

    padding:.4rem .9rem;

    border-radius:50px;

    background:var(--psbk-light);

    color:var(--bs-primary);

    font-size:.82rem;

    font-weight:600;

}

.news-list-category {padding-left: .4rem}


/* ===================================================================
   Überschrift
   =================================================================== */

.news-list-view h3{

    margin:0;

    font-size:1.45rem;
	font-weight: 400;

}

.news-list-view h3 a{

    color:#203354;

    text-decoration:none;

}

.news-list-view .article:hover h3 a{

    color:var(--bs-primary);

}

/* ===================================================================
   Bild
   =================================================================== */

.news-list-view .news-img-wrap{

    aspect-ratio:16 / 9;

    border-radius:var(--psbk-radius-small);

    overflow:hidden;

    background:#f3f5f7;

    margin-bottom:1.25rem;

}

.news-list-view .news-img-wrap img{

    display:block;

    width:100%;

    height:100%;

    object-fit:cover;

    transition:transform .4s ease;

}


/* ===================================================================
   Weiterlesen
   =================================================================== */

.news-list-view .more{

    display:inline-flex;

    align-items:center;

    margin-top:.75rem;

    font-weight:600;

    text-decoration:none;

}

.news-list-view .more::after{

    content:"→";

    margin-left:.45rem;

    transition:margin .25s;

}

.news-list-view .more:hover::after{

    margin-left:.8rem;

}

/* ===================================================================
   Teaser / Weiterlesen am unteren Kartenrand
   =================================================================== */

.news-list-view .teaser-text{

    order:4;

    display:flex;
    flex-direction:column;

    flex:1;

    padding:0 1.5rem 1.5rem;

    font-size:.98rem;
    line-height:1.65;
    color:#444;

}

.news-list-view .teaser-text .more{

    margin-top:auto;

}

/* ==========================================================================
   NEWS PAGINATION
   ========================================================================== */

/* Nur die unterste Pagination anzeigen */
.news-list-view .f3-widget-paginator:not(:last-of-type){
    display:none;
}

.news-list-view .f3-widget-paginator {

    grid-column: 1 / -1;

    display: flex;
    flex-wrap: wrap;

    justify-content: center;
    align-items: center;

    gap: .75rem;

    list-style: none;

    width: 100%;
    min-width: 0;

    margin: 3rem 0 1rem;
    padding: 0;

}

.news-list-view .f3-widget-paginator li{

    margin:0;

}

.news-list-view .f3-widget-paginator a,
.news-list-view .f3-widget-paginator .current{

    display:flex;

    align-items:center;

    justify-content:center;

    min-width:42px;

    height:42px;

    padding:0 1rem;

    border:2px solid var(--bs-primary);

    border-radius:999px;

    text-decoration:none;

    font-weight:600;

    color:var(--bs-primary);

    background:#fff;

    transition:.3s ease;

}

.news-list-view .f3-widget-paginator .current{

    background:var(--bs-primary);

    color:#fff;

}

.news-list-view .f3-widget-paginator a:hover{

    background:var(--bs-primary);

    color:#fff;

}

/* ===================================================================
   Responsive
   =================================================================== */

@media (max-width:992px){

    .news-list-view{

        grid-template-columns:repeat(2,1fr);

    }

}

@media (max-width:767px){

    .news-list-view{

        grid-template-columns:1fr;

    }

}


/*### DETAILSEITE ###*/


/* ==========================================================
   DETAIL VIEW
   ========================================================== */

.news-single {
    margin: 3rem 0;
}

/* Artikel zentrieren und Reihenfolge anpassen */
.news-single .article {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
}

/* Reihenfolge */

.news-single .footer {
    order: 1;
    margin-bottom: 1rem;
}

.news-single .header {
    order: 2;
    margin-bottom: 2rem;
}

.news-single .news-text-wrap {
    order: 3;
}

.news-single .news-img-wrap {
    order: 4;
    margin-top: 2.5rem;
}

/* ==========================================================
   Datum
   ========================================================== */

.news-single .footer p {
    margin: 0;
}

.news-single .news-list-date {
    display: inline-block;
    padding: .45rem .9rem;
    border-radius: 50px;
    background: #eef4ff;
    color: #2a428f;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .02em;
}

/* ==========================================================
   Überschrift
   ========================================================== */



.news-single h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.2;
    color: #203354;
}

/* ==========================================================
   Bildergalerie Detailansicht
   ========================================================== */

.news-single .news-img-wrap{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:.75rem;

    margin:2.5rem 0 3rem;

}


/* Herobild */

.news-single .news-img-wrap > .outer:first-child{

    grid-column:1 / -1;
	margin-bottom:.5rem;

}


/* Container */

.news-single .news-img-wrap .outer{

    width:100%;

}


.news-single .news-img-wrap .mediaelement{

    width:100%;

}


/* Links */

.news-single .news-img-wrap a{

    display:block;

    overflow:hidden;

    cursor:pointer;

    border-radius:16px;

    transition:box-shadow .25s ease;

}


/* Bilder */

.news-single .news-img-wrap img{

    display:block;

    width:100%;

    height:100%;

    object-fit:cover;

    border-radius:16px;

}


/* Hero */

.news-single .news-img-wrap > .outer:first-child img{

    aspect-ratio:16/9;

}


/* Galerie */

.news-single .news-img-wrap > .outer:not(:first-child) img{

    aspect-ratio:1/1;

}


/* dezenter Hover */

.news-single .news-img-wrap a:hover{

    box-shadow:0 8px 24px rgba(0,0,0,.12);

}

@media (max-width:768px){

    .news-single .news-img-wrap{

        grid-template-columns:repeat(2,1fr);

    }

}

@media (max-width:576px){

    .news-single .news-img-wrap{

        grid-template-columns:1fr;

    }

    .news-single .news-img-wrap > .outer:first-child{

        grid-column:auto;

    }

}

/* ==========================================================
   Fließtext
   ========================================================== */

.news-single .news-text-wrap {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #333;
}

.news-single .news-text-wrap p {
    margin-bottom: 1.5rem;
}

.news-single .news-text-wrap h2,
.news-single .news-text-wrap h3,
.news-single .news-text-wrap h4 {
    margin: 2.5rem 0 1rem;
    color: #203354;
    font-weight: 600;
}

.news-single .news-text-wrap strong {
    font-weight: 600;
}

.news-single .news-text-wrap a {
    color: #2a428f;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: .25s;
}

.news-single .news-text-wrap a:hover {
    border-bottom-color: currentColor;
}

/* ==========================================================
   Listen
   ========================================================== */

.news-single .news-text-wrap ul,
.news-single .news-text-wrap ol {
    margin: 1.5rem 0;
    padding-left: 1.4rem;
}

.news-single .news-text-wrap li {
    margin-bottom: .5rem;
}

/* ==========================================================
   Tabellen
   ========================================================== */

.news-single .news-text-wrap table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
}

.news-single .news-text-wrap th,
.news-single .news-text-wrap td {
    padding: .85rem 1rem;
    border: 1px solid #dfe7f3;
}

.news-single .news-text-wrap th {
    background: #f5f8fc;
    color: #203354;
}

/* ==========================================================
   Bilder im Text
   ========================================================== */

.news-single .news-text-wrap img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    border-radius: 12px;
}

/* ==========================================================
   Downloads
   ========================================================== */

.news-single .news-related-files {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #dfe7f3;
}

.news-single .news-related-files ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-single .news-related-files li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    margin-bottom: .75rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

/* ==========================================================
   Zurück-Link
   ========================================================== */

.news-single .back-link,
.news-single .news-backlink-wrap {
    margin-top: 3rem;
}

.news-single .back-link a,
.news-single .news-backlink-wrap a {
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .03em;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 991px) {

    .news-single .article {
        padding: 0 1rem;
    }

}

@media (max-width: 768px) {

    .news-single h1 {
        font-size: 2rem;
    }

    .news-single .news-img-wrap img {
        max-width: 100%;
    }

}


/*### Kategorien-Filter über der News-Liste ###*/

/* ==========================================
   News-Filter
   ========================================== */

/* Platz um den Filter entfernen */
#c418 {
    padding: 0;
}
/* Mobilansicht Filter Padding Bottom */
@media (max-width: 767.98px) {
#c418 {
	padding-bottom: 30px;
}
}

.frame-type-news_categorylist {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Kategorienliste */
.frame-type-news_categorylist .news ul {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.frame-type-news_categorylist .news li {
    margin: 0;
    font-size: 0; /* blendet die Anzahl (1) aus */
}

/* ==========================================
   Buttons (Kategorien + "Alle")
   ========================================== */

.frame-type-news_categorylist .news a,
#c419 a {
    display: inline-block;
    padding: .55rem 1.1rem;

    border: 1px solid #2a428f;
    border-radius: 999px;

    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;

    transition:
        background-color .25s ease,
        color .25s ease,
        border-color .25s ease;
}

/* Kategorien */
.frame-type-news_categorylist .news a {
    background: #fff;
    color: #2a428f;
}

.frame-type-news_categorylist .news a:hover,
.frame-type-news_categorylist .news a.active {
    background: #2a428f;
    border-color: #2a428f;
    color: #fff;
}

/* "Alle"-Button */
#c419 p {
    margin: 0;
}

#c419 a {
    background: #2a428f;
    color: #fff;
}

#c419 a:hover {
    background: #2a428f;
    color: #fff;
}

/* Sobald eine Kategorie aktiv ist, wird "Alle" inaktiv dargestellt */
.news-filter:has(.news a.active) #c419 a {
    background: #fff;
    color: #2a428f;
}

/* Hover für den inaktiven "Alle"-Button */
.news-filter:has(.news a.active) #c419 a:hover {
    background: #2a428f;
    border-color: #2a428f;
    color: #fff;
}


/*### STARTSEITE NEWS TEASER ###*/

/* ==========================================================
   NEWS TEASER STARTSEITE
   ========================================================== */

.news-home .news-list-view{

    display:grid;

    grid-template-columns:repeat(4,minmax(0,1fr));

    gap:.5rem;

    margin:2rem 0;

}
@media (max-width:992px){

    .news-home .news-list-view{

        grid-template-columns:repeat(2,1fr);

		gap:1rem;
    }

}

@media (max-width:767px){

    .news-home .news-list-view{

        grid-template-columns:1fr;
		gap:1.5rem;

    }

}



/* Kategorie nicht anzeigen */
.news-home .news-list-category {
	display: none;
}


.news-home .article{

    min-height:auto;

}

/* Bild */

.news-home .news-img-wrap{

    margin:1rem 1.25rem;

}

.news-home .news-img-wrap img{

    aspect-ratio:16 / 9;

    object-fit:cover;

}

/* Überschrift */

.news-home .header {margin-bottom: 1rem;}

.news-home h3{

    font-size:1.4rem;

    line-height:1.35;

/*     min-height:2.7em; */

    overflow:hidden;
	
}
.news-home .header h3 span {color: #2a428f}


/* Teaser ausblenden */

.news-home .teaser-text div{

    display:none;

}

/* Weiterlesen etwas näher */

.news-home .teaser-text{

    padding:0 1.25rem 1.25rem;

}

/* Weiterlesen */

.news-home .more{

    margin-top:0;

    letter-spacing:.05em;

    font-size:.92rem;

}

/* Button zu allen News */

#c415 a{
    display:inline-flex;
    align-items:center;
    gap:.5rem;
    padding:.8rem 1.4rem;
    border:2px solid var(--bs-primary);
    border-radius:999px;
    color:var(--bs-primary);
    background:#fff;
    font-weight:600;
    text-decoration:none;
    transition:.3s;
}

#c415 a::after{
    content:"→";
    transition:.3s;
}

#c415 a:hover{
    background:var(--bs-secondary);
    color:#fff;
}

#c415 a:hover::after{
    transform:translateX(5px);
}