/* Grundlegende Einstellungen und Frankfurt-Farbschema */
:root {
    --primary-color: #D82128;
    --light-bg: #F8F9FA;
    --dark-text: #212529;
    --text-color: #5f6771;
    --border-color: #e9ecef;
}

/* Allgemeine Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Lato', sans-serif; line-height: 1.7; color: var(--text-color); background-color: #fff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }
h1, h2, h3, h4, .logo, nav ul li a, .btn, .card-link { font-family: 'Lato', sans-serif; }
h1, h2, h3 { color: var(--dark-text); font-weight: 700; }
h2 { font-size: 2.2rem; margin-bottom: 2rem; }
h3 { font-size: 1.3rem; color: var(--primary-color); }

/* Header und Navigation */
header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; color: var(--primary-color); text-decoration: none; font-weight: 700; gap: 25px; }
.logo img { height: 35px; }
.logo span { font-size: 1.3rem; }

nav ul { list-style: none; display: flex; }
nav ul li { position: relative; margin-left: 30px; }
nav ul li a { text-decoration: none; color: var(--dark-text); font-weight: 700; padding: 8px 12px; border-radius: 6px; position: relative; transition: color 0.3s ease; }
nav ul li a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--primary-color); transition: all 0.3s ease; }
nav ul li a:hover { color: var(--primary-color); }
nav ul li a:hover::after { width: 100%; left: 0; }
.dropdown { display: none; position: absolute; top: 120%; left: 0; background: #fff; box-shadow: 0 8px 25px rgba(0,0,0,0.1); list-style: none; padding: 10px 0; border-radius: 8px; min-width: 230px; opacity: 0; transform: translateY(10px); transition: all 0.3s ease; }
.dropdown li { margin: 0; }
.dropdown li a { padding: 12px 20px; display: block; white-space: nowrap; font-weight: 400; }
.dropdown li a:hover { background-color: var(--light-bg); color: var(--primary-color); }
nav ul li:hover .dropdown { display: block; opacity: 1; transform: translateY(0); }

/* Hero-Bereich mit Ihrem Schulbild */
.hero {
    /* HIER IST DIE ÄNDERUNG */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('images/schule.png');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: #fff;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}
.hero-content { z-index: 2; position: relative; }
.hero h1 { font-size: 3.5rem; color: #fff; text-shadow: 1px 1px 5px rgba(0,0,0,0.3); }
.hero p { font-size: 1.3rem; margin-bottom: 2.5rem; opacity: 0.95; }
.btn { background-color: var(--primary-color); color: #fff; padding: 15px 35px; text-decoration: none; border-radius: 50px; font-weight: 700; transition: all 0.3s ease; display: inline-block; box-shadow: 0 4px 15px rgba(216, 33, 40, 0.4); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(216, 33, 40, 0.5); background-color: #e53935; }
.fade-in-up { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.fade-in-up { transform: translateY(20px); }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* Eigene Animation für den initial sichtbaren Content-Bereich */
#aktuelles {
    animation: initialFadeIn 1s ease-out 0.5s forwards;
    opacity: 0;
}
@keyframes initialFadeIn {
    to {
        opacity: 1;
    }
}

/* Inhaltsbereiche */
.content-section { padding: 80px 0; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: flex-start; }
.split-left h2, .split-right h2 { text-align: left; border-bottom: 3px solid var(--primary-color); padding-bottom: 10px; display: inline-block; }
.news-item { margin-bottom: 2.5rem; }
.news-item p { margin: 0.5rem 0 1rem 0; }
.news-item a { color: var(--primary-color); text-decoration: none; font-weight: 700; }
.news-item a i { transition: transform 0.3s ease; }
.news-item a:hover i { transform: translateX(5px); }

/* Termin-Design */
.date-list li { display: flex; align-items: center; margin-bottom: 2rem; }
.date-circle { flex-shrink: 0; width: 70px; height: 70px; background-color: var(--light-bg); border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 2px solid var(--border-color); margin-right: 20px; }
.date-day { font-size: 1.8rem; font-weight: 700; color: var(--primary-color); line-height: 1; }
.date-month { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.date-info strong { display: block; color: var(--dark-text); font-size: 1.1rem; }

/* Karten-Design */
.quick-access-section { padding: 80px 0; background-color: var(--light-bg); clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%); margin-top: -10vh;}
.quick-access-section h2 { text-align: center; }
.card-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.card { background: #fff; text-align: center; border-radius: 12px; box-shadow: 0 5px 25px rgba(0,0,0,0.05); padding: 40px 25px; transition: all 0.3s ease; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-10px); box-shadow: 0 12px 35px rgba(0,0,0,0.1); }
.card-icon { width: 70px; height: 70px; margin: 0 auto 1.5rem auto; background: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #fff; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card-link { display: inline-block; margin-top: 1.5rem; font-weight: 700; color: var(--primary-color); text-decoration: none; }
.card-link::after { content: '→'; margin-left: 8px; transition: margin-left 0.3s ease; }
.card:hover .card-link::after { margin-left: 15px; }

/* Scroll-Animationen (für die unteren Elemente) */
.scroll-fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; transition-delay: var(--delay, 0s); }
.scroll-fade-in.in-view { opacity: 1; transform: translateY(0); }

/* Footer */
footer { background-color: var(--dark-text); color: #ccc; padding-top: 60px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #444; }
.footer-col h4 { font-size: 1.2rem; color: #fff; margin-bottom: 1.5rem; }
.footer-col a { color: #ccc; text-decoration: none; transition: color 0.3s; }
.footer-col a:hover { color: var(--primary-color); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-bottom { text-align: center; padding: 25px 0; font-size: 0.9rem; color: #888; }
.footer-bottom .fa-heart { color: var(--primary-color); }

/* ==== Responsive Anpassungen ==== */
@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
    .hero {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
    .quick-access-section {
        clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
        margin-top: -5vh;
    }
    .logo span {
        font-size: 1.1rem; /* Schrift des Logos auf Tablets verkleinern */
    }
}
/* Grundlegende Einstellungen und Frankfurt-Farbschema */
:root {
    --primary-color: #D82128;
    --light-bg: #F8F9FA;
    --dark-text: #212529;
    --text-color: #5f6771;
    --border-color: #e9ecef;
}

/* Allgemeine Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Lato', sans-serif; line-height: 1.7; color: var(--text-color); background-color: #fff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }
h1, h2, h3, h4, .logo, nav ul li a, .btn, .card-link { font-family: 'Lato', sans-serif; }
h1, h2, h3 { color: var(--dark-text); font-weight: 700; }
h2 { font-size: 2.2rem; margin-bottom: 2rem; }
h3 { font-size: 1.3rem; color: var(--primary-color); }

/* Header und Navigation */
header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; color: var(--primary-color); text-decoration: none; font-weight: 700; gap: 25px; }
.logo img { height: 35px; }
.logo span { font-size: 1.3rem; }

nav ul { list-style: none; display: flex; }
nav ul li { position: relative; margin-left: 30px; }
nav ul li a { text-decoration: none; color: var(--dark-text); font-weight: 700; padding: 8px 12px; border-radius: 6px; position: relative; transition: color 0.3s ease; }
nav ul li a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--primary-color); transition: all 0.3s ease; }
nav ul li a:hover { color: var(--primary-color); }
nav ul li a:hover::after { width: 100%; left: 0; }
.dropdown { display: none; position: absolute; top: 120%; left: 0; background: #fff; box-shadow: 0 8px 25px rgba(0,0,0,0.1); list-style: none; padding: 10px 0; border-radius: 8px; min-width: 230px; opacity: 0; transform: translateY(10px); transition: all 0.3s ease; }
.dropdown li { margin: 0; }
.dropdown li a { padding: 12px 20px; display: block; white-space: nowrap; font-weight: 400; }
.dropdown li a:hover { background-color: var(--light-bg); color: var(--primary-color); }
nav ul li:hover .dropdown { display: block; opacity: 1; transform: translateY(0); }

/* Hero-Bereich mit Ihrem Schulbild */
.hero {
    /* HIER IST DIE ÄNDERUNG */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('images/schule.png');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: #fff;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}
.hero-content { z-index: 2; position: relative; }
.hero h1 { font-size: 3.5rem; color: #fff; text-shadow: 1px 1px 5px rgba(0,0,0,0.3); }
.hero p { font-size: 1.3rem; margin-bottom: 2.5rem; opacity: 0.95; }
.btn { background-color: var(--primary-color); color: #fff; padding: 15px 35px; text-decoration: none; border-radius: 50px; font-weight: 700; transition: all 0.3s ease; display: inline-block; box-shadow: 0 4px 15px rgba(216, 33, 40, 0.4); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(216, 33, 40, 0.5); background-color: #e53935; }
.fade-in-up { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.fade-in-up { transform: translateY(20px); }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* Eigene Animation für den initial sichtbaren Content-Bereich */
#aktuelles {
    animation: initialFadeIn 1s ease-out 0.5s forwards;
    opacity: 0;
}
@keyframes initialFadeIn {
    to {
        opacity: 1;
    }
}

/* Inhaltsbereiche */
.content-section { padding: 80px 0; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: flex-start; }
.split-left h2, .split-right h2 { text-align: left; border-bottom: 3px solid var(--primary-color); padding-bottom: 10px; display: inline-block; }
.news-item { margin-bottom: 2.5rem; }
.news-item p { margin: 0.5rem 0 1rem 0; }
.news-item a { color: var(--primary-color); text-decoration: none; font-weight: 700; }
.news-item a i { transition: transform 0.3s ease; }
.news-item a:hover i { transform: translateX(5px); }

/* Termin-Design */
.date-list li { display: flex; align-items: center; margin-bottom: 2rem; }
.date-circle { flex-shrink: 0; width: 70px; height: 70px; background-color: var(--light-bg); border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 2px solid var(--border-color); margin-right: 20px; }
.date-day { font-size: 1.8rem; font-weight: 700; color: var(--primary-color); line-height: 1; }
.date-month { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.date-info strong { display: block; color: var(--dark-text); font-size: 1.1rem; }

/* Karten-Design */
.quick-access-section { padding: 80px 0; background-color: var(--light-bg); clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%); margin-top: -10vh;}
.quick-access-section h2 { text-align: center; }
.card-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.card { background: #fff; text-align: center; border-radius: 12px; box-shadow: 0 5px 25px rgba(0,0,0,0.05); padding: 40px 25px; transition: all 0.3s ease; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-10px); box-shadow: 0 12px 35px rgba(0,0,0,0.1); }
.card-icon { width: 70px; height: 70px; margin: 0 auto 1.5rem auto; background: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #fff; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card-link { display: inline-block; margin-top: 1.5rem; font-weight: 700; color: var(--primary-color); text-decoration: none; }
.card-link::after { content: '→'; margin-left: 8px; transition: margin-left 0.3s ease; }
.card:hover .card-link::after { margin-left: 15px; }

/* Scroll-Animationen (für die unteren Elemente) */
.scroll-fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; transition-delay: var(--delay, 0s); }
.scroll-fade-in.in-view { opacity: 1; transform: translateY(0); }

/* Footer */
footer { background-color: var(--dark-text); color: #ccc; padding-top: 60px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #444; }
.footer-col h4 { font-size: 1.2rem; color: #fff; margin-bottom: 1.5rem; }
.footer-col a { color: #ccc; text-decoration: none; transition: color 0.3s; }
.footer-col a:hover { color: var(--primary-color); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-bottom { text-align: center; padding: 25px 0; font-size: 0.9rem; color: #888; }
.footer-bottom .fa-heart { color: var(--primary-color); }

/* ==== Responsive Anpassungen ==== */
@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
    .hero {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
    .quick-access-section {
        clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
        margin-top: -5vh;
    }
    .logo span {
        font-size: 1.1rem; /* Schrift des Logos auf Tablets verkleinern */
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0; /* Weniger vertikaler Abstand im Hero-Bereich */
    }
    .hero h1 {
        font-size: 2.2rem; /* Schriftgröße der Hauptüberschrift stark reduzieren */
        line-height: 1.2;  /* Zeilenhöhe anpassen, falls Text umbricht */
    }
    .hero p {
        font-size: 1.1rem; /* Schriftgröße des Slogans reduzieren */
    }
    .logo span {
        font-size: 1rem; /* Schrift des Logos noch kleiner machen */
    }
    .logo img {
        height: 30px; /* Wappen verkleinern */
    }
    h2 {
        font-size: 1.8rem;
    }
    nav {
        display: none; /* Navigation ausblenden (für späteres Hamburger-Menü) */
    }
}
@media (max-width: 768px) {
    .hero {
        padding: 80px 0; /* Weniger vertikaler Abstand im Hero-Bereich */
    }
    .hero h1 {
        font-size: 2.2rem; /* Schriftgröße der Hauptüberschrift stark reduzieren */
        line-height: 1.2;  /* Zeilenhöhe anpassen, falls Text umbricht */
    }
    .hero p {
        font-size: 1.1rem; /* Schriftgröße des Slogans reduzieren */
    }
    .logo span {
        font-size: 1rem; /* Schrift des Logos noch kleiner machen */
    }
    .logo img {
        height: 30px; /* Wappen verkleinern */
    }
    h2 {
        font-size: 1.8rem;
    }
    nav {
        display: none; /* Navigation ausblenden (für späteres Hamburger-Menü) */
    }
}