/*
Theme Name: Pfarrei Steinen
Theme URI: https://pfarrei-steinen.ch
Author: Pfarrei Steinen
Author URI: https://pfarrei-steinen.ch
Description: Ein modernes, warmes und einladendes WordPress-Theme für die römisch-katholische Kirchgemeinde Steinen (SZ) – basierend auf Konzept Variante 1.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pfarreisteinen
*/

/* ============================================
   DEMO 1 – MODERN & HELL (PFARREI STEINEN)
   ============================================ */

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

:root {
  --primary:        hsl(24, 75%, 42%);    /* Warmes Terrakotta-Orange */
  --primary-light:  hsl(24, 75%, 95%);
  --primary-dark:   hsl(24, 75%, 32%);
  --text:           hsl(220, 15%, 18%);
  --text-muted:     hsl(220, 10%, 50%);
  --bg:             #ffffff;
  --bg-alt:         hsl(30, 30%, 97%);
  --border:         hsl(220, 15%, 90%);
  --shadow-sm:      0 2px 8px hsla(220, 15%, 18%, 0.08);
  --shadow-md:      0 8px 30px hsla(220, 15%, 18%, 0.12);
  --shadow-lg:      0 20px 60px hsla(220, 15%, 18%, 0.16);
  --radius-sm:      8px;
  --radius-md:      16px;
  --radius-lg:      24px;
  --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display:   'Playfair Display', Georgia, serif;
  --font-body:      'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* WP Admin Bar support */
body.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px hsla(24, 75%, 42%, 0.35);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}

.site-header.scrolled,
.site-header.header-always-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: var(--transition);
}

.logo:hover {
  opacity: 0.85;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px hsla(24, 75%, 42%, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.2;
  transition: var(--transition);
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-header:not(.scrolled):not(.header-always-scrolled) .logo-name,
.site-header:not(.scrolled):not(.header-always-scrolled) .logo-sub {
  color: #fff;
}

.site-header:not(.scrolled):not(.header-always-scrolled) .logo-icon {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

/* Nav */
.main-nav ul,
.main-nav .menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
  display: inline-block;
}

.site-header.scrolled .main-nav a,
.site-header.header-always-scrolled .main-nav a {
  color: var(--text);
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav .current-menu-item > a,
.site-header.scrolled .main-nav a.active,
.site-header.header-always-scrolled .main-nav a:hover,
.site-header.header-always-scrolled .main-nav .current-menu-item > a,
.site-header.header-always-scrolled .main-nav a.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* WP Dropdown / Submenu */
.main-nav li {
  position: relative;
}

.main-nav .menu-item-has-children > a::after,
.main-nav .has-dropdown > a::after {
  content: " ▾";
  font-size: 0.75rem;
  margin-left: 4px;
}

.main-nav .sub-menu,
.main-nav .dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.main-nav li:hover > .sub-menu,
.main-nav .has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .sub-menu li a,
.main-nav .dropdown li a {
  color: var(--text) !important;
  display: block;
  padding: 10px 14px !important;
  border-radius: 8px;
  font-size: 0.875rem !important;
  background: transparent !important;
}

.main-nav .sub-menu li a:hover,
.main-nav .dropdown li a:hover {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.site-header.scrolled .menu-toggle span,
.site-header.header-always-scrolled .menu-toggle span {
  background: var(--text);
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: #fff !important;
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background: #fff !important;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    hsla(220, 30%, 10%, 0.35) 0%,
    hsla(220, 30%, 10%, 0.6) 60%,
    hsla(220, 30%, 10%, 0.78) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  max-width: 840px;
  animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7.5vw, 5.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 1s ease 1s both;
}

.scroll-arrow {
  font-size: 1.2rem;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --- Page Hero (Subpages) --- */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, hsl(220, 15%, 12%) 0%, hsl(220, 15%, 22%) 100%);
  color: #fff;
  text-align: center;
}

.page-hero .section-tag {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.95);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700;
  margin: 14px 0;
  line-height: 1.15;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* --- Info Banner --- */
.info-banner {
  background: var(--primary);
  padding: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  color: #fff;
}

.info-item:last-child {
  border-right: none;
}

.info-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.info-icon {
  font-size: 1.6rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-text {
  display: flex;
  flex-direction: column;
}

.info-text strong {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2px;
}

.info-text span,
.info-text a {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 500;
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* --- Events Grid (Home) --- */
.aktuelles-preview {
  background: var(--bg-alt);
}

.events-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

.event-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.event-card.featured {
  flex-direction: row;
  background: linear-gradient(135deg, var(--text) 0%, hsl(220, 15%, 28%) 100%);
  color: #fff;
  border: none;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.event-card.featured .event-date {
  background: rgba(255, 255, 255, 0.2);
}

.event-date .day {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.event-date .month {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-content {
  flex: 1;
}

.event-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.event-card.featured .event-tag {
  color: rgba(255, 255, 255, 0.7);
}

.event-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.event-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.event-card.featured .event-content p {
  color: rgba(255, 255, 255, 0.75);
}

.event-time {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event-card.featured .event-time {
  color: rgba(255, 255, 255, 0.7);
}

.section-cta {
  text-align: center;
}

.events-grid > .event-card:not(.featured) {
  flex-direction: column;
}

.events-grid > .event-card:not(.featured) .event-date {
  width: 56px;
  height: 56px;
}

/* --- Angebote --- */
.angebote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.angebot-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.angebot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.angebot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.angebot-card:hover::before {
  transform: scaleX(1);
}

.angebot-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
}

.angebot-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.angebot-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.card-link:hover {
  gap: 8px;
}

/* --- Team Preview --- */
.team-preview {
  background: var(--bg-alt);
}

.team-preview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.team-preview-text .section-tag {
  text-align: left;
  display: inline-block;
}

.team-preview-text .section-title {
  text-align: left;
  margin-bottom: 16px;
}

.team-preview-text p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.team-preview-visual {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.team-stat {
  text-align: center;
  padding: 40px 32px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  flex: 1;
  transition: var(--transition);
}

.team-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Pfarrblatt Section --- */
.pfarrblatt-section {
  background: linear-gradient(135deg, var(--text) 0%, hsl(220, 15%, 28%) 100%);
  color: #fff;
}

.pfarrblatt-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  flex-direction: column;
}

.pfarrblatt-icon {
  font-size: 4rem;
  color: #fff;
}

.pfarrblatt-text h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pfarrblatt-text p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Aktuelles List (Page & Archive) --- */
.aktuelles-list {
  padding: 80px 0 96px;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.event-list-item {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.event-list-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.event-list-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.event-list-date .day {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.event-list-date .month {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-list-content {
  flex: 1;
}

.event-list-content .event-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.event-list-content h2,
.event-list-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.event-list-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.event-list-content .event-time {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* --- Personen Page --- */
.personen-section {
  padding: 80px 0 96px;
}

.team-group {
  margin-bottom: 72px;
}

.team-group:last-child {
  margin-bottom: 0;
}

.team-group-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-group-title::before {
  content: '';
  width: 4px;
  height: 28px;
  background: var(--primary);
  border-radius: 2px;
  display: block;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.team-card-avatar {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary-light), hsl(30, 40%, 88%));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--primary);
  position: relative;
  overflow: hidden;
}

.team-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.05));
  pointer-events: none;
}

.team-card-body {
  padding: 20px 20px 24px;
}

.team-card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.team-card-role {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.team-card-contact {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.team-card-contact a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-top: 4px;
}

.team-card-contact a:hover {
  text-decoration: underline;
}

/* --- Standard Page & Article Content (WordPress) --- */
.page-content-wrapper {
  padding: 80px 0 100px;
}

.page-content-wrapper .container {
  max-width: 860px;
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.entry-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 48px 0 16px;
  color: var(--text);
}

.entry-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 36px 0 12px;
  color: var(--text);
}

.entry-content p {
  margin-bottom: 24px;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.entry-content ul {
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin-bottom: 8px;
}

.entry-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 1.15rem;
}

.entry-content img {
  border-radius: var(--radius-md);
  margin: 32px 0;
}

.entry-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* Single Post Meta & Tags */
.single-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  justify-content: center;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.post-navigation a {
  font-weight: 600;
  color: var(--primary);
}

/* Pagination */
.pagination-nav {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination-nav .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}

.pagination-nav .page-numbers:hover,
.pagination-nav .page-numbers.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* --- Footer --- */
.site-footer {
  background: hsl(220, 15%, 12%);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-name {
  color: #fff;
}

.footer-brand .logo-icon {
  background: var(--primary);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.footer-nav ul,
.footer-nav .menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
}

.footer-nav a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-contact p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact a {
  color: var(--primary);
  text-decoration: none;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
  color: #fff;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
  .event-card {
    flex-direction: row !important;
  }
  .events-grid > .event-card:not(.featured) .event-date {
    width: 64px;
    height: 64px;
  }
  .angebote-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 28, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 80px 24px 40px;
    overflow-y: auto;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav ul,
  .main-nav .menu {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  .main-nav a {
    font-size: 1.25rem;
    padding: 12px 24px;
    color: #fff !important;
    text-align: center;
  }
  .main-nav .sub-menu,
  .main-nav .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: var(--radius-sm);
    margin: 8px 0;
    width: 100%;
    max-width: 280px;
  }
  .main-nav .sub-menu li a,
  .main-nav .dropdown li a {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1rem !important;
    text-align: center;
    padding: 10px !important;
  }
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .info-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  .team-preview-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .angebote-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .section {
    padding: 64px 0;
  }
  .event-list-item {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .team-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    justify-content: center;
  }
  .team-preview-visual {
    flex-direction: column;
  }
  .team-cards {
    grid-template-columns: 1fr;
  }
}
