/* Volksschule Jägergrund - Custom Styles */

/* CSS Custom Properties (exact values from brand SVGs) */
:root {
    --color-evergreen: #036247;
    --color-spark-orange: #f86d25;
    --color-sunbeam: #f9eca3;
    --color-exploreblue: #1093da;
    --color-softbloom: #f7cbe8;
    --color-sageleaf: #a5c2a0;
    --color-chalk: #f7f3ed;
    --color-skydrift: #b3d8e6;
    --color-bg: #f7f3ed;
    --color-card-tan: #c8a96e;
    --color-text: #333333;
    --color-text-light: #ffffff;
}

/* Base resets and typography */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation transitions */
#main-nav {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

#main-nav.scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

/* Hero text shadow for readability */
.hero-text-shadow {
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

/* Hero photo rounded right edge mask */
.hero-photo-mask {
    background: var(--color-chalk);
    clip-path: ellipse(30% 100% at 100% 50%);
    position: absolute;
    right: -1px;
    top: 0;
    bottom: 0;
    width: 25%;
}

@media (max-width: 1023px) {
    .hero-photo-mask {
        clip-path: ellipse(100% 20% at 50% 100%);
        right: 0;
        width: 100%;
        height: 25%;
        top: auto;
    }
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pattern background */
.pattern-bg {
    background-image: url('/assets/img/patterns/Pattern_EVERGREEN.svg');
    background-repeat: repeat;
    background-size: 200px;
    opacity: 0.03;
}

/* Team filter animations */
.team-member {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.team-member.hidden-filter {
    opacity: 0;
    transform: scale(0.95);
    position: absolute;
    pointer-events: none;
}

/* Team filter button states */
.team-filter-btn {
    transition: all 0.2s ease;
}

.team-filter-btn.active {
    background-color: var(--color-evergreen) !important;
    color: white !important;
}

/* Gallery lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

/* WYSIWYG content styles */
.wysiwyg-content h1 { font-size: 2em; font-weight: 700; margin: 1em 0 0.5em; color: var(--color-evergreen); }
.wysiwyg-content h2 { font-size: 1.5em; font-weight: 700; margin: 1em 0 0.5em; color: var(--color-evergreen); }
.wysiwyg-content h3 { font-size: 1.25em; font-weight: 600; margin: 1em 0 0.5em; color: var(--color-evergreen); }
.wysiwyg-content p { margin: 0.75em 0; line-height: 1.7; }
.wysiwyg-content ul { list-style: disc; padding-left: 1.5em; margin: 0.75em 0; }
.wysiwyg-content ol { list-style: decimal; padding-left: 1.5em; margin: 0.75em 0; }
.wysiwyg-content li { margin: 0.25em 0; }
.wysiwyg-content a { color: var(--color-evergreen); text-decoration: underline; }
.wysiwyg-content a:hover { color: var(--color-spark-orange); }
.wysiwyg-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1em 0; }
.wysiwyg-content blockquote {
    border-left: 4px solid var(--color-sageleaf);
    padding: 0.75em 1em;
    margin: 1em 0;
    background: rgba(165, 194, 160, 0.1);
    border-radius: 0 8px 8px 0;
}
.wysiwyg-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.wysiwyg-content th, .wysiwyg-content td { border: 1px solid #e5e7eb; padding: 0.5em 0.75em; text-align: left; }
.wysiwyg-content th { background: var(--color-chalk); font-weight: 600; }

/* Admin tabs */
.admin-tab {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.2s;
}

.admin-tab.active {
    border-bottom-color: var(--color-evergreen);
    color: var(--color-evergreen);
}

.admin-tab:hover {
    color: var(--color-evergreen);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Print styles */
@media print {
    #main-nav, footer, .no-print { display: none !important; }
    body { background: white; }
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-evergreen);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    z-index: 999;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

/* Smooth scroll for anchors */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 3px solid var(--color-spark-orange);
    outline-offset: 2px;
    border-radius: 2px;
}
