/*
 Theme Name: Divi Child for https://www.wirsindkickers.de/
 Theme URI: https://www.elegantthemes.com/gallery/divi/
 Description: Divi Child Theme - Modern styling for Kickers Offenbach blog
 Author: Elegant Themes
 Author URI: https://www.elegantthemes.com
 Template: Divi
 Version: 2.0.0
*/

/* ==========================================================================
   This file is compiled from SCSS source files in the scss/ directory.
   
   To make changes:
   1. Edit the SCSS files in scss/
   2. Compile main.scss to this file
   3. DO NOT edit this CSS file directly
   ========================================================================== */

/* Kickers Offenbach Brand Colors */
/* Primary: #ed3224 (Kickers Red) */
/* Secondary: White and modern grays */

/* Base Typography */
body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212121;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: #212121;
  margin-bottom: 1rem;
}

h1, .h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  h1, .h1 {
    font-size: 3rem;
  }
}

h2, .h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  h2, .h2 {
    font-size: 2.25rem;
  }
}

h3, .h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  h3, .h3 {
    font-size: 1.875rem;
  }
}

/* Links */
a {
  color: #ed3224;
  text-decoration: none;
  transition: color 250ms ease-in-out;
}

a:hover {
  color: #c42a1d;
  text-decoration: underline;
}

/* Modern Blog Post Styling for Divi */
article.et_pb_post {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 250ms ease-in-out;
  margin-bottom: 2rem;
  border: none;
  padding: 1.5rem;
}

article.et_pb_post:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* Blog Post Images */
.wp-block-post-template .wp-block-post-featured-image,
.et_pb_blog_grid .et_pb_image_container,
.et_pb_posts .et_pb_image_container {
  position: relative;
  overflow: hidden;
}

.wp-block-post-template .wp-block-post-featured-image img,
.et_pb_blog_grid .et_pb_image_container img,
.et_pb_posts .et_pb_image_container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 350ms ease-in-out;
  border-radius: 0;
}

.wp-block-post-template .wp-block-post:hover .wp-block-post-featured-image img,
.et_pb_blog_grid .et_pb_post:hover .et_pb_image_container img,
.et_pb_posts .et_pb_post:hover .et_pb_image_container img {
  transform: scale(1.05);
}

/* Blog Post Titles */
article.et_pb_post h2.entry-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  margin-top: 0;
}

@media (min-width: 768px) {
  article.et_pb_post h2.entry-title {
    font-size: 1.5rem;
  }
}

article.et_pb_post h2.entry-title a {
  color: #212121;
  text-decoration: none;
  transition: color 250ms ease-in-out;
}

article.et_pb_post h2.entry-title a:hover {
  color: #ed3224;
}

/* Blog Post Excerpts */
.wp-block-post-template .wp-block-post-excerpt,
.et_pb_blog_grid .et_pb_post .post-content p,
.et_pb_posts .et_pb_post .post-content p {
  color: #616161;
  line-height: 1.625;
  margin-bottom: 1.5rem;
}

/* Blog Post Meta */
article.et_pb_post .post-meta {
  font-size: 0.875rem;
  color: #9e9e9e;
  font-weight: 500;
  margin-bottom: 1rem;
}

article.et_pb_post .post-meta a {
  color: #ed3224;
  text-decoration: none;
  font-weight: 600;
}

article.et_pb_post .post-meta a:hover {
  color: #c42a1d;
  text-decoration: underline;
}

/* Read More Links */
.wp-block-read-more,
.et_pb_blog_grid .more-link,
.et_pb_posts .more-link {
  color: #ed3224;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
}

.wp-block-read-more:hover,
.et_pb_blog_grid .more-link:hover,
.et_pb_posts .more-link:hover {
  color: #c42a1d;
  text-decoration: underline;
}

.wp-block-read-more::after,
.et_pb_blog_grid .more-link::after,
.et_pb_posts .more-link::after {
  content: " →";
  transition: transform 250ms ease-in-out;
}

.wp-block-read-more:hover::after,
.et_pb_blog_grid .more-link:hover::after,
.et_pb_posts .more-link:hover::after {
  transform: translateX(4px);
}

/* Blog Layout - Keep current layout but with better spacing */
.et_pb_blog_grid,
.et_pb_posts,
.et_pb_posts_container,
.et_pb_blog_grid_wrapper {
  /* Keep existing layout, just add some spacing improvements */
  padding: 0 !important;
}

/* Responsive spacing improvements (Homepage only) */
@media (min-width: 768px) {
  .home article[class*="et_pb_post"] {
    padding: 2.25rem !important;
  }
}

@media (min-width: 1024px) {
  .home article[class*="et_pb_post"] {
    padding: 2.5rem !important;
  }
}

/* Featured Article - Full Width on Large Screens */
@media (min-width: 992px) {
  .wp-block-post-template .wp-block-post:first-child,
  .et_pb_blog_grid .et_pb_post:first-child,
  .et_pb_posts .et_pb_post:first-child {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }
  
  .wp-block-post-template .wp-block-post:first-child .wp-block-post-featured-image,
  .et_pb_blog_grid .et_pb_post:first-child .et_pb_image_container,
  .et_pb_posts .et_pb_post:first-child .et_pb_image_container {
    order: 1;
  }
  
  .wp-block-post-template .wp-block-post:first-child .wp-block-post-title,
  .wp-block-post-template .wp-block-post:first-child .wp-block-post-excerpt,
  .wp-block-post-template .wp-block-post:first-child .wp-block-post-date,
  .wp-block-post-template .wp-block-post:first-child .wp-block-read-more,
  .et_pb_blog_grid .et_pb_post:first-child .post-content,
  .et_pb_posts .et_pb_post:first-child .post-content {
    order: 2;
    padding: 2rem;
  }
}

/* Navigation Improvements */
.site-header {
  background-color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1020;
  transition: all 250ms ease-in-out;
}

.site-header.scrolled {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 250ms ease-in-out;
  line-height: 1.5;
}

.btn:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.btn-primary {
  background-color: #ed3224;
  color: #ffffff;
}

.btn.btn-primary:hover:not(:disabled) {
  background-color: #c42a1d;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn.btn-primary:active {
  transform: translateY(0);
}

/* Single Post/Article Styling */
.single-post .article-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 2px solid #eeeeee;
}

.single-post .article-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  color: #212121;
}

@media (min-width: 768px) {
  .single-post .article-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 992px) {
  .single-post .article-title {
    font-size: 3rem;
  }
}

.single-post .article-content {
  max-width: 800px;
  margin: 0 auto;
}

.single-post .article-content p {
  font-size: 1.125rem;
  line-height: 2;
  margin-bottom: 2rem;
}

.single-post .article-content h2 {
  margin-top: 4rem;
  margin-bottom: 2rem;
  position: relative;
}

.single-post .article-content h2::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #ed3224;
  border-radius: 0.25rem;
}

/* Pull Quotes */
.pull-quote {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #f04f42 0%, #ed3224 100%);
  color: #ffffff;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.375;
  text-align: center;
  position: relative;
}

.pull-quote::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  font-size: 2.25rem;
  font-weight: 700;
  opacity: 0.5;
}

.pull-quote::after {
  content: '"';
  position: absolute;
  bottom: 0.5rem;
  right: 1.5rem;
  font-size: 2.25rem;
  font-weight: 700;
  opacity: 0.5;
}

/* Responsive Improvements */
@media (max-width: 767px) {
  .article-card .card-content {
    padding: 1.5rem;
  }
  
  .single-post .article-content h2::before {
    display: none;
  }
  
  .pull-quote {
    margin: 2rem 0;
    padding: 1.5rem;
    font-size: 1.125rem;
  }
}

/* WordPress Core Styling Improvements */
.alignleft {
  float: left;
  margin: 0 1.5rem 1.5rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1.5rem 1.5rem;
}

.aligncenter {
  display: block;
  margin: 0 auto 1.5rem;
  text-align: center;
}

/* Divi Theme Specific Overrides */
body.divi {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Divi Header Improvements */
#main-header {
  background-color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1020;
  transition: all 250ms ease-in-out;
}

#main-header.et-fixed-header {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

/* Divi Navigation Menu */
#top-menu li a {
  color: #212121 !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.375rem !important;
  transition: all 250ms ease-in-out !important;
}

#top-menu li a:hover,
#top-menu li.current-menu-item a,
#top-menu li.current-menu-ancestor a {
  background-color: #ed3224 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Divi Blog Module Improvements */
.et_pb_blog_grid_wrapper {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .et_pb_blog_grid_wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .et_pb_blog_grid_wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Footer Improvements */
#main-footer {
  background-color: #212121;
  color: #e0e0e0;
  padding: 4rem 0 1.5rem;
}

#main-footer .footer-widget h4 {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

#main-footer .footer-widget a {
  color: #bdbdbd;
  transition: color 250ms ease-in-out;
}

#main-footer .footer-widget a:hover {
  color: #ed3224;
  text-decoration: none;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-kickers { color: #ed3224; }
.mb-lg { margin-bottom: 1.5rem; }
.mb-xl { margin-bottom: 2rem; }
.mt-xl { margin-top: 2rem; }

/* Loading Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
  border-top-color: #ed3224;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 1rem;
}

/* ==========================================================================
   HOMEPAGE BLOG CARDS - Modern styling only for homepage
   ========================================================================== */

/* Modern Article Cards - Clean & Elegant (Homepage only) */
.home article[class*="et_pb_post"] {
  background-color: #ffffff !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.06) !important;
  padding: 2rem !important;
  margin-bottom: 2.5rem !important;
  transition: all 300ms ease-in-out !important;
  border: 1px solid rgba(237, 50, 36, 0.08) !important;
  position: relative !important;
  overflow: hidden !important;
}

.home article[class*="et_pb_post"]:hover {
  box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-4px) !important;
  border-color: rgba(237, 50, 36, 0.15) !important;
}

/* Subtle accent line at top (Homepage only) */
.home article[class*="et_pb_post"]::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, #ed3224 0%, #f04f42 100%) !important;
  opacity: 0.8 !important;
  transition: opacity 300ms ease-in-out !important;
}

.home article[class*="et_pb_post"]:hover::before {
  opacity: 1 !important;
}

/* Post titles (Homepage only) */
.home article[class*="et_pb_post"] h2.entry-title {
  font-size: 1.375rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-bottom: 1rem !important;
  margin-top: 0 !important;
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

@media (min-width: 768px) {
  .home article[class*="et_pb_post"] h2.entry-title {
    font-size: 1.625rem !important;
  }
}

.home article[class*="et_pb_post"] h2.entry-title a {
  color: #1a1a1a !important;
  text-decoration: none !important;
  transition: color 300ms ease-in-out !important;
}

.home article[class*="et_pb_post"] h2.entry-title a:hover {
  color: #ed3224 !important;
}

/* Post meta styling (Homepage only) */
.home article[class*="et_pb_post"] .post-meta {
  font-size: 0.875rem !important;
  color: #6b7280 !important;
  font-weight: 500 !important;
  margin-bottom: 1.25rem !important;
  padding-bottom: 1rem !important;
  border-bottom: 1px solid #f3f4f6 !important;
}

.home article[class*="et_pb_post"] .post-meta a {
  color: #ed3224 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: color 300ms ease-in-out !important;
}

.home article[class*="et_pb_post"] .post-meta a:hover {
  color: #c42a1d !important;
  text-decoration: none !important;
}

/* Post content/excerpt styling (Homepage only) */
.home article[class*="et_pb_post"] p {
  color: #4b5563 !important;
  line-height: 1.7 !important;
  font-size: 1rem !important;
  margin-bottom: 0 !important;
}

/* ==========================================================================
   SINGLE BLOG POST IMPROVEMENTS - Enhanced readability and visual appeal
   ========================================================================== */

/* Single post main content area */
.single-post .et_pb_post,
.single-post article.post {
  max-width: 800px !important;
  margin: 0 auto !important;
  padding: 2rem 1.5rem !important;
  background-color: #ffffff !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
  margin-bottom: 3rem !important;
}

@media (min-width: 768px) {
  .single-post .et_pb_post,
  .single-post article.post {
    padding: 3rem 2.5rem !important;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.08) !important;
  }
}

/* Enhanced typography for better readability */
.single-post .et_pb_post p,
.single-post article.post p {
  font-size: 1.125rem !important;
  line-height: 1.8 !important;
  color: #374151 !important;
  margin-bottom: 1.5rem !important;
  font-weight: 400 !important;
}

/* Keep red headings but improve spacing */
.single-post h1,
.single-post h2,
.single-post h3,
.single-post h4 {
  margin-top: 2.5rem !important;
  margin-bottom: 1.25rem !important;
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.single-post h1 {
  font-size: 2.25rem !important;
  margin-top: 0 !important;
  margin-bottom: 2rem !important;
}

@media (min-width: 768px) {
  .single-post h1 {
    font-size: 2.75rem !important;
  }
}

/* Enhanced meta information */
.single-post .post-meta {
  background-color: #f9fafb !important;
  padding: 1rem 1.5rem !important;
  border-radius: 0.5rem !important;
  border-left: 4px solid #ed3224 !important;
  margin-bottom: 2rem !important;
  font-size: 0.95rem !important;
}

.single-post .post-meta a {
  color: #ed3224 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.single-post .post-meta a:hover {
  color: #c42a1d !important;
  text-decoration: underline !important;
}

/* Section dividers for better content structure */
.single-post h2::after {
  content: '' !important;
  display: block !important;
  width: 60px !important;
  height: 2px !important;
  background-color: #ed3224 !important;
  margin: 1rem 0 1.5rem 0 !important;
}

/* Pull quotes for highlighting important content */
.single-post blockquote,
.single-post .wp-block-quote {
  background: linear-gradient(135deg, rgba(237, 50, 36, 0.05) 0%, rgba(240, 79, 66, 0.05) 100%) !important;
  border-left: 4px solid #ed3224 !important;
  margin: 2rem 0 !important;
  padding: 1.5rem 2rem !important;
  border-radius: 0 0.5rem 0.5rem 0 !important;
  font-size: 1.25rem !important;
  font-style: italic !important;
  color: #1f2937 !important;
  position: relative !important;
}

.single-post blockquote::before {
  content: '"' !important;
  font-size: 3rem !important;
  color: rgba(237, 50, 36, 0.3) !important;
  position: absolute !important;
  top: 0.5rem !important;
  left: 1rem !important;
  font-weight: bold !important;
}

/* Enhanced list styling (only for main content area) */
.single-post #main-content ul,
.single-post #main-content ol {
  margin: 1.5rem 0 !important;
  padding-left: 2rem !important;
}

.single-post #main-content li {
  margin-bottom: 0.75rem !important;
  line-height: 1.7 !important;
}

.single-post #main-content ul li {
  position: relative !important;
}

.single-post #main-content ul li::before {
  content: '•' !important;
  color: #ed3224 !important;
  font-size: 1.25rem !important;
  position: absolute !important;
  left: -1.5rem !important;
  top: -0.1rem !important;
}

/* Image styling improvements */
.single-post img {
  border-radius: 0.5rem !important;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1) !important;
  margin: 2rem 0 !important;
}

/* Link styling within content */
.single-post .et_pb_post a:not(.post-meta a),
.single-post article.post a:not(.post-meta a) {
  color: #ed3224 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 2px !important;
  transition: all 300ms ease-in-out !important;
}

.single-post .et_pb_post a:hover:not(.post-meta a),
.single-post article.post a:hover:not(.post-meta a) {
  color: #c42a1d !important;
  text-decoration-thickness: 3px !important;
}

/* Reading progress indicator (optional visual enhancement) */
.single-post .et_pb_post::before,
.single-post article.post::before {
  content: '' !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 3px !important;
  background: linear-gradient(90deg, #ed3224 0%, #f04f42 100%) !important;
  z-index: 1000 !important;
  transform: scaleX(0) !important;
  transform-origin: left !important;
  transition: transform 0.3s ease !important;
}