/*
Theme Name: Grundschule "Am Wall" Friedland
Theme URI: https://grundschule-amwall-friedland.de/
Author: Antigravity AI
Description: Custom WordPress Theme cloned from Joomla for Grundschule "Am Wall" Friedland.
Version: 1.0.0
Text Domain: grundschule-amwall
*/

:root {
    --primary-yellow: #FDD213;
    --primary-blue: #3366FF;
    --primary-blue-hover: #0037DD;
    --text-dark: #050505;
    --text-muted: #555555;
    --bg-page: #EFEFEF;
    --bg-wrapper: #FFFFFF;
    --accent-green: #008000;
    --accent-lightgreen: #99CC00;
    --accent-red: #FF0000;
    --container-max: 1320px;
    --font-main: 'Verdana', Arial, Helvetica, sans-serif;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-page);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover, a:focus {
    color: var(--primary-blue-hover);
    text-decoration: underline;
}

/* Boxed Layout Wrapper */
.body-wrapper {
    max-width: var(--container-max);
    margin: 0 auto;
    background-color: var(--bg-wrapper);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Section (#sp-logo) */
#sp-logo {
    background-image: url('assets/images/bann.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-color: #FFFFFF;
    padding: 20px 0;
    border-bottom: 1px solid #E5E5E5;
}

.header-logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title-heading {
    font-size: 28px;
    font-weight: bold;
    color: #0A0A0A;
}

.site-title-heading a {
    color: #0A0A0A;
    text-decoration: none;
}

.site-title-heading a:hover {
    color: var(--primary-blue);
}

.site-logo img {
    max-height: 75px;
    width: auto;
    display: block;
}

/* Primary Header Navigation (#sp-header) */
#sp-header {
    background-color: var(--primary-yellow);
    border-bottom: 2px solid #E6BD00;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 55px;
}

.sp-megamenu-parent {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.sp-megamenu-parent > li {
    position: relative;
}

.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
    font-family: var(--font-main);
    font-size: 17px;
    font-weight: 500;
    color: #000000;
    text-decoration: none;
    padding: 15px 18px;
    display: block;
    transition: background-color 0.2s, color 0.2s;
}

.sp-megamenu-parent > li:hover > a,
.sp-megamenu-parent > li.active > a {
    background-color: rgba(0, 0, 0, 0.08);
    color: #000000;
    font-weight: bold;
}

/* Dropdown Menu */
.sp-megamenu-parent .sp-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    background-color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 4px 4px;
    display: none;
    z-index: 999;
}

.sp-megamenu-parent > li:hover .sp-dropdown {
    display: block;
}

.sp-dropdown-items {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.sp-dropdown-items li a {
    font-family: var(--font-main);
    font-size: 15px;
    color: #333333;
    padding: 8px 20px;
    display: block;
    text-decoration: none;
}

.sp-dropdown-items li a:hover {
    background-color: var(--primary-yellow);
    color: #000000;
    font-weight: bold;
}

/* Mobile Off-Canvas Burger */
.offcanvas-toggler {
    display: none;
    font-size: 24px;
    color: #000000;
    cursor: pointer;
    padding: 10px 15px;
    background: none;
    border: none;
}

/* Mobile Navigation Overlay */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #FFFFFF;
    box-shadow: -4px 0 15px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}

.mobile-nav-drawer.open {
    right: 0;
}

.mobile-nav-close {
    text-align: right;
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 20px;
}

.mobile-menu-list {
    list-style: none;
}

.mobile-menu-list li a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #EEEEEE;
    font-size: 16px;
    color: #000000;
}

/* Hero Carousel Slider */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000000;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide-item {
    min-width: 100%;
    position: relative;
}

.slide-item img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
}

.slider-arrow {
    background: rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    border: none;
    transition: background 0.2s;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.indicator-dot.active {
    background: #FFFFFF;
}

/* Main Content Area */
#sp-main-body {
    padding: 40px 0;
    flex-grow: 1;
}

.content-box {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 6px;
}

.heading-primary {
    font-size: 24pt;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.section-title {
    font-size: 18pt;
    color: var(--accent-green);
    text-align: center;
    margin: 25px 0 15px 0;
}

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

.alert-red {
    color: var(--accent-red);
    font-size: 14pt;
    font-weight: bold;
}

.alert-green {
    color: var(--accent-green);
    font-size: 14pt;
}

/* Timetable Grid Table */
.timetable-box {
    max-width: 700px;
    margin: 25px auto;
    background: #F9F9F9;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 20px;
}

.timetable-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px dashed #DDD;
    font-size: 14pt;
}

.timetable-row:last-child {
    border-bottom: none;
}

.timetable-row.leseband {
    color: var(--primary-blue);
    font-style: italic;
    background-color: #EFF4FF;
    border-radius: 4px;
}

/* Startchancen Card */
.startchancen-card {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #EEEEEE;
}

.startchancen-img {
    max-width: 340px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Footer Section (#sp-footer) */
#sp-footer {
    background-color: var(--primary-yellow);
    color: #050505;
    padding: 25px 0;
    margin-top: auto;
    border-top: 2px solid #E6BD00;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-contact {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-contact a {
    color: #050505;
    font-weight: 500;
}

.footer-links a {
    color: #050505;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Scroll to Top Button */
.sp-scroll-up {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--primary-blue);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: background 0.2s;
    z-index: 1500;
}

.sp-scroll-up:hover {
    background: var(--primary-blue-hover);
    color: #FFFFFF;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .sp-megamenu-parent {
        display: none;
    }

    .offcanvas-toggler {
        display: block;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
