/* Basic CSS Reset and Variables */
:root {
    --primary-green-tanne: #005538;
    --primary-green-klee: #008939;
    --primary-green-grashalm: #60ad5e;
    --accent-green: #8abd24;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6a6a6a;
    --sand: #f5f1e9;
    --background-white: #ffffff;
    --background-light: #f8f9fa;
    --background-green-light: #f1f8f0;
    --green-gradient: radial-gradient(circle, #76bd82, #3a814a);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --yellow-sonne: #FFF17A;
    --blue-himmel: #0ba1dd;
    --magenta: #e6007e;
}

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

/* Prevent horizontal overflow for all elements */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

html {
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    width: 100%;
    max-width: 100vw;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

html::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    min-height: 100vh;
    background: var(--green-gradient);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    background-color: transparent;
    box-sizing: border-box;
}

body {
    font-family: 'PT Sans', Arial, sans-serif;
    color: var(--sand);
    line-height: 1.6;
    min-height: 100vh;
    background: transparent;
    position: relative;
    z-index: 0;
    overflow-y: visible;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

/* Font Face Declarations */
@font-face {
    font-family: 'GrueneType';
    src: url('../../fonts/GrueneType/GrueneType.woff2') format('woff2'),
         url('../../fonts/GrueneType/GrueneType.woff') format('woff'),
         url('../../fonts/GrueneType/GrueneType.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background-color: var(--primary-green-tanne);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    isolation: isolate;
    box-sizing: border-box;
    pointer-events: auto;
}

.header-container {
    width: 100%;
    max-width: min(1400px, 100vw);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    isolation: isolate;
    pointer-events: auto;
}

.header-logo {
    flex-shrink: 0;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.logo-link {
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    position: relative;
    z-index: 2;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--sand);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--sand);
}

.nav-link-home {
    padding: 0.5rem;
    font-size: 1.1rem;
    text-transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link-home i {
    display: block;
    color: var(--sand);
}

/* Desktop Menu Toggle */
.desktop-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin: 0;
    z-index: 1002;
    position: relative;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    width: auto;
    height: auto;
}

.nav-more-menu .desktop-menu-toggle {
    display: none;
}

.desktop-menu-toggle span {
    width: 20px;
    height: 2.5px;
    background-color: var(--sand);
    transition: var(--transition);
    border-radius: 2px;
    display: block;
    flex-shrink: 0;
}

.desktop-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.desktop-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.desktop-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.desktop-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.desktop-menu-toggle.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* More Menu Dropdown */
.nav-more-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-more-menu .desktop-menu-toggle {
    display: none;
    margin: 0;
    padding: 0.5rem;
}

.nav-more-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: var(--primary-green-tanne);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    flex-direction: column;
    gap: 0;
}

.nav-more-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-more-dropdown li {
    margin: 0;
}

.nav-more-dropdown .nav-link {
    padding: 0.75rem 1.5rem;
    text-align: left;
    border-radius: 0;
}

.nav-more-dropdown .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.header-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    position: relative;
    z-index: 2;
}

.language-switcher-container {
    position: relative;
    flex-shrink: 0;
    max-width: 100%;
    z-index: 1003;
}

.language-switch-btn {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--sand);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.language-switch-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.language-switch-btn[aria-expanded="true"] .language-arrow {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: var(--primary-green-tanne);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 200px;
    max-width: 300px;
    max-height: 400px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0s linear 0.3s, transform 0.3s ease;
    z-index: 1003;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: none;
}

.language-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 1003;
    transition: opacity 0.3s ease, visibility 0s linear 0s, transform 0.3s ease;
    pointer-events: auto;
}

.language-menu li {
    margin: 0;
}

/* Language Search Container */
.language-search-container {
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.language-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: var(--sand);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    box-sizing: border-box;
}

.language-search-input::placeholder {
    color: rgba(245, 241, 233, 0.6);
}

.language-search-input:focus {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Language List Wrapper */
.language-list-wrapper {
    padding: 0;
    margin: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Language List Container - Scrollable */
.language-list-container {
    list-style: none;
    padding: 0.25rem 0;
    margin: 0;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
}

/* Custom scrollbar for language list */
.language-list-container::-webkit-scrollbar {
    width: 6px;
}

.language-list-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.language-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.language-list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.language-option {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--sand);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.language-option:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.language-option.active {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin: 0;
    z-index: 1002;
    position: relative;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}


.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--sand);
    transition: var(--transition);
    border-radius: 2px;
    display: block;
    flex-shrink: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Content */
.main-content {
    width: 100%;
    max-width: 100vw;
    background: transparent;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 0;
    isolation: isolate;
    overflow-x: hidden;
    box-sizing: border-box;
    touch-action: pan-y pinch-zoom;
}

@media (min-width: 1024px) {
    /* Desktop Navigation */
    .mobile-menu-toggle {
        display: none;
    }
    
    .desktop-menu-toggle {
        display: none;
    }
    
    .nav-more-menu .desktop-menu-toggle {
        display: flex;
    }
    
    .nav-more-menu {
        display: flex;
    }
    
    .nav-link-visible {
        display: block;
    }
    
    /* Hide mobile-only items on desktop */
    .nav-item-mobile {
        display: none !important;
    }
    
    .header-nav {
        justify-content: flex-end;
        gap: 0.5rem;
    }
    
    .nav-menu {
        gap: 0.25rem;
        align-items: center;
    }
    
    .nav-more-dropdown {
        right: 0;
    }
    
    .main-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        row-gap: 40px;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 2rem;
        align-items: start;
        overflow: visible;
    }
    
    /* Row 1: Start section (full width) */
    .section-start {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    
    /* Row 2: Achievements and Plans side by side */
    .section-achievements {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
    }
    
    .section-plans {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
    }
    
    /* Row 3: Stand For and Involve You side by side */
    .section-stand-for {
        grid-column: 1;
        grid-row: 3;
        align-self: start;
    }
    
    .section-involve-you {
        grid-column: 2;
        grid-row: 3;
        align-self: start;
    }
    
    /* Row 4+: Full width sections */
    .section-candidates {
        grid-column: 1 / -1;
        grid-row: 4;
    }
    
    .section-reach-us {
        grid-column: 1 / -1;
        grid-row: 5;
    }
    
    /* Row 6: Vote and Foreign Residents side by side */
    .section-vote {
        grid-column: 1;
        grid-row: 6;
        align-self: start;
    }
    
    .section-foreign-residents {
        grid-column: 2;
        grid-row: 6;
        align-self: start;
    }
}

/* Sections */
.section {
    /* min-height: 100vh; */
    padding: 3rem 2rem;
    /* padding-top: calc(70px + 3rem); */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    z-index: 0;
    background: transparent;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    margin-bottom: 40px;
    isolation: isolate;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.section:last-child {
    margin-bottom: 0;
}

@media (min-width: 1024px) {
    .section {
        margin-bottom: 0; /* Grid row-gap handles spacing on desktop */
    }
}

@media (min-width: 1024px) {
    .section-achievements,
    .section-plans,
    .section-stand-for,
    .section-involve-you,
    .section-vote,
    .section-foreign-residents {
        min-height: auto;
        align-items: flex-start;
    }
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
    z-index: 0;
}

/* First section should be visible immediately */
.section-start {
    opacity: 1;
    transform: translateY(0);
    z-index: 0;
}

.section-content {
    width: 100%;
    max-width: 1200px;
    color: var(--sand);
    background: transparent;
    opacity: 1;
    visibility: visible;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Headings - Apply GrueneType font */
h1, h2, h3 {
    font-family: 'GrueneType', Arial, sans-serif;
}

/* Text color overrides for better readability */
.section-content h1,
.section-content h2,
.section-content h3,
.section-content h4,
.section-content h5,
.section-content h6 {
    color: var(--sand);
}

/* Only apply sand color to text in sections without white backgrounds */
.section-start .section-content p,
.section-start .section-content li,
.section-start .section-content span {
    color: var(--sand);
}

/* Skewed Headline Styles */
.skewed-headline {
    display: inline-block;
    position: relative;
    padding: 0.4rem 1rem;
    font-family: 'GrueneType', Arial, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--primary-green-tanne);
    white-space: nowrap;
    transform: skew(-12deg);
    margin: 1.5rem 0;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Larger skewed headline for slogan */
.slogan.skewed-headline {
    padding: 0.4rem 1rem;
    font-size: 2rem;
    transform: skew(-12deg);
}

/* Counter-skew the text content to keep it readable */
.skewed-headline span {
    display: inline-block;
    transform: skew(12deg);
    color: var(--primary-green-tanne);
}

/* Yellow background variant */
.skewed-headline--yellow {
    background-color: var(--yellow-sonne);
}

/* Magenta background variant */
.skewed-headline--magenta {
    background-color: var(--magenta);
}

/* Blue background variant */
.skewed-headline--blue {
    background-color: var(--blue-himmel);
}

/* Sticky Footer */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 40px;
    background-color: var(--primary-green-tanne);
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
    box-sizing: border-box;
    overflow: hidden;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.footer-link {
    color: var(--sand);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-link:hover {
    color: var(--background-white);
    text-decoration: underline;
}

.footer-icon {
    font-size: 1.2rem;
    padding: 0.25rem 0.75rem;
}

.footer-icon:hover {
    text-decoration: none;
    transform: scale(1.1);
}

.footer-icon i {
    display: block;
}

/* Impressum Section */
.section-impressum {
    padding: 3rem 2rem;
    margin-bottom: 40px; /* Space for sticky footer */
    scroll-margin-top: 90px; /* Account for sticky header when scrolling to this section */
}

.impressum-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    color: var(--text-dark);
    max-width: 1200px;
    margin: 0 auto;
}

.impressum-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-medium);
    text-align: center;
    margin: 0;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 3rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--sand);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition);
    opacity: 0.8;
}

.scroll-to-top:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px);
}

/* Section-specific Styles */

/* Start Section */
.section-start {
    text-align: center;
    padding: 2rem;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

/* Vote Storer Overlay */
.vote-storer {
    position: absolute;
    top: 15%;
    left: 5%;
    z-index: 10;
    transform: rotate(-8deg);
    animation: storerPulse 3s ease-in-out infinite;
    transform-origin: center center;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.vote-storer:hover {
    transform: rotate(-8deg) scale(1.05);
}

.vote-storer-headline {
    font-size: 2.5rem;
    transform: skew(-12deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform-origin: center center;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vote-storer-headline span {
    transform: skew(12deg);
    color: var(--sand);
}

.vote-storer-headline .storer-icon {
    transform: skew(12deg);
    font-size: 1.2rem;
    color: var(--sand);
    opacity: 0.9;
}

@keyframes storerPulse {
    0%, 100% {
        transform: rotate(-8deg) scale(1);
    }
    50% {
        transform: rotate(-8deg) scale(1.05);
    }
}

/* Foreign Voters Storer Overlay */
.foreign-voters-storer {
    position: absolute;
    top: calc(15% + 4.5rem + 5px);
    left: calc(5% + 20px);
    z-index: 10;
    transform: rotate(-8deg);
    animation: storerPulse 3s ease-in-out infinite;
    transform-origin: center center;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.foreign-voters-storer:hover {
    transform: rotate(-8deg) scale(1.05);
}

.foreign-voters-storer-headline {
    font-size: 2rem;
    transform: skew(-12deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform-origin: center center;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.foreign-voters-storer-headline span {
    transform: skew(12deg);
    color: var(--sand);
}

.foreign-voters-storer-headline .storer-icon {
    transform: skew(12deg);
    font-size: 1rem;
    color: var(--sand);
    opacity: 0.9;
}

.location-name {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--sand);
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.map-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    width: 60%;
    height: auto;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

.main-headline {
    font-size: 4rem;
    font-weight: bold;
    margin: 0.5rem 0;
    color: var(--sand);
    text-transform: uppercase;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}


.slogan {
    margin-top: 1rem;
    display: inline-block;
    font-size: 1.8rem;
    padding: 1rem 3rem;
    position: relative;
    z-index: 2;
}

.slogan span {
    color: var(--primary-green-tanne) !important;
}

/* Achievements and Plans Sections - Side by side on desktop */
.section-achievements,
.section-plans,
.section-vote,
.section-foreign-residents {
    min-height: auto;
}

.section-achievements .section-content,
.section-plans .section-content,
.section-vote .section-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto;
}

.section-foreign-residents .section-content {
    background-color: var(--magenta) !important;
    background: var(--magenta) !important;
    background-image: none !important;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    color: var(--sand);
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    /* All two-column sections have same styling */
    .section-achievements,
    .section-plans,
    .section-stand-for,
    .section-involve-you,
    .section-vote,
    .section-foreign-residents {
        padding: 2rem 1rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Two-column sections: content should be 100% of column width */
    .section-achievements .section-content,
    .section-plans .section-content,
    .section-stand-for .section-content,
    .section-involve-you .section-content,
    .section-vote .section-content,
    .section-foreign-residents .section-content {
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    
    /* Full-width sections: content should match combined width of two columns */
    /* Grid: 1400px max-width - 4rem padding = 1336px available */
    /* Section padding: 2rem each side = 4rem total = 64px */
    /* Content width: 1336px - 64px = 1272px */
    .section-candidates,
    .section-reach-us {
        padding: 3rem 2rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .section-candidates .section-content,
    .section-reach-us .section-content {
        max-width: 100%;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    
    /* Start section is special - full viewport, no grid constraints */
    .section-start {
        padding: 2rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .section-start .section-content {
        max-width: 100%;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
}

.achievements-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.achievements-list li {
    padding: 1rem 0 1rem 2rem;
    position: relative;
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.achievements-list li:last-child {
    border-bottom: none;
}

.achievements-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green-klee);
    font-weight: bold;
    font-size: 1.3rem;
}

/* Plans Section */
.section-plans .section-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    color: var(--text-dark);
}

.intro-text {
    font-size: 1.2rem;
    margin: 2rem 0 2.5rem 0;
    color: var(--text-dark);
    line-height: 1.6;
    text-align: center;
}

/* Contact Cards Layout */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--primary-green-klee);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-dark);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-green-tanne);
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    color: var(--primary-green-klee);
    transform: scale(1.1);
}

.contact-card-text {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    word-break: break-word;
}

.subsection {
    margin: 2rem 0;
    background: rgba(241, 248, 240, 0.5);
    border-radius: 8px;
    border-left: 4px solid var(--primary-green-klee);
    overflow: hidden;
}

.subsection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none;
}

.subsection-header:hover {
    background-color: rgba(241, 248, 240, 0.8);
}

.subsection-title {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-green-tanne);
    font-weight: bold;
    flex: 1;
}

/* Fix H3 contrast in plans section */
.section-plans .subsection-title {
    color: var(--primary-green-tanne);
}

.subsection-toggle {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-green-tanne);
    line-height: 1;
    transition: transform 0.3s ease;
    margin-left: 1rem;
    min-width: 30px;
    text-align: center;
}

.subsection-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 2rem 1.5rem 2rem;
}

.subsection-content.collapsed {
    max-height: 0;
    padding: 0 2rem;
}

.subsection-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subsection-list li {
    padding: 1rem 0 1rem 2rem;
    position: relative;
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
}

.subsection-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-green-klee);
    font-weight: bold;
    font-size: 1.5rem;
}

/* Stand For and Involve You Sections - Side by side on desktop */
.section-stand-for,
.section-involve-you {
    min-height: auto;
}

.section-stand-for .section-content,
.section-involve-you .section-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto;
}

.paragraph {
    margin: 1.5rem 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Candidates Section */
.section-candidates .section-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    color: var(--text-dark);
}

.candidates-with-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.candidate-card {
    background: var(--primary-green-tanne);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.candidate-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--primary-green-klee);
}

.candidate-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    border: 3px solid var(--primary-green-klee);
}

.candidate-name {
    font-size: 2.3rem;
    margin: 0.5rem 0;
    color: var(--sand);
    font-weight: bold;
}

.candidate-job,
.candidate-location {
    font-size: 0.95rem;
    color: var(--sand);
    margin: 0.3rem 0;
    opacity: 0.9;
}

.candidate-separator {
    border: none;
    border-top: 1px solid rgba(245, 241, 233, 0.3);
    margin: 1.5rem auto 1rem auto;
    width: 80%;
}

.candidate-contact-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.candidate-contact-icon {
    color: var(--sand);
    font-size: 1.5rem;
    transition: var(--transition);
    opacity: 0.8;
    text-decoration: none;
}

.candidate-contact-icon:hover {
    opacity: 1;
    transform: scale(1.2);
    color: var(--background-white);
}

.candidate-interests {
    font-size: 0.9rem;
    color: var(--sand);
    margin-top: 1rem;
    font-style: italic;
    opacity: 0.85;
}

.candidates-names-only {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--primary-green-klee);
}

.candidates-names-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.candidates-names-list li {
    padding: 0.8rem;
    background: rgba(241, 248, 240, 0.5);
    border-radius: 4px;
    color: var(--text-dark);
    text-align: center;
}

/* Involve You Section - Text and Image Layout */
.section-involve-you .section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.group-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
}

/* Reach Us Section */
.section-reach-us .section-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    color: var(--text-dark);
}


/* Vote Section */
.section-vote .section-headline {
    margin-bottom: 1.5rem;
}

.section-vote .paragraph {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.section-foreign-residents .section-headline {
    margin-bottom: 1.5rem;
}

.section-foreign-residents .section-text {
    color: var(--sand);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .section-involve-you .section-content {
        grid-template-columns: 1fr;
    }
    
    .candidates-with-details {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    html::before {
        background-size: 100% 100%;
    }
    
    /* Language Menu Mobile Styles */
    .language-menu {
        min-width: 250px;
        max-width: calc(100vw - 2rem);
        max-height: 60vh;
        right: 0.75rem;
        left: auto;
        position: fixed;
        top: calc(55px + 0.5rem);
        z-index: 1003;
        pointer-events: auto;
    }
    
    .language-menu.active {
        z-index: 1003;
        pointer-events: auto;
    }
    
    .language-list-container {
        max-height: calc(60vh - 60px); /* Account for search box height */
    }
    
    .language-search-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .section {
        padding: 2rem 1rem;
        /* padding-top: calc(60px + 2rem); */
        min-height: auto;
        background: transparent;
        margin-bottom: 40px;
    }
    
    .section:last-child {
        margin-bottom: 0;
    }
    
    .section-content {
        background: transparent;
    }
    
    .section-start {
        padding: 0.5rem 1rem;
        min-height: 100vh;
        max-height: 100vh;
        align-items: flex-start;
        padding-top: calc(55px + 5rem + 120px); /* Header height + vote storer height + margin */
    }
    
    .location-name {
        font-size: 2.5rem;
        margin-bottom: 0.3rem;
        margin-top: 0;
    }
    
    .main-headline {
        font-size: 2.2rem;
        margin: 0.3rem 0;
    }
    
    .map-image {
        max-width: 300px;
        width: 70%;
        opacity: 0.25;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .slogan {
        margin-top: 0.5rem;
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }
    
    .vote-storer {
        top: 10%;
        left: 2%;
        transform: rotate(-6deg);
    }
    
    .vote-storer:hover {
        transform: rotate(-6deg) scale(1.05);
    }
    
    .vote-storer-headline {
        font-size: 1.8rem;
        transform: skew(-12deg);
    }
    
    .vote-storer-headline span {
        transform: skew(12deg);
        color: var(--sand);
    }
    
    .vote-storer-headline .storer-icon {
        font-size: 0.9rem;
    }
    
    @keyframes storerPulse {
        0%, 100% {
            transform: rotate(-6deg) scale(1);
        }
        50% {
            transform: rotate(-6deg) scale(1.05);
        }
    }
    
    .foreign-voters-storer {
        top: calc(10% + 3.5rem + 5px);
        left: calc(2% + 20px);
        transform: rotate(-6deg);
    }
    
    .foreign-voters-storer:hover {
        transform: rotate(-6deg) scale(1.05);
    }
    
    .foreign-voters-storer-headline {
        font-size: 1.4rem;
        transform: skew(-12deg);
    }
    
    .foreign-voters-storer-headline span {
        transform: skew(12deg);
        color: var(--sand);
    }
    
    .foreign-voters-storer-headline .storer-icon {
        font-size: 0.8rem;
    }
    
    .slogan.skewed-headline {
        padding: 0.4rem 1rem;
        font-size: 1.4rem;
    }
    
    /* Stack achievements and plans on mobile */
    .section-achievements,
    .section-plans,
    .section-stand-for,
    .section-involve-you,
    .section-vote,
    .section-foreign-residents {
        flex-direction: column;
    }
    
    .section-stand-for .section-content,
    .section-involve-you .section-content {
        padding: 2rem 1.5rem;
    }
    
    .section-achievements .section-content,
    .section-plans .section-content,
    .section-stand-for .section-content,
    .section-candidates .section-content,
    .section-reach-us .section-content,
    .section-vote .section-content,
    .section-foreign-residents .section-content {
        padding: 2rem 1.5rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-card {
        padding: 1.25rem;
    }
    
    .contact-icon {
        font-size: 2rem;
    }
    
    .contact-card-text {
        font-size: 0.9rem;
    }
    
    .intro-text {
        font-size: 1.1rem;
        margin: 1.5rem 0 2rem 0;
    }
    
    .candidates-with-details {
        grid-template-columns: 1fr;
    }
    
    .candidates-names-list {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        padding: 0 0.75rem;
        height: 55px;
        box-sizing: border-box;
        overflow: visible;
        max-width: 100%;
        width: 100%;
        min-width: 0;
        position: relative;
    }
    
    .sticky-header {
        width: 100%;
        max-width: 100vw;
        overflow: visible;
        left: 0;
        right: 0;
        box-sizing: border-box;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .header-logo {
        flex-shrink: 0;
        margin-right: 0.5rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
        padding: 0.5rem;
        margin: 0;
        width: auto;
        height: auto;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
        height: 2.5px;
    }
    
    .desktop-menu-toggle {
        display: none !important;
    }
    
    .nav-more-menu {
        display: none !important;
    }
    
    /* Show all nav items on mobile */
    .nav-item-mobile {
        display: list-item;
    }
    
    .nav-link-visible {
        display: block;
    }
    
    .nav-link-home {
        display: flex;
    }
    
    .header-nav {
        position: relative;
        overflow: visible;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-width: auto;
        max-width: none;
        margin-right: 0.5rem;
        z-index: 1003;
    }
    
    .header-actions {
        flex-shrink: 0;
        margin-left: auto;
        position: relative;
        z-index: 1003;
    }
    
    .nav-menu {
        position: fixed;
        top: 55px;
        left: 0;
        right: 0;
        background-color: var(--primary-green-tanne);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease-out, opacity 0.3s ease-out, visibility 0s linear 0.3s;
        gap: 0;
        z-index: 1003;
        width: 100%;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }
    
    .nav-menu.active {
        max-height: 500px;
        padding: 1rem 0;
        overflow-y: auto;
        overflow-x: hidden;
        visibility: visible;
        opacity: 1;
        transition: max-height 0.3s ease-out, padding 0.3s ease-out, opacity 0.3s ease-out, visibility 0s linear 0s;
        pointer-events: auto;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        text-align: left;
        border-radius: 0;
    }
    
    .scroll-to-top {
        bottom: 3rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .skewed-headline {
        white-space: normal;
        padding: 0.4rem 1rem;
        max-width: 100%;
        overflow: hidden;
        word-wrap: break-word;
    }
    
    .section {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .section-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .sticky-footer {
        height: 60px;
    }

    .footer-container {
        padding: 0 1rem;
        gap: 1rem;
    }

    .footer-link {
        font-size: 0.85rem;
    }

    .footer-icon {
        font-size: 1.5rem;
        padding: 0.25rem 0.75rem;
    }

    .section-impressum {
        padding: 2rem 1rem;
        margin-bottom: 60px; /* Space for taller sticky footer on mobile */
    }

    .impressum-content {
        background: rgba(255, 255, 255, 0.95);
        padding: 1.5rem;
    }

    .impressum-content p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}
