/*
Theme Name: FASS - Fördergemeinschaft Augusta-Sibylla-Schule
Theme URI: https://foerdergemeinschaft-augusta-sibylla-schule.de
Author: Fördergemeinschaft Freunde der Augusta-Sibylla-Schule e.V.
Description: WordPress-Theme für die Fördergemeinschaft Freunde der Augusta-Sibylla-Schule Rastatt e.V.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fass
Tags: custom-menu, featured-images, translation-ready, one-column

Farben: Burgunderrot (#8e1021), Gelb (#f6ec07), Weiß, Schwarz
*/

/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

a {
    color: #8e1021;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #6b0c19;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #222;
    margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 1em;
}

/* === Layout === */
.site-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-main {
    flex: 1;
}

/* === Header === */
.site-header {
    background-color: #8e1021;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    min-height: 70px;
}

/* Logo */
.site-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-logo .logo-text {
    line-height: 1.3;
}

.site-logo .logo-text .logo-main {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
}

.site-logo .logo-text .logo-sub {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.85;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 24px 16px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
    background-color: rgba(255, 255, 255, 0.15);
    color: #f6ec07;
}

/* Dropdown */
.nav-menu > li > .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background-color: #8e1021;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.nav-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.sub-menu li:last-child a {
    border-bottom: none;
}

.sub-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    padding-left: 26px;
    color: #f6ec07;
}

/* Header Search */
.header-search {
    margin-left: 10px;
}

.header-search .search-toggle {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.header-search .search-toggle:hover {
    color: #f6ec07;
}

.header-search .search-form-popup {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    display: none;
    z-index: 1001;
}

.header-search .search-form-popup.active {
    display: block;
}

.header-search .search-form-popup input[type="search"] {
    border: 2px solid #8e1021;
    padding: 8px 12px;
    font-size: 0.9rem;
    width: 250px;
    outline: none;
    border-radius: 3px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
}

.menu-toggle .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* === Hero Section (Homepage) === */
.hero-section {
    background-color: #8e1021;
    color: #fff;
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
}

.hero-section h1 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.scroll-down {
    display: inline-block;
    margin-top: 20px;
    animation: bounce 2s infinite;
    color: #f6ec07;
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* === School Image Section === */
.school-image-section {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.school-image-section img {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* === Content Sections === */
.content-section {
    padding: 50px 0;
}

.content-section.alt-bg {
    background-color: #f9f9f9;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: center;
    padding: 0 20px;
}

.intro-text h2 {
    color: #8e1021;
    margin-bottom: 20px;
}

/* === News Section (Homepage) === */
.news-section {
    padding: 50px 0;
    background-color: #fff;
}

.news-section .section-title {
    text-align: center;
    color: #8e1021;
    font-size: 1.8rem;
    margin-bottom: 40px;
    position: relative;
}

.news-section .section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #f6ec07;
    margin: 10px auto 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.news-card .card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .card-image img {
    transform: scale(1.05);
}

.news-card .card-content {
    padding: 20px;
}

.news-card .card-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #222;
}

.news-card .card-title a {
    color: inherit;
}

.news-card .card-title a:hover {
    color: #8e1021;
}

.news-card .card-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-card .read-more {
    display: inline-block;
    color: #8e1021;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.news-card .read-more:hover {
    color: #6b0c19;
}

.news-card .read-more::after {
    content: " \2192";
}

.all-news-link {
    text-align: center;
    margin-top: 40px;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: #f6ec07;
    color: #000;
}

.btn-primary:hover {
    background-color: #e0d700;
    color: #000;
}

.btn-secondary {
    background-color: #8e1021;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #6b0c19;
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid #8e1021;
    color: #8e1021;
}

.btn-outline:hover {
    background-color: #8e1021;
    color: #fff;
}

/* === Page Header (Inner Pages) === */
.page-header {
    background-color: #8e1021;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0;
}

.page-header .breadcrumbs {
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.page-header .breadcrumbs a {
    color: #f6ec07;
}

.page-header .breadcrumbs a:hover {
    color: #fff;
}

/* === Page Content === */
.page-content {
    padding: 50px 0;
}

.page-content .entry-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

.page-content .entry-content h2 {
    color: #8e1021;
    margin-top: 1.5em;
}

.page-content .entry-content h3 {
    color: #8e1021;
    margin-top: 1.2em;
}

.page-content .entry-content ul,
.page-content .entry-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.page-content .entry-content ul {
    list-style: disc;
}

.page-content .entry-content ol {
    list-style: decimal;
}

.page-content .entry-content li {
    margin-bottom: 0.5em;
}

.page-content .entry-content blockquote {
    border-left: 4px solid #8e1021;
    padding: 15px 20px;
    margin: 1.5em 0;
    background-color: #f9f9f9;
    font-style: italic;
}

.page-content .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.page-content .entry-content th,
.page-content .entry-content td {
    padding: 10px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.page-content .entry-content th {
    background-color: #8e1021;
    color: #fff;
}

.page-content .entry-content img {
    border-radius: 6px;
    margin: 1em 0;
}

/* === Single Post === */
.single-post-meta {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.single-post-meta span {
    margin: 0 10px;
}

.post-thumbnail {
    margin-bottom: 30px;
    text-align: center;
}

.post-thumbnail img {
    border-radius: 6px;
    max-width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.post-navigation a {
    font-weight: 600;
    font-size: 0.9rem;
}

/* === Archive / News Listing === */
.archive-content {
    padding: 50px 0;
}

/* === Contact Page === */
.contact-section {
    padding: 50px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h3 {
    color: #8e1021;
    margin-bottom: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.contact-info-item .dashicons {
    color: #8e1021;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-form h3 {
    color: #8e1021;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #8e1021;
    outline: none;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === Footer === */
.site-footer {
    background-color: #222;
    color: #ccc;
    padding: 40px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
}

.footer-col h4 {
    color: #f6ec07;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col p,
.footer-col li {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #aaa;
}

.footer-col a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #f6ec07;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #aaa;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding: 15px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

.footer-bottom a {
    color: #aaa;
}

.footer-bottom a:hover {
    color: #f6ec07;
}

/* === Snow Particles Overlay === */
#snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* === WordPress Defaults === */
.alignleft {
    float: left;
    margin: 0 1.5em 1em 0;
}

.alignright {
    float: right;
    margin: 0 0 1em 1.5em;
}

.aligncenter {
    display: block;
    margin: 0 auto 1em;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1em;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    padding-top: 5px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 1.5em 0;
}

.gallery-item img {
    border-radius: 4px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* === Pagination === */
.pagination {
    text-align: center;
    margin: 40px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: #8e1021;
    border-color: #8e1021;
    color: #fff;
}

/* === Cookie Notice (simple) === */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #8e1021;
    color: #fff;
    padding: 15px 20px;
    z-index: 10000;
    display: none;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-notice.show {
    display: block;
}

.cookie-notice-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-notice p {
    margin: 0;
    font-size: 0.9rem;
    flex: 1;
}

.cookie-notice a {
    color: #f6ec07;
}

.cookie-notice .btn-cookie-accept {
    background-color: #f6ec07;
    color: #000;
    border: none;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.cookie-notice .btn-cookie-accept:hover {
    background-color: #e0d700;
}

/* === Responsive Design === */
@media (max-width: 992px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
    }

    .main-navigation {
        display: none;
        width: 100%;
        order: 3;
        flex-direction: column;
    }

    .main-navigation.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu > li > a {
        padding: 14px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu > li > .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.15);
        display: none;
    }

    .nav-menu > li.submenu-open > .sub-menu {
        display: block;
    }

    .sub-menu li a {
        padding-left: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .site-logo .logo-text .logo-main {
        font-size: 0.9rem;
    }

    .site-logo .logo-text .logo-sub {
        font-size: 0.65rem;
    }

    .hero-section {
        padding: 40px 15px 30px;
    }

    .content-section {
        padding: 30px 0;
    }
}
