/* ============================================================
   Samichlaus Gymkhana - gemeinsames Stylesheet (Rot/Grün-Design)
   ============================================================ */

:root {
    --primary-rose: #c62828;       /* Weihnachtsrot */
    --secondary-lightrose: #fdf3e3; /* warmes Creme */
    --accent-dark: #1b5e3a;        /* Tannengrün */
    --text-dark: #333;
    --text-medium: #555;
    --background-light: #ffffff;
    --font-festlich: 'Alex Brush', cursive;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fcfcfc;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.6;
}

h1 {
    margin: 40px 0 30px;
    font-family: var(--font-festlich);
    font-size: 3.6em;
    color: var(--primary-rose);
    text-shadow: 1px 1px 3px var(--secondary-lightrose);
    font-weight: 700;
}

h2 {
    margin: 30px 0 20px;
    font-family: var(--font-festlich);
    font-size: 2.4em;
    color: var(--accent-dark);
    font-weight: 700;
}

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

/* ---------- Startseite (Hero) ---------- */
.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 35vh;
    overflow: hidden;
    margin: 20px 0 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.header-image { margin: 0; height: 100%; width: auto; object-fit: contain; }

.introduction-text { max-width: 800px; margin: 20px auto 40px; padding: 0 20px; font-size: 1.1em; }
.introduction-text h1 { margin: 20px 0 5px; }
.introduction-text h2 { margin: 5px 0 30px; font-size: 1.8em; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: var(--text-medium); font-weight: 600; }
.introduction-text a { font-weight: bold; text-decoration: none; }
.introduction-text a:hover { color: var(--accent-dark); text-decoration: underline; }

.sections-container {
    display: flex; justify-content: center; align-items: stretch;
    gap: 30px; padding: 20px; max-width: 1200px; margin: 0 auto; flex-wrap: wrap;
}
.section {
    flex: 1; min-width: 280px; background-color: var(--background-light);
    padding: 30px 20px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-top: 5px solid var(--primary-rose); transition: transform 0.3s, box-shadow 0.3s;
}
.section:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(0,0,0,0.15); }
.section h2 { font-size: 1.9em; color: var(--accent-dark); border-bottom: 2px solid var(--secondary-lightrose); padding-bottom: 10px; margin-bottom: 15px; }
.section p { color: #555; min-height: 40px; }

.button {
    background-color: var(--primary-rose); color: white; border: none;
    padding: 12px 25px; border-radius: 5px; cursor: pointer; font-size: 1.1em;
    font-weight: bold; margin-top: 25px; text-decoration: none; display: inline-block;
    transition: background-color 0.3s, transform 0.1s; box-shadow: 0 2px var(--accent-dark);
}
.button:hover { background-color: var(--accent-dark); transform: translateY(1px); box-shadow: 0 1px var(--primary-rose); }

/* ---------- Sponsoren ---------- */
.dankes-text { font-size: 1.1em; max-width: 800px; margin: 10px auto 50px; padding: 0 20px; }
.sponsoren-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; padding: 20px; max-width: 1400px; margin: 0 auto; }
.sponsor {
    display: flex; flex-direction: column; justify-content: space-between; align-items: center;
    background-color: white; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-radius: 12px;
    padding: 25px 15px 15px; transition: transform 0.3s, box-shadow 0.3s; height: 280px;
    border: 1px solid var(--secondary-lightrose);
}
.sponsor:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.sponsor img { max-width: 100%; max-height: 180px; object-fit: contain; margin-bottom: 10px; flex-grow: 1; }
.sponsor p { font-size: 1em; font-weight: 600; margin: 0; }
.sponsor a { text-decoration: none; }
.sponsor a:hover { color: var(--accent-dark); }

.sponsoren-ohne-logo-liste {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px;
    padding: 30px; max-width: 900px; margin: 30px auto 50px; background-color: var(--secondary-lightrose);
    border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.sponsor-no-logo-item { background-color: #fff; padding: 15px; border-radius: 8px; text-align: center; border-left: 5px solid var(--primary-rose); }

/* ---------- News ---------- */
.news-container { max-width: 850px; margin: 20px auto; padding: 30px; background-color: var(--background-light); border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.news-item { margin-bottom: 35px; padding: 20px; border-bottom: 1px solid var(--secondary-lightrose); }
.news-container .news-item:last-of-type { border-bottom: none; }
.news-title { font-family: var(--font-festlich); font-size: 32px; color: var(--primary-rose); font-weight: 700; margin-bottom: 8px; }
.news-date { font-size: 14px; color: var(--text-medium); margin-bottom: 15px; font-style: italic; }
.news-content { font-size: 1.05em; color: var(--text-medium); white-space: pre-line; }
.news-item img { width: 45%; height: auto; border-radius: 10px; margin: 15px 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.old-news-item { opacity: 0.7; border-top: 1px solid var(--secondary-lightrose); padding-top: 15px; margin-top: 30px; text-align: center; }
.old-news-item .news-title { font-size: 1.3em; color: var(--accent-dark); font-weight: 700; }
.old-news-item .news-date, .old-news-item .news-content { font-size: 0.9em; }
.old-news-item img { width: 25%; box-shadow: none; margin: 10px 0; border: 1px solid var(--secondary-lightrose); }

/* ---------- OK-Team ---------- */
.row { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; padding: 20px; max-width: 1200px; margin: 0 auto; }
.column { flex: 0 1 300px; margin-bottom: 20px; box-sizing: border-box; }
.card { background-color: var(--background-light); box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-radius: 12px; text-align: center; overflow: hidden; height: 100%; transition: transform 0.3s, box-shadow 0.3s; border: 1px solid var(--secondary-lightrose); }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.small-image { width: 100%; height: 250px; object-fit: cover; border-bottom: 3px solid var(--primary-rose); }
.container { padding: 20px 16px; }
.card h2 { font-size: 1.6em; margin: 5px 0; }
.title { color: var(--primary-rose); font-weight: bold; font-style: italic; margin-bottom: 10px; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
.description { color: #555; min-height: 45px; }

/* ---------- Start-/Ranglisten ---------- */
.startlisten-section h1 { font-size: 2.2em; margin: 30px 0 20px; color: var(--primary-rose); text-shadow: none; }
.startlisten-section { display: flex; justify-content: center; flex-wrap: wrap; max-width: 1200px; margin: 0 auto 30px; gap: 20px; }
.pdf-container { padding: 15px; background-color: white; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); flex: 0 1 200px; text-align: center; transition: transform 0.3s; }
.pdf-container:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); }
.pdf-link { display: block; margin: 5px 0 0; color: var(--text-dark); text-decoration: none; background-color: var(--secondary-lightrose); padding: 10px 5px; border-radius: 8px; font-weight: 600; font-size: 0.95em; }
.pdf-link:hover { background-color: var(--primary-rose); color: white; }
img.thumbnail { width: 80%; height: auto; border-radius: 8px; margin-bottom: 5px; }
.schedule-image-container { margin: 20px auto; text-align: center; max-width: 700px; padding: 15px; background-color: var(--secondary-lightrose); border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.schedule-image-container h2 { font-size: 1.8em; }
.schedule-thumbnail { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.toggle-button { background-color: var(--primary-rose); color: white; padding: 12px 25px; margin: 10px; border: none; border-radius: 5px; cursor: pointer; font-size: 1.1em; font-weight: bold; box-shadow: 0 3px var(--accent-dark); }
.toggle-button:hover { background-color: var(--accent-dark); box-shadow: 0 1px var(--primary-rose); transform: translateY(2px); }

/* ---------- Galerie ---------- */
.gallery-container { padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 1400px; margin: auto; }
.gallery-item { position: relative; overflow: hidden; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); cursor: pointer; border: 3px solid var(--secondary-lightrose); transition: transform 0.3s, box-shadow 0.3s; height: 300px; }
.gallery-item:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,0.2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption { position: absolute; bottom: 0; background: rgba(27,94,58,0.85); color: #fff; width: 100%; padding: 10px; font-size: 1em; text-align: center; font-weight: 600; }
.popup { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.95); z-index: 1000; justify-content: center; align-items: center; }
.popup img { max-width: 90%; max-height: 90%; }
.popup .close { position: absolute; top: 10px; right: 20px; color: var(--primary-rose); font-size: 40px; cursor: pointer; text-shadow: 0 0 5px #000; }
.popup .nav { position: absolute; top: 50%; color: var(--primary-rose); font-size: 50px; cursor: pointer; user-select: none; text-shadow: 0 0 5px #000; transform: translateY(-50%); }
.popup .prev { left: 20px; }
.popup .next { right: 20px; }

/* ---------- Kontakt ---------- */
.contact-box { background-color: var(--secondary-lightrose); padding: 25px; text-align: center; font-size: 1.1em; border-radius: 12px; margin: 20px auto 40px; max-width: 350px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 2px solid var(--primary-rose); }
.contact-box h3 { font-family: var(--font-festlich); font-size: 1.6em; color: var(--accent-dark); margin-top: 0; border-bottom: 2px solid var(--primary-rose); padding-bottom: 10px; }
.contact-box a { text-decoration: none; font-weight: 600; }
.contact-box a:hover { color: var(--accent-dark); text-decoration: underline; }
.map-situationsplan-container { display: flex; justify-content: center; gap: 30px; margin: 20px auto; max-width: 1200px; padding: 0 20px 50px; flex-wrap: wrap; }
.map-container, .situationsplan { flex: 1; min-width: 300px; margin: 0; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); overflow: hidden; background-color: var(--background-light); border: 1px solid #ddd; }
.map-container { height: 600px; }
.map-title, .situationsplan h2 { font-family: var(--font-festlich); font-size: 1.8em; text-align: center; margin: 0; padding: 15px 0; color: var(--accent-dark); background-color: var(--secondary-lightrose); border-bottom: 3px solid var(--primary-rose); }
.situationsplan img { max-width: 100%; height: auto; display: block; }

/* ---------- Footer ---------- */
footer.global-footer { background-color: var(--secondary-lightrose); color: var(--text-dark); padding: 30px 20px; margin-top: 50px; text-align: center; border-top: 3px solid var(--primary-rose); font-size: 0.95em; }
footer.global-footer p { margin: 5px 0; }
footer.global-footer a { color: var(--accent-dark); text-decoration: none; font-weight: 600; }
footer.global-footer a:hover { color: var(--primary-rose); text-decoration: underline; }
.footer-content { max-width: 800px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media screen and (max-width: 850px) {
    .map-container { height: 400px; }
}
@media screen and (max-width: 650px) {
    .sections-container { flex-direction: column; align-items: center; gap: 10px; }
    .section { width: 100%; box-sizing: border-box; }
    .header-container { height: 100%; }
    .header-image { width: 100%; height: auto; }
    h1 { font-size: 2.6em; }
    h2 { font-size: 1.8em; }
    .news-container { margin: 10px; padding: 15px; }
    .news-item img { width: 70%; }
    .old-news-item img { width: 40%; }
    .column { flex: 0 1 100%; max-width: 350px; }
    .gallery-container { grid-template-columns: 1fr; gap: 15px; }
    .gallery-item { max-width: 95%; margin: 0 auto; height: 250px; }
}
@media screen and (max-width: 950px) {
    .column { flex: 0 1 45%; }
}