.aktuelles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    /* Nur im Plugin */
    font-family: 'Lato', sans-serif;
}

.aktuelles-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    /* Box nimmt volle Höhe */
}

.aktuelles-item {
    position: relative;
    overflow: hidden;
    /* Bild bleibt in der Box */
    border-radius: 10px;
    border: 1px solid #ddd;
    transition: box-shadow 0.3s ease;
    /* nur Schatten animieren */
    background: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.aktuelles-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* nur Schatten */
}

.aktuelles-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
    /* wichtig: verhindert, dass das Bild über den Rand hinauswächst */
    border-radius: 10px;
    /* Rand bleibt fix */
}

.aktuelles-thumb-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.aktuelles-item:hover .aktuelles-thumb-inner {
    transform: scale(1.10);
    /* nur das Bild zoomt */
}

.aktuelles-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #e63946;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transform-origin: top left;
}

.aktuelles-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    /* Content füllt den Rest */
}

.aktuelles-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    flex-shrink: 0;
}

.aktuelles-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.aktuelles-date {
    font-size: 12px;
    opacity: 0.8;
}

.aktuelles-author {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.aktuelles-avatar {
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.aktuelles-subtitle {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.3px;
    margin: 0 0 15px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* max. 3 Zeilen */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* More Button */

.aktuelles-more-btn {
    display: inline-block;
    /* bleibt inline */
    background: #0073aa;
    color: #fff;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    margin-top: auto;
    /* nach unten */
    width: auto !important;
    max-width: fit-content;
}

.aktuelles-more-btn:hover {
    background: #005177;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.aktuelles-loadmore-wrapper {
    text-align: center;
    margin-top: 30px;
}

#load-more {
    display: inline-flex;
    /* Flex für Text + Dots */
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    /* feste Breite */
    position: relative;
}

#load-more:hover {
    background: #005177;
    /* transform: translateY(-2px); */
}


/* Loading Dots */

#load-more::after {
    content: none;
}

#load-more.loading::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 8px 0 0 #fff, 16px 0 0 #fff;
    animation: loader-dots 1s infinite linear;
}

@keyframes loader-dots {
    0% {
        box-shadow: 8px 0 0 #fff, 16px 0 0 #fff;
    }
    33% {
        box-shadow: 8px -5px 0 #fff, 16px 0 0 #fff;
    }
    66% {
        box-shadow: 8px 0 0 #fff, 16px -5px 0 #fff;
    }
    100% {
        box-shadow: 8px 0 0 #fff, 16px 0 0 #fff;
    }
}


/* Responsive */

@media (max-width: 1024px) {
    .aktuelles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .aktuelles-grid {
        grid-template-columns: 1fr;
    }
}


/* Lato Einbindung */

@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

.aktuelles-top {
    position: relative;
    width: 100%;
    height: 600px;
    /* etwas höher als vorher */
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.aktuelles-top-thumb {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.aktuelles-top-thumb-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.aktuelles-top:hover .aktuelles-top-thumb-inner {
    transform: scale(1.1);
}

.aktuelles-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e63946;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aktuelles-top-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    color: #fff;
}

.aktuelles-top-title {
    margin: 10px 0;
    font-size: 38px;
    font-weight: bold;
    /* größerer Titel */
    font-weight: 700;
    color: #fff;
}

.aktuelles-top-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 15px;
    margin-bottom: 15px;
    color: #fff;
}

.aktuelles-top .aktuelles-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.aktuelles-top .aktuelles-avatar {
    border-radius: 50%;
    width: 28px;
    height: 28px;
}

.aktuelles-top .aktuelles-more-btn {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    border-radius: 50px;
    padding: 12px 28px;
    /* größerer Button */
    font-size: 16px;
    /* größere Schrift */
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-top: 15px;
}

.aktuelles-top .aktuelles-more-btn:hover {
    background: #005177;
}

.aktuelles-top-subtitle {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
    margin: 5px 0 15px 0;
    color: #f0f0f0;
    /* etwas heller, damit es sich absetzt */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* max. 2 Zeilen */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Mobile: hochkant 3:4 */

@media (max-width: 768px) {
    .aktuelles-top {
        height: auto;
        /* Höhe über Aspect-Ratio steuern */
        aspect-ratio: 3 / 4;
        /* 3:4 hochkant */
    }
    .aktuelles-top-title {
        font-size: 36px;
        /* etwas kleiner auf Mobile */
    }
    .aktuelles-top .aktuelles-more-btn {
        font-size: 14px;
        padding: 10px 24px;
    }
    .aktuelles-top-subtitle {
        font-size: 16px;
        -webkit-line-clamp: 3;
        /* auf Mobile darf er etwas mehr Platz haben */
    }
}