﻿/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/
Description: Child Theme für Hello Elementor
Author: Martin Trojca
Author URI: https://trojca.de/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/
html, body {
    margin: 0 !important;
    padding: 0 !important;
}
a {
  color: #2C4A66;
}
a:hover {
    color: #D15515;
}
.blog .site-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.blog article {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.news-back a{
  display:inline-block;
  padding:10px 14px;
  border-radius:10px;
  text-decoration:none;
  border:1px solid rgba(0,0,0,.15);
}
.news-back {
    margin: 0 0 20px;
}
.single-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
}

.back-to-news {
    display: inline-block;
    margin-bottom: 25px;
    text-decoration: none;
    font-weight: 500;
}

.post-date {
    color: #6b6b6b;
    margin-bottom: 15px;
    font-size: 12px;
    text-transform: uppercase; 
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 25px;
}

.post-title {
    margin-bottom: 20px;
}

.post-content {
    line-height: 1.7;
    margin-bottom: 40px;
}

.prev-next {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 25px;
}
a.wp-show-posts-read-more, a.wp-show-posts-read-more:visited {
  display: inline-block;
  padding: 0;
  border: none;
  color: #D15515;
  font-size: .8em;
  text-decoration: none;
}
a.wp-show-posts-read-more:focus, a.wp-show-posts-read-more:hover {
    background: none;
    background-color: rgba(0, 0, 0, 0);
    border: none;
    color: #34506f !important;
}



/* ===== NEWS: Listenansicht wie Beispiel (Bild links / Text rechts) ===== */

.wp-show-posts-single {
  display: block !important; /* kein Grid */
}

/* jede News-Zeile */
.wp-show-posts-inner{
  display: grid !important;
  grid-template-columns: 360px 1fr; /* Bildspalte / Textspalte */
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin: 0 !important;
}

/* Bild links */
.wp-show-posts-image{
  margin: 0 !important;
}
.wp-show-posts-image img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 6px; /* optional */
}

/* Textblock rechts */
.wp-show-posts-entry-content{
  padding: 0 !important;
}

/* Datum */
.wp-show-posts-entry-date{
  display: block;
  font-size: 14px;
  color: #8a8a8a;
  margin: 0 0 8px 0;
}

/* Titel */
.wp-show-posts-entry-title{
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 10px 0;
}
.wp-show-posts-entry-title a{
  text-decoration: none;
}

/* Auszug */
.wp-show-posts-entry-summary{
  margin: 0 0 10px 0;
  line-height: 1.6;
}

/* „mehr lesen“ */
.wp-show-posts-read-more{
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  text-decoration: none;
}

/* Hover */
.wp-show-posts-entry-title a:hover,
.wp-show-posts-read-more:hover{
  color: #2C4A66;
}


/* ===== NEWS: Listenlayout wie Referenz (Bild links / Text rechts) ===== */

/* Ein Beitrag = Block-Zeile */
article.wp-show-posts-single{
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Innerer Wrapper (pro Beitrag) wird zur 2-Spalten-Zeile */
article.wp-show-posts-single > .wp-show-posts-inner{
  display: grid !important;
  grid-template-columns: 360px 1fr; /* Bild / Text */
  gap: 28px;
  align-items: start;
  padding: 28px 0;
}

/* Bild links */
.wp-show-posts-image{
  margin: 0 !important;
}
.wp-show-posts-image a{
  display: block;
}
.wp-show-posts-image img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 6px; /* optional */
}

/* Header + Text rechts */
.wp-show-posts-entry-header{
  margin: 0 !important;
}

/* Titel */
.wp-show-posts-entry-title{
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 10px 0 !important;
}
.wp-show-posts-entry-title a{
  text-decoration: none;
}

/* Meta / Datum */
.wp-show-posts-entry-meta{
  margin: 0 0 12px 0 !important;
}
.wp-show-posts-entry-date{
  font-size: 14px;
  color: #8a8a8a;
}

/* Updated-Datum ausblenden (optional, weil oft „unruhig“) */
.wp-show-posts-updated{
  display: none;
}

/* Auszug */
.wp-show-posts-entry-summary{
  margin: 0 0 10px 0 !important;
  line-height: 1.6;
}

/* Read more */
.wpsp-read-more{
  margin: 6px 0 0 0 !important;
}
.wp-show-posts-read-more{
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
}
.wp-show-posts-entry-title a:hover,
.wp-show-posts-read-more:hover{
  color: #2C4A66;
}

/* ===== Responsive ===== */

@media (max-width: 1024px){
  article.wp-show-posts-single > .wp-show-posts-inner{
    grid-template-columns: 300px 1fr;
  }
  .wp-show-posts-image img{
    height: 200px;
  }
}

@media (max-width: 768px){
  article.wp-show-posts-single > .wp-show-posts-inner{
    grid-template-columns: 1fr; /* Bild oben */
    gap: 16px;
    padding: 22px 0;
  }
  .wp-show-posts-image img{
    height: 220px;
  }
  .wp-show-posts-entry-title{
    font-size: 20px;
  }
}
/* ===== Erzwinge: Header/Summary/Readmore rechts neben dem Bild ===== */
article.wp-show-posts-single > .wp-show-posts-inner{
  display: grid !important;
  grid-template-columns: 360px 1fr !important;
  column-gap: 28px;
  row-gap: 10px;
  align-items: start;
}

/* Bild in Spalte 1, Zeile 1-3 (damit es „links stehen bleibt“) */
article.wp-show-posts-single .wp-show-posts-image{
  grid-column: 1;
  grid-row: 1 / span 3;
}

/* Alles Textliche in Spalte 2 */
article.wp-show-posts-single .wp-show-posts-entry-header,
article.wp-show-posts-single .wp-show-posts-entry-summary,
article.wp-show-posts-single .wpsp-read-more{
  grid-column: 2;
}

/* Reihenfolge im rechten Bereich */
article.wp-show-posts-single .wp-show-posts-entry-header{ grid-row: 1; }
article.wp-show-posts-single .wp-show-posts-entry-summary{ grid-row: 2; }
article.wp-show-posts-single .wpsp-read-more{ grid-row: 3; }


/* ===== STOP: Equal-Height / Flex-Distribution ===== */
article.wp-show-posts-single{
  height: auto !important;
  min-height: 0 !important;
}

article.wp-show-posts-single .wp-show-posts-inner{
  /* kill flex distribute */
  display: grid !important;            /* überschreibt flex zuverlässig */
  grid-template-columns: 360px 1fr !important;
  grid-template-rows: auto auto auto !important;
  column-gap: 28px;
  row-gap: 8px;
  align-items: start !important;
  align-content: start !important;
  justify-content: start !important;

  height: auto !important;
  min-height: 0 !important;
}

/* ===== Platzierung: Bild links, Textblock rechts ===== */
article.wp-show-posts-single .wp-show-posts-image{
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start !important;
}

article.wp-show-posts-single .wp-show-posts-entry-header{
  grid-column: 2;
  grid-row: 1;
  align-self: start !important;
  margin: 0 !important;
}

article.wp-show-posts-single .wp-show-posts-entry-summary{
  grid-column: 2;
  grid-row: 2;
  align-self: start !important;
  margin: 0 !important;
}



/* ===== Text-Margins wirklich nullen ===== */
article.wp-show-posts-single .wp-show-posts-entry-title{ margin: 0 0 4px 0 !important; }
article.wp-show-posts-single .wp-show-posts-entry-meta{ margin: 0 0 10px 0 !important; }
article.wp-show-posts-single .wp-show-posts-entry-summary p{ margin: 0 !important; }

/* ===== Mobile: untereinander ===== */
@media (max-width: 768px){
  article.wp-show-posts-single .wp-show-posts-inner{
    grid-template-columns: 1fr !important;
  }
  article.wp-show-posts-single .wp-show-posts-image,
  article.wp-show-posts-single .wp-show-posts-entry-header,
  article.wp-show-posts-single .wp-show-posts-entry-summary,
  article.wp-show-posts-single .wpsp-read-more{
    grid-column: 1;
    grid-row: auto;
      padding: 0px 30px;
  }
}
.wp-show-posts{
  align-items: flex-start !important;
}
.wp-show-posts .wp-show-posts-single{
  align-self: flex-start !important;
}
.wp-show-posts-columns {
  margin-left: 0 !important;
}
