/* Farben */
:root {
    --primary: #ffed00;    /* FDP Gelb */
    --secondary: #e5007d;  /* FDP Magenta */
    --accent: #009ee3;     /* FDP Blau */
    --text-dark: #333333;
    --text-light: #ffffff;
}

/* Schriftarten */
@font-face {
    font-family: 'Futura Bold Oblique';
    src: url('../fonts/FuturaBoldOblique.woff2') format('woff2');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Futura Medium';
    src: url('../fonts/FuturaMedium.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* Grundlegende Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Futura Medium', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    text-align: center;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Futura Bold Oblique', Arial, sans-serif;
    margin-bottom: 1rem;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* Header */
.main-header {
    background-color: var(--primary);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    text-align: center;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

.logo {
    margin-bottom: 1rem;
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary);
}


/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1010;
}

.burger-line {
    width: 100%;
    height: 4px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    background-color: var(--primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 120px;
    padding-bottom: 40px;
}

.hero-image {
    margin-bottom: 2rem;
}

.hero-image img {
    transition: transform 0.3s ease;
    border-radius: 20px;
    margin: 0 auto;
    display: block;
}

.hero-image img:hover {
    transform: scale(1.05);
}

.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-section h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.hero-logo {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.hero-logo img {
    transition: transform 0.3s ease;
}

.hero-logo img:hover {
    transform: scale(1.1);
}

/* Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

/* Content Sections */
.content-section {
    padding: 80px 0;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section:nth-child(even) {
    background-color: #f8f8f8;
}

/* Profile Content */
.profile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.profile-image {
    max-width: 300px;
    border-radius: 50%;
    margin: 0 auto;
}

.profile-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.profile-text ul {
    list-style: none;
    margin: 1rem auto 2rem;
    text-align: left;
    max-width: 600px;
}

.profile-text ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.profile-text ul li:before {
    content: "•";
    color: var(--secondary);
    position: absolute;
    left: 0;
}

.profile-text h3 {
    color: var(--secondary);
    margin-top: 2rem;
}

/* Topics Grid */

.topics-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual cards */
.topic-card {
    background: var(--text-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: calc(33.333% - 1.33rem); /* 3 cards per row with gap */
    min-width: 280px;
    max-width: 360px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.topic-card:hover {
    transform: translateY(-5px);
}

.topic-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.topic-card p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Tablet view (2 cards per row) */
@media (max-width: 1024px) {
    .topic-card {
        width: calc(50% - 1rem);
    }
}

/* Mobile view (1 card per row) */
@media (max-width: 600px) {
    .topics-grid {
        flex-direction: column;
        align-items: center;
    }

    .topic-card {
        width: 100%;
        max-width: 90%;
    }
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-family: 'Futura Medium', sans-serif;
    font-size: 1rem;
    background-color: #fff;
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary);
    outline: none;
}

.captcha-container p {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-dark);
}

.captcha-container input[type="number"] {
    margin-bottom: 1rem;
}

.submit-button {
    background-color: var(--secondary);
    color: var(--text-light);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.submit-button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}
.submit-button:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

.privacy-confirmation {
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    text-align: left;
}

.privacy-confirmation input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

.privacy-confirmation a {
    color: var(--secondary);
    text-decoration: underline;
}

.privacy-confirmation a:hover {
    color: var(--accent);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-links,
.legal-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a,
.legal-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 1rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.blog-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    text-align: left;
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.blog-card h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}


.blog-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-excerpt {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-header {
    text-align: left;
    margin-bottom: 2rem;
}

.blog-header h1 {
    color: var(--secondary);
    font-size: 2.5rem;
}

.blog-filters {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-box {
    flex-grow: 1;
    max-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 2px solid #005fa3;
    border-radius: 25px;
    font-size: 1rem;
}

.legal {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}
.legal h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.legal p {
    margin-bottom: 1.5rem;
}



.read-more {
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto;
}

.read-more:hover {
    color: var(--accent);
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Navigation */
    .burger-menu {
        display: flex;
    }
    
    nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 1rem;
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    .nav-links {
        position: fixed;
        background-color: var(--primary);
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 1.5rem;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        width: 100%;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.2rem;
    }
    
    .content-section {
        padding: 60px 0;
    }
}

/* Publikationen Styles */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.publication-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.publication-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    text-align: left;
}

.publication-date {
    color: #666;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.download-button {
    display: inline-block;
    background-color: var(--accent);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: var(--secondary);
}

.language-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.language-tabs a {
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    color: var(--text-dark);
    background-color: #f0f0f0;
    transition: all 0.3s ease;
}

.language-tabs a:hover {
    background-color: var(--primary);
}

.language-tabs a.active {
    background-color: var(--secondary);
    color: var(--text-light);
}

/* Impressum & Datenschutz Content */
.impressum-content,
.datenschutz-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.impressum-content h2,
.datenschutz-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.impressum-content p,
.datenschutz-content p {
    margin-bottom: 1.5rem;
}


/* ---- */

/* === GENERAL CONTAINER SAFEGUARDS === */
.about-me-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 40px;
    padding: 0 1rem;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

/* === IMAGE CONTAINER FIXED === */
.about-me-image {
    flex: 1;
    min-width: 260px;
    max-width: 400px;
    width: 100%;
    overflow: hidden; /* 👈 Prevent scrollbars on zoom */
}

.about-me-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.3s ease;
    object-fit: cover;
    display: block;
}

.about-me-image img:hover {
    transform: scale(1.010); /* 👈 Subtle zoom that doesn't trigger layout shift */
}

/* === TEXT BLOCK === */
.about-me-text {
    flex: 2;
    max-width: 700px;
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.about-me-text h1 {
    font-size: 2.5rem;
    color: var(--secondary);
    line-height: 1.2;
}

.about-me-text h2 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.about-me-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.7;
}

/* === FIXED LIST STYLING === */
.about-me-text ul {
    list-style: disc outside;
    padding-left: 1.5rem;
    margin: 0 auto 2rem;     /* 👈 center the block */
    max-width: 600px;        /* 👈 limit width so it stays nicely aligned */
    text-align: left;        /* 👈 left-align contents */
}

.about-me-text ul li {
    margin-bottom: 0.5rem;
    padding-left: 0;
    text-align: left;        /* 👈 left-align individual lines */
    word-break: break-word;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .about-me-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-me-image {
        max-width: 300px;
    }

    .about-me-text {
        text-align: center;
        max-width: 100%;
    }

    .about-me-text ul {
        text-align: left;
        margin: 0 auto;
    }

    .about-me-text h1 {
        font-size: 2rem;
    }

    .about-me-text h2 {
        font-size: 1.3rem;
    }

    .about-me-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-me-text h1 {
        font-size: 1.7rem;
    }

    .about-me-text h2 {
        font-size: 1.1rem;
    }

    .about-me-image {
        max-width: 100%;
    }

}

.event-list {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    list-style: none;
    padding-left: 0;
}

.event-list li {
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    line-height: 1.6;
    word-break: break-word;
}

.event-list li strong {
    color: var(--secondary);
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #ddd;
}

.event-card h3 {
    margin-top: 0;
    color: #005fa3;
}

.event-date {
    font-weight: bold;
    color: #444;
    margin-top: 1rem;
}

.event-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}
@media (min-width: 768px) {
    .event-buttons {
        flex-direction: row;
    }
}

.info-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
}

.info-block {
    flex: 1 1 300px;
    max-width: 360px;
    background: var(--text-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.info-block h3 {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.info-block ul {
    list-style: disc outside;
    padding-left: 1.5rem;
}

.info-block ul li {
    margin-bottom: 0.75rem;
    word-break: break-word;
}

/* Responsive */
@media (max-width: 768px) {
    .info-columns {
        flex-direction: column;
        align-items: center;
    }

    .info-block {
        width: 100%;
        max-width: 100%;
    }
}

.event-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.event-description {
    margin-top: 0.5rem;
    white-space: normal;
}


.event-location a {
    text-decoration: none;
    color: #007BFF;
}

.calendar-link a {
    text-decoration: none;
    color: #28a745;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-outline-primary {
    border: 1px solid #007bff;
    color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

.btn-outline-success {
    border: 1px solid #28a745;
    color: #28a745;
}

.btn-outline-success:hover {
    background-color: #28a745;
    color: white;
}
.event-list { list-style: none; padding: 0; }
.event-list li {
    background: #fff; padding: 15px; margin-bottom: 10px;
    border-left: 5px solid #0077cc; border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.event-list li strong { display: block; font-size: 1.1em; margin-bottom: 5px; color: #444; }
.event-timer { font-weight: bold; color: #d9534f; margin-top: 5px; display: inline-block; }

.blog-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    word-break: break-word; /* fix overflow */
}

.blog-detail h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.blog-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

.blog-content {
    font-size: 1.05rem;
    padding-bottom: 2rem;
}

.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: #663399;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

.error {
    color: red;
    background: #ffe5e5;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
}

.blog-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.blog-header h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.blog-filters {
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
}

.blog-filters input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 999px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.blog-filters input[type="text"]:focus {
    border-color: #663399;
    box-shadow: 0 0 0 4px rgba(102, 51, 153, 0.15);
}
.blog-filters input::placeholder {
    color: #999;
    font-style: italic;
}

.no-publications-message {
    text-align: center;
    color: #777;
    font-size: 1.05rem;
    margin: 3rem auto;
    max-width: 600px;
    line-height: 1.6;
}

#noResultsMessage {
    display: none;
    text-align: center;
    margin-top: 2rem;
    color: #999;
}

.privacy-confirmation {
    margin-top: 1.5rem;
    text-align: center;
}

.privacy-confirmation .form-check {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.privacy-confirmation input[type="checkbox"] {
    margin-top: 0.3em;
    width: 1.2em;
    height: 1.2em;
    cursor: pointer;
}

.privacy-confirmation label {
    font-size: 0.95rem;
    line-height: 1.4;
    cursor: pointer;
}

.privacy-confirmation a {
    color: #e5007d;
    font-weight: 600;
    text-decoration: underline;
}
