/*
Theme Name: JNews - Child Theme
Version: 1.0.0
Theme URI: http://themeforest.net/?ref=jegtheme
Description: A basic starter child theme for customization purpose of JNews theme.
Author: Jegtheme
Author URI: http://themeforest.net/user/jegtheme?ref=jegtheme
Template: jnews
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/



/* Box shadow */
body > div.jeg_viewport {
	box-shadow: 0 14px 50px rgba(0, 0, 0, 0.1) !important;
}


/* Single Post Header Image */
.jeg_fs_content {
	height: 160px !important;
}

.jeg_post_title,
.jeg_post_subtitle {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
    width: 100% !important;
    text-align: left !important;
    margin-bottom: 0 !important;
}

.jeg_post_title { margin: 0 0 0 0 !important; }
.jeg_post_subtitle { margin: 0 !important; }



.jeg_featured_bg {
	filter: brightness(0.5) !important;
}

.jeg_featured_big .entry-header .jeg_post_title {
	font-size: 42px !important;
}



@media only screen and (max-width: 630px){
		.jeg_featured_big .entry-header .jeg_post_title {
			font-size: 28px !important;
			}
	
		.jeg_fs_content {
			height: 140px !important;
			}
	
		.jeg_content.jeg_singlepage {
    		padding-top: 0px !important;
  			}
		.jeg_post_subtitle{
			font-size: 18px !important;
			}
}


/* ================================
   Kategorie-Ansicht als Nummern-Liste
   NUR für Kategorie: maerklin
   ================================ */

/* Thumbnails in der Post-Übersicht ausblenden */
body.category-maerklin .jeg_cat_content .jeg_posts_wrap .jeg_thumb,
body.category-maerklin .jeg_cat_content .jeg_posts_wrap .thumbnail-container {
    display: none !important;
}

/* Abstände für Post-Items korrigieren */
body.category-maerklin .jeg_cat_content .jeg_posts_wrap article {
    padding-top: 0 !important;
}

/* Überschriften innerhalb der Post-Liste anpassen */
body.category-maerklin .jeg_cat_content .jeg_posts_wrap article h2,
body.category-maerklin .jeg_cat_content .jeg_posts_wrap article h3 {
    margin-top: 0 !important;
}

/* Container darf nicht schmal werden */
body.category-maerklin .jeg_cat_content .jeg_posts_wrap,
body.category-maerklin .jeg_cat_content .jeg_posts_wrap .jeg_posts {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

/* Grid auf den echten Post-Container */
body.category-maerklin .jeg_cat_content .jeg_posts_wrap .jeg_posts {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    column-gap: 32px !important;
    row-gap: 18px !important;
    justify-items: start !important;
}

/* JNews-Spalten/Flex-Kram neutralisieren */
body.category-maerklin .jeg_cat_content .jeg_posts_wrap .jeg_posts > article {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
}

/* Optional: Meta/Excerpt ausblenden (falls vorhanden und du nur die Titel willst) */
body.category-maerklin .jeg_cat_content .jeg_posts_wrap .jeg_meta_date,
body.category-maerklin .jeg_cat_content .jeg_posts_wrap .jeg_meta_author,
body.category-maerklin .jeg_cat_content .jeg_posts_wrap .jeg_post_meta,
body.category-maerklin .jeg_cat_content .jeg_posts_wrap .jeg_post_excerpt {
    display: none !important;
}

/* Optional: Titel wie „Nummern-Look“ (falls JNews da zu viel drumherum macht) */
body.category-maerklin .jeg_cat_content .jeg_posts_wrap .jeg_postblock_title a,
body.category-maerklin .jeg_cat_content .jeg_posts_wrap h3 a,
body.category-maerklin .jeg_cat_content .jeg_posts_wrap h2 a {
    text-decoration: none !important;
}

/* Responsive */
@media (max-width: 1200px) {
    body.category-maerklin .jeg_cat_content .jeg_posts_wrap .jeg_posts {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    body.category-maerklin .jeg_cat_content .jeg_posts_wrap .jeg_posts {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}








/* Menü Klasse */

.jeg_main_menu li.no-click > a{
  pointer-events: none;
  cursor: default;
}

/* JNews Submenu */

/* Submenu-Container */
.jeg_main_menu .sub-menu {
  min-width: 300px;      /* vorher sehr schmal */
  padding: 12px 0;       /* etwas mehr Luft oben/unten */
}

/* Links im Submenu */
.jeg_main_menu .sub-menu > li > a {
  padding: 8px 20px;     /* größere Klickfläche */
  font-size: 15.5px;     /* minimal größer */
  line-height: 1.45;     /* luftiger Text */
}



/* Single Post Abstand unter Titel */

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

/* Single Post Metas */

.jeg_meta_container {
	display: none !important;
}

/* Tabellen scrollbar */

.entry-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.entry-content table {
  white-space: nowrap; /* optional, verhindert Umbrüche */
}

/* Tabellen Größe */

.entry-content table,
.entry-content table th,
.entry-content table td{
  font-size: 1em !important;     /* gleich wie normaler Text */
  line-height: 1.5 !important;
}



/* Table of contents Styling */

.ez-toc-title-container {
	padding-bottom: 1em !important;
}


/* li selbst nur als Wrapper, kein Padding dort */
#ez-toc-container > nav > ul > li {
    padding: 0;
    margin: 0;
}

/* Link wird zur kompletten "Kachel" */
#ez-toc-container li a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;

    padding: 8px 16px;       /* Padding jetzt HIER */
    border-radius: 10px;     /* Runde Ecken auch hier */
}

/* Hover-Zustand & aktiver Punkt */
#ez-toc-container li a:hover,
#ez-toc-container li.ez-toc-active > a {
    background: #f3f3f3;
    border-radius: 10px;
    text-decoration: none !important;
}

/* Rahmen vom Container weg */
#ez-toc-container {
    border: unset !important;
}


/* Besuchte Links leicht abgedunkelt */
#ez-toc-container a:visited {
    color: #444 !important;
}

.entry-content {
    margin-top: 10px !important;
}

/* EZ-TOC: Schriftgröße & Farbe wie normaler Text */
#ez-toc-container{
  font-size: 18px;           /* ggf. 17/18 wenn dein Fließtext größer ist */
  line-height: 1.5;
  color: #111 !important;    /* Basisfarbe im Container */
}

/* Links im TOC explizit schwarz, nicht "inherit" */
#ez-toc-container a{
  color: #111 !important;
  font-weight: 500;          /* optional, wirkt weniger "grau" */
}

/* visited nicht extra abdunkeln (macht's sonst wieder grau) */
#ez-toc-container a:visited{
  color: #111 !important;
}

/* Hover/aktiv: deine Kachel-Optik behalten */
#ez-toc-container li a:hover,
#ez-toc-container li.ez-toc-active > a{
  background: #f3f3f3;
  text-decoration: none !important;
}

#ez-toc-container,
#ez-toc-container *,
#ez-toc-container:before,
#ez-toc-container:after {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}




/* Kontaktformular max-width */

.wpforms-container .wpforms-field-medium {
  max-width: 100% !important;
}



