/*
Theme Name: Schubartschule
Theme URI: https://schubartschule.de
Author: Schubartschule
Author URI: https://schubartschule.de
Description: Offizielle Website der Schubartschule – Grundschule Eglosheim, Ludwigsburg. Vielfalt leben – miteinander lernen.
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: schubartschule
Tags: education, school, elementary, bilingual, responsive
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ═══════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════ */
:root {
  --font-sans: 'Nunito', 'Segoe UI', sans-serif;
  --font-display: 'Baloo 2', cursive;
  --font-accent: 'Caveat', cursive;
  --color-sun: #FFB830;
  --color-sun-light: #FFF0CC;
  --color-sky: #4A9BD9;
  --color-sky-deep: #2D6FA0;
  --color-sky-light: #E8F4FD;
  --color-grass: #5CB85C;
  --color-grass-dark: #3D8B3D;
  --color-earth: #D4956A;
  --color-earth-light: #F5E6D8;
  --color-coral: #FF6B6B;
  --color-violet: #9B6BCC;
  --color-cream: #FFF9F0;
  --color-dark: #2C3E50;
}

/* ═══════════════════════════════════════════════════
   RESET / BASE
   ═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  color: #3A3A3A;
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

html { scroll-behavior: smooth; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

::selection {
  background: rgba(74, 155, 217, 0.2);
  color: var(--color-dark);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-cream); }
::-webkit-scrollbar-thumb { background: #c4b5a0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a89682; }

/* ═══════════════════════════════════════════════════
   CONTAINER
   ═══════════════════════════════════════════════════ */
.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 640px) {
  .container-custom { padding: 0 2rem; }
}
@media (min-width: 1024px) {
  .container-custom { padding: 0 2.5rem; }
}

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.hero-gradient {
  background: linear-gradient(170deg, #E8F4FD 0%, #FFF0CC 40%, #FFF9F0 70%, #F5E6D8 100%);
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: floatShape 12s ease-in-out infinite;
  will-change: transform;
}
@keyframes floatShape {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  33% { transform: translateY(-20px) scale(1.04) rotate(2deg); }
  66% { transform: translateY(-30px) scale(1.02) rotate(-1deg); }
}

/* ═══════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════ */
.section-warm {
  background: linear-gradient(170deg, #FFF9F0, #F5E6D8);
  padding: 5rem 0;
}
.section-sky {
  background: linear-gradient(170deg, #E8F4FD, #FFF9F0);
  padding: 5rem 0;
}
.section-news {
  background: linear-gradient(170deg, #FFF9F0, #FFE8D0);
  padding: 5rem 0;
}
.section-dark {
  background: linear-gradient(170deg, #2C3E50, #1A2A3A);
  color: white;
  padding: 5rem 0;
}

/* ═══════════════════════════════════════════════════
   PAGE HEADER
   ═══════════════════════════════════════════════════ */
.page-header {
  background: linear-gradient(135deg, #4A9BD9 0%, #2D6FA0 100%);
  color: white;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,184,48,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

/* ═══════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════ */
.card-hover {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.feature-card {
  position: relative;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  transition: height 0.3s ease;
}
.feature-card:hover::before { height: 6px; }
.feature-card:nth-child(1)::before { background: #FFB830; }
.feature-card:nth-child(2)::before { background: #4A9BD9; }
.feature-card:nth-child(3)::before { background: #5CB85C; }
.feature-card:nth-child(4)::before { background: #FF6B6B; }
.feature-card:nth-child(5)::before { background: #9B6BCC; }
.feature-card:nth-child(6)::before { background: #D4956A; }

.stat-card {
  background: white;
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 240, 204, 0.5);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s ease;
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.contact-card-dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.4s ease,
              box-shadow 0.4s ease;
}
.contact-card-dark:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */
.btn-warm {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #FFB830, #FF9F30);
  color: white;
  box-shadow: 0 6px 20px rgba(255, 184, 48, 0.35);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn-warm:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 32px rgba(255, 184, 48, 0.5);
  filter: brightness(1.05);
  color: white;
}
.btn-warm:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 16px rgba(255, 184, 48, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  background: white;
  color: #2D6FA0;
  border: 2px solid #4A9BD9;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.btn-outline:hover {
  background: #E8F4FD;
  border-color: #2D6FA0;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px rgba(74, 155, 217, 0.2);
  color: #2D6FA0;
}
.btn-outline:active {
  transform: translateY(0) scale(0.98);
}

/* ═══════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  transition: all 0.3s ease;
}
.site-nav.scrolled {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-topbar {
  background: linear-gradient(to right, var(--color-sky), var(--color-sky-deep));
  color: white;
  font-size: 0.875rem;
  padding: 0.375rem 0;
}

.nav-link {
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s ease;
}
.nav-link:hover {
  color: var(--color-sky);
  background: rgba(74, 155, 217, 0.05);
}
.nav-link.active {
  color: var(--color-sky);
  background: rgba(74, 155, 217, 0.1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-links-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-dark);
}
@media (min-width: 768px) {
  .nav-links-desktop {
    display: flex;
  }
  .mobile-toggle {
    display: none;
  }
}
.mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease;
}
.mobile-menu.open {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════
   TAG / PILL
   ═══════════════════════════════════════════════════ */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tag-pill:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Color utilities */
.bg-sky-10 { background: rgba(74,155,217,0.1); }
.text-sky { color: var(--color-sky); }
.bg-violet-10 { background: rgba(155,107,204,0.1); }
.text-violet { color: var(--color-violet); }
.bg-grass-10 { background: rgba(92,184,92,0.1); }
.text-grass { color: var(--color-grass); }
.bg-sun-10 { background: rgba(255,184,48,0.1); }
.text-sun { color: var(--color-sun); }
.bg-coral-10 { background: rgba(255,107,107,0.1); }
.text-coral { color: var(--color-coral); }
.bg-earth-10 { background: rgba(212,149,106,0.1); }
.text-earth { color: var(--color-earth); }

.border-sky { border-color: var(--color-sky) !important; }
.border-sun { border-color: var(--color-sun) !important; }
.border-grass { border-color: var(--color-grass) !important; }
.border-coral { border-color: var(--color-coral) !important; }
.border-violet { border-color: var(--color-violet) !important; }
.border-earth { border-color: var(--color-earth) !important; }

/* ═══════════════════════════════════════════════════
   QUICK LINK CARDS
   ═══════════════════════════════════════════════════ */
.quick-link-section {
  padding: 5rem 0 6rem;
  background: linear-gradient(135deg, var(--color-sky), var(--color-sky-deep));
  color: white;
  position: relative;
  overflow: hidden;
}
.quick-link-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
}
.quick-link-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  color: white;
}

/* ═══════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════ */
.faq-item {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  border: 2px solid #f3f4f6;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}
.faq-item.open {
  border-color: rgba(74,155,217,0.3);
  box-shadow: 0 8px 24px rgba(74,155,217,0.08);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  text-align: left;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
}
.faq-question .icon-help { color: #9ca3af; transition: color 0.3s; }
.faq-item.open .faq-question .icon-help { color: var(--color-sky); }
.faq-item.open .faq-question .q-text { color: var(--color-sky); }
.faq-chevron {
  transition: transform 0.4s ease;
  color: #9ca3af;
  flex-shrink: 0;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-sky);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer-inner {
  padding: 0 1.75rem 1.5rem 3.5rem;
  color: #4b5563;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════════ */
.timeline-line {
  position: absolute;
  left: 52px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-sun), var(--color-sky), var(--color-grass));
}
.timeline-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 12px 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.timeline-card:hover {
  transform: translateX(4px);
}
.timeline-time {
  width: 5rem;
  text-align: right;
  font-size: 0.875rem;
  font-weight: 700;
  color: #6b7280;
  flex-shrink: 0;
}
.timeline-dot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-size: 1.25rem;
  border: 2px solid var(--color-sun-light);
  transition: transform 0.3s ease;
}
.timeline-card:hover .timeline-dot {
  transform: scale(1.1);
}
.timeline-content {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid #f3f4f6;
  flex: 1;
  transition: box-shadow 0.3s ease;
}
.timeline-card:hover .timeline-content {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ═══════════════════════════════════════════════════
   HOLIDAY CARDS
   ═══════════════════════════════════════════════════ */
.holiday-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid;
}
.holiday-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}
.holiday-card:nth-child(1) { border-left-color: #FFB830; }
.holiday-card:nth-child(2) { border-left-color: #FF6B6B; }
.holiday-card:nth-child(3) { border-left-color: #4A9BD9; }
.holiday-card:nth-child(4) { border-left-color: #5CB85C; }
.holiday-card:nth-child(5) { border-left-color: #9B6BCC; }
.holiday-card:nth-child(6) { border-left-color: #D4956A; }

/* ═══════════════════════════════════════════════════
   ENROLLMENT
   ═══════════════════════════════════════════════════ */
.enroll-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border-radius: 16px;
  background: var(--color-cream);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1rem;
}
.enroll-step:hover {
  background: var(--color-sun-light);
  transform: translateX(6px);
}
.step-num {
  width: 44px; height: 44px; min-width: 44px;
  background: linear-gradient(135deg, #FFB830, #FF6B6B);
  color: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(255, 184, 48, 0.3);
  transition: transform 0.3s ease;
}
.enroll-step:hover .step-num {
  transform: scale(1.1) rotate(-3deg);
}

/* ═══════════════════════════════════════════════════
   PORTRAIT / NAMESAKE
   ═══════════════════════════════════════════════════ */
.portrait-frame {
  width: 240px; height: 280px;
  margin: 0 auto;
  background: linear-gradient(170deg, #F5E6D8, #E8D5C0);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  font-size: 6rem;
  color: var(--color-earth);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s ease;
}
.portrait-frame:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
}
.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 2px dashed rgba(212, 149, 106, 0.3);
  border-radius: 18px;
}
.portrait-inner {
  width: 16rem;
  height: 20rem;
  background: linear-gradient(to bottom, var(--color-earth-light), rgba(212,149,106,0.2));
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════ */
.form-input {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  outline: none;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: border-color 0.3s ease,
              box-shadow 0.3s ease,
              transform 0.2s ease;
  background: white;
}
.form-input:focus {
  border-color: var(--color-sky);
  box-shadow: 0 0 0 4px rgba(74, 155, 217, 0.1);
  transform: translateY(-1px);
}
.form-input:hover:not(:focus) {
  border-color: #c4cdd5;
}

/* ═══════════════════════════════════════════════════
   LINK UNDERLINE EFFECT
   ═══════════════════════════════════════════════════ */
.link-underline {
  position: relative;
  text-decoration: none;
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.link-underline:hover::after {
  width: 100%;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.site-footer {
  background: var(--color-dark);
  color: #9ca3af;
}
.site-footer a:hover {
  color: var(--color-sun);
}
.footer-link {
  font-size: 0.875rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-link:hover {
  color: var(--color-sun);
  transform: translateX(4px);
}
.footer-dot {
  width: 4px;
  height: 4px;
  background: var(--color-sun);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   SPINNER
   ═══════════════════════════════════════════════════ */
.spinner {
  border: 3px solid #e2e8f0;
  border-top-color: var(--color-sky);
  border-radius: 50%;
  width: 32px; height: 32px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }

.float-gentle { animation: floatGentle 6s ease-in-out infinite; }
@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-enter { animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-enter-delay-1 { animation-delay: 0.15s; opacity: 0; }
.hero-enter-delay-2 { animation-delay: 0.3s; opacity: 0; }
.hero-enter-delay-3 { animation-delay: 0.45s; opacity: 0; }
.hero-enter-delay-4 { animation-delay: 0.6s; opacity: 0; }

.emoji-bounce {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

/* ═══════════════════════════════════════════════════
   NEWS POSTS (WordPress)
   ═══════════════════════════════════════════════════ */
.news-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid #f3f4f6;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.news-card .news-thumb {
  height: 12rem;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s ease;
}
.news-card:hover .news-thumb {
  transform: scale(1.05);
}
.news-card .news-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-gradient-bar {
  height: 3px;
  background: linear-gradient(to right, var(--color-sky), var(--color-sun));
}

/* Single post */
.single-post-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #374151;
}
.single-post-content p { margin-bottom: 1.5rem; }
.single-post-content h2 { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--color-dark); }
.single-post-content h3 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; color: var(--color-dark); }
.single-post-content ul, .single-post-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.single-post-content li { margin-bottom: 0.5rem; list-style: disc; }
.single-post-content img { border-radius: 1rem; margin: 1.5rem 0; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.single-post-content a { color: var(--color-sky); text-decoration: underline; }
.single-post-content a:hover { color: var(--color-sky-deep); }

/* Events listing */
.event-card {
  background: white;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  border: 2px solid #f3f4f6;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
  border-color: rgba(74,155,217,0.2);
}
.event-date-badge {
  flex-shrink: 0;
  width: 4.5rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(74,155,217,0.1);
}
.event-date-badge .day {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-sky);
  line-height: 1;
}
.event-date-badge .month {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(74,155,217,0.7);
  margin-top: 0.25rem;
}
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: #6b7280;
}
.event-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* ═══════════════════════════════════════════════════
   SIDEBAR INFO BOX
   ═══════════════════════════════════════════════════ */
.info-sidebar {
  background: linear-gradient(135deg, var(--color-sky), var(--color-sky-deep));
  border-radius: 1rem;
  padding: 1.75rem;
  color: white;
  box-shadow: 0 12px 40px rgba(74,155,217,0.3);
}
.info-sidebar h3 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.info-sidebar li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.info-sidebar li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-sun);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   LANGUAGE SWITCHER
   ═══════════════════════════════════════════════════ */
.lang-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: color 0.2s;
}
.lang-toggle:hover { color: var(--color-sun-light); }

/* i18n: hide non-active language */
[data-lang-de], [data-lang-en] { display: none !important; }
body.lang-de [data-lang-de] { display: inline !important; }
body.lang-en [data-lang-en] { display: inline !important; }
/* For block elements */
[data-lang-block-de], [data-lang-block-en] { display: none !important; }
body.lang-de [data-lang-block-de] { display: block !important; }
body.lang-en [data-lang-block-en] { display: block !important; }
body.lang-de [data-lang-flex-de] { display: flex !important; }
body.lang-en [data-lang-flex-en] { display: flex !important; }

/* ═══════════════════════════════════════════════════
   GRID UTILITIES
   ═══════════════════════════════════════════════════ */
.grid { display: grid; }
.grid-2 { grid-template-columns: 1fr; gap: 1.75rem; }
.grid-3 { grid-template-columns: 1fr; gap: 1.75rem; }
.grid-4 { grid-template-columns: 1fr; gap: 1.25rem; }

@media (min-width: 480px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-lg-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-lg-3-1 { grid-template-columns: 2fr 1fr; }
}

/* ═══════════════════════════════════════════════════
   MISC UTILITIES
   ═══════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-extrabold { font-weight: 800; }
.leading-relaxed { line-height: 1.7; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-10 { margin-top: 2.5rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-7 { gap: 1.75rem; }
.gap-12 { gap: 3rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.hidden { display: none; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }
.rounded-2xl { border-radius: 1rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.shadow-md { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.shadow-lg { box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.border { border: 1px solid #e5e7eb; }
.border-t-4 { border-top: 4px solid; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.bg-white { background: white; }
.text-white { color: white; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-dark { color: var(--color-dark); }

@media (min-width: 640px) {
  .sm-inline { display: inline; }
  .sm-grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .md-text-4xl { font-size: 2.25rem; }
  .md-text-5xl { font-size: 3rem; }
  .md-text-7xl { font-size: 4.5rem; }
  .md-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .md-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .lg-grid-2 { grid-template-columns: repeat(2, 1fr); gap: 5rem; }
  .lg-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .lg-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .lg-flex { display: flex; }
  .lg-hidden { display: none; }
}

/* ═══════════════════════════════════════════════════
   FILTER BUTTONS (categories)
   ═══════════════════════════════════════════════════ */
.filter-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  background: #f3f4f6;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover {
  background: #e5e7eb;
  transform: scale(1.02);
}
.filter-btn.active {
  background: var(--color-sky);
  color: white;
  box-shadow: 0 4px 16px rgba(74,155,217,0.3);
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════ */
@media print {
  .no-print, .site-nav, .site-footer { display: none !important; }
  body { background: white; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════
   WordPress Core Alignments
   ═══════════════════════════════════════════════════ */
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: #6b7280; text-align: center; margin-top: 0.5rem; }

/* WordPress admin bar fix */
body.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-nav { top: 46px; }
}
