/* ========================
   Allgemein
   ======================== */
html, body {
    height: 100%;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #191A23;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 500;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    text-align: left;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================
   Navbar
   ======================== */
.navbar {
    padding: 15px 0;
    top: 0;
    left: 0;
    width: 100%;
}

.navbar .container {
    padding: 10px 15px;
    border-radius: 5px;
}

.navbar-brand {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-nav .nav-link {
    font-size: 1.1rem;
    margin-right: 10px;
    transition: color 0.3s ease-in-out;
    margin-left: 1rem;
}

.navbar-nav .nav-link:hover {
    text-decoration: underline;
}

li .dropdown-item-mobile {
    display: block;
    padding-left: 2.5rem;
}

.nav-item.dropdown {
    position: relative;
}

.show-on-hover:hover > .dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
}

.dropdown-menu .dropdown-item:active {
    background-color: #e0e0e0;
    color: #191A23;
}

/* ========================
   Hero
   ======================== */
.hero-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    max-width: 45rem;
    margin: 5rem auto;
    text-align: center;
}

.hero-section h1 {
    padding: 0 1rem 0 1rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-size: 3.2rem;
}

.hero-section p {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: #191A23;
    max-width: 35rem;
    margin-left: auto;
    margin-right: auto;
}

/* ========================
   Button
   ======================== */
.btn-primary-dark {
    background-color: #191A23;
    color: #ffffff;
}

.btn-primary-dark:hover {
    color: #191A23;
    background-color: transparent;
    border-color: #191A23;
    box-shadow: 0 4px 0 0 #191A23;
}

.btn-primary-light {
    background-color: transparent;
    color: #191A23;
    border-color: #191A23;
}

.btn-primary-light:hover {
    color: #191A23;
    background-color: transparent;
    border-color: #191A23;
    box-shadow: 0 4px 0 0 #191A23;
}

.btn-primary-green {
    background-color: #BBE04C;
    color: #191A23;
}

.btn-primary-green:hover {
    color: #191A23;
    background-color: transparent;
    border-color: #BBE04C;
    box-shadow: 0 4px 0 0 #BBE04C;
}

/* ========================
   Markdown Content
   ======================== */
#markdown {
    max-width: 80%;
    margin: 0 auto;
    padding: 3rem 0 0 0;
    hyphens: auto;
    text-align: left;
    line-height: 1.8;
    color: #191A23;
}

#markdown h1 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: left;
    color: #191A23;
    background-color: #BBE04C;
    border-radius: 8px;
    padding: 5px 10px;
    display: inline-block;
    box-shadow: 0 4px 0 0 #191A23;
}

#markdown h1::before {
    content: "// ";
    color: #191A23;
    font-weight: bold;
}

#markdown h2 {
    font-size: 2rem;
    color: #191A23;
}

#markdown h3 {
    font-size: 1.5rem;
    color: #191A23;
}

#markdown h4 {
    font-size: 1.25rem;
    color: #191A23;
}

#markdown h5 {
    font-size: 1.1rem;
    color: #191A23;
}

#markdown h6 {
    font-size: 1rem;
    color: #191A23;
}

#markdown p,
#markdown li {
    font-size: 1.1rem;
    color: #191A23;
}

#markdown ul, #markdown ol {
    padding-left: 20px;
}

#markdown table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #191A23;
    border: 1px solid #191A23;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 0 0 #191A23;
}

#markdown th,
#markdown td {
    border: 1px solid #ccc;
    padding: 12px 15px;
    text-align: left;
    border-radius: 0;
}

#markdown th {
    background-color: #f2f2f2;
    color: #191A23;
    font-weight: bolder;
}

#markdown blockquote {
    background-color: #F3F3F3;
    padding: 20px;
    margin-bottom: 20px;
    color: #191A23;
    border: 1px solid #191A23;
    border-radius: 10px;
    box-shadow: 0 4px 0 0 #191A23;
}

#markdown a {
    color: #6A9500;
    text-decoration: none;
    transition: color 0.3s;
}

#markdown a:hover {
    color: #6A9500;
    text-decoration: underline;
}

#markdown code {
    background-color: #f2f2f2;
    color: #191A23;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 1.05rem;
}

#markdown img {
    width: 100%;
    max-height: 60vh;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    margin-top: 50px;
}

/* ========================
   Footer
   ======================== */
.footer {
    padding: 1.5rem 0;
    width: 100%;
    margin-top: auto;
    text-align: center;
    font-size: 0.95rem;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav li {
    display: inline;
}

.footer-nav a {
    color: #191A23;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: #191A23;
    text-decoration: underline;
    outline: none;
}

/* ========================
   404 Error Page
   ======================== */
.page-not-found {
    margin-top: 10rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Exo 2', sans-serif;
    text-align: center;
}

.page-not-found .error-code {
    font-size: 6rem;
    font-weight: bold;
    color: #d9534f;
}

.page-not-found .error-message {
    font-size: 1.25rem;
    color: #191A23;
}


/* ========================
   Responsive Design
   ======================== */
@media (max-width: 991px) {
    .navbar-collapse .dropdown-menu {
        display: none !important;
    }
}


@media (min-width: 992px) {
    .dropdown-item-mobile {
        display: none !important;
    }
}

@media (max-width: 576px) {
    #markdown {
        padding: 2rem 0 0 0;
    }

    #markdown h1 {
        font-size: 1.8rem;
    }

    #markdown h2 {
        font-size: 1.6rem;
    }

    #markdown h3 {
        font-size: 1.4rem;
    }

    #markdown h4 {
        font-size: 1.2rem;
    }

    #markdown h5 {
        font-size: 1.1rem;
    }

    #markdown h6 {
        font-size: 1rem;
    }

    #markdown p,
    #markdown li {
        font-size: 1rem;
    }
}
