@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /*font-family: "Crimson Pro", serif;*/
    font-family: "Literata", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 1.0rem;
    line-height: 30px;
    /*background: #fff;*/
    background: linear-gradient(to bottom,
    #fff 0%, #f9f9f9 10%, #e8e8e8 20%,
    #dddddd 40%, #f9f9f9 50%, #fff 60%);
    color: #000;
}

h2 {
    margin-bottom: 15px;
}

h3 {
    margin-top: 20px;
}

a {
    color: #000;
    text-decoration: none;
}

a:hover {
    color: #000;
    text-decoration: underline;
}

.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(195, 195, 195, 0.3), rgba(240, 240, 240, 0.3));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-right: none;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);

    display: flex;
    flex-direction: column;
    justify-content: center; /* <-- This vertically centers the ul */
    align-items: center; /* optional: centers the ul horizontally */
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Optional WebKit scrollbar styling for .side-nav */
.side-nav::-webkit-scrollbar {
    width: 6px;
}

.side-nav::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.side-nav::-webkit-scrollbar-track {
    background: transparent;
}

.side-nav ul {
    list-style: none;
}

.side-nav li a {
    display: block;
    padding: 10px 18px;
    margin: 0 5px;
    text-decoration: none;
    color: #000;
    /*border-bottom: 1px solid #eee;*/
    border-radius: 20px
}

.side-nav li a.active {
    background: rgba(205, 205, 205, 0.4);
}

.side-nav li a:hover {
    background: rgba(205, 205, 205, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 20px;
}

.content {
    margin-left: 220px;
    padding: 20px;
}

header#hero {
    position: relative;
    text-align: center;
}

header#hero img {
    width: 100%;
    height: auto;
}

header#hero h1 {
    font-size: 3em;
    margin: 0.5em 0;
}

header#hero .subtitle {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1em;
}

#hero-img {
    margin: 20px auto;
    max-width: 500px;
}

section {
    padding: 60px 0;
    border-top: 1px solid #616161;
}

section:first-of-type {
    border-top: none;
}

html {
    scroll-behavior: smooth;
}

section ul {
    margin-left: 1rem;
    padding-left: 1rem;
}

.date {
    margin-top: 15px;
}

.section-with-pic {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

.section-with-pic img {
    max-width: 400px;
    height: auto;
    margin-left: 50px;
    object-fit: contain;
}

.section-pics {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

#ueber-michael p {
    margin-bottom: 10px;
}

.text-images p {
    font-size: 0.5rem;
    line-height: 15px;
    padding-left: 50px;
    margin-bottom: 15px;
}

#download-pdf{
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: min-content;
    /*min-width: 350px;*/
    padding: 10px 20px;
    border: 1px solid #000;
    transition: 0.5s;
}

#download-pdf:hover{
    background-color: #f4f4f4;
}

#download-pdf a {
    white-space: nowrap;
    display: flex;
    align-items: center;
}

#download-pdf a:hover {
    text-decoration: none;
}

#download-pdf i{
    font-size: 20px;
    margin-right: 15px;
}

/* Hide mobile navigation and header by default */
.mobile-nav,
#mobile-header {
    display: none;
}

@media (max-width: 780px) {
    #mobile-header {
        display: flex;
    }

    .mobile-nav.hidden {
        display: none;
    }

    .mobile-nav:not(.hidden) {
        display: block;
    }

    .side-nav {
        display: none;
    }

    .content{
        margin-left: 0;
    }

    header#hero .subtitle {
        bottom: 0;
    }

    .section-with-pic{
        flex-direction: column;
        align-items: center;
    }

    .section-with-pic img{
        max-width: 300px;
        margin-left: 0;
    }

    #mobile-header {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        background: #fff;
        padding: 10px 20px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
    }

    #mobile-hero-img {
        height: 30px;
    }

    #menu-toggle {
        font-size: 1.5rem;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .mobile-nav {
        background: #fff;
        height: 100vh;
        margin-top: -20px;
        overflow-y: auto;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        z-index: 998;
        transition: max-height 0.3s ease;
    }

    .mobile-nav ul {
        list-style: none;
        padding: 10px;
    }

    .mobile-nav li {
        padding: 10px 15px;
        border-bottom: 1px solid #ccc;
    }

    .mobile-nav li a {
        text-decoration: none;
        color: #000;
        display: block;
    }

    .mobile-nav.hidden {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    .content {
        margin-top: 60px;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

@media print{
    .fade-in-section {
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
    }

    section{
        padding: 30px;
        break-before: page;
        border-top: none;
    }

    section:first-of-type {
        break-before: auto; /* Don't force page break on first section */
    }

    .side-nav {
        display: none !important;
    }

    #print-section{
        display: none;
    }

    #impressum-link{
        display: none;
    }

    #download-pdf {
        display: none !important;
    }

    footer, a[href="impressum.html"] {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    a::after {
        content: "" !important;
    }

    .content{
        margin: 0;
    }

    .text-images{
        display: none;
    }

    body{
        line-height: 23px;
    }

    #hero-img {
        max-width: 250px;
        margin-bottom: 30px;
    }

    .section-with-pic{
        flex-direction: column;
        align-items: flex-start;
    }

    .section-with-pic img{
        margin-top: 10px;
        margin-left: 0;
    }

    #letzte-nacht img{
        max-width: 150px;
    }

    #mobile-header{
        display: none !important;
    }
}