/* ---------- BLOG OVERVIEW, SEARCH RESULTS PAGE ---------- */
#posts {
  color: #444;
  padding: 0;
  width: 1300px;
  padding: 50px 0;
  max-width: 92%;
  margin-left: auto;
  margin-right: auto;
}
#posts .breadcrumb {
  display: block;
  padding: 5px 30px;
  background: #FFF;
  color: #000;
  font-size: 18px;
  margin-bottom: 50px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 12px;
}
#posts .blog-wrapper {
  padding: 50px 0;
}
#posts h1 {
  font-size: 20px;
  color: #BFBFBE;
  letter-spacing: 5px;
}
#posts h2 {
  margin: 0 0 0.5em 0;
  font-size: 36px;
  padding: 15px 0;
  font-weight: 500;
  line-height: 1.1em;
  text-transform: none;
  letter-spacing: initial;
  color: var(--heading);
}
#posts p {
  margin: 0 0 20px 0;
}
#posts a {
  color: var(--black);
}
#posts #grid, #grid.aktuelles:not(.masonry), #author-posts {
  padding: 50px 0;
  width: 1300px;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1em;
  position: relative;
}
@media (max-width: 1000px) {
  #posts #grid, #grid.aktuelles:not(.masonry), #author-posts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  #posts #grid, #grid.aktuelles:not(.masonry), #author-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  #posts #grid, #grid.aktuelles:not(.masonry), #author-posts {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

#blog.like-old .content {
  max-width: 934px;
  margin: auto;
}
#blog.like-old #grid.aktuelles .content, #author-posts .content {
  position: relative;
  background: white;
  margin: -50px 25px 15px;
  padding: 15px;
}
#blog.like-old #grid.aktuelles .more a, #author-posts .more a {
  color: var(--ziegelrot);
  text-decoration: underline;
}

#blog section#newsletter {
  background: none;
  box-shadow: none;
}
#blog section#newsletter h2 {
  color: var(--ziegelrot);
}

#author-posts {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 767px) {
  #author-posts {
    grid-template-columns: 1fr;
  }
}

#grid.aktuelles .item {
  display: grid;
  gap: 1em;
  align-content: start;
  word-break: break-word;
  hyphens: auto;
}
#grid.aktuelles .item .media figure, #author-posts .item .media figure {
  width: 100%;
  aspect-ratio: 3 / 2;
  backdrop-filter: blur(0.5em);
}
#grid.aktuelles .item .media img, #author-posts .item .media img {
  display: block;
  height: auto;
  width: auto;
  max-height: 100%;
  max-width: 100%;
  margin: auto;
}
#grid.aktuelles .item .text {
  line-clamp: 6;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

#posts #grid .item {
  width: 25%;
  padding: 0.5rem;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
#posts #grid .item .box {
  background: #fff;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
  position: relative;
}
#posts #grid .item .box .media {
  display: block;
  width: 100%;
  height: auto;
}
#posts #grid .item .box .media img {
  width: 100%;
  height: auto;
  display: block;
}
#posts #grid .item .box .media.fixed-height figure {
  height: 250px;
}
#posts #grid .item .box .media .no-img {
  margin-top: 30px;
}
#posts #grid .item .box .date,
#posts #grid .item .box .event-date {
  position: absolute;
  z-index: 1;
  top: -25px;
  right: 15px;
  text-align: center;
  padding: 15px;
  background: #fff;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
  line-height: 1.3;
  white-space: nowrap;
}
#posts #grid .item .box .date .month,
#posts #grid .item .box .event-date .month {
  font-size: 12px;
  text-transform: uppercase;
}
#posts #grid .item .box .date .day,
#posts #grid .item .box .event-date .day {
  font-size: 14px;
  font-weight: 700;
}
#posts #grid .item .box .date .year,
#posts #grid .item .box .event-date .year {
  font-size: 12px;
}
#posts #grid .item .box .featured {
  position: absolute;
  z-index: 1;
  top: -25px;
  left: 15px;
  text-align: center;
  padding: 15px;
  background: #fff;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
  line-height: 1.3;
  white-space: nowrap;
}
#posts #grid .item .box .content {
  position: relative;
  z-index: 0;
  padding: 15px 15px 0 15px;
}
#posts #grid .item .box .content .inner {
  position: relative;
  top: -40px;
  background: #fff;
  padding: 8px 10px;
}
#posts #grid .item .box .content .inner .topic {
  font-size: 12px;
  color: #AAA;
  line-height: 1.5em;
}
#posts #grid .item .box .content .inner header h3 a {
  color: var(--black);
}
#posts #grid .item .box .content .inner header h3 a:hover {
  color: var(--black);
}
#posts #grid .item .box .content .inner .txt {
  font-size: 14px;
  line-height: 1.5;
}
#posts #grid .item .box .content .inner .more {
  line-height: 1.7;
  padding-top: 15px;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
}
#posts #grid .item .box .content .inner .more a {
  color: rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid rgba(0, 0, 0, 0.3);
  display: inline-block;
}
#posts #grid .item .box .content .inner .more a:hover {
  color: var(--black);
  border-color: #c44452;
}
#posts #grid .item .box .content .inner .more i {
  margin-left: 5px;
}
#posts #grid .item.no-media .date {
  top: -54px;
}
#posts #grid .item.no-media .content .inner header h3 {
  box-sizing: border-box;
  padding-right: 55px;
}
#posts #grid .item.no-media .content .inner .topic {
  box-sizing: border-box;
  padding-right: 55px;
}
#posts #sidebar {
  font-size: .85em;
  line-height: 1.5em;
}


#blog.sidebar #grid.col2 .item {
  width: 50%;
  padding: 20px 10px;
}
#blog.sidebar #grid.col1 .item {
  width: 100%;
  padding: 20px 10px;
}
@media only screen and (min-width: 601px) and (max-width: 1200px) {
  /* 2 columns */
  #blog.no-sidebar #grid .item {
    width: 50%;
    padding: 20px 10px;
  }
}
@media only screen and (max-width: 600px) {
  /* 1 column */
  #blog.no-sidebar #grid .item,
  #blog.no-sidebar #grid.two-col .item {
    width: 100%;
    padding: 20px 10px;
  }
}
#blog.search-results-page .search-result-counter strong {
  display: inline-block;
  padding: 12px;
  color: #FFF;
  background: #115594;
  font-weight: 400;
  border-radius: 8px;
}
#blog.search-results-page .search-result-counter span {
  font-style: italic;
  font-weight: 400;
  color: #666;
}


/* ---------- SINGLE POST ---------- */
#single-post .row {
  padding: 68px 0 50px 0;
}
@media all and (max-width: 960px) {
  #single-post .row {
    padding-top: 18px;
  }
}
#single-post .breadcrumb {
  display: block;
  padding: 5px 30px;
  background: #FFF;
  color: #000;
  font-size: 18px;
  margin-bottom: 50px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 12px;
}
#single-post a {
  color: #444;
}
#single-post h2 {
  text-transform: none;
}
#single-post #post {
  padding-right: 25px;
  position: relative;
}
#single-post #post .box {
  background: #fff;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
  position: relative;
}
#single-post #post .box .media {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
}
#single-post #post .box .media img {
  width: 100%;
  height: auto;
  display: block;
}
#single-post #post .box .media.fixed-height figure {
  height: 400px;
}
#single-post #post .box .media .darken {
  position: absolute;
  bottom: 0;
  height: 200px;
  width: 100%;
  left: 0;
  background-image: linear-gradient(180deg, transparent 0%, black 100%);
}
#single-post #post .box .media figcaption {
  display: block;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.3);
  position: absolute;
  bottom: 45px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 30px;
  text-align: right;
  color: #FFF;
}
#single-post #post .box .date {
  position: absolute;
  z-index: 1;
  top: -25px;
  right: 15px;
  text-align: center;
  padding: 15px;
  background: #fff;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
  line-height: 1.3;
  white-space: nowrap;
}
#single-post #post .box .date .month {
  font-size: 12px;
  text-transform: uppercase;
}
#single-post #post .box .date .day {
  font-size: 14px;
  font-weight: 700;
}
#single-post #post .box .date .year {
  font-size: 12px;
}
#single-post #post .box .featured {
  position: absolute;
  z-index: 1;
  top: -25px;
  left: 15px;
  text-align: center;
  padding: 15px;
  background: #fff;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
  line-height: 1.3;
  white-space: nowrap;
}
#single-post #post .box .content {
  position: relative;
  z-index: 0;
  padding: 30px 30px 0 30px;
}
#single-post #post .box .content .inner {
  position: relative;
  top: -65px;
  background: #fff;
  padding: 25px 25px 0 25px;
}
#single-post #post .box .content .inner header h2 {
  display: block;
  line-height: 1.1;
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--heading);
}
#single-post #post .box .content .inner ul {
  list-style-type: disc;
}
#single-post #post .box .content .inner ul li {
  padding-left: 10px;
  margin-left: 25px;
}
#single-post #post .box .content .inner .topic {
  font-size: 14px;
  font-weight: 400;
  color: #AAA;
  line-height: 1.5em;
  position: relative;
  top: -5px;
}
#single-post #post .box .content .inner .txt blockquote {
  background: #f7f7f7;
  border: 1px solid #f0f0f0;
  padding: 8px 15px;
  font-style: italic;
  position: relative;
  margin-right: 0;
}
#single-post #post .box .content .inner .txt blockquote p:first-child {
  margin-top: 0;
}
#single-post #post .box .content .inner .txt blockquote p:last-child {
  margin-bottom: 0;
}
#single-post #post .box .content .inner .txt blockquote:before {
  font-family: 'FontAwesome';
  content: "\f10d";
  position: absolute;
  left: -35px;
  top: 8px;
}
#single-post #post .box .content .inner .author {
  font-size: 14px;
  font-style: italic;
  display: inline-block;
  position: relative;
  width: 100%;
}
#single-post #post .box .content .inner .author:after {
  content: '';
  height: 3px;
  width: 25px;
  background: #AAA;
  position: absolute;
  bottom: -20px;
  left: 0;
}
#single-post #post .box .content .inner img {
  max-width: 100%;
  height: auto;
}
#single-post #post .box .content .inner .sources {
  font-size: 14px;
  border-top: 1px solid #AAA;
  padding-top: 25px;
  margin-top: 75px;
}
#single-post #post .box .content .inner .sources a {
  color: var(--black);
}
#single-post #post .box .content .inner .sources a:hover {
  color: var(--black);
}
#single-post #post .box .content .inner .sources .txts .item {
  margin-bottom: 15px;
}
#single-post #post .box .content .inner .photo-copyright {
  font-size: 14px;
}
#single-post .related-posts > h3 {
  color: #000;
}
#single-post .related-posts .item h3 {
  font-size: 16px;
  color: #000;
}
#single-post .related-posts .item .txt {
  font-size: 14px;
  line-height: 1.5em;
}
#single-post #post .related-posts .box .media.fixed-height figure {
  height: 200px;
}
#single-post .related-posts .item .more {
  line-height: 1.7;
  padding-top: 15px;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
}
#single-post .related-posts .item .more a {
  color: rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid rgba(0, 0, 0, 0.3);
  display: inline-block;
}
#single-post .related-posts .item .more a:hover {
  color: #00a2ff;
  border-color: #00a2ff;
}
#single-post .related-posts .item .more i {
  margin-left: 5px;
}
#single-post .btn-back,
#posts .btn-page {
  display: inline-block;
  background: #c44452;
  color: #FFF;
}
#single-post .btn-back .icon,
#posts .btn-page .icon {
  padding: 15px;
  display: inline-block;
  background: #723147;
}
#single-post .btn-back .txt,
#posts .btn-page .txt {
  padding: 15px;
  display: inline-block;
  margin-left: -6px;
}
#single-post .btn-back .txt:hover,
#posts .btn-page .txt:hover {
  background: #723147;
}

#single-post .single-post-grid {
    color: var(--black);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    grid-template-rows: min-content 1fr min-content;
}
#single-post:not(.event) .single-post-grid {
  grid-template-columns: 2fr 1fr;
  gap: 1em 3em;
  grid-template-areas:
    "top image"
    "content image"
    "bottom image";
}
#single-post.event .single-post-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1em;
    grid-template-areas:
    "top image side"
    "content image side"
    "bottom image side";
}
@media (max-width: 767px) {
  #single-post:not(.event) .single-post-grid,
  #single-post.event .single-post-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
    "top"
    "image"
    "content"
    "bottom"
    "side";
  }
}

#single-post .single-post-grid h2,
#single-post .single-post-grid h3,
#single-post .single-post-grid h4,
#single-post .single-post-grid h5 {
    color: var(--heading);
    word-break: break-word;
    hyphens: auto;
}

#single-post .single-post-grid .top {
    grid-area: top;
}

#single-post .single-post-grid .content {
    grid-area: content;
}

#single-post .single-post-grid .bottom {
    grid-area: bottom;
}

#single-post .single-post-grid .image {
    grid-area: image;
}
#single-post.event .single-post-grid .image {
  padding: 0 2em;
}
@media (min-width: 768px) {
  #single-post .single-post-grid .image {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}
@media (max-width: 767px) {
  #single-post.event .single-post-grid .image {
    padding: 0 2.5em;
  }
}

#single-post .single-post-grid .image .shopping-cart-btn {
  color: white;
  font-size: 16px;
  margin-top: 0.5rem;
  width: 100%;
  text-align: center;
}
#single-post .single-post-grid .image .shopping-cart-btn .ti-shopping-cart {
  font-size: 20px;
}

#single-post .single-post-grid .side {
    grid-area: side;
    align-self: start;
}
#single-post:not(.event) .single-post-grid .side {
    display: none;
}
@media (max-width: 767px) {
  #single-post .single-post-grid .side {
    margin-top: 3em;
  }
}

#single-post #event_posts_widget ul {
  padding: 0.5rem 0;
}
#single-post #event_posts_widget ul li:first-of-type {
  border-top: 1px solid var(--dunklergrau);
}
#single-post #event_posts_widget ul li {
  border-bottom:1px solid var(--dunklergrau);
  padding: 0.1rem 0;
  line-height: 1.3rem;
}
#single-post #event_posts_widget ul li strong {
  display: block;
}
#single-post #event_posts_widget .more {
  text-align: right;
  font-weight: bold;
  color: var(--primary);
}

#single-post .single-post-grid .image img {
    width: 100%;
}

/* ---------- BLOG OVERVIEW & SINGLE POST COMMON STYLES ---------- */
#blog #sidebar,
#single-post #sidebar {
  padding-top: 50px;
  padding-bottom: 50px;
  font-size: .85em;
  line-height: 1.5em;
}
#blog #sidebar a:hover,
#single-post #sidebar a:hover {
  color: var(--black);
}
#blog #sidebar #searchsubmit:hover,
#single-post #sidebar #searchsubmit:hover {
  background: #296b73;
}
#blog #sidebar #event_posts_widget strong,
#single-post #sidebar #event_posts_widget strong {
  display: block;
}

@media (min-width: 768px) {
	#posts .content > *:not(div) {
		max-width: 66%;
	}
}

#posts .align-grid {
  display: grid;
  gap: 1em;
  padding: 1.5em 0;
}
#posts .postit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
}
@media (max-width: 1000px) {
  #posts .postit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  #posts .postit-grid {
    grid-template-columns: repeat(1, 1fr);
    max-width: 450px;
    margin: auto;
  }
}

#posts .event-postit:before {
  /* --border-width: 4px;
  background: var(--blassgelb);
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  clip-path: polygon(
          0 0,
          calc(100% - 60.00px) 0,
          100% 60.00px,
          100% 100%,
          0 100%,
          0 0,
          var(--border-width)  var(--border-width) ,
          var(--border-width) calc(100% - var(--border-width)),
          calc(100% - var(--border-width)) calc(100% - var(--border-width)),
          calc(100% - var(--border-width)) calc(60.00px + 1.66px),
          calc(100% - 60.00px - 1.66px) var(--border-width),
          var(--border-width) var(--border-width)
  ); */
}
/* https://css-generators.com/custom-corners/ */
#posts .event-postit {
  position: relative;
  display: grid;
  grid-template-columns: min-content 1fr;
  grid-template-rows: min-content 1fr min-content;
  gap: 0 1em;
  grid-template-areas:
    "date date"
    "title title"
    "image details";
  padding: 1em;
  overflow: hidden;
  box-shadow: 4px 4px 8px #BFBFBE;
  height: 320px;
}

#posts .event-postit .date {
  grid-area: date;
  color: var(--ziegelrot);
}
#posts .event-postit .date p {
  margin: 0;
}

#posts .event-postit .title {
  grid-area: title;
  text-align: right;
  padding-top: 0.5em;
}

#posts .event-postit .title h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--black);
}

#posts .event-postit .title .type {
  font-size: 1em;
}

#posts .event-postit .details {
  grid-area: details;
  align-self: end;
}
#posts .event-postit .details p {
  margin: 0;
}
#posts .event-postit .details p + p {
  margin-top: 0.5em;
}

#posts .event-postit .image {
  grid-area: image;
  justify-self: end;
  align-self: end;
  width: 150px;
  height: 150px;
}
#posts .event-postit .image .media {
  display: block;
  width: 100%;
  height: auto;
}
#posts .event-postit .image .media img {
  width: 100%;
  height: auto;
  display: block;
}
#posts .event-postit .image .media.fixed-height figure {
  height: 150px;
}

#posts .event-postit a.overlay {
  position: absolute;
  inset: 0;
}