/* ==============================
   Fonts (use central font files)
============================== */
@font-face {
    font-family: 'Source Sans Pro';
    src: url('../fonts/SourceSans3-VariableFont_wght.woff2') format('woff2-variations');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Sans Pro';
    src: url('../fonts/SourceSans3-Italic-VariableFont_wght.woff2') format('woff2-variations');
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}

html, body {
    font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    margin: 0;
    padding: 0;
    color: #222;
    background-color: #fff;
    font-size: 1.05rem;
}

/* ==============================
   Color definitions
============================== */

:root {
    --color-primary: #186d9e;
    --color-primary-hover: #d36c27;
}

/* ==============================
   Accessibility
============================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ==============================
   Layout
============================== */
header {
    text-align: center;
    margin-top: 1rem;
}

.logo-container img {
    max-width: 240px;
    height: auto;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* ==============================
   Buttons
============================== */
.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease-in-out;
    margin: 0.4rem 0;
}

.button.upcoming {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
}

.button.upcoming:hover,
.button.upcoming:focus {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
}

.button.past {
    background-color: #e4e4e4;
    color: #333;
}

.button.past:hover,
.button.past:focus {
    background-color: #d0d0d0;
}

/* ==============================
   Event Info
============================== */
.event-info {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
    font-style: italic;
}

.event-info.past {
    color: #666;
}

/* ==============================
   Contact & Social Media
============================== */
section.contact,
section.social-media {
    margin-top: 2.5rem;
}

section.contact h2,
section.social-media h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}


a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-hover);
}

.social-media {
    text-align: center;
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin: 0.4rem 0;
}

/* ==============================
   Footer
============================== */
footer {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    padding: 2rem 1rem;
    border-top: 1px solid #eee;
    margin-top: 3rem;
}

.footer-heading {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ==============================
   Responsive Design
============================== */
@media (max-width: 600px) {
    .logo-container img {
        max-width: 120px;
    }

    .button {
        width: 90%;
        font-size: 1rem;
        padding: 0.9rem 1.2rem;
    }

    .button-container {
        gap: 1rem;
    }

    .social-links {
        gap: 0.5rem;
    }
}

/* ==============================
   Vertical Event Sections (Updated)
============================== */
.button-container-vertical {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.event-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.event-divider {
    border: 0;
    border-top: 1px solid #ccc;
    width: 60%;          /* Linie kürzer als die volle Breite */
    margin: 2rem auto;    /* zentriert und Abstand oben/unten */
}

.event-section .button {
    margin-bottom: 0.5rem; /* leichter Abstand zwischen Button und Datum */
}

.event-info {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
    font-style: italic;
}