/* ========================================
   Wilhelm-Lehmbruck-Schule Dorsten
   Onepager Stylesheet
   ======================================== */

/* Font-Face Definitionen */
@font-face {
    font-family: 'Segoe UI';
    src: url('../fonts/segoe-ui/segoeui.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Segoe UI';
    src: url('../fonts/segoe-ui/segoeuib.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Segoe UI';
    src: url('../fonts/segoe-ui/segoeuii.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Segoe UI';
    src: url('../fonts/segoe-ui/segoeuil.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Segoe UI';
    src: url('../fonts/segoe-ui/seguisb.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Font Awesome */
@font-face {
    font-family: 'Font Awesome 6 Free';
    src: url('../fonts/font-awesome/fa-solid-900.woff2') format('woff2'),
         url('../fonts/font-awesome/fa-solid-900.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    src: url('../fonts/font-awesome/fa-brands-400.woff2') format('woff2'),
         url('../fonts/font-awesome/fa-brands-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --primary-color: #CF731E;
    --primary-dark: #a85818;
    --primary-light: #e38d47;
    --secondary-color: #95C11F;
    --accent-orange: #E94E1B;
    --accent-blue: #009FE3;
    --accent-yellow: #FFCC00;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --footer-bg: #2d2d2d;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-white);
    font-size: 1rem;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

/* Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

/* ========================================
   Header & Navigation
   ======================================== */
header {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-top {
    display: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 110px;
    width: auto;
}

.logo-text {
    display: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    font-weight: 600;
    color: #ffffff;
    padding: 10px 0;
    position: relative;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #ffffff;
    opacity: 0.8;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 5px 0;
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: url('../img/Wilhelm-Lehmbruck-Schule2-1067x800.jpg') center/cover no-repeat;
    color: white;
    min-height: 75vh;
    padding: 80px 0 120px;
    text-align: left;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Grauer Layer über dem Hero-Bild */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.hero .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: url('../img/dorsten-note-2437429-rotated.png') repeat-x bottom;
    background-size: auto 100%;
    z-index: 10;
}

@media (max-width: 768px) {
    .hero::before {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .hero::before {
        height: 30px;
    }
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: left;
}

@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
        letter-spacing: 0.5px;
    }
}

/* ========================================
   Sections
   ======================================== */
section {
    padding: 80px 0;
    border-radius: 0;
}

@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }
}

section:nth-child(even) {
    background-color: var(--bg-light);
}

section .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    border-radius: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    line-height: 1.2;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Base heading styles */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Standard Heading-Größen (CI-konform) */
h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }

/* Responsive Heading-Größen */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.15rem; }
    h5 { font-size: 1.05rem; }
    h6 { font-size: 1rem; }
}

/* ========================================
   Quick Links / Features Grid
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        gap: 15px;
    }
}

.feature-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 0;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.feature-card h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========================================
   Info Box / Contact Card
   ======================================== */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: start;
}

.info-card {
    background: var(--bg-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.info-card-header {
    background: var(--primary-color);
    color: white;
    padding: 20px 25px;
}

.info-card-header h3 {
    font-size: 1.3rem;
    margin: 0;
    color: #ffffff;
}

.info-card-content {
    padding: 25px;
}

.info-card-content p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 480px) {
    .info-card-content p {
        gap: 10px;
        font-size: 0.9rem;
    }
}

.info-card-content .icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    min-width: 24px;
}

.info-card-content a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.info-card-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Opening Hours Table */
.opening-hours {
    width: 100%;
    border-collapse: collapse;
}

.opening-hours tr {
    border-bottom: 1px solid #eee;
}

.opening-hours tr:last-child {
    border-bottom: none;
}

.opening-hours td {
    padding: 12px 0;
}

@media (max-width: 480px) {
    .opening-hours td {
        padding: 8px 0;
        font-size: 0.9rem;
    }
}

.opening-hours td:first-child {
    font-weight: 500;
    color: var(--text-dark);
}

.opening-hours td:last-child {
    text-align: right;
    color: var(--text-light);
}

.opening-hours .closed {
    color: var(--accent-orange);
}

/* ========================================
   CTA Button
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 0;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* ========================================
   Map Section
   ======================================== */
.map-container {
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
}

@media (max-width: 768px) {
    .map-container {
        height: 350px;
    }
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   Partner Section
   ======================================== */
.partners {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partner-logo {
    max-height: 80px;
    filter: grayscale(30%);
    transition: var(--transition);
}

.partner-logo:hover {
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .partner-logo {
        max-height: 60px;
    }
    
    .partners {
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .partner-logo {
        max-height: 50px;
    }
    
    .partners {
        gap: 20px;
    }
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: #706f6f;
    color: #ffffff;
    padding: 0 0 2rem 0;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

/* Hintergrund mit Wappen */
footer::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-image: url('../img/wappen_dorsten_weiss.svg');
    background-repeat: no-repeat;
    background-position: 20% 20%;
    background-size: 450px;
    opacity: 0.15;
    pointer-events: none;
    display: block;
    z-index: 0;
}

@media (max-width: 768px) {
    footer::before {
        background-size: 300px;
        background-position: center 30%;
        opacity: 0.1;
    }
}

@media (max-width: 480px) {
    footer::before {
        background-size: 200px;
        opacity: 0.08;
    }
}

.footer-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
}

/* Footer-Spalten mit Quadraten */
.footer-section {
    flex: 1;
    padding: 60px 15px 0 15px;
    min-width: 200px;
    position: relative;
}

/* Erste Spalte: kein padding-left für Bündigkeit */
.footer-section:first-child {
    padding-left: 0;
}

/* Quadrate vor jeder Spalte (außer Logo-Spalte) */
.footer-section:not(.footer-logo-section)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: #B9B9BA;
    display: block;
    z-index: 1;
}

/* Erste Spalte hat Quadrat bei left: 0 */
.footer-section:first-child::before {
    left: 0;
}

/* Logo-Spalte: kein Quadrat, kein padding-top */
.footer-section.footer-logo-section {
    padding-top: 0;
    padding-right: 0;
    padding-left: 0;
}

.footer-section.footer-logo-section::before {
    display: none;
}

.footer-section h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
    border-bottom: none;
    padding-bottom: 0.5rem;
}

.footer-section p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.3;
    color: #ffffff;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
}

.footer-section a:hover {
    color: #ffffff;
    text-decoration: none;
    position: relative;
}

/* Hover-Effekt mit Unterstrich */
.footer-section a:hover::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ffffff;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
}

/* Farbige Quadrate über dem Logo */
.color-squares {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.color-square {
    width: 40px;
    height: 40px;
    margin-left: 15px;
    display: block;
}

.color-square.green {
    background-color: #80B022;
}

.color-square.blue {
    background-color: #007DBF;
}

.color-square.gray {
    background-color: #575756;
}

.footer-logo {
    width: 300px;
    height: 81px;
    filter: brightness(0) invert(1);
    -webkit-filter: brightness(0) invert(1);
}

/* Footer Listen ohne Bullets */
.footer-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 4px;
    padding-left: 0;
}

.footer-section ul li::before {
    display: none;
    content: none;
}

.footer-section ul a {
    display: inline-block;
    padding: 4px 0;
}

/* Footer Tabellen Styling */
.footer-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: transparent;
}

.footer-section table th,
.footer-section table td {
    background: transparent;
    border: none;
    text-align: left;
    color: #ffffff;
    line-height: 1.3;
}

@media (max-width: 480px) {
    .footer-section table th,
    .footer-section table td {
        font-size: 0.85rem;
    }
}

.footer-section table th {
    padding: 2px 15px 2px 0;
    font-weight: 400;
    text-transform: none;
}

.footer-section table td {
    padding: 2px 0;
}

.footer-section table tbody tr {
    border: none;
    background: transparent;
}

/* ========================================
   Legal Pages (Impressum, Datenschutz)
   ======================================== */
.legal-page {
    padding-top: 120px;
    min-height: 100vh;
}

.legal-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

.legal-content h1 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.legal-content h2 {
    color: var(--primary-color);
    margin: 30px 0 15px;
    font-size: 1.5rem;
}

.legal-content h3 {
    color: var(--text-dark);
    margin: 25px 0 10px;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
    
    .legal-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .legal-page {
        padding-top: 100px;
    }
    
    .legal-content h1 {
        font-size: 1.75rem;
    }
    
    .legal-content h2 {
        font-size: 1.2rem;
    }
}

.legal-content p {
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Basis Paragraph-Styles */
p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.legal-content ul {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-content li {
    margin-bottom: 8px;
    color: var(--text-light);
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .header-content {
        padding: 10px 15px;
    }

    .logo img {
        height: 45px;
    }

    .logo-text {
        font-size: 0.95rem;
    }

    .logo-text span {
        font-size: 0.75rem;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(45, 45, 45, 0.98);
        box-shadow: var(--shadow);
        padding: 20px;
        backdrop-filter: blur(10px);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    nav a {
        color: #ffffff;
        padding: 12px 15px;
        display: block;
    }
    
    nav a:hover {
        background: rgba(207, 115, 30, 0.2);
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 120px 20px 100px;
        min-height: 60vh;
    }



    section {
        padding: 50px 15px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .info-section {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-section {
        padding-left: 0;
        padding-right: 0;
        padding-top: 30px;
        margin-bottom: 20px;
    }
    
    .footer-section:first-child {
        padding-top: 20px;
    }

    .footer-section::before,
    .footer-section:not(.footer-logo-section)::before {
        display: none !important;
    }

    .footer-logo-section {
        justify-content: center;
        align-items: center;
        text-align: center;
        padding-top: 30px;
        margin-top: 20px;
    }
    
    .footer-logo {
        width: 250px;
        height: auto;
    }
    
    .color-squares {
        display: none;
    }
}

@media (max-width: 992px) {
    .footer-section {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .footer-logo-section {
        flex: 0 0 50%;
        max-width: 50%;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .feature-card {
        padding: 25px 15px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .info-card-header {
        padding: 15px 20px;
    }
    
    .info-card-header h3 {
        font-size: 1.1rem;
    }
    
    .info-card-content {
        padding: 20px;
    }
    
    .map-container {
        height: 300px;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
