/*
Theme Name: SFC Kaiserslautern
Description: Modernes Fußballverein Theme für SFC Kaiserslautern
Version: 1.0
Author: SFC-KL Team
*/

:root {
  --primary-color: #1e73be !important;
  --secondary-color: #1565c0 !important;
  --accent_color: #2196f3;
  --dark_color: #1f2937;
  --light_color: #f9fafb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
}

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

/* Header Styles */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo-section {
  display: flex;
  align-items: center;
}

.logo-section img {
  height: 60px; /* Updated value */
  width: auto;
  margin-right: 15px;
}

.logo-text h1 {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--dark_color);
}

.logo-text p {
  font-size: 0.9rem;
  color: #666;
}

/* Navigation */
.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  position: relative;
}

.main-navigation a {
  text-decoration: none;
  color: var(--dark_color);
  font-weight: 500;
  transition: color 0.3s;
  display: block;
  padding: 0.5rem 0;
}

.main-navigation a:hover {
  color: var(--primary_color);
}

/* Dropdown Menu Styles */
.main-navigation .menu-item {
  position: relative;
}

.main-navigation .menu-item-has-children > a::after {
  content: "▼";
  font-size: 0.7rem;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.main-navigation .menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

.main-navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  flex-direction: column;
  gap: 0;
}

.main-navigation .menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-navigation .sub-menu li {
  width: 100%;
}

.main-navigation .sub-menu a {
  padding: 0.75rem 1.5rem;
  color: var(--dark_color);
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.main-navigation .sub-menu a:hover {
  background: var(--light_color);
  color: var(--primary_color);
  padding-left: 2rem;
}

.main-navigation .sub-menu li:last-child a {
  border-bottom: none;
}

/* Third Level Dropdown */
.main-navigation .sub-menu .menu-item-has-children > a::after {
  content: "▶";
  float: right;
  font-size: 0.7rem;
}

.main-navigation .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-left: 0.5rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--dark_color);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 999;
  padding-top: 100px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-navigation {
  padding: 2rem;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-list li {
  margin-bottom: 1.5rem;
}

.mobile-menu-list a {
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--dark_color);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
  transition: color 0.3s;
}

.mobile-menu-list a:hover {
  color: var(--primary_color);
}

.mobile-cta {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e5e7eb;
}

.mobile-cta .btn {
  display: block;
  text-align: center;
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("assets/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary_color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s;
  border: 2px solid var(--primary_color);
}

.btn:hover {
  background: var(--secondary_color);
  border-color: var(--secondary_color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 115, 190, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary_color);
  border: 2px solid var(--primary_color);
}

.btn-outline:hover {
  background: var(--primary_color);
  color: white;
}

/* Services Section */
.services-section {
  padding: 80px 0;
  background: var(--light_color);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--dark_color);
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-content {
  padding: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark_color);
  transition: color 0.3s;
}

.service-card:hover h3 {
  color: var(--primary_color);
}

.service-card .btn {
  margin-top: 1rem;
}

/* News Section */
.news-section {
  padding: 80px 0;
  background: white;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.news-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 1.5rem;
}

.news-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.news-card h3 {
  margin-bottom: 1rem;
}

.news-card h3 a {
  color: var(--dark_color);
  text-decoration: none;
  transition: color 0.3s;
}

.news-card h3 a:hover {
  color: var(--primary_color);
}

.read-more {
  color: var(--primary_color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.read-more:hover {
  color: var(--secondary_color);
}

/* SINGLE POST STYLES */
.single-post-main {
  margin-top: 80px;
}

/* Post Hero Section */
.post-hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark_color) 100%) !important;
  color: white;
  padding: 4rem 0 2rem;
}

.post-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.post-meta .dashicons {
  font-size: 16px;
}

.post-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.post-excerpt {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.post-meta a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 500;
}

.post-meta a:hover {
  color: white;
  text-decoration: underline;
}

/* Featured Image */
.post-featured-image {
  padding: 2rem 0;
  background: var(--light_color);
}

.featured-image-wrapper {
  text-align: center;
}

.post-featured-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Post Content */
.post-content-section {
  padding: 3rem 0;
  background: white;
}

.post-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.post-content {
  background: white;
  padding: 6rem !important;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h5,
.post-content h6 {
  color: var(--dark_color);
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
}

.post-content h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--primary_color);
  padding-bottom: 0.5rem;
}

.post-content h3 {
  font-size: 1.5rem;
  color: var(--primary_color);
}

.post-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-content ul,
.post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.post-content blockquote {
  background: var(--light_color);
  border-left: 4px solid var(--primary_color);
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

/* Post Tags */
.post-tags {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.post-tags h4 {
  margin-bottom: 1rem;
  color: var(--dark_color);
}

.tags-list a {
  display: inline-block;
  background: var(--light_color);
  color: var(--primary_color);
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.tags-list a:hover {
  background: var(--primary_color);
  color: white;
}

/* Social Share */
.post-share {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.post-share h4 {
  margin-bottom: 1rem;
  color: var(--dark_color);
}

.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.share-btn.facebook {
  background: #1877f2;
  color: white;
}

.share-btn.twitter {
  background: #1da1f2;
  color: white;
}

.share-btn.whatsapp {
  background: #25d366;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn .dashicons {
  font-size: 18px;
}

/* Social Link Fixes für Mobile */
.share-btn span {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Author Box */
.author-box {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 2rem;
  background: var(--light_color);
  border-radius: 12px;
}

.author-avatar img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
}

.author-info h4 {
  margin-bottom: 0.5rem;
  color: var(--dark_color);
}

.author-info p {
  color: #666;
  margin: 0;
}

/* Sidebar */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
  color: var(--dark_color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary_color);
}

/* Related Posts */
.related-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-post-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.related-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-post-thumb {
  flex-shrink: 0;
}

.related-post-thumb img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.related-post-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.3;
}

.related-post-content h4 a {
  color: var(--dark_color);
  text-decoration: none;
  transition: color 0.3s;
}

.related-post-content h4 a:hover {
  color: var(--primary_color);
}

.related-post-date {
  font-size: 0.8rem;
  color: #666;
}

/* Recent Posts */
.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-post-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.recent-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recent-post-item h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.3;
}

.recent-post-item h4 a {
  color: var(--dark_color);
  text-decoration: none;
  transition: color 0.3s;
}

.recent-post-item h4 a:hover {
  color: var(--primary_color);
}

.recent-post-date {
  font-size: 0.8rem;
  color: #666;
}

/* Categories */
.categories-list {
  list-style: none;
  padding: 0;
}

.categories-list li {
  margin-bottom: 0.5rem;
}

.categories-list a {
  color: var(--dark_color);
  text-decoration: none;
  transition: color 0.3s;
}

.categories-list a:hover {
  color: var(--primary_color);
}

/* Post Navigation */
.post-navigation {
  background: var(--light_color);
  padding: 3rem 0;
}

.nav-links {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.nav-previous {
  text-align: left;
}

.nav-next {
  text-align: right;
}

.nav-back {
  text-align: center;
}

.nav-link {
  display: block;
  text-decoration: none;
  color: var(--dark_color);
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary_color);
}

.nav-direction {
  display: block;
  font-size: 0.9rem;
  color: var(--primary_color);
  margin-bottom: 0.5rem;
}

.nav-title {
  display: block;
  font-weight: 500;
}

/* Comments */
.post-comments {
  background: white;
  padding: 3rem 0;
}

.comments-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Page Links */
.page-links {
  margin: 2rem 0;
  text-align: center;
}

.page-number {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  background: var(--primary_color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.page-number:hover {
  background: var(--secondary_color);
}

/* Footer */
.site-footer {
  background: var(--dark_color);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--accent_color);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--accent_color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  color: #ccc;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: #ccc;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--accent_color);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

/* CONTACT PAGE STYLES */
.contact-page-main {
  margin-top: 80px;
}

/* Contact Hero Section */
.contact-hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark_color) 100%) !important;
  color: white;
  padding: 4rem 0 2rem;
}

.contact-hero-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-hero-content h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.contact-hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Contact Content */
.contact-content-section {
  padding: 4rem 0;
  background: var(--light_color);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.contact-card h2 {
  color: var(--dark_color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--primary_color) !important;
  padding-bottom: 0.5rem;
}

/* Blaue Unterstriche für alle Überschriften in Contact-Bereichen */
.contact-content-section h2,
.contact-card h2 {
  border-bottom: 2px solid var(--primary_color) !important;
  padding-bottom: 0.5rem !important;
  margin-bottom: 1.5rem !important;
}

/* Trainingszeiten Überschrift */
.contact-content-section h2.trainingszeiten,
h2.trainingszeiten {
  border-bottom: 2px solid var(--primary_color) !important;
  padding-bottom: 0.5rem !important;
}

/* Contact Icons in blauen Kreisen */
.contact-info-item .contact-icon {
  background: var(--primary_color) !important;
  color: white !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: var(--dark_color);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary_color);
  box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-primary {
  background: var(--primary_color);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-start;
}

.btn-primary:hover {
  background: var(--secondary_color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 115, 190, 0.3);
}

/* Contact Messages */
.contact-success {
  background: #e3f2fd;
  color: #0d47a1;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid #bbdefb;
}

.contact-error {
  background: #fef2f2;
  color: #991b1b;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid #fecaca;
}

/* Contact Info */
.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

/* Contact Icon Fixes für Mobile */
.contact-icon span {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-details h4 {
  color: var(--dark_color);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.contact-details p {
  margin: 0;
  color: #666;
}

.contact-details a {
  color: var(--primary_color);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-details a:hover {
  color: var(--secondary_color);
  text-decoration: underline;
}

/* Training Times */
.training-times {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.training-time-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--light_color);
  border-radius: 8px;
}

.training-time-item strong {
  color: var(--dark_color);
}

.training-time-item span {
  color: var(--primary_color);
  font-weight: 500;
}

/* Social Links Contact */
.social-links-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.social-link.facebook {
  background: #e3f2fd;
  color: #1877f2;
}

.social-link.instagram {
  background: #fce4ec;
  color: #e91e63;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-link .dashicons {
  font-size: 18px;
}

/* LEGAL PAGES STYLES */
.legal-page-main {
  margin-top: 80px;
}

/* Legal Hero Section */
.legal-hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark_color) 100%) !important;
  color: white;
  padding: 4rem 0 2rem;
}

.legal-hero-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.legal-hero-content h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.legal-hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Legal Content */
.legal-content-section {
  padding: 4rem 0;
  background: var(--light_color);
}

.legal-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.legal-card {
  background: white;
  padding: 6rem !important;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.legal-card h2 {
  color: var(--dark_color);
  margin-bottom: 2rem;
  font-size: 2rem;
  border-bottom: 3px solid var(--primary_color);
  padding-bottom: 1rem;
}

/* Training Times Header mit blauer Linie */
.contact-card h2,
.training-times h2,
h2 {
  border-bottom: 2px solid var(--primary_color) !important;
  padding-bottom: 0.5rem !important;
}

/* Stelle sicher, dass alle h2 Überschriften die blaue Linie haben */
.contact-content-section h2,
.legal-content-section h2,
.page-content-section h2,
.ansprechpartner-content-section h2,
.mannschaften-content-section h2 {
  border-bottom: 2px solid var(--primary_color) !important;
  padding-bottom: 0.5rem !important;
  margin-bottom: 1.5rem !important;
}

.legal-info h3 {
  color: var(--primary_color);
  margin: 2rem 0 1rem 0;
  font-size: 1.3rem;
}

.legal-info h4 {
  color: var(--dark_color);
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1.1rem;
}

.legal-info p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #555;
}

.legal-info ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.legal-info li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-info a {
  color: var(--primary_color);
  text-decoration: none;
  transition: color 0.3s;
}

.legal-info a:hover {
  color: var(--secondary_color);
  text-decoration: underline;
}

/* Mobile Responsive für Legal Pages */
@media (max-width: 768px) {
  .legal-hero-content h1 {
    font-size: 2rem;
  }

  .legal-card {
    padding: 4rem 3rem !important;
  }

  .legal-card h2 {
    font-size: 1.5rem;
  }
}

/* ANSPRECHPARTNER PAGE STYLES */
.ansprechpartner-page-main {
  margin-top: 80px;
}

/* Ansprechpartner Hero Section */
.ansprechpartner-hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark_color) 100%) !important;
  color: white;
  padding: 4rem 0 2rem;
}

.ansprechpartner-hero-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.ansprechpartner-hero-content h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.ansprechpartner-hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Ansprechpartner Content */
.ansprechpartner-content-section {
  padding: 4rem 0;
  background: var(--light_color);
}

.ansprechpartner-content-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.ansprechpartner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.ansprechpartner-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.ansprechpartner-card:hover {
  transform: translateY(-5px);
}

.ansprechpartner-card h3 {
  color: var(--dark_color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  border-bottom: 2px solid var(--primary_color);
  padding-bottom: 0.5rem;
}

.ansprechpartner-mannschaft,
.ansprechpartner-trainer {
  margin-bottom: 1rem;
  color: #555;
  line-height: 1.6;
}

.ansprechpartner-mannschaft strong,
.ansprechpartner-trainer strong {
  color: var(--primary_color);
}

.ansprechpartner-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Admin Ansprechpartner Styles */
.ansprechpartner-item {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #e5e7eb;
  position: relative;
}

.ansprechpartner-item h3 {
  margin: 0 0 1.5rem 0;
  color: var(--primary_color);
  font-size: 1.1rem;
}

.ansprechpartner-item .remove-ansprechpartner {
  margin-top: 1rem;
}

#add-ansprechpartner {
  margin-top: 1rem;
}

/* Ansprechpartner Text */
.ansprechpartner-text {
  background: white;
  padding: 6rem !important;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
}

.ansprechpartner-text h1,
.ansprechpartner-text h2,
.ansprechpartner-text h3,
.ansprechpartner-text h4,
.ansprechpartner-text h5,
.ansprechpartner-text h6 {
  color: var(--dark_color);
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
}

.ansprechpartner-text h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--primary_color);
  padding-bottom: 0.5rem;
}

.ansprechpartner-text h3 {
  font-size: 1.5rem;
  color: var(--primary_color);
}

.ansprechpartner-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.ansprechpartner-text ul,
.ansprechpartner-text ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.ansprechpartner-text li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.ansprechpartner-text a {
  color: var(--primary_color);
  text-decoration: none;
  transition: color 0.3s;
}

.ansprechpartner-text a:hover {
  color: var(--secondary_color);
  text-decoration: underline;
}

/* Update ansprechpartner-trainer to ansprechpartner-kontakt */
.ansprechpartner-kontakt {
  margin-top: 1.5rem;
}

.ansprechpartner-kontakt .btn {
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .main-navigation {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .header-content {
    flex-direction: row;
    gap: 1rem;
  }

  /* Single Post Mobile */
  .post-title {
    font-size: 2rem;
  }

  .post-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .post-content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-links {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .nav-previous,
  .nav-next {
    text-align: center;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }

  .share-buttons {
    justify-content: center;
  }

  /* Contact Page Mobile */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* PAGE TEMPLATE STYLES */
.page-main {
  margin-top: 80px;
}

/* Page Hero Section */
.page-hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark_color) 100%) !important;
  color: white;
  padding: 4rem 0 2rem;
}

.page-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero-content h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.page-hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Page Content */
.page-content-section {
  padding: 4rem 0;
  background: var(--light_color);
}

.page-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-content {
  background: white;
  padding: 6rem !important;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  color: var(--dark_color);
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
}

.page-content h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--primary_color);
  padding-bottom: 0.5rem;
}

.page-content h3 {
  font-size: 1.5rem;
  color: var(--primary_color);
}

.page-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.page-content ul,
.page-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.page-content a {
  color: var(--primary_color);
  text-decoration: none;
  transition: color 0.3s;
}

.page-content a:hover {
  color: var(--secondary_color);
  text-decoration: underline;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.page-content blockquote {
  background: var(--light_color);
  border-left: 4px solid var(--primary_color);
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

/* ALLE SEITEN GLEICHE BREITE - WICHTIG! */
.wp-block-post-content,
.entry-content,
.page-content,
.post-content,
.site-main .container,
.wp-site-blocks,
.wp-block-group__inner-container,
.is-layout-constrained > *,
.has-global-padding {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Gutenberg spezifische Container */
.wp-block-group.is-layout-constrained,
.wp-block-cover.is-layout-constrained,
.wp-block-columns.is-layout-constrained {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Mobile Responsive für Page Template */
@media (max-width: 768px) {
  .page-hero-content h1 {
    font-size: 2rem;
  }

  .page-content {
    padding: 4rem 3rem !important;
  }

  .page-content h2 {
    font-size: 1.5rem;
  }

  .wp-block-post-content,
  .entry-content,
  .page-content,
  .post-content,
  .site-main .container,
  .wp-site-blocks,
  .wp-block-group__inner-container,
  .is-layout-constrained > *,
  .has-global-padding {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* MANNSCHAFTEN PAGE STYLES */
.mannschaften-page-main {
  margin-top: 80px;
}

/* Mannschaften Hero Section */
.mannschaften-hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark_color) 100%) !important;
  color: white;
  padding: 4rem 0 2rem;
}

.mannschaften-hero-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.mannschaften-hero-content h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.mannschaften-hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Mannschaften Content */
.mannschaften-content-section {
  padding: 4rem 0;
  background: var(--light_color);
}

.mannschaften-content-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.mannschaften-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.mannschaft-item {
  background: white;
  padding: 6rem !important;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.mannschaft-text {
  margin-bottom: 2rem;
}

.mannschaft-text h1,
.mannschaft-text h2,
.mannschaft-text h3,
.mannschaft-text h4,
.mannschaft-text h5,
.mannschaft-text h6 {
  color: var(--dark_color);
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
}

.mannschaft-text h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--primary_color);
  padding-bottom: 0.5rem;
}

.mannschaft-text h3 {
  font-size: 1.5rem;
  color: var(--primary_color);
}

.mannschaft-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.mannschaft-text ul,
.mannschaft-text ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.mannschaft-text li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.mannschaft-text a {
  color: var(--primary_color);
  text-decoration: none;
  transition: color 0.3s;
}

.mannschaft-text a:hover {
  color: var(--secondary_color);
  text-decoration: underline;
}

.mannschaft-fotos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.mannschaft-foto {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.mannschaft-foto:hover {
  transform: translateY(-5px);
}

.mannschaft-foto img {
  width: 100%;
  height: auto;
  display: block;
}

.mannschaften-empty {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Admin Mannschaften Styles */
.mannschaft-item-admin {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
  border: 1px solid #e5e7eb;
  position: relative;
}

.mannschaft-item-admin h3 {
  margin: 0 0 2rem 0;
  color: var(--primary_color);
  font-size: 1.2rem;
}

.mannschaft-fotos-admin {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.mannschaft-item-admin .remove-mannschaft {
  margin-top: 2rem;
}

#add-mannschaft {
  margin-top: 2rem;
}

/* Mobile Responsive für Mannschaften */
@media (max-width: 768px) {
  .mannschaften-hero-content h1 {
    font-size: 2rem;
  }

  .mannschaft-item {
    padding: 4rem 3rem !important;
  }

  .mannschaft-fotos {
    grid-template-columns: 1fr;
  }

  .mannschaft-fotos-admin {
    grid-template-columns: 1fr;
  }
}

/* Gutenberg Content Width */
.wp-block-post-content,
.entry-content,
.page-content,
.post-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ERHÖHTES PADDING FÜR ALLE CONTENT-BEREICHE */
.wp-block-post-content,
.entry-content,
.page-content,
.post-content,
.legal-info,
.mannschaft-text,
.ansprechpartner-text {
  padding: 6rem !important;
}

/* Mobile Responsive für Page Template */
@media (max-width: 768px) {
  .page-hero-content h1 {
    font-size: 2rem;
  }

  .page-content {
    padding: 4rem 3rem !important;
  }

  .page-content h2 {
    font-size: 1.5rem;
  }

  .wp-block-post-content,
  .entry-content,
  .page-content,
  .post-content,
  .site-main .container,
  .wp-site-blocks,
  .wp-block-group__inner-container,
  .is-layout-constrained > *,
  .has-global-padding {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Alle Hero Sections mit blau-schwarz Gradient */
.legal-hero-section,
.ansprechpartner-hero-section,
.mannschaften-hero-section,
.page-hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark_color) 100%) !important;
  color: white;
  padding: 4rem 0 2rem;
}

/* NEWS PAGE STYLES */
.news-page-main {
  margin-top: 80px;
}

/* News Hero Section */
.news-hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark_color) 100%) !important;
  color: white;
  padding: 4rem 0 2rem;
}

.news-hero-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.news-hero-content h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.news-hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* News Content */
.news-content-section {
  padding: 4rem 0;
  background: var(--light_color);
}

.news-grid-page {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.news-card-page {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card-page:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-image-page {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.news-image-page .news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card-page:hover .news-img {
  transform: scale(1.05);
}

.news-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.news-content-page {
  padding: 2rem;
}

.news-meta-page {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.news-meta-page span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-meta-page .dashicons {
  font-size: 16px;
  color: var(--primary-color);
}

.news-title-page {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  line-height: 1.4;
}

.news-title-page a {
  color: var(--dark_color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-title-page a:hover {
  color: var(--primary-color);
}

.news-excerpt-page {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  color: var(--secondary-color);
  gap: 0.75rem;
}

.read-more-btn .dashicons {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.read-more-btn:hover .dashicons {
  transform: translateX(3px);
}

/* No News */
.no-news {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.no-news h3 {
  color: var(--dark_color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.no-news p {
  color: #666;
  font-size: 1.1rem;
}

/* Pagination */
.news-pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.news-pagination .page-numbers {
  display: inline-block;
  padding: 0.75rem 1rem;
  margin: 0 0.25rem;
  background: white;
  color: var(--dark_color);
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
  font-weight: 500;
}

.news-pagination .page-numbers:hover,
.news-pagination .page-numbers.current {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.news-pagination .page-numbers.dots {
  background: transparent;
  border: none;
  cursor: default;
}

.news-pagination .page-numbers.dots:hover {
  background: transparent;
  color: var(--dark_color);
}

/* Mobile Responsive für News Page */
@media (max-width: 768px) {
  .news-hero-content h1 {
    font-size: 2rem;
  }

  .news-grid-page {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .news-content-page {
    padding: 1.5rem;
  }

  .news-meta-page {
    flex-direction: column;
    gap: 0.5rem;
  }

  .news-pagination {
    margin-top: 2rem;
  }

  .news-pagination .page-numbers {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}
