@import url('https://cdn-uicons.flaticon.com/2.6.0/uicons-solid-straight/css/uicons-solid-straight.css');
@import url('https://cdn-uicons.flaticon.com/2.6.0/uicons-solid-rounded/css/uicons-solid-rounded.css');
@import url('https://cdn-uicons.flaticon.com/2.6.0/uicons-regular-rounded/css/uicons-regular-rounded.css');

* {
    font-style: normal;
    font-variant-numeric: lining-nums;
}

.fi {
    display: inline-flex;      /* <- Ensures it aligns inside flex parent */
    align-items: center;       /* <- Vertical centering within itself if needed */
    justify-content: center;
    color: #fff;
    font-size: 1.5em;
    line-height: 1;
}

.footer-content {
    background-color: rgb(0, 0, 0); 
    color: white;
    text-align: center;
    z-index: 100; 
    position: relative; 
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;              /* Add */
    justify-content: flex-end;  /* Align content to the right */
}

.footer-content ul {
    width: 100%;
    max-width: 500px;
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: flex; 
    gap: 0;
}


/* Header and Navigation */

.logo_wrapper {
    display: flex;
    height: 100%;
    justify-content: flex-end;
    align-items: flex-end;
}

.logo_schriftzug {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-shrink: 0;
    padding: 20px; padding-bottom: 0px; padding-left: 7px;
}

.logo_schriftzug h1 {
    margin-top: auto;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.logo-divider {
    display: inline-block;
    width: 100%;
    height: 3px;
    background: var(--main-accent-color);
    margin-bottom: 3px;
}

.wappen-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px; /* or any size you want */
    height: auto;
}

#menu {
    position: fixed;
    top: 0;
    color: var(--main-text-color);
    text-align: center;
    z-index: 200;
    left: 50%; /* Zentrierung trick */
    transform: translateX(-50%);
    height: 90px;
    display: flex;
    margin: 20px;
}

#menu-toggle {
    display: none;
}

#menu ul {
    padding: 0; 
    margin: 0; 
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 0; 
}

.footer-item,
.menu-item {
    flex: 1; 
    text-align: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    position: relative; 
}

.footer-item:last-child,
.menu-item:last-child {
    border-right: none; 
}

.footer-item a,
.menu-item a {
    color: var(--main-text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    white-space: nowrap;
}

.footer-item:hover,
.menu-item:hover {
    background-color: var(--hover-bg-color);
}

/* Social links placed inside the main menu (single li) */
#menu-social-links,
.menu-social-links {
    display: flex;
    gap: 0.5em;
    align-items: center;
    height: 100%; /* Ensure it matches the height of other menu items */
    justify-content: center;
}

.menu-social-links .social-link {
    color: inherit; /* Match the text color of other menu items */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* Match the height of the menu item */
    padding: 0 0.6em; /* Add horizontal padding for better click area */
    border-radius: 6px;
    transition: background-color 0.15s ease, transform 0.12s ease;
}

/* Ensure icon color follows the link color */
#menu-social-links .fi,
.menu-social-links .fi {
    color: inherit; /* Match the text color */
    font-size: 1.25em;
}

.menu-social-links .social-link:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Subtle hover effect */
    transform: scale(1.05); /* Slight zoom effect on hover */
}


.parallax-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

.parallax-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 150vh;
  background-image: url('../images/background.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  transform: translateY(0);
  will-change: transform;
  z-index: 1;

  filter: brightness(0.6);
  /* Make this container positioned so ::before works */
  position: relative;
}

.parallax-container::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0; top: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 50%,
        rgba(0,0,0,1) 100%
    );
    z-index: 1;
}

/* LQIP placeholder styling for images used as page header */
.parallax-image.lqip {
    filter: blur(10px) saturate(0.95);
    transform: translateZ(0);
    transition: filter 300ms linear;
}
.parallax-image.loaded {
    filter: none;
}

.main-image img {
    width: 100%;
    height: auto;
    max-height: 100vh; 
    display: block;
    object-fit: cover; 
}

.top-bar {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgb(0, 0, 0); 
    color: white;
    text-align: center;
    z-index: 100; 
}

/* Social links pinned to the right edge of the viewport on desktop */
.social-links {
    position: fixed;
    right: 20px;
    top: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 9999; /* ensure it's above header/menu */
}
.social-links .social-link {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.15s ease, transform 0.12s ease;
}
.social-links .social-link:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}
.social-links .fi {
    font-size: 1.25rem; /* uses .fi icon font */
    color: #fff;
}




/* Main Content */


#main-content {
    position: relative;
    padding-top: 2px;
    color: var(--main-text-color);
    background-color: var(--main-bg-color);
    z-index: 2;

    background-image: url('../images/bgcross.svg');
    background-repeat: repeat;
    background-size: 100px 100px;
    }

/* Add a new cross background layer behind the parallax background */
.bg-cross-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 150vh;
    z-index: 0;
    color: var(--main-text-color);
    background-color: var(--main-bg-color);
    background-image: url('../images/bgcross.svg');
    background-repeat: repeat;
    background-size: 200px 200px;
    pointer-events: none;
}




.sectionWrapper{
    padding-top: 140px;
    margin-top: -140px;
}

.section {
    padding: 20px;
    margin: 20px auto 0 auto; /* Add bottom margin for spacing */
    max-width: 1000px; 
    border-radius: 30px;
    font-weight: normal;
    background-color: var(--secondary-bg-color);
}

.section h2 {
    font-weight: bold;
    background-color: var(--tertiary-bg-color);
    padding: 20px 25px 10px 25px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin: -20px -20px 0 -20px;
    border-bottom: 1px solid var(--main-accent-color);
}

.section h3, h4 {
    color: var(--secondary-text-color);
    padding: 0 20px;
}

.section p {
    color: var(--tertiary-text-color);
    
    padding: 0 25px;
}

.section a {
    color: var(--main-highlight-text-color);
    text-decoration: none;
}

.section a:hover {
    text-decoration: underline;
}


.section table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    table-layout: fixed;
}


.section table th{
    text-align: left;
}

.section table th:first-child,
.section table td:first-child{
    text-align: center;
}

.section table th:first-child,
.section table td:first-child,
.section table th:last-child,
.section table td:last-child {
    width: 200px; /* Adjust as needed */
    padding: 0 5px;
}

.section table tr:nth-child(even) {
    background-color: var(--secondary-bg-color);
}

.section table tr:nth-child(odd) {
    background-color: var(--tertiary-bg-color);
}




.section.inactive { display: none; }
/* only the “active” one shows */
.section.active { display: block; }

/* container to capture swipes */
.carousel {
    margin: 0;
    padding: 0;
    border: none;
    position: relative;
    overflow: hidden;
}

/* navigation arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0);
    color: #fff;
    padding: 0.5em 0;
    cursor: pointer;
    user-select: none;
    font-size: 1.5em;
    width: 25%;
    height: 75%;
    text-align: center; /* Center horizontally */
    display: flex;
    align-items: center;    /* Vertical center */
    justify-content: center; /* Horizontal center */
}

.arrow.left  { 
    left: 0.5em;
}
.arrow.right { 
    right: 0.5em;
}


.pdf {
    padding: 10px 30px;
    background-color: var(--tertiary-bg-color);
    border-radius: 999px; /* large value to ensure semicircular sides */
}


.pdfimg {
    width:20px;
    height:20px;
    vertical-align:middle;
}

.email-list {
    line-height: 1.6;   
}
.email-item {
    margin-bottom: 8px;
}
.label {
    font-weight: bold;
}

ul.custom-list {
    list-style: none;
    padding-left: 1.5em;
}

ul.custom-list li {
    position: relative;
    margin-bottom: 0.5em;
    padding-left: 1em;
}

ul.custom-list li::before {
    content: ">"; /* You can also use "►", "▸", or "➤" depending on your preference */
    position: absolute;
    
    left: 0;
    color: var(--main-accent-color); /* Change color as needed */
}

.motto-img {
    height: 80vh;
    padding: 1em;
}

.mottos{
    display: flex; 
    align-items: center;
}

/* Motto Slider Styles */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-slider {
    display: flex;
    width: 100%;
    transition: transform 0.3s ease;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    
}

/* Fade transition for motto slides */
.motto-slide {
    height: 90vh;
    max-height: 1000px;
    opacity: 1;
    transition: opacity 0.1s;
}

.motto-slide.fade-out {
    opacity: 0;
}


.campaign-slide{
    height: 500px;
}

.motto-content {
    display: flex;
    align-items: center;
}

.motto-image {
    width: auto;
    max-width: 100%;
    height: 80vh;
    max-height: 900px;
    object-fit: contain;
}

.carousel-text {
    flex: 1;
    padding-left: 20px;
    padding-right: 50px;
    max-height: 500px;
    overflow-y: auto;
}

.carousel-title {
    font-weight: bold;
    background-color: var(--tertiary-bg-color);
    padding: 20px 25px 10px 25px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin: -20px -20px 0 -20px;
    border-bottom: 1px solid var(--main-accent-color);
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5em;
}

.carousel-prev.disabled, .carousel-next.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.mobile-events { display: none; }

.advert{
    width: 600px;
}