/**
Theme Name: Freundeskreis Buch und Kunst
Author: Anne Schwarz | Bloghexe
Author URI: https://bloghexe.de
Description: Theme für den Freundeskreis Buch und Kunst Neunkirchen-Seelscheid e.V.
Text Domain: fkbuku
Template: astra
*/

/* ============================================
   GENERELLES
   ============================================ */

html, body {
  overflow-x: hidden;
  font-size: 16px;
}


@media (min-width: 1025px) {
  .max-width-500 {
  	max-width: 500px !important;
  }
}

/* Tabellen */
.wp-block-table.is-style-stripes {
	border: 0;
}

table {
	max-width: 600px;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(2n+1) {
	background: var(--ast-global-color-5);
}

/* ============================================
 	Eigene Shortcodes
    ============================================ */
.aktion {
	background: var(--ast-global-color-6);
	padding: 2rem;
}

/* ============================================
 	STANDARDSEITEN OHNE ELEMENTOR
    ============================================ */

body.not(.elementor-template-full-width) .ast-container {
	padding: 0;
	max-width: 1200px !important;
}

.entry-content,
.entry-header,
.page-content {
  max-width: 1200px;
  margin: 0 auto;
}

.entry-header {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

@media (max-width: 768px) {
  .entry-content,
  .entry-header,
  .page-content {
    padding: 1rem;
  }
}

/* ============================================
   LAYOUT 
   Jeder Bereich trägt die Klasse .section und steht auf fullwidth.
   Darin liegt entweder ein .wrapper auf boxed,
      oder .col-left und .col-right, die jeweils ein .content enthalten.
   ============================================ */

.section {
  width: 100%;
  padding: 0 !important;
}

/* Innerer Container bei Full-Width-Sektionen */
.wrapper,
.content {
  padding: 4rem !important;
}


@media (max-width: 1024px) {
  .wrapper,
  .content {
    padding: 3rem 2rem !important;
  }
}

@media (max-width: 768px) {
  .wrapper,
  .content {
    padding: 2rem 1rem !important;
  }
}


/* ============================================
   LAYOUT – SPALTEN
   ============================================ */

.col-left,
.col-right {
  width: 50% !important;
}

@media (max-width: 1024px) {
  .col-left,
  .col-right {
    width: 100% !important;
  }
}

/* Text auf max. Breite begrenzen bei 50/50-Layouts */
@media (min-width: 1025px) {
  
	.col-left.col-text .content {
  		max-width: 600px;
  		margin-left: auto;
  		padding-left: 0 !important;
	}

	.col-right.col-text .content {
  		max-width: 600px;
  		margin-right: auto;
  		padding-right: 0 !important;
	}
}

.col-media {
	padding: 0 !important;
}



/* ============================================
   LAYOUT – GRID
   ============================================ */

.grid-2,
.grid-3,
.grid-4 {
  display: grid !important;
  gap: 1.5rem !important;
}

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

@media (max-width: 1024px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   TYPOGRAFIE
   Schriftgrößen werden hier gesetzt, damit Elementor free und Astra free sauber zusammenspielen
   ============================================ */
.entry-title,
.entry-title a {
  font-weight: 400 !important;
}
   
.elementor-kit-7 h1,
.entry-content h1 { 
	font-size: 2.2rem !important; 
}

.elementor-kit-7 h2,
.entry-content h2 { 
	font-size: 2rem !important; 
}

.elementor-kit-7 h3,
.entry-content h3,
.blog-layout-4 h2 /* Blogarchiv */ { 
	font-size: 1.6rem !important; 
}

.elementor-kit-7 h4,
.entry-content h4 { 
	font-size: 1.4rem !important; 
}



/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-primary-header-wrap {
	padding: 0 20px !important;
}

.ast-nav-menu a {
  font-family: var(--e-global-typography-text-font-family), sans-serif;
  font-weight: var(--e-global-typography-text-font-weight);
}

/* Trennlinie Header entfernen */
.ast-primary-header-bar {
  border: 0;
}

.ast-header-button-1 .ast-custom-button {
  border-radius: 3px !important;
}


/* ============================================
   BUTTONS
   ============================================ */

.ast-custom-button-link {
  text-decoration: none !important;
}

input[type="submit"],
.ast-custom-button {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff !important;
  transition: background-color 0.2s ease;
}

.ast-custom-button:hover {
  background: var(--ast-global-color-1) !important;
}

#ast-desktop-header .ast-custom-button {
  max-width: 230px;
  display: flex;
  text-align: center;
  line-height: 1.4;
}

/* weiterlesen-Button auf der Startseite */
.elementor-button.secondary {
	border: 1px solid var(--e-global-color-7266376) !important;
  	background: none !important;
  	color: var(--e-global-color-7266376) !important;
}

/* Weiterlesen-Link auf der Blogseite */
p.read-more a {
    display: inline-block;
    background-color: transparent;
    border: 1px solid currentColor;
    border-radius: 3px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    margin-top: auto;
}

.elementor-button.secondary:hover,
p.read-more a:hover {
	color: #33343A !important;
	border-color: #33343A !important;
	font-style: italic;
}

/* ============================================
   ICON-BOXEN
   ============================================ */

/* Buttons auf gleicher Höhe */
.iconbox-gleich .elementor-icon-box-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.iconbox-gleich .elementor-icon-box-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.iconbox-gleich .elementor-icon-box-description {
  flex: 1;
}

.elementor-icon-box-icon {
	text-align: center;
}

/* Typografie Icon-Boxen */
h3.elementor-icon-box-title {
  font-size: 1.7rem;
  letter-spacing: 0;
  line-height: 1.7rem;
  margin-bottom: 1.5rem;
}

.elementor-icon-box-content .elementor-widget-button {
  margin-top: 30px;
}

.elementor-icon-box-content .elementor-widget-button a {
  min-height: 77px;
  display: flex;
  align-items: center;
  justify-content: center;
}


@media (max-width: 1024px) {
  h3.elementor-icon-box-title {
    font-size: 1.3rem;
  }
  
   .iconbox-gleich:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
  
  .elementor-icon-box-content .elementor-button {
   hyphens: auto;
   -webkit-hyphens: auto;
   word-break: break-word;
   overflow-wrap: break-word;
 }
}

/* ============================================
   NEUE BEITRÄGE AUF DER STARTSEITE WIE BLOGARCHIV
   ============================================ */
.recent-post,
.ast-blog-layout-4-grid .ast-article-inner {
    box-shadow: 0px 6px 15px -2px rgba(16, 24, 40, 0.2);
    border-radius: 6px;
    overflow: hidden;
    background: var(--ast-global-color-4);
}

.recent-post > a:first-child {
    display: block;
    line-height: 0;
}
.recent-post-image {
    width: 100%;
    height: 249px;
    object-fit: cover;
    display: block;
}

.recent-post-content {
    padding: 32px;
}

.recent-post-datum,
.entry-meta {
    font-size: 13px;
    color: var(--ast-global-color-8);
    line-height: 1.45;
    margin: 0.5rem 0;
}

.entry-meta * {
    color: var(--ast-global-color-8);
}

.recent-post-content h3 a {
    color: var(--ast-global-color-2);
    text-decoration: none;
}

.recent-post-content h3 a:hover {
    color: var(--ast-global-color-0);
}

.recent-post-content > p:last-child {
    margin: 0;
}

.recent-posts .entry-header {
    padding: 0;
}

.recent-post > a:first-child {
    display: block;
    line-height: 0;
    overflow: hidden;   
    height: 249px;    
}

.recent-post-image {
    width: 100%;
    height: 100%;      
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.5s;
}

.recent-post:hover .recent-post-image {
    transform: scale(1.1);
}

article.recent-post {
    display: flex;
    flex-direction: column;
}

.recent-post-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.recent-post-content .elementor-button {
    margin: auto auto 0;
    align-self: flex-start;
}

/* ============================================
   ARCHIV
   ============================================ */
   
.ast-excerpt-container.ast-blog-single-element {
	margin-bottom: 1rem;
}

h2.entry-title {
	margin-bottom: 0;
}

.entry-header.ast-blog-meta-container {
	margin: 0 !important;
}

.entry-header.ast-blog-meta-container .entry-meta * {	
	font-weight: 400! important;
}

/* Buttons unten mittig ausrichten */
.ast-article-inner {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.post-content.ast-grid-common-col {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

p.ast-read-more-container {
    margin-top: auto !important;
    text-align: center;
}

/* ============================================
   EINZELBEITRAG
   ============================================ */

.ast-separate-container .site-content .ast-single-post-featured-section + article {
	margin-top: 0 !important;
}

nav.post-navigation {
	display: none;
}

header.entry-header .entry-title {
	hyphens: auto;
}

@media (min-width: 922px) {
  .ast-left-sidebar .site-content .ast-article-image-container--wide, 
  .ast-right-sidebar .site-content .ast-article-image-container--wide {
    margin-left: -30px;
    margin-right: -30px;
  }
  

	.sidebar-main {
		padding-left: 30px;
	}
}



.ast-separate-container.ast-two-container #secondary .widget {
	background: var(--ast-global-color-5);
}

h1.entry-title {
	position: relative;
	padding-bottom: 10px;
}

h1.entry-title::after {
	content: '';
  	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 3px;
	background-color: var(--ast-global-color-0);
}

.wp-singular h1.entry-title::after {
	display: none;
}

.wp-singular .entry-meta {
	margin-bottom: 2rem;
}


.ast-article-single figure, 
.ast-article-single img:not(figure img) {
	box-shadow: none;
}


/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  border-top: 1px solid var(--ast-global-color-5);
  padding: 2rem 1rem;
}

.site-footer a {
  text-decoration: none;
  color: var(--ast-global-color-5);
}

.site-footer a:hover {
   color: var(--ast-global-color-1) !important;
}

.custom-elementor-footer ul.elementor-icon-list-items {
  margin: 0;
}

.custom-elementor-footer .elementor-icon-list-icon svg {
  width: 1em !important;
  height: 1em !important;
}

.custom-elementor-footer label {
  color: var(--ast-global-color-5);
}   
