.pdf-banner {
    background: linear-gradient(90deg, #5b8893 0%, #0056a0 100%);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    padding: 2em 1em;
    margin-bottom: 2em;
    text-align: center;
}

.pdf-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2em;
    margin-bottom: 2em;
}

.pdf-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0, 86, 160, 0.10);
    padding: 2em 1em 1em 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    min-height: 220px;
}

.pdf-card:hover {
    box-shadow: 0 8px 32px rgba(0, 86, 160, 0.18);
    transform: translateY(-6px) scale(1.03);
    z-index: 2;
}

.pdf-link {
    text-decoration: none;
    color: inherit;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pdf-icon {
    font-size: 3.5em;
    color: #d9534f;
    margin-bottom: 0.6em;
    transition: color 0.3s;
}

.pdf-card:hover .pdf-icon {
    color: #b52a1a;
}

.pdf-title {
    font-size: 1.15em;
    font-weight: 700;
    margin-bottom: 0.4em;
    text-align: center;
}

.pdf-desc {
    font-size: 0.98em;
    color: #555;
    text-align: center;
    margin-bottom: 0.2em;
}

.animated-fadein {
    opacity: 0;
    transform: translateY(40px);
}

@media (max-width: 600px) {
    .pdf-card-grid {
        grid-template-columns: 1fr;
        gap: 1.2em;
    }

    .pdf-card {
        padding: 1.2em 0.5em;
    }
}

@media (max-width: 991px) {
    nav .dropdown {
        display: none;
    }

    .mobile-menu {
        display: block !important;
    }

    #main-header {
        height: 38vh;
        min-height: 120px;
    }

    section {
        padding: 3vw 2vw;
    }
}

@media (min-width: 992px) {
    nav {
        position: sticky;
        top: 0;
        z-index: 100;
        width: 100%;
        background: #0056a0;
        left: 0;
    }

    .mobile-menu {
        display: none !important;
    }
}

#carouselAusstattung {
    border: 8px solid #5b8893;
}

#carouselAusstattung .carousel-indicators [data-bs-target] {
    background-color: #5b8893;
}


/* Carrusel Science Lab: texto debajo de la imagen */
#carouselAusstattung .carousel-caption-static {
    text-align: center;
    color: #0056a0;
    background: none;
    margin-top: 0.5em;
}
#carouselAusstattung .carousel-caption-static h5 {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 0.2em;
    color: #0056a0;
}
#carouselAusstattung .carousel-caption-static p {
    font-size: 1em;
    color: #0056a0;
    margin-bottom: 0;
}

#carouselAusstattung .carousel-control-prev,
#carouselAusstattung .carousel-control-next {
    background: rgba(0, 86, 160, 0.12);
    border-radius: 50%;
    transition: background 0.3s;
}
#carouselAusstattung .carousel-control-prev:hover,
#carouselAusstattung .carousel-control-next:hover {
    background: rgba(0, 86, 160, 0.28);
}

#carouselAusstattung .carousel-control-prev-icon,
#carouselAusstattung .carousel-control-next-icon {
    filter: invert(38%) sepia(12%) saturate(749%) hue-rotate(153deg) brightness(92%) contrast(88%);
}

.section-active-title {
    transition: background-size 1.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s;
}

#carouselAusstattung {
    max-width: 700px;
    margin: 40px auto;
    border: 8px solid #5b8893;
    border-radius: 18px;
    box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.12);
    background: #fff;
    overflow: hidden;
}

#carouselAusstattung .carousel-inner {
    width: 100%;
    height: 420px; /* Más alto para que el texto no se oculte */
}

#carouselAusstattung .carousel-item {
    height: 100%;
    align-items: center;
    justify-content: center;
}

#carouselAusstattung .carousel-item img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 320px;
    max-height: 320px;
    object-fit: contain;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    background: #f4f4f4;
}

#carouselAusstattung .carousel-caption h5,
#carouselAusstattung .carousel-caption p {
    color: #5b8893 !important;
    text-shadow: none;
}

#carouselAusstattung .carousel-indicators [data-bs-target] {
    background-color: #5b8893;
}

#carouselAusstattung .carousel-control-prev-icon,
#carouselAusstattung .carousel-control-next-icon,
#carouselAusstattung .carousel-control-prev-icon {
    filter: none;
    background-image: none;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-block;
    position: relative;
}
#carouselAusstattung .carousel-control-prev-icon::after,
#carouselAusstattung .carousel-control-next-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border: solid #0056a0;
    border-width: 0 0.35em 0.35em 0;
    padding: 0.35em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    border-radius: 2px;
}
#carouselAusstattung .carousel-control-prev-icon::after {
    transform: translate(-50%, -50%) rotate(135deg);
}
#carouselAusstattung .carousel-control-next-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

#carouselAusstattung .carousel-control-prev,
#carouselAusstattung .carousel-control-next {
    background: rgba(139, 182, 58, 0.08);
    border-radius: 50%;
}

.section-active-title {
    color: #fff;
    background: linear-gradient(90deg, #5b8893 0%, #5b8893 100%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    border-radius: 6px;
    padding: 0.2em 0.6em;
    transition: background-size 0.7s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s;
    position: relative;
    z-index: 1;
}

.section-active-title {
    background-size: 100% 100%;
}

.section-active-title {
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
}

body {
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.5;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #5b8893;
    color: white;
    padding: 20px;
    text-align: center;
}

nav {
    background-color: #0056a0;
    padding: 10px;
}

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: #0056a0;
    left: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s, background 0.3s;
}

nav:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    background: #003366;
}

nav .dropdown-toggle {
    transition: background 0.3s, color 0.3s;
}

nav .dropdown-toggle:hover {
    background: #003366;
    color: #fff;
}

nav ul li {
    margin: 10px;

    .mobile-menu {
        background: #0056a0;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        border-radius: 0 0 16px 16px;
        padding: 0.5em 0;
        width: 100vw;
        left: 0;
        position: sticky;
        top: 0;
        z-index: 200;
        transition: box-shadow 0.3s, background 0.3s;
    }

    #hamburgerBtn {
        background: #003366;
        color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
        margin: 0.5em 1em;
        transition: background 0.3s;
    }

    #hamburgerBtn:active {
        background: #0056a0;
    }

    #mobileMenuList {
        background: #0056a0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
        border-radius: 0 0 16px 16px;
        margin-top: 0.5em;
        animation: fadeInMenu 0.4s;
    }

    #mobileMenuList .dropdown-item {
        color: #fff;
        font-weight: 600;
        padding: 1em 2em;
        border-bottom: 1px solid #003366;
        transition: background 0.2s, color 0.2s;
    }

    #mobileMenuList .dropdown-item:hover {
        background: #003366;
        color: #8bb63a;
    }

    @keyframes fadeInMenu {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #003366;
}

section {
    padding: 1vw 6vw 1vw 6vw;
    margin: 0;
    max-width: 100vw;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    width: 100vw;
    min-height: 30vh;
    border-bottom: none;
}

.back-link {
    display: block;
    margin-top: 20px;
    text-align: center;
}

.back-link a {
    color: #0056a0;
    text-decoration: none;
    font-weight: bold;
}

.images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.images img {
    max-width: 200px;
    margin: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form {
    max-width: 600px;
    margin: 20px auto;
}

form label {
    display: block;
    margin-top: 10px;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background-color: #004080;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

form button:hover {
    background-color: #003366;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 40px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.1;
    color: inherit;
}

p {
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #333
}

ul.custom {
    padding-left: 0;
}

ul.custom li {
    position: relative;
    list-style: none;
    padding-left: 1.5em;
    line-height: 1.5;
}

ul.custom li::before {
    content: "";
    position: absolute;
    top: 0.35em;
    left: 0;
    width: 10px;
    height: 10px;
    background-color: #5b8893;
    border-radius: 2px;
}

.footer {
    padding: 40px 0;
    background-color: #333;
    color: #fff;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
}

nn .footer .headline .as-h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    display: block;
    margin-bottom: 15px;
}

.footer address {
    font-size: 15px;
    line-height: 23px;
    color: #ccc;
}

.footer .link-list {
    padding-left: 0;
    list-style: none;
}

.footer .link-list li {
    margin-bottom: 8px;
}

.footer .link-list li a {
    font-size: 15px;
    color: #ccc;
    text-decoration: none;
}

.footer .link-list li a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer .footer-socials {
    padding-left: 0;
    list-style: none;
}

.footer .footer-socials li {
    display: inline-block;
    margin-right: 10px;
}

.footer .footer-socials li a {
    color: #fff;
    font-size: 18px;
}

.footer .footer-socials li a:hover {
    color: #5b8893;
}

.footer {
    padding: 50px 0 30px 0;
    background-color: #2f2f2f;
    color: #ccc;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.footer .headline {
    margin-bottom: 15px;
    position: relative;
}

.footer .headline .as-h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    display: block;
    margin-bottom: 8px;
}

.footer .headline .as-h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background-color: #5b8893;
    margin-top: 6px;
}

.footer address {
    font-style: normal;
    font-size: 15px;
    color: #ccc;
    margin-bottom: 20px;
}

.footer .link-list {
    padding-left: 0;
    list-style: none;
}

.footer .link-list li {
    margin-bottom: 8px;
}

.footer .link-list li a {
    font-size: 15px;
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .link-list li a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer .footer-socials {
    padding-left: 0;
    list-style: none;
    margin-top: 10px;
}

.footer .footer-socials li {
    display: inline-block;
    margin-right: 12px;
}

.footer .footer-socials li a {
    color: #fff;
    font-size: 20px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer .footer-socials li a:hover {
    color: #5b8893;
    transform: scale(1.1);
}

.footer .footer-socials li img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.footer .footer-socials li img:hover {
    filter: brightness(0.8) sepia(1) hue-rotate(140deg) saturate(200%);
}

@media (max-width: 768px) {
    .footer .col-md-3 {
        margin-bottom: 30px;
        text-align: center;
    }

    .footer .footer-socials li {
        margin-right: 8px;
    }
}

.pdf-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.pdf-list li {
    margin-bottom: 8px;
}

.pdf-list li a {
    font-size: 16px;
    color: #0056a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pdf-list li a:hover {
    color: #5b8893;
    text-decoration: underline;
}

.pdf-list i {
    margin-right: 6px;
    color: #d9534f;
}

#main-header {
    position: relative;
    height: 38vh;
    min-height: 120px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    overflow: hidden;
    transition: none;
    background-size: cover;
    background-position: center;
}

#main-header .header-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
}

#header-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    margin: 0;
    position: relative;
    left: 0;
    text-align: left;
    transition: none;
}