/* ============================================================
   SPÖ Hengsberg – Modernes Design
   Farben: Rot #E30016, Weiß #FFFFFF
   ============================================================ */

/* ----- CSS Custom Properties ----- */
:root {
  --red:        #E30016;
  --red-dark:   #B5001A;
  --red-light:  #ff1a2d;
  --red-glow:   rgba(227, 0, 22, 0.18);
  --white:      #ffffff;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-400:   #9ca3af;
  --gray-600:   #6b7280;
  --gray-800:   #1f2937;
  --gray-900:   #111827;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.07);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.16);
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ----- Container ----- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-white {
  background: var(--white);
  color: var(--red);
}
.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.3);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--red-glow);
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

#main-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
}

.header-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.85; }

.logo-badge {
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  line-height: 1;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  transition: color var(--transition);
}

/* On hero (transparent header): white text */
#main-header:not(.scrolled) .logo-text { color: var(--white); }
#main-header:not(.scrolled) .logo-badge {
  background: var(--white);
  color: var(--red);
}

/* Navigation */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--white);
  transition: all var(--transition);
  position: relative;
}

#main-header.scrolled .nav-link { color: var(--gray-800); }

.nav-link:hover {
  background: rgba(255,255,255,0.15);
}
#main-header.scrolled .nav-link:hover {
  background: var(--gray-100);
  color: var(--red);
}

.nav-cta {
  background: var(--white);
  color: var(--red) !important;
  font-weight: 600;
  margin-left: 0.5rem;
}
.nav-cta:hover {
  background: var(--gray-100) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

#main-header.scrolled .nav-cta {
  background: var(--red);
  color: var(--white) !important;
}
#main-header.scrolled .nav-cta:hover {
  background: var(--red-dark) !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
#main-header.scrolled .mobile-menu-btn span { background: var(--gray-800); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background shapes for visual interest */
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.shape-1 {
  width: 600px; height: 600px;
  right: -200px; top: -150px;
}
.shape-2 {
  width: 400px; height: 400px;
  left: -120px; bottom: -100px;
  background: rgba(255,255,255,0.04);
}
.shape-3 {
  width: 200px; height: 200px;
  left: 30%; top: 20%;
  background: rgba(255,255,255,0.05);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  padding-top: 80px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  display: inline-block;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: normal;
  position: relative;
  display: inline-block;
}
.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0;
  right: 0;
  height: 0.08em;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-mouse {
  width: 24px; height: 36px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  80% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 0; transform: translateY(0); }
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header--light { color: var(--white); }

.section-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.section-eyebrow--light { color: rgba(255,255,255,0.8); }

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-header--light h2 { color: var(--white); }
.section-header--light h2 em { font-style: italic; }

.section-desc {
  font-size: 1.0625rem;
  color: var(--gray-600);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}
.section-header--light .section-desc { color: rgba(255,255,255,0.75); }

.text-red { color: var(--red); }

/* ============================================================
   AKTUELLES / FACEBOOK POSTS
   ============================================================ */
.aktuelles-section {
  padding: clamp(5rem, 10vh, 8rem) 0;
  background: var(--gray-50);
  overflow: hidden;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Loading */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 0;
  color: var(--gray-400);
  font-size: 0.9375rem;
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Posts Grid */
.fb-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
}

/* ---- Facebook Post Card ---- */
.fb-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-100);
}
.fb-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.fb-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-100);
}
.fb-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.fb-card:hover .fb-card-image img { transform: scale(1.04); }

.fb-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fb-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.fb-card-avatar {
  width: 36px; height: 36px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fb-card-avatar svg { color: var(--white); }
.fb-card-source {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.2;
}
.fb-card-date {
  font-size: 0.75rem;
  color: var(--gray-400);
  display: block;
  margin-top: 1px;
}

.fb-card-text {
  font-size: 0.9375rem;
  color: var(--gray-800);
  line-height: 1.7;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fb-card-stats {
  display: flex;
  gap: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-100);
}
.fb-stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--gray-600);
  font-weight: 500;
}
.fb-stat svg { color: var(--gray-400); flex-shrink: 0; }

.fb-card-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
  transition: gap var(--transition);
  margin-top: 0.25rem;
}
.fb-card-action:hover { gap: 0.75rem; }
.fb-card-action svg { flex-shrink: 0; }

/* Error State */
.fb-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-600);
}
.fb-error a { color: var(--red); font-weight: 600; }

/* ============================================================
   THEMEN SECTION
   ============================================================ */
.themen-section {
  position: relative;
  overflow: hidden;
}

.themen-inner {
  background: var(--red);
  padding: clamp(5rem, 10vh, 8rem) 0;
  position: relative;
}

.themen-inner::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
.themen-inner::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.themen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}

/* Thema Card */
.thema-card {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(4px);
}
.thema-card:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}

.thema-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.1);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
  user-select: none;
}

.thema-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background var(--transition);
}
.thema-card:hover .thema-icon { background: rgba(255,255,255,0.25); }

.thema-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.thema-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
}

/* ============================================================
   TEAM SECTION
   ============================================================ */
.team-section {
  padding: clamp(5rem, 10vh, 8rem) 0;
  background: var(--white);
  overflow: hidden;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  justify-content: center;
}

.team-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.team-card-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--gray-100);
}
.team-card-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.team-card:hover .team-card-image-wrap img { transform: scale(1.06); }

.team-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(227,0,22,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}
.team-card:hover .team-card-overlay { opacity: 1; }

.team-card-body {
  padding: 1.5rem 1.75rem;
  border-top: 3px solid var(--red);
}
.team-card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}
.team-role {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.02em;
}

/* ============================================================
   KONTAKT SECTION
   ============================================================ */
.kontakt-section {
  position: relative;
  overflow: hidden;
}

.kontakt-inner {
  background: var(--red);
  padding: clamp(5rem, 10vh, 8rem) 0;
  position: relative;
}

.kontakt-inner::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 450px; height: 450px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.kontakt-info h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
  margin-top: 0.5rem;
}

.kontakt-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kontakt-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-weight: 500;
  transition: color var(--transition);
  padding: 0.5rem 0;
}
.kontakt-item:hover { color: var(--white); }

.kontakt-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.kontakt-item:hover .kontakt-icon { background: rgba(255,255,255,0.25); }

.kontakt-map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.kontakt-map-wrap iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  filter: saturate(0.8);
}

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand .logo-badge { background: var(--red); color: var(--white); }
.footer-brand .logo-text { color: var(--white); }

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 1.25rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: var(--gray-400);
  transition: all var(--transition);
}
.footer-social:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-nav h4,
.footer-legal h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-nav ul,
.footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a,
.footer-legal a {
  font-size: 0.9375rem;
  color: var(--gray-400);
  transition: color var(--transition);
}
.footer-nav a:hover,
.footer-legal a:hover { color: var(--white); }

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.875rem;
}

/* ============================================================
   ANIMATIONS (initial hidden state)
   ============================================================ */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
}
.anim-fade-left {
  opacity: 0;
  transform: translateX(-40px);
}
.anim-fade-right {
  opacity: 0;
  transform: translateX(40px);
}
.anim-scale {
  opacity: 0;
  transform: scale(0.92);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .kontakt-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }
  .main-nav.open { transform: translateX(0); }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .nav-link {
    color: var(--gray-800) !important;
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    width: 100%;
  }
  .nav-cta {
    background: var(--red) !important;
    color: var(--white) !important;
    margin-top: 0.5rem;
  }

  .mobile-menu-btn { display: flex; }
  .mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
  .mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-actions { flex-direction: column; align-items: center; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: -0.02em; }

  .themen-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
}
