/* ========================================================================== SG 07 ST. LEON - ZENTRALES STYLESHEET Die eine Datei, um sie alle zu knechten. (Bitte nicht wieder verlieren!) ========================================================================== */ /* --- 0. Variablen & Reset --- */ :root { --primary: #d32f2f; --primary-dark: #9a0007; --light: #ffffff; --light-gray: #f4f4f4; --dark: #222222; --text-gray: #555555; --border-color: #dddddd; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; } body { background-color: var(--light-gray); color: var(--dark); line-height: 1.6; } a { text-decoration: none; color: inherit; transition: all 0.3s ease; } /* --- 1. Navigation & Header --- */ header { background-color: var(--light); color: var(--dark); padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); border-bottom: 3px solid var(--primary); } header .logo { font-size: 1.8rem; font-weight: 900; letter-spacing: 1px; color: var(--primary); display: flex; align-items: center; gap: 10px; } header .logo img { height: 40px; width: auto; } nav ul { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end;} nav ul li a { font-weight: 600; padding: 5px 0; position: relative; font-size: 0.95rem; } nav ul li a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 3px; background-color: var(--primary); transition: width 0.3s ease; } nav ul li a:hover::after, nav ul li a.active::after { width: 100%; } .mobile-menu-btn { display: none; background: none; border: none; color: var(--primary); font-size: 1.8rem; cursor: pointer; } /* --- 2. Hero Bereich (Kopfbilder) --- */ .hero { background: linear-gradient(rgba(154, 0, 7, 0.7), rgba(211, 47, 47, 0.8)), var(--hero-bg, url('https://images.unsplash.com/photo-1461896836934-ffe607ba8211?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80')) center/cover no-repeat; height: 45vh; min-height: 300px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--light); text-align: center; padding: 0 20px; } .hero h1 { font-size: clamp(2rem, 5vw, 4.5rem); margin-bottom: 15px; text-transform: uppercase; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); font-weight: 900; } .hero p { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 35px; max-width: 700px; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); } /* Buttons */ .btn { padding: 14px 30px; background-color: var(--light); color: var(--primary); border-radius: 5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); transition: transform 0.2s, background-color 0.2s, color 0.2s; border: 2px solid var(--light); display: inline-block; cursor: pointer;} .btn:hover { background-color: var(--primary); color: var(--light); transform: translateY(-2px); } .btn-primary { background-color: var(--primary); color: var(--light); border: 2px solid var(--primary); box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4); } .btn-primary:hover { background-color: var(--primary-dark); } /* --- 3. Sektionen Allgemein --- */ section { padding: 5rem 5%; max-width: 1200px; margin: 0 auto; } .section-title { text-align: center; margin-bottom: 3rem; color: var(--dark); font-size: 2.5rem; text-transform: uppercase; position: relative; } .section-title::after { content: ''; display: block; width: 60px; height: 4px; background-color: var(--primary); margin: 10px auto 0; } .intro-text { text-align: center; font-size: 1.15rem; color: var(--text-gray); margin-bottom: 4rem; max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.8; } /* --- 4. Abteilungen Badges (Startseite) --- */ .departments { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 3rem; } .dept-badge { background: var(--light); border: 2px solid var(--border-color); padding: 10px 20px; border-radius: 50px; font-weight: bold; color: var(--text-gray); } .dept-badge:hover { border-color: var(--primary); color: var(--primary); } .dept-badge.external::after { content: ' ↗'; font-size: 0.8em; opacity: 0.7; } /* --- 5. News & Info-Karten --- */ .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; } /* Allgemeine Info-Karte (z.B. Kinderturnen) */ .card { background: var(--light); border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; padding: 30px; border-top: 4px solid var(--primary); display: flex; flex-direction: column; } .card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.12); } .card h3 { color: var(--primary); margin-bottom: 15px; font-size: 1.4rem; } .card p { margin-bottom: 20px; color: var(--text-gray); flex-grow: 1; } .card .age-badge { display: inline-block; background: var(--light-gray); padding: 4px 10px; border-radius: 20px; font-size: 0.85rem; font-weight: bold; margin-bottom: 15px; color: var(--dark); border: 1px solid var(--border-color);} /* Spezifische News-Karte */ #news-container .card { padding: 0; border-top: none; border-bottom: 4px solid var(--primary); overflow: hidden; } #news-container .card h3 { color: var(--dark); } .card-img { height: 200px; background-color: #ddd; width: 100%; object-fit: cover; } .card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; } .card-date { font-size: 0.85rem; color: var(--text-gray); margin-bottom: 10px; display: flex; justify-content: space-between; } .card-tag { background: var(--primary); color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; } .card .read-more { color: var(--primary); font-weight: bold; display: inline-block; margin-top: auto; cursor: pointer;} .card .read-more:hover { color: var(--primary-dark); text-decoration: underline; } /* --- 6. News Popup (Modal) mit dynamischer 4-Bilder Galerie --- */ .news-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; justify-content: center; align-items: center; padding: 20px; opacity: 0; transition: opacity 0.3s ease;} .news-modal.active { display: flex; opacity: 1; } .news-modal-content { background: var(--light); width: 100%; max-width: 900px; max-height: 90vh; overflow-y: auto; border-radius: 8px; position: relative; padding: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transform: translateY(20px); transition: transform 0.3s ease;} .news-modal.active .news-modal-content { transform: translateY(0); } .news-modal-close { position: absolute; top: 15px; right: 20px; font-size: 2.5rem; cursor: pointer; color: var(--text-gray); line-height: 1; z-index: 10;} .news-modal-close:hover { color: var(--primary); } .news-modal-gallery { display: grid; gap: 15px; margin-bottom: 25px; } .news-modal-gallery[data-count="1"] { grid-template-columns: 1fr; } .news-modal-gallery[data-count="2"] { grid-template-columns: 1fr 1fr; } .news-modal-gallery[data-count="3"] { grid-template-columns: repeat(3, 1fr); } .news-modal-gallery[data-count="4"] { grid-template-columns: 1fr 1fr; } .news-modal-gallery-img { width: 100%; height: 280px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); } .news-modal-gallery[data-count="1"] .news-modal-gallery-img { height: 400px; } .news-modal-header { margin-bottom: 20px; border-bottom: 2px solid var(--light-gray); padding-bottom: 15px; } .news-modal-title { color: var(--dark); font-size: 2rem; margin-bottom: 10px; } .news-modal-meta { color: var(--primary); font-weight: bold; font-size: 0.9rem; } .news-modal-body { white-space: pre-wrap; color: var(--dark); line-height: 1.8; font-size: 1.1rem; } /* --- 7. Split Layout (Zick-Zack-Design für Sportseiten) --- */ .split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 6rem; } .split-section.reverse .split-content { order: -1; } .split-content h2 { color: var(--primary); font-size: 2.2rem; margin-bottom: 20px; text-transform: uppercase; } .split-content p { color: var(--text-gray); margin-bottom: 20px; font-size: 1.1rem; line-height: 1.8; } .split-content ul { list-style: none; margin-bottom: 20px; } .split-content ul li { position: relative; padding-left: 25px; margin-bottom: 10px; color: var(--dark); font-weight: 600;} .split-content ul li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: bold; } .split-image { position: relative; } .split-image img { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); object-fit: cover; aspect-ratio: 4/3; } .split-image::after { content: ''; position: absolute; width: 100%; height: 100%; border: 3px solid var(--primary); border-radius: 12px; top: 15px; left: 15px; z-index: -1; transition: transform 0.3s; } .split-section.reverse .split-image::after { left: -15px; top: 15px; } /* --- 8. Info-Boxen & Trainingszeiten --- */ .info-box { background: var(--light); padding: 40px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: center; border-top: 4px solid var(--primary); margin-top: 2rem; } .info-box h3 { font-size: 1.8rem; margin-bottom: 15px; color: var(--dark); } .info-box p { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 15px; } .info-box .contact-person { font-weight: bold; font-size: 1.3rem; color: var(--primary); display: block; margin-top: 20px; } .schedule-container { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; } .schedule-box { background: var(--light); flex: 1 1 400px; padding: 30px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); } .schedule-box h3 { border-bottom: 2px solid var(--primary); padding-bottom: 10px; margin-bottom: 20px; color: var(--dark); } .schedule-list { list-style: none; } .schedule-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--light-gray); } .schedule-list li:last-child { border-bottom: none; } .schedule-time { font-weight: bold; color: var(--primary); width: 120px; flex-shrink: 0; } .schedule-group { color: var(--text-gray); } .contact-box { background: var(--primary); color: var(--light); padding: 3rem; border-radius: 8px; text-align: center; margin-top: 4rem; } .contact-box h3 { margin-bottom: 15px; font-size: 1.8rem; color: var(--light); } .contact-box p { font-size: 1.1rem; margin-bottom: 10px; } .contact-box a { color: var(--light); font-weight: bold; text-decoration: underline; } /* --- 9. Vereinsheim Info-Grid & Bildergalerie --- */ .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 4rem; } .info-content h3 { color: var(--primary); font-size: 1.6rem; margin-bottom: 15px; } .info-image img { width: 100%; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); } .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; margin-top: 2rem; } .gallery-item { position: relative; cursor: pointer; overflow: hidden; border-radius: 8px; padding-top: 75%; } .gallery-item img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; } .gallery-item::after { content: '🔍'; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(211, 47, 47, 0.6); display: flex; justify-content: center; align-items: center; font-size: 2rem; color: white; opacity: 0; transition: opacity 0.3s ease; } .gallery-item:hover img { transform: scale(1.1); } .gallery-item:hover::after { opacity: 1; } /* Lightbox Modal (für die Vereinsheim-Bilder) */ .lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); display: none; justify-content: center; align-items: center; z-index: 9999; } .lightbox.active { display: flex; } .lightbox-content { position: relative; max-width: 90%; max-height: 90vh; } .lightbox-img { max-width: 100%; max-height: 90vh; border-radius: 4px; box-shadow: 0 5px 25px rgba(0,0,0,0.5); } .lightbox-close { position: absolute; top: -40px; right: 0; color: white; font-size: 2.5rem; cursor: pointer; line-height: 1; } .lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: white; font-size: 3rem; cursor: pointer; user-select: none; padding: 20px; background: rgba(0,0,0,0.3); border-radius: 5px; transition: background 0.3s; } .lightbox-nav:hover { background: rgba(211, 47, 47, 0.8); } .lightbox-prev { left: -70px; } .lightbox-next { right: -70px; } .lightbox-counter { position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); color: white; font-size: 1rem; } /* --- 10. Vorstand & Abteilungen (verein.php) --- */ .board-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 5rem; } .board-member { background: var(--light); padding: 30px 20px; border-radius: 8px; text-align: center; border: 1px solid var(--border-color); box-shadow: 0 4px 10px rgba(0,0,0,0.03); transition: transform 0.3s;} .board-member:hover { transform: translateY(-5px); } .board-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px auto; display: block; border: 3px solid var(--primary); background-color: #f4f4f4; } .board-member h3 { color: var(--primary); margin-bottom: 5px; font-size: 1.1rem; } .board-member p.name { color: var(--dark); font-size: 1.1rem; margin-bottom: 10px; font-weight: bold; } .board-member .contact-link a { color: var(--text-gray); font-size: 0.9rem; word-break: break-all; } .board-member .contact-link a:hover { color: var(--primary); text-decoration: underline; } .extended-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-bottom: 4rem; } .dept-card { background: var(--light); padding: 25px; border-radius: 8px; border-top: 4px solid var(--primary); box-shadow: 0 4px 10px rgba(0,0,0,0.05); } .dept-card h3 { color: var(--dark); margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; font-size: 1.4rem; } .dept-list { list-style: none; } .dept-list li { margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px dashed var(--light-gray); } .dept-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; } .dept-list strong { display: block; color: var(--primary); font-size: 0.95rem; text-transform: uppercase; margin-bottom: 3px; } .dept-list .name { font-weight: 600; color: var(--dark); font-size: 1.05rem; } .downloads { background: var(--light); padding: 30px; border-radius: 8px; border-left: 5px solid var(--primary); margin-bottom: 4rem; box-shadow: 0 4px 10px rgba(0,0,0,0.05); } .downloads ul { list-style: none; } .downloads ul li { margin-bottom: 10px; } .downloads ul li a { display: inline-flex; align-items: center; color: var(--primary); font-weight: bold; } .downloads ul li a:hover { text-decoration: underline; color: var(--primary-dark); } /* --- 11. Footer --- */ footer { background: var(--dark); color: #ccc; text-align: center; padding: 3rem 5% 1.5rem; margin-top: 3rem; } .footer-content { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin-bottom: 2rem; max-width: 1200px; margin: 0 auto; } .footer-section { flex: 1 1 250px; text-align: left; } .footer-section h4 { color: var(--light); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); display: inline-block; } .footer-section ul { list-style: none; } .footer-section ul li { margin-bottom: 10px; } .footer-section ul li a:hover { color: var(--light); } .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; font-size: 0.9rem; } /* --- 12. Responsive Design (Mobile Breakpoints) --- */ @media (max-width: 900px) { nav ul { gap: 10px; } .split-section { grid-template-columns: 1fr; } .split-section .split-image { grid-row: 1; } .split-section.reverse .split-content { order: 2; } .lightbox-prev { left: 10px; } .lightbox-next { right: 10px; } } @media (max-width: 768px) { /* Mobiles Menü (Hamburger) */ .mobile-menu-btn { display: block; } nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--light); padding: 20px 5%; gap: 15px; box-shadow: 0 5px 10px rgba(0,0,0,0.1); border-top: 1px solid var(--border-color); } nav ul.show { display: flex; } .hero { height: auto; padding: 40px 20px; } section { padding: 3rem 5%; } /* Dynamisches News-Galerie-Grid auf Handys umbauen */ .news-modal-content { padding: 25px 20px; } .news-modal-gallery[data-count="3"] { grid-template-columns: 1fr; } .news-modal-gallery[data-count="4"] { grid-template-columns: 1fr 1fr; } .news-modal-gallery-img { height: 200px; } .news-modal-gallery[data-count="1"] .news-modal-gallery-img { height: 250px; } /* Vereinsheim Bilder Info-Boxen */ .info-grid { grid-template-columns: 1fr; } .info-grid:nth-child(even) .info-image { grid-row: 1; } .split-image::after { display: none; } }