/* ========================= */
/*          Variablen        */
/* ========================= */
:root {
    --primary-color: #820303;
    --secondary-color: #fee46b;
    --text-color: #333;
    --background-color: #f4f4f4;
    --card-background: #fff;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --spacing-small: 8px;
    --spacing-medium: 20px;
}

@font-face {
    font-family: 'Exo 2';
    src: url('../font/Exo2-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900; /* Variable Font: alle Gewichte */
    font-style: normal;
    font-display: swap;
}

/* ========================= */
/*          Allgemein        */
/* ========================= */
body {
    font-family: 'Exo 2';
    font-size: 16px;
    margin: 0;
    padding: 0; 
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}
a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-divider {
    height: 2px;
    background: var(--primary-color);
    margin: 50px 0;
    border: none;
}

/* ========================= */
/*          Layout           */
/* ========================= */
body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr;
}
main {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    grid-column: 1 / -1;
    padding: 20px;
}
main.loaded {
    opacity: 1;
}

/* ========================= */
/*          Header           */
/* ========================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 20px 50px;
    grid-column: 1 / -1;
}
.header-content {
    text-align: center;
    flex: 1;
}
.header-logo {
    position: relative;
    text-align: center;
}
.header-logo img,
.header-fek img {
    width: 180px;
    height: 180px;
    margin: 0 auto;
}
.header-login {
    position: absolute;
    bottom: -5px;
    right: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.header-login:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.header-fek {
    text-align: center;
}
.header-fek a {
    color: var(--secondary-color);
}
.header-fek p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    text-align: center;
}

/* ========================= */
/*          Footer           */
/* ========================= */
footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: var(--spacing-medium);
    text-align: center;
}
.footer-mail a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, transform 0.2s;
}
.footer-mail a:hover {
    color: #000;
    text-decoration: underline;
    transform: scale(1.1);
}
footer .social-links a {
    color: var(--secondary-color);
    margin: 0 var(--spacing-small);
    text-decoration: none;
    font-size: 1.2rem;
}
footer .social-links a:hover {
    color: #000;
    text-decoration: underline;
}

/* ========================= */
/*          Navigation       */
/* ========================= */
nav {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 0;
    text-align: center;
    grid-column: 1 / -1;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
nav ul li {
    display: inline;
    margin: 0 15px;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s, transform 0.2s;
}
nav ul li a:hover {
    color: #000;
    text-decoration: underline;
    transform: scale(1.1);
}

/* ========================= */
/*          Buttons          */
/* ========================= */
.btn {
    background: var(--primary-color);
    color: #fff;
    padding: var(--spacing-small) var(--spacing-medium);
    border: none;
    border-radius: var(--spacing-small);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.btn:hover {
    background: var(--secondary-color);
    color: #000000;
    transform: scale(1.1) rotate(-1deg);
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

/* ========================= */
/*          Sektionen        */
/* ========================= */
section {
    padding: 50px 20px;
    text-align: center;
}
section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ========================= */
/*           Start           */
/* ========================= */

/* Hero-Bild im Home-Hero-Bereich zentrieren */
#home-hero {
    text-align: center;
}
.hero-img {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 100%;
}

/* Countdown-Bereich zentrieren */
#countdown {
    text-align: center;
    margin: 20px auto;
}
#countdown-timer {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 10px;
}

/* ========================= */
/*       Veranstaltungen     */
/* ========================= */
#event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.event-item, .event-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px var(--shadow-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s, box-shadow 0.3s;
}
.event-item:hover, .event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px var(--shadow-color);
}
.event-item h3, .event-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.event-item p, .event-card p {
    margin: 5px 0;
    font-size: 1rem;
    color: var(--text-color);
}
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0;
    margin: 0;
}
.event-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}
.event-card:hover,
.card:hover {
    box-shadow: 0 12px 24px var(--shadow-color);
    transform: translateY(-8px) scale(1.03);
    transition: box-shadow 0.3s, transform 0.3s;
}


/* ========================= */
/*          Galerie          */
/* ========================= */
.gallery {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.gallery img {
    max-width: 200px;
    border: 2px solid var(--primary-color);
    border-radius: var(--spacing-small);
    transition: transform 0.3s;
}
.gallery img:hover {
    transform: scale(1.1);
}

/* ========================= */
/*          Gruppen          */
/* ========================= */
.groups {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.group {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 20px;
    border-radius: 5px;
    width: 200px;
    text-align: center;
}
.group:hover {
    box-shadow: 0 12px 24px var(--shadow-color);
    transform: translateY(-8px) scale(1.03);
    transition: box-shadow 0.3s, transform 0.3s;
}
.gallery img:hover {
    filter: brightness(1.1) saturate(1.2);
    transform: scale(1.08) rotate(-2deg);
    transition: filter 0.3s, transform 0.3s;
}

/* ========================= */
/*          Formulare        */
/* ========================= */
form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}
form label {
    display: block;
    margin: 10px 0 5px;
}
form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
form button {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}
#captcha-container {
    margin: 15px 0;
}
#form-message {
    margin-top: 15px;
    font-weight: bold;
}

/* ========================= */
/*          About            */
/* ========================= */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}
.team-member {
    flex: 1 1 180px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}
.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 0 auto 10px auto;
    border-radius: 0;
}
details {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    background: #cccccc;
}
summary {
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1em;
}
blocktext {
    margin: 0;
    padding: 0;
    font-size: 1em;
    color: #333;
    text-align: justify;
}

/* Ehrensenatoren Bereich */
.ehrensenatoren-block {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 15px;
    align-items: center;
}
.ehrensenatoren-block > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}
.ehrensenatoren-block span {
    background: #fff;
    color: #000;
    padding: 7px 18px;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    font-size: 1em;
    display: block;
    min-width: 220px;
    text-align: center;
    margin: 0 auto;
}
.ehrensenatoren-verstorben span,
.ehrensenatoren-block .verstorben {
    background: #eee;
    color: #888;
    opacity: 0.9;
    font-size: 1em;
    margin-left: 4px;
    font-weight: normal;
}

/* ========================= */
/*        Animationen        */
/* ========================= */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes confettiFall {
    0% { top: -50px; opacity: 0; }
    10% { opacity: 1; }
    100% { top: 100vh; opacity: 0; }
}
.confetti {
    position: absolute;
    left: calc(10% + 80% * var(--rand));
    animation: confettiFall 3s linear infinite;
}

/* ========================= */
/*      Vorstandsmitglieder   */
/* ========================= */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.member-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    transition: transform 0.3s, box-shadow 0.3s;
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.member-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.member-info h4 {
    margin: 0 0 4px 0;
    color: var(--primary-color);
    font-size: 0.95em;
}

.member-card h4 {
    margin: 0 0 4px 0;
    color: var(--primary-color);
    font-size: 0.95em;
}

.member-card .position {
    margin: 0;
    color: #666;
    font-style: italic;
    font-size: 0.8em;
}

/* ========================= */
/*        Accordion Styles    */
/* ========================= */
.about-section {
    text-align: center;
}

.about-section h2 {
    text-align: center;
}

.accordion {
    margin: 20px auto;
    max-width: 800px;
}

.accordion-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
    text-align: left;
}

.accordion-header {
    width: 100%;
    padding: 15px;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-header:hover {
    background-color: #e0e0e0;
}

.accordion-header span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 15px;
}

.accordion-content.show {
    padding: 15px;
}

.text-content {
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

.text-content p {
    margin: 10px 0;
}

.honor-list {
    text-align: left;
}

.honor-list ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
}

.honor-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.honor-list li.verstorben {
    opacity: 0.6;
    font-style: italic;
}

.form-group {
    margin: 15px 0;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    max-width: 500px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group button {
    background-color: #820303;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.form-group button:hover {
    background-color: #5c0202;
}

/* Beisitzer Section */
.beisitzer-section {
    grid-column: 1 / -1;
    text-align: center;
    margin: 40px 0 30px 0;
    position: relative;
    padding: 20px 0;
}

.beisitzer-title {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.4em;
    position: relative;
    z-index: 1;
    background: var(--background-color);
    display: inline-block;
    padding: 0 20px;
}

.beisitzer-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    z-index: 0;
}

.beisitzer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.beisitzer-item {
    padding: 12px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s;
}

.beisitzer-item:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px var(--shadow-color);
}

/* ========================= */
/*          Responsive         */
/* ========================= */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    .event-grid {
        grid-template-columns: 1fr;
    }
    header, footer {
        text-align: center;
    }
    section {
        padding: 30px 5px;
    }
}

/* ========================= */
/*     Neuer Footer          */
/* ========================= */
footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 20px;
    grid-column: 1 / -1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    text-align: center;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
}

.footer-section p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
    filter: brightness(0) invert(1);
}

.social-icons a:hover .social-icon {
    transform: scale(1.2);
    filter: brightness(0) invert(1) drop-shadow(0 0 5px var(--secondary-color));
}
