:root {
    --cadenabbia-tuerkis: #52b7c1;
    --rhoendorf-blau: #2d3c4b;
    --union-gold: #ffa600;
    --union-schwarz: #1b191d;
    --weiss: #ffffff;
    --tuerkis-10: #f2f8fa;
    --tuerkis-25: #ddeef1;
    --tuerkis-60: #a7d5dc;
    --blau-25: #e5e5e9;
    --blau-60: #bec1c7;
}

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

body {
    font-family: 'IBM Plex Serif', serif;
    line-height: 1.6;
    color: var(--rhoendorf-blau);
    overflow-x: hidden;
}

/* Typography nach CI */
h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
}

/* Navigation */
.navbar {
    background: var(--weiss);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
   display: flex;
   align-items: center;
   gap: 1rem;
   font-family: 'Inter', sans-serif;
   font-weight: 800;
   font-size: 1.2rem;
   color: var(--rhoendorf-blau);
   text-decoration: none;
}

.logo-placeholder {
   height: 40px;
   width: auto;
   max-width: 180px;
}

.logo-placeholder img {
   height: 100%;
   width: auto;
   display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--rhoendorf-blau);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--cadenabbia-tuerkis);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--rhoendorf-blau);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
	
	.team-card {
	        flex-direction: column;
	        align-items: center;
	        text-align: center;
	}
}

@media (min-width: 769px) {
    .team-card {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--cadenabbia-tuerkis) 0%, var(--tuerkis-60) 100%);
    color: white;
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transform: rotate(-15deg);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content p {
	font-size: 1.3rem;
	margin: 2rem 0;
	font-family: 'IBM Plex Serif', serif;"
}

/* Section Styling */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section:nth-child(even) {
    background: var(--tuerkis-10);
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title {
    display: inline-block;
    background: var(--rhoendorf-blau);
    color: white;
    padding: 0.5rem 2rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    background: var(--union-gold);
    color: var(--rhoendorf-blau);
    padding: 0.3rem 1.5rem;
    display: inline-block;
    font-family: 'IBM Plex Serif', serif;
    font-size: 1rem;
}

/* Accordion für Programm */
.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
}

.accordion-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.accordion-header {
    background: var(--cadenabbia-tuerkis);
    color: white;
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
    user-select: none;
}

.accordion-header:hover {
    background: var(--tuerkis-60);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.accordion-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
    font-weight: bold;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

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

.accordion-item.active .accordion-content {
    max-height: 2000px;
    padding: 2rem;
    transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

.accordion-content ul {
    list-style: none;
    padding-left: 0;
}

.accordion-content li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.accordion-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--cadenabbia-tuerkis);
    font-weight: bold;
}

/* People Grid für Kandidaten */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.people-grid.hidden {
    display: none;
}

.person-card {
    text-align: center;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.person-card.hidden-candidate {
    display: none;
}

.person-card:hover {
    transform: translateY(-5px);
}

.person-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--tuerkis-25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--cadenabbia-tuerkis);
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    overflow: hidden;
}

.person-photo img,
.person-photo picture {
    width: 100%;
    height: 100%;
    display: block;
}

.person-photo img {
    object-fit: cover;
    object-position: center;
}

.person-name {
	font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: var(--rhoendorf-blau);
    margin-bottom: 0.5rem;
}

.person-role {
    color: var(--cadenabbia-tuerkis);
    font-size: 0.9rem;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.load-more-container.hidden {
    display: none;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.team-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--tuerkis-25);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--cadenabbia-tuerkis);
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    overflow: hidden;
}

.team-photo img,
.team-photo picture {
    width: 100%;
    height: 100%;
    display: block;
}

.team-photo img {
    object-fit: cover;
    object-position: center;
}

.team-info h3 {
	font-size: 1.2rem;
	font-family: 'Inter', sans-serif;
	font-weight: 800;
	color: var(--rhoendorf-blau);
	margin-bottom: 0.5rem;
	flex: 1;
}

.team-info p {
	color: var(--rhoendorf-blau);
	font-size: 0.9rem;
	margin: 0.4rem 0;
	line-height: 1.5;
	hyphens: auto;
	overflow: hidden;
	overflow-wrap: break-word;
}

.team-info .team-function {
	color: var(--cadenabbia-tuerkis);
	font-weight: 700;
	margin-bottom: 0.6rem;
}

/* Termine Section */
.termine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.termin-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.termin-date {
    background: var(--cadenabbia-tuerkis);
    color: white;
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 100px;
}

.termin-day {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1;
}

.termin-month {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    margin-top: 0.3rem;
    text-transform: uppercase;
}

.termin-year {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.2rem;
}

.termin-info {
    padding: 1.5rem;
    flex: 1;
}

.termin-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: var(--rhoendorf-blau);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.termin-time {
    color: var(--union-gold);
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.termin-location {
    color: var(--rhoendorf-blau);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.termin-location strong {
    color: var(--cadenabbia-tuerkis);
    display: block;
    margin-bottom: 0.3rem;
}

/* Keine Termine Anzeige */
.no-termine {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.no-termine.hidden {
    display: none;
}

.no-termine-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-termine h3 {
    color: var(--rhoendorf-blau);
    margin-bottom: 1rem;
}

.no-termine p {
    color: var(--blau-60);
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive Anpassung für Termine */
@media (max-width: 768px) {
    .termine-grid {
        grid-template-columns: 1fr;
    }
    
    .termin-card {
        flex-direction: column;
    }
    
    .termin-date {
        padding: 1rem;
        flex-direction: row;
        gap: 0.8rem;
        min-width: auto;
    }
    
    .termin-day {
        font-size: 2rem;
    }
    
    .termin-month,
    .termin-year {
        font-size: 0.9rem;
    }
}

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

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.contact-card h3 {
    color: var(--rhoendorf-blau);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-card p {
    margin: 0.5rem 0;
}

.contact-card a {
    color: var(--cadenabbia-tuerkis);
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card .socialmedialink {
	margin-right: 1rem;
}

/* Footer */
footer {
    background: var(--rhoendorf-blau);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
}

.footer-links a {
    color: var(--cadenabbia-tuerkis);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--union-gold);
}

.footer-expandable {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.footer-expandable.active {
    max-height: 3000px;
    transition: max-height 0.6s ease-in;
}

.footer-expandable-inner {
    padding: 2rem;
    line-height: 1.6;
}

.footer-expandable h3 {
    color: var(--cadenabbia-tuerkis);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-expandable h4 {
    color: var(--union-gold);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.footer-expandable p {
    margin-bottom: 1rem;
}

.footer-expandable ul {
    margin: 1rem 0 1rem 2rem;
}

.footer-expandable li {
    margin-bottom: 0.5rem;
}

.footer-expandable a {
    color: var(--cadenabbia-tuerkis);
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-expandable-inner {
        padding: 1.5rem;
    }
}

/* Buttons */
.cdu-button {
    display: inline-block;
    background: var(--cadenabbia-tuerkis);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    transition: background 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cdu-button:hover {
    background: var(--rhoendorf-blau);
    transform: translateY(-2px);
}

.cdu-button.secondary {
    background: var(--union-gold);
    color: var(--rhoendorf-blau);
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--cadenabbia-tuerkis);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: background 0.3s;
    z-index: 999;
}

.scroll-top:hover {
    background: var(--rhoendorf-blau);
}

.scroll-top.visible {
    display: flex;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }