/* Custom styles for Agile Unicorn Manual */

/* Local Rubik fonts */
@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/rubik-300.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/rubik.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/rubik-500.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/rubik-700.woff2') format('woff2');
    font-display: swap;
}

/* Set Rubik as default font */
body, .md-typeset {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header background with bgtop.png */
.md-header {
    background-image: url('../images/bgtop.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-color: transparent !important;
}

/* Ensure header text is visible on the background */
.md-header__title,
.md-header__button,
.md-header-nav__button {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Language selector styling */
.md-select__link {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 4px 8px;
}

/* Optional: Add some padding for better visibility */
.md-header {
    min-height: 80px;
}

/* Blende die Seitenleiste aus – nur auf Desktop */
@media (min-width: 769px) {
    .md-sidebar--primary * {
        display: none !important;
    }
}

/* Rechte Seitenleiste im mobilen View ausblenden */
@media (max-width: 768px) {
    .md-sidebar--secondary {
        display: none !important;
    }
}

.md-sidebar--secondary {
    margin-top: 0.7rem;
}

/* Footer-Navigation optisch hervorheben */
.md-footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0;
}

.md-footer-nav a {
    text-decoration: none;
    font-weight: bold;
}

.md-footer-social {
    text-align: center;
    font-size: small;
    width: 100%;
}

.md-footer-social a {
    margin-left: 0.5rem;
}

.md-footer-nav a:hover {
    text-decoration: underline;
}

.image-rounded {
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.rainbow-bar {
    height: 4px;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 200% 100%;
    animation: rainbow-slide 3s linear infinite;
    border-radius: 10px;
    margin: 1em 0;
    box-shadow: 0 2px 10px rgba(255, 0, 255, 0.3);
}

@keyframes rainbow-slide {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 200% 0%;
    }
}

/* Admonition font size */
.md-typeset .admonition {
    font-size: initial;
    border: none;
}

/* Quote admonition with light gray background */
.md-typeset .admonition.quote {
    background-color: #ffe9f8;
}

