/* Global Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}
/* Global link styles */
a {
    color: #B52931; /* Default link color */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s; /* Smooth transition for color changes */
}

a:hover {
    color: #521600; /* Darker color on hover */
    text-decoration: underline; /* Underline on hover */
}

a:focus {
    outline: none;
}

a:active {
    color: #521600; /* Even darker color when active (clicked) */
}

/* Ensure specific link classes inherit the global styles */
.read-more, .previous-link {
    color: inherit; /* Inherit color from global link styles */
    text-decoration: inherit; /* Inherit text-decoration from global link styles */
    transition: inherit; /* Inherit transition from global link styles */
}

.read-more:hover, .previous-link:hover {
    color: inherit; /* Inherit hover color from global link styles */
    text-decoration: underline; /* Underline on hover */
}

/* Navbar Styles */
header {
    background: #F4F1EA;
    color: #521600;
    padding: 0.1em;  /* Reduce padding to make the navbar smaller */
    position: fixed;
    width: 100%;
    height: 10%;
    top: 0;
    left: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.5s; /* Smooth transition */
}

header.show {
    opacity: 1; /* Show when scrolled */
}

#navigation-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .navbar-brand .brand-logo {
    max-width: 150px; /* Set a maximum width for the logo */
    max-height: 75px; /* Set a maximum height for the logo */
    width: auto; /* Adjust width automatically */
    height: auto; /* Adjust height automatically */
    margin-left: 10px;
    margin-right: 90px; /* Space between logo and text */
}

header .navbar-cer {
    border: none;
}

header .navbar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;  /* Remove default list style */
    margin-left: 60px; /* Add margin to create space between Home link and logo */
    margin-right: 50px; /* Add margin to push logos to the far right */
    padding: 0;  /* Remove padding */
    overflow: hidden;  /* Hide overflow */
}

header .navbar-nav .nav-item {
    margin-left: 10px;  /* Reduce margin between nav items */
}

header .navbar-nav .nav-link {
    display: block;
    color: #000000;
    font-size: 16px;  /* Adjust font size to make text smaller */
    text-align: center;
    padding: 0.2em 0.5em;  /* Reduce padding within links */
    transition: color 0.3s;
    text-decoration: none;  /* Remove underline */
}

header .navbar-nav .nav-link:focus, 
header .navbar-nav .nav-link.active {
    color: #B52931;
    text-decoration: none;  /* Ensure no underline on focus or active */
}

header .logos-right {
    display: flex;
    align-items: center;
    margin-left: auto; /* Ensure logos are at the far right */
}

/* Navbar Styles */
.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 1px -1px gray;
}

.navbar-brand img {
    max-height: 50px;
}

.nav-logo {
    max-height: 50px;
    margin-left: 10px;
}

.navbar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0 10px;
}

.nav-link {
    color: #000;
    text-decoration: none;
    padding: 10px;
}

.nav-link:hover {
    color: #555;
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.collapse {
    display: flex;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .navbar-toggler {
        display: block;
    }

    .collapse {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        padding: 10px;
        position: absolute;
        top: 60px; /* Adjust based on the height of your navbar */
        left: 0;
        box-shadow: 0 2px 1px -1px gray;
        z-index: 1000; /* Ensure it is above other content */
    }

    .collapse.show {
        display: flex;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .nav-item {
        text-align: center;
        width: 100%;
    }

    .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid #ddd;
        width: 100%;
    }

    .logos-right {
        display: none;
    }
}

/* General Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background-color: #fff;
    box-shadow: 0 2px 1px -1px gray;
}

.navbar-brand img {
    max-height: 50px;
    margin-right: 0px;
}

.navbar-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-item {
    margin: 0 15px;
}

.navbar .logos-right img {
    max-height: 50px;
    margin-left: 20px;
}

.logos-right {
    display: flex;
    align-items: center;
}

.nav-link {
    color: #000;
    font-size: 16px;
    text-decoration: none;
}

.nav-link:hover {
    color: #555;
}

/* Global Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Navbar Styles */
.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 1px -1px gray;
}

.navbar-brand img {
    max-height: 50px;
}

.nav-logo {
    max-height: 50px;
    margin-left: 10px;
}

.navbar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0 10px;
}

.nav-link {
    color: #000;
    text-decoration: none;
    padding: 10px;
}

.nav-link:hover {
    color: #555;
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.collapse {
    display: flex;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .navbar-toggler {
        display: block;
    }

    .collapse {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        padding: 10px;
        position: absolute;
        top: 60px; /* Adjust based on the height of your navbar */
        left: 0;
        box-shadow: 0 2px 1px -1px gray;
        z-index: 1000; /* Ensure it is above other content */
    }

    .collapse.show {
        display: flex;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .nav-item {
        text-align: center;
        width: 100%;
    }

    .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid #ddd;
        width: 100%;
    }

    .logos-right {
        display: none;
    }
}

/* Splash Page Styles */
.splash {
    background: url('/assets/images/splash-image.png') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: white;
    text-align: left;
    padding: 20px;
}

.splash-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 70%; 
    max-width: 1200px;
    margin: 0 auto; /* Center the splash content */
}

.splash-left {
    flex: 1;
}

.splash-right {
    flex: 3;
    text-align: left; /* Align text to the left */
}

.splash-logo {
    width: 350px;
    height: auto;
}

.splash h1 {
    font-size: 2em; /* Adjust font size if necessary */
    margin: 0 0 10px 0;
    line-height: 1.2; /* Adjust line height for better readability */
}

.splash p {
    font-size: 1.2em;
    line-height: 1.4; /* Adjust line height for better readability */
}

.scroll-down {
    display: block;
    margin: 20px auto;
    font-size: 24px;
    color: white;
    text-decoration: none;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Page Content Styles */
.content-wrapper {
    margin-top: 80px; /* Adjust based on navbar height */
    padding: 2em 1em;
    background-color: #f9f9f9;
}

.page-header {
    background-color: #B70921; /* Red as in HD Siegel Hintergrund background similar to example */
    color: #F2EEE4; /* as in HD Siegel Zusatz */
    padding: 1em 0.5em;
    text-align: center;
}

.page-header h1 {
    margin: 0;
    font-size: 2em;
}

.page-content {
    max-width: 800px;
    margin: 2em auto;
    padding: 1em;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.page-content p {
    margin-bottom: 1em;
    line-height: 1.6;
}

/* Footer Styles */
footer {
    background: #521600;
    color: #F4F1EA;
    text-align: center;
    padding: 0.5em 0;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-social {
    margin-top: 10px;
}

.footer-social a {
    color: #fff; /* Ensure the icons have a visible color */
    margin: 0 10px;
    font-size: 20px;
    display: inline-block;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #ccc; /* Change color on hover for visibility */
}


/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1em;
}

/* Table Design */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #f5f5f5;
}

/* Contact Form Design */
form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

input, textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Team Section */
.team-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  
  .team-member {
    width: 250px;
    text-align: center;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
  }
  
  .team-member:hover {
    transform: translateY(-5px);
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .team-member a {
    color: #0073e6;
    text-decoration: none;
    font-weight: bold;
  }
  

/* General reset for focus outlines */
* {
    outline: none;
}

.arrow-down {
    position: relative;
    display: inline-block;
}

.arrow-down:focus {
    outline: none;
    border: none;
}

.arrow-down:focus::before,
.arrow-down:focus::after {
    content: none;
}
/* Post Grid */
.post-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
    width: calc(30% - 14px); /* Change to 30% to fit 3 items in a row */
    margin: 8px;
}

.post-card img {
    width: 100%;
    height: 250px; /* Adjust the height to show more of the image */        
    object-fit: cover; /* Ensure the image covers the area without distortion */
   margin-bottom: 10px;
}

.post-info {
    padding: 16px;
}

.post-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.post-info .post-date {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 10px;
}

.read-more {
    color: #B52931;
    text-decoration: none;
    display: block;
    margin-top: 10px;
}

.post-card:hover {
    transform: translateY(-8px);
}

@media (max-width: 1024px) {
    .post-card {
        width: calc(30% - 14px); /* 3 items in a row for medium screens */
    }
}

@media (max-width: 768px) {
    .post-card {
        width: calc(50% - 12px); /* 2 items in a row for smaller screens */
    }
}

@media (max-width: 480px) {
    .post-card {
        width: 100%; /* 1 item in a row for mobile screens */
    }
}
/* Post Page Styles */
.post-page {
    max-width: 800px;
    margin: 2em auto;
    padding: 1em;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.post-header {
    position: relative;
    text-align: center;
}

.post-header img.hero-image {
    max-width: 50%;
    height: auto;
    margin-bottom: 20px;
}

.post-title {
    font-size: 2em;
    margin: 10px 0;
}

.post-date {
    font-size: 1em;
    color: #888;
}

.post-content {
    padding: 20px;
    font-size: 1.1em;
    line-height: 1.6;
}

.post-footer {
    padding: 20px;
    text-align: center;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
}

.post-navigation a {
    color: #007BFF;
    text-decoration: none;
}
/* Post Grid */
.post-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
    width: calc(30% - 14px); /* Change to 30% to fit 3 items in a row */
    margin: 8px;
    display: flex;
    flex-direction: column;
    height: 450px; /* Set a fixed height for post cards */
}

.post-card img {
    width: 100%;
    height: 200px; /* Adjust the height to show more of the image */
    object-fit: cover; /* Ensure the image covers the area without distortion */
    margin-bottom: 10px;
}

.post-info {
    padding: 16px;
    line-height: 1.2; /* Adjust line-height for single line spacing */
    flex: 1; /* Allow post info to take up remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space out the content evenly */
}

.post-info h3 {
    margin: 0 0 20px 0;
    font-size: 1.1em;
    line-height: 1.2; /* Adjust line-height for single line spacing */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Add ellipsis for overflow text */
    display: -webkit-box;
    -webkit-line-clamp: 8; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
}

.post-info .post-date {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 10px;
    line-height: 1.2; /* Adjust line-height for single line spacing */
}

.previous-activities {
    text-align: center;
    margin-top: 20px;
}

.previous-activities .previous-link {
    color: #B52931;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s;
    
}
a:hover {
    color: #521600
}

a:focus {
    outline: none;
}

a:active {
    color: #521600; /* Even darker color when active (clicked) */
}

@media (max-width: 1024px) {
    .post-card {
        width: calc(33.333% - 16px); /* 3 items in a row for medium screens */
    }
}

@media (max-width: 768px) {
    .post-card {
        width: calc(50% - 16px); /* 2 items in a row for smaller screens */
    }
}

@media (max-width: 480px) {
    .post-card {
        width: 100%; /* 1 item in a row for mobile screens */
    }
}


/* General Styles for Images within Post Content */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

/* Post Footer Styles */
.post-footer {
    padding: 20px;
    text-align: center;
    background: none;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
}

.post-navigation a {
    color: #B52931; /* Match link color to the rest of the website */
    text-decoration: none; /* Remove underline */
    font-size: 1em;
}

.post-navigation a:hover {
    color: #521600; /* Darker color on hover */
    text-decoration: underline; /* Underline on hover */
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.pagination a {
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px 20px;
    text-decoration: none;
    color: #007BFF;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: #f0f0f0;
}

/* Adjustments for Post Images */
.post-page .post-header img.hero-image {
    max-width: 50%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px; /* Optional: to match the overall design aesthetic */
}

/* Post Navigation Styles */
.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    background: none; /* Remove dark box background */
}

.post-navigation a {
    color: #B52931; /* Match link color to the rest of the website */
    text-decoration: none; /* Remove underline */
    font-size: 1em;
}

.post-navigation a:hover {
    color: #521600; /* Darker color on hover */
    text-decoration: underline; /* Underline on hover */
}

/* Adjustments for Post Images */
.post-page .post-header img.hero-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border: 2px solid red; /* Added for debugging */
}

/* General Styles for Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* Center the images if necessary */
}

/* Styles for the News & Activities banner */
.post-banner {
    background-color: #B70921; /* Red background color */
    color: #F2EEE4; /* Text color */
    padding: 1em 0.5em;
    text-align: center;
}

.post-banner .post-title {
    margin: 0;
    font-size: 2em;
}

/* Styles for blockquotes */
blockquote {
    margin: 20px 0;
    padding: 10px 20px;
    border-left: 5px solid #B70921; /* Grey left border */
    font-style: italic;
}

blockquote p {
    margin: 0; /* Remove default margin */
}

/* Home Page Footer */
body.home footer {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

body.home .footer-social {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

body.home .footer-social a img {
    width: 24px;
    margin: 0 10px

    
/* Carousel */  
    .carousel {
        position: relative;
        max-width: 150px;
        margin: auto;
        text-align: center;
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }
} 
      .carousel-inner {
        overflow: hidden;
      }
      
      .carousel-inner img {
        width: 40%;
        height: auto;
      }

      .image-description {
        margin-top: 10px;
        font-size: 1rem;
        text-align: justify;
        max-width: 50px;
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }
      
      .carousel-control {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(0, 0, 0, 0.5);
        border: none;
        color: white;
        padding: 10px;
        cursor: pointer;
        z-index: 1;
      }
      
      .prev {
        left: 10px;
      }
      
      .next {
        right: 10px;
      }

 
                 