/* montserrat-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/montserrat-v31-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
    url('../fonts/montserrat-v31-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* montserrat-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/montserrat-v31-latin-600.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
    url('../fonts/montserrat-v31-latin-600.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* montserrat-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/montserrat-v31-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
    url('../fonts/montserrat-v31-latin-700.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* open-sans-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/open-sans-v44-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
    url('../fonts/open-sans-v44-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* open-sans-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/open-sans-v44-latin-600.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
    url('../fonts/open-sans-v44-latin-600.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

:root {
    --csu-blue: rgb(0, 128, 200);
    --csu-green: rgb(162, 197, 22);
    --csu-light-blue: #e6f0fa;
    --csu-dark: #212529;
    --csu-grey: #f8f9fa;
    --primary-font: 'Montserrat', sans-serif;
    --secondary-font: 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--secondary-font);
    color: var(--csu-dark);
    background-color: var(--csu-grey);
    line-height: 1.6;
    padding-top: 40px; /* Space for the fixed top bar */
}

h1, h2, h3, h4, h5, .navbar-brand, .nav-link {
    font-family: var(--primary-font);
    font-weight: 700;
}

.hero {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 128, 200, 0.7);
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.bg-csu-blue {
    background-color: var(--csu-blue) !important;
}

.text-csu-blue {
    color: var(--csu-blue) !important;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-dark .navbar-nav .nav-item {
    position: relative; /* Needed for ::before pseudo-element positioning */
}

.navbar-dark .navbar-nav .nav-link {
    position: relative; /* Crucial for positioning the ::before pseudo-element */
    color: rgba(255,255,255,0.85) !important;
    padding: 1rem 1rem 1rem 1.5rem; /* Increased left padding for the slash */
    font-size: 0.9rem;
    /* Remove border-bottom */
    transition: color 0.3s;
}

.navbar-dark .navbar-nav .nav-link::before {
    content: '/';
    position: absolute;
    left: 0.75rem; /* Position the slash within the new padding */
    top: 50%;
    transform: translateY(-50%);
    font-weight: 900; /* Thicker slash */
    color: rgba(255,255,255,0.5); /* Default slash color */
    opacity: 1; /* Always visible */
    transition: opacity 0.3s, color 0.3s;
}

.navbar-dark .navbar-nav .nav-item:first-child .nav-link::before {
    content: none; /* No slash before the first item */
}

.navbar-dark .navbar-nav .nav-link:hover::before {
    color: var(--csu-green); /* CSU Green slash on hover */
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #fff !important;
}

.navbar-dark .navbar-nav .nav-link.active::before {
    color: var(--csu-green); /* CSU Green slash for active item */
}


.card {
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-title {
    font-weight: 700;
}

.btn-csu {
    background-color: var(--csu-blue);
    color: white;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 25px;
    transition: background-color 0.3s;
}

.btn-csu:hover {
    background-color: #0066a0; /* Darker shade of the new blue */
    color: white;
}

.feature-tile {
    background-color: white;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 4px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.feature-tile h3 {
    color: var(--csu-blue);
    font-weight: 700;
}

.feature-tile .badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 700;
}

/* Timeline for Termine */
.timeline {
    position: relative;
    padding-left: 120px; /* Space for the date */
    list-style: none;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 120px; /* Align with the new padding */
    width: 4px;
    background: var(--csu-light-blue);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 40px; /* Space between icon and content */
}

.timeline-date {
    position: absolute;
    left: -110px; /* Position date to the left of the timeline */
    top: 5px;
    width: 100px;
    text-align: right;
    background: transparent;
    color: var(--csu-dark);
    padding: 5px 10px;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 700;
}

.timeline-content {
    position: relative;
    background: white;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.timeline-icon {
    position: absolute;
    left: -22px; /* Center the icon on the timeline line */
    top: 15px;
    width: 44px;
    height: 44px;
    background: white;
    border: 4px solid var(--csu-blue);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    font-size: 1.2rem;
    color: var(--csu-blue);
    z-index: 10;
}

/* Styles for Markdown Content */
.content h2, .content h3, .content h4 {
    color: var(--csu-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content ul, .content ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.content blockquote {
    border-left: 4px solid var(--csu-light-blue);
    padding-left: 1rem;
    margin-left: 0;
    font-style: italic;
    color: #6c757d;
}

/* Candidate Card Styles */
.candidate-card {
    position: relative;
    overflow: visible; /* Allow the badge to pop out */
}

/* Default Listenplatz Badge (for square images) */
.listenplatz-badge {
    position: absolute;
    top: -25px;
    right: -15px;
    background-color: var(--csu-green);
    color: white;
    font-weight: 700;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 4px solid white;
    z-index: 10;
}

/* Specific positioning for Listenplatz Badge on round images */
.candidate-image-wrapper.round-image .listenplatz-badge {
    top: -10px;
    right: -10px;
    transform: none;
    width: 80px;
    height: 80px;
    font-size: 2rem;
    border: 3px solid white;
}

/* Jump Navigation */
.jump-nav {
    position: sticky;
    top: 20px; /* Distance from top */
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.jump-nav-link {
    position: relative;
    color: var(--csu-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding-left: 15px;
    transition: color 0.3s;
}

.jump-nav-link::before {
    content: '/';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 900;
    color: #ccc;
    transition: color 0.3s;
}

.jump-nav-link:first-child::before {
    content: none;
    padding-left: 0;
}

.jump-nav-link:first-child {
    padding-left: 0;
}

.jump-nav-link:hover {
    color: var(--csu-blue);
}

.jump-nav-link:hover::before {
    color: var(--csu-green);
}

/* Election Top Bar */
.election-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--csu-green);
    color: white;
    text-align: center;
    padding: 8px 0;
    font-weight: 700;
    z-index: 2000; /* Highest z-index */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.election-date {
    background-color: white;
    color: var(--csu-green);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.election-text {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Kommunalwahl Störer (Startseite) */
.kommunalwahl-stoerer {
    position: fixed; /* Fixed position on screen */
    bottom: 20px; /* Adjust as needed */
    right: 20px; /* Adjust as needed */
    background-color: var(--csu-green);
    color: white;
    border-radius: 50%; /* Make it circular */
    width: 120px; /* Size of the circle */
    height: 120px; /* Size of the circle */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem; /* Adjusted font size */
    line-height: 1.1; /* Adjusted line height */
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    z-index: 1000; /* Ensure it's above other content */
}

.kommunalwahl-stoerer:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: white; /* Keep text white on hover */
}

.kommunalwahl-stoerer strong {
    font-size: 1rem; /* Adjusted font size */
    display: block;
    margin-top: 2px; /* Adjusted margin */
}
