/*
Theme Name: Astra Child – Fouesnant & Meerbusch
Theme URI: https://fouesnant-meerbusch.de
Description: Custom Child Theme für die Städtepartnerschaft Fouesnant & Meerbusch
Author: Städtepartnerschaft Fouesnant-Meerbusch
Template: astra
Version: 1.0.0
Text Domain: astra-child-fouesnant
*/

/* ═══════════════════════════════════════════
   VARIABLEN & GRUNDLAGEN
   ═══════════════════════════════════════════ */
:root {
  --fm-orange: #E8781E;
  --fm-orange-light: #F5A623;
  --fm-orange-dark: #C4600F;
  --fm-cream: #FFF8F0;
  --fm-cream-dark: #F5EDE3;
  --fm-navy: #1A2A3A;
  --fm-navy-light: #2C3E50;
  --fm-text: #333333;
  --fm-text-light: #666666;
  --fm-white: #FFFFFF;
  --fm-shadow: 0 4px 24px rgba(0,0,0,0.08);
  --fm-shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --fm-radius: 12px;
  --fm-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════
   GLOBALE TYPOGRAFIE
   ═══════════════════════════════════════════ */
body {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif !important;
  color: var(--fm-text);
  background-color: var(--fm-cream);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title,
.site-title {
  font-family: 'DM Serif Display', serif !important;
  color: var(--fm-navy);
  font-weight: 400;
  line-height: 1.2;
}

a {
  color: var(--fm-orange);
  transition: var(--fm-transition);
}
a:hover {
  color: var(--fm-orange-dark);
}

/* ═══════════════════════════════════════════
   ASTRA HEADER OVERRIDES
   ═══════════════════════════════════════════ */
.ast-primary-header,
.ast-main-header-wrap {
  background: rgba(255, 248, 240, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232, 120, 30, 0.1);
}

.main-header-menu > .menu-item > a {
  font-family: 'Source Sans 3', sans-serif !important;
  font-weight: 500 !important;
  color: var(--fm-text-light) !important;
  position: relative;
}
.main-header-menu > .menu-item > a:hover,
.main-header-menu > .menu-item.current-menu-item > a {
  color: var(--fm-orange) !important;
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.fm-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(232,120,30,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(245,166,35,0.1) 0%, transparent 50%),
    linear-gradient(180deg, var(--fm-cream) 0%, var(--fm-cream-dark) 100%);
}
.fm-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(45deg, var(--fm-orange) 0, var(--fm-orange) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(-45deg, var(--fm-orange) 0, var(--fm-orange) 1px, transparent 1px, transparent 40px);
  pointer-events: none;
}
.fm-hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  animation: fmFadeUp 1s ease-out;
}
.fm-hero-logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  box-shadow: 0 8px 40px rgba(232, 120, 30, 0.3);
  animation: fmFloat 6s ease-in-out infinite;
}
@keyframes fmFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes fmFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fm-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--fm-navy);
  margin-bottom: 0.5rem;
}
.fm-hero h1 .fm-ampersand {
  color: var(--fm-orange);
  font-style: italic;
}
.fm-hero-sub {
  font-size: 1.2rem;
  color: var(--fm-text-light);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.fm-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: fmBounce 2s infinite;
}
@keyframes fmBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ═══════════════════════════════════════════
   ALLGEMEINE SECTIONS
   ═══════════════════════════════════════════ */
.site,
.site-content,
.ast-container,
.content-area,
.site-main,
.entry-content,
article,
.page {
  display: block !important;
  width: 100% !important;
  max-width: none !important;

.fm-section {
  padding: 6rem 2rem;
}
.fm-section--white {
  background: var(--fm-white);
}
.fm-section--cream {
  background: var(--fm-cream);
}
.fm-container {
  max-width: 1200px;
  margin: 0 auto;
}
.fm-section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.fm-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fm-orange);
  background: rgba(232, 120, 30, 0.08);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.fm-section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--fm-navy);
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.fm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fm-orange);
  color: var(--fm-white) !important;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Source Sans 3', sans-serif;
  border: none;
  cursor: pointer;
  transition: var(--fm-transition);
  box-shadow: 0 4px 20px rgba(232, 120, 30, 0.35);
  line-height: 1.4;
}
.fm-btn:hover {
  background: var(--fm-orange-dark);
  color: var(--fm-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232, 120, 30, 0.45);
}
.fm-btn--navy {
  background: var(--fm-navy);
  box-shadow: 0 4px 16px rgba(26, 42, 58, 0.25);
}
.fm-btn--navy:hover {
  background: var(--fm-navy-light);
}
.fm-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   ÜBER UNS
   ═══════════════════════════════════════════ */
.fm-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.fm-about-text p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  color: var(--fm-text-light);
}
.fm-about-text p:first-of-type::first-letter {
  font-family: 'DM Serif Display', serif;
  font-size: 3.5rem;
  float: left;
  line-height: 1;
  margin-right: 8px;
  color: var(--fm-orange);
}
.fm-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.fm-stat {
  background: var(--fm-cream);
  padding: 2rem;
  border-radius: var(--fm-radius);
  text-align: center;
  transition: var(--fm-transition);
}
.fm-section--white .fm-stat {
  background: var(--fm-cream);
}
.fm-section--cream .fm-stat {
  background: var(--fm-white);
}
.fm-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--fm-shadow);
}
.fm-stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--fm-orange);
  display: block;
}
.fm-stat-label {
  font-size: 0.85rem;
  color: var(--fm-text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════
   EVENTS / TERMINE
   ═══════════════════════════════════════════ */
.fm-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}
.fm-event-card {
  background: var(--fm-white);
  border-radius: var(--fm-radius);
  overflow: hidden;
  box-shadow: var(--fm-shadow);
  transition: var(--fm-transition);
  position: relative;
}
.fm-event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--fm-shadow-lg);
}
.fm-event-date {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--fm-orange);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  text-align: center;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(232, 120, 30, 0.35);
}
.fm-event-date .fm-day {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  line-height: 1;
}
.fm-event-date .fm-month {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.fm-event-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.fm-event-placeholder {
  width: 100%;
  height: 200px;
  background:
    linear-gradient(135deg, rgba(232,120,30,0.1), rgba(245,166,35,0.05)),
    var(--fm-cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.fm-event-body {
  padding: 1.5rem;
}
.fm-event-body h3 {
  font-size: 1.3rem;
  color: var(--fm-navy);
  margin-bottom: 0.5rem;
}
.fm-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--fm-text-light);
}
.fm-event-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.fm-event-meta svg {
  width: 16px;
  height: 16px;
  color: var(--fm-orange);
}
.fm-event-body > p {
  font-size: 0.95rem;
  color: var(--fm-text-light);
  margin-bottom: 1.5rem;
}
.fm-no-events {
  text-align: center;
  padding: 3rem;
  color: var(--fm-text-light);
  font-size: 1.1rem;
}

/* ═══════════════════════════════════════════
   GALERIE
   ═══════════════════════════════════════════ */
.fm-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.fm-gallery-item {
  border-radius: var(--fm-radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--fm-transition);
}
.fm-gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.fm-gallery-item:hover {
  transform: scale(0.98);
}
.fm-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fm-gallery-placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(232,120,30,0.08), rgba(245,166,35,0.04)),
    var(--fm-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

/* ═══════════════════════════════════════════
   KONTAKT
   ═══════════════════════════════════════════ */
.fm-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.fm-contact-info h3 {
  font-size: 1.6rem;
  color: var(--fm-navy);
  margin-bottom: 1rem;
}
.fm-contact-info p {
  color: var(--fm-text-light);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}
.fm-contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--fm-text);
}
.fm-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(232, 120, 30, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fm-icon-circle svg {
  width: 20px;
  color: var(--fm-orange);
}

/* ═══════════════════════════════════════════
   FORMULARE
   ═══════════════════════════════════════════ */
.fm-form {
  background: var(--fm-white);
  padding: 2.5rem;
  border-radius: var(--fm-radius);
  box-shadow: var(--fm-shadow);
}
.fm-form h3 {
  font-size: 1.4rem;
  color: var(--fm-navy);
  margin-bottom: 1.5rem;
}
.fm-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.fm-form-group {
  margin-bottom: 1.2rem;
}
.fm-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fm-navy);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fm-form-group label .fm-optional {
  font-weight: 400;
  color: var(--fm-text-light);
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
}
.fm-form-group input,
.fm-form-group textarea,
.fm-form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--fm-cream-dark);
  border-radius: 8px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  transition: var(--fm-transition);
  background: var(--fm-cream);
  color: var(--fm-text);
}
.fm-form-group input:focus,
.fm-form-group textarea:focus,
.fm-form-group select:focus {
  outline: none;
  border-color: var(--fm-orange);
  background: white;
  box-shadow: 0 0 0 4px rgba(232, 120, 30, 0.1);
}
.fm-form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.fm-form-group input.fm-error {
  border-color: #e74c3c;
}
.fm-anmeldung-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.fm-anmeldung-feature-text strong {
  display: block;
}

.fm-anmeldung-feature-text span {
  display: block;
  color: var(--fm-text-light);
}
/* ═══════════════════════════════════════════
   MODAL / POPUP
   ═══════════════════════════════════════════ */
.fm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 42, 58, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.fm-modal-overlay.fm-active {
  opacity: 1;
  pointer-events: all;
}
.fm-modal {
  background: var(--fm-white);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.fm-modal-overlay.fm-active .fm-modal {
  transform: translateY(0) scale(1);
}
.fm-modal-header {
  background: linear-gradient(135deg, var(--fm-orange), var(--fm-orange-light));
  padding: 2rem 2rem 1.5rem;
  border-radius: 16px 16px 0 0;
  color: white;
  position: relative;
}
.fm-modal-header h2 {
  font-size: 1.6rem;
  color: white !important;
}
.fm-modal-header p {
  opacity: 0.9;
  font-size: 0.95rem;
  margin-top: 4px;
}
.fm-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--fm-transition);
}
.fm-modal-close:hover {
  background: rgba(255,255,255,0.3);
  border-color: white;
}
.fm-modal-body {
  padding: 2rem;
}
.fm-event-name-display {
  background: var(--fm-cream);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--fm-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.fm-event-name-display svg {
  width: 18px;
  color: var(--fm-orange);
  flex-shrink: 0;
}
.fm-form-success {
  text-align: center;
  padding: 2rem 1rem;
}
.fm-form-success .fm-checkmark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(232, 120, 30, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.fm-form-success .fm-checkmark svg {
  width: 32px;
  color: var(--fm-orange);
}
.fm-form-success h3 {
  color: var(--fm-navy);
  margin-bottom: 0.5rem;
}
.fm-form-success p {
  color: var(--fm-text-light);
}

.fm-form-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.fm-form-message--error {
  background: #fdf0ef;
  color: #c0392b;
  border: 1px solid #e74c3c;
}
.fm-form-message--success {
  background: #eafaf1;
  color: #27ae60;
  border: 1px solid #2ecc71;
}
.fm-anmeldung-layout {
  gap: 3rem;
}
/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.fm-footer {
  background: var(--fm-navy);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem;
}
.fm-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.fm-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fm-footer-brand img {
  width: 36px;
  border-radius: 50%;
}
.fm-footer-brand span {
  font-family: 'DM Serif Display', serif;
  color: white;
  font-size: 1rem;
}
.fm-footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fm-footer-links a {
  color: rgba(255,255,255,0.6) !important;
  text-decoration: none;
  font-size: 0.9rem;
}
.fm-footer-links a:hover {
  color: var(--fm-orange-light) !important;
}

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════ */
.fm-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fm-fade-in.fm-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   ASTRA OVERRIDES
   ═══════════════════════════════════════════ */
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
  background: transparent;
  padding: 0;
}
.ast-separate-container {
  background: transparent;
}
.entry-content {
  margin: 0;
}

/* Hide Astra default title on custom templates */
.fm-custom-template .entry-header,
.fm-custom-template .ast-archive-description {
  display: none;
}

/* Hide Astra default footer on custom templates (we use our own) */
.fm-custom-template .site-footer {
  display: none;
}

/* Full width override */
.fm-custom-template .site-content > .ast-container {
  max-width: 100%;
  padding: 0;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .fm-about-grid,
  .fm-contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .fm-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }
  .fm-events-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .fm-hero-logo {
    width: 120px;
    height: 120px;
  }
  .fm-section {
    padding: 4rem 1.5rem;
  }
  .fm-modal-body .fm-form-row {
    grid-template-columns: 1fr;
  }
  .fm-form-row {
    grid-template-columns: 1fr;
  }
  .fm-gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }
  .fm-gallery-item:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }
  .fm-stats {
    grid-template-columns: 1fr;
  }
  .fm-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
.fm-footer-email {
  flex: 1;
  text-align: center;
}

.fm-footer-email a {
  color: rgba(255,255,255,0.7) !important;
  text-decoration: none;
  font-size: 0.9rem;
}

.fm-footer-email a:hover {
  color: var(--fm-orange-light) !important;
}
