@font-face {
  font-family: "PublicSans";
  src: url("../fonts/PublicSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
html {
  scrollbar-gutter: stable;
}

/* Search page */
.search-page {
  padding: 48px 0 64px;
}
.search-title {
  font-size: clamp(22px, 1vw + 12px, 30px);
  margin-bottom: 24px;
  font-weight: 600;
}
.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.search-card {
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.search-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.search-thumb__placeholder {
  height: 160px;
  background: linear-gradient(135deg, #f5f5f5 0%, #ececec 100%);
}
.search-card__body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.search-card__title {
  font-weight: 700;
  color: #111;
  text-decoration: none;
  line-height: 1.3;
}
.search-card__title:hover {
  text-decoration: underline;
}
.search-card__excerpt {
  margin: 0;
  color: #555;
  line-height: 1.5;
}
.search-empty {
  padding: 24px;
  background: #f7f7f7;
  border: 1px solid #ececec;
  border-radius: 8px;
}

@font-face {
  font-family: "PublicSans";
  src: url("../fonts/PublicSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PublicSans";
  src: url("../fonts/PublicSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PublicSans";
  src: url("../fonts/PublicSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PublicSans";
  src: url("../fonts/PublicSans-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PublicSans";
  src: url("../fonts/PublicSans-Thin.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PublicSans";
  src: url("../fonts/PublicSans-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}
body {
  font-family: "PublicSans", sans-serif;

  margin: 0;
  padding: 0;
}
.container {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 16px;
}

/*TOP 3 NEWS*/

.top-news__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 31px;
}

.top-news img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.category-badge,
.category-badge-small {
  font-weight: 700;
  text-transform: uppercase;
  color: #1a1a1a;
  background-color: #cfe9ef;
  border-radius: 2px;
  display: inline-block;
}

.category-badge {
  padding: 8px 24px;
  font-size: clamp(12px, 3vw + 10px, 16px);
}

.category-badge-small {
  padding: 4px 12px;
  font-size: clamp(10px, 0.8vw + 6px, 14px);
  align-self: flex-start;
}

.top-news__side .top-news__side-item:first-child {
  border-bottom: 4px solid #f5f5f5;
  padding-bottom: 16px;
}
.top-news__side-item {
  gap: 8px !important;
}
.top-news__main .top-news__meta a {
  margin-top: 16px;
  display: block;
}
.top-news__title,
.top-news__title a {
  font-size: clamp(26px, 3vw + 10px, 36px);
  font-weight: 600;
  color: #111111;
  line-height: 120%;
  text-decoration: none;
}

.top-news__title-small,
.top-news__title-small a {
  font-size: clamp(18px, 1vw + 10px, 20px);
  font-weight: 600;
  text-decoration: none;
  color: #111111;
  line-height: 1.2;
}

h4.top-news__title-small,
.top-news__meta h1,
.top-news__side-item h4,
.featured-manual__item h6,
.local-teaser__item h4,
.featured-manual__item h2,
.featured-now__item h6,
.top-news__meta h2,
.inline-info h4,
.news-card h4,
.news-card h5 {
  margin: 0;
}

.top-news__main,
.top-news__side-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.top-news__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-divider {
  width: 100%;
  height: 6px;
  background: #f5f5f5;
  margin: 0px auto;
}

/*TOP 3 NEWEST*/
/** Header **/
.latest-three__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.top__label {
  background: #e7063b;
  color: #fff;
  padding: 5px 10px;
  border-radius: 2px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(24px, 2vw + 10px, 32px);
  line-height: 120%;
}
h1.top-news__title {
  margin: 16px 0 0 0;
}

.latest-three__header h2,
.latest-three__header h1 {
  font-size: clamp(24px, 2vw + 10px, 32px);
  margin: 0;
  color: #1a1a1a;
  font-weight: 600;
}

/** List **/
.latest-three__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.latest-three__item {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  align-items: center;
}
.latest-three__content {
  padding-right: 32px;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 16px;
}
.latest-three__image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}
h3.top-news__title {
  margin: 0;
}

.latest-three__excerpt {
  margin: 0px;
  color: #111111;
  font-size: clamp(14px, 2vw + 10px, 18px);
  line-height: 156%;
  font-weight: 400;
}

/*FEATURED */
.featured-now__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
  line-height: 120%;
  display: block;
}

.featured-now__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 16px;
}

.featured-now__item {
  border: 1px solid #cacaca;
  padding: 16px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
}

.featured-now__date {
  font-size: 12px;
  color: #505050;
  margin-left: auto;
  line-height: 156%;
}
/* Headline */
.featured-now__headline {
  font-size: clamp(12px, 1vw + 10px, 14px);
  color: #111;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
}
.meta-container {
  display: flex;
  justify-content: space-between;
}

/*FEATURED - MANUAL*/
.featured-manual__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.featured-manual__header h2 {
  font-size: clamp(24px, 2vw + 10px, 32px);
  margin: 0;
  color: #1a1a1a;
  font-weight: 600;
}

/* Default: 2 per row */
.featured-manual__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* If there is ONLY ONE item inside */
.featured-manual__grid > .featured-manual__item:only-child {
  grid-column: 1 / -1; /* Full width */
}

.featured-manual__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.featured-manual__item a {
  width: 100%;
}
.featured-manual__image img {
  width: 100%;
  height: 412px;
  border-radius: 4px;
  display: block;
  object-fit: cover;
}

.featured-manual__title {
  text-decoration: none;
  color: #111;
  font-size: clamp(24px, 3vw + 10px, 32px);
  font-weight: 600;
  line-height: 120%;
}

/*CATEGORY TEASER*/
.category-teaser__title {
  font-size: clamp(24px, 2vw + 10px, 32px);
  font-weight: 600;
  margin-bottom: 16px;
  color: #111;
}

.category-teaser__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.category-teaser__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-teaser__image img {
  width: 100%;
  height: 197px;
  display: block;
  border-radius: 4px;
  object-fit: cover;
}

.category-teaser__headline {
  text-decoration: none;
  font-size: clamp(18px, 2vw + 10px, 18px);
  font-weight: 600;
  line-height: 120%;
  margin: 0px;
}

.category-teaser__headline a {
  text-decoration: none;
  color: #111;
}

/*FEATURED POSTS - MANUAL, 6 PER ROW */

.featured-manual__inner {
  background: #cfe9ef;
  padding: 16px;
  border-radius: 4px;
  margin-top: 48px;
}

.featured-manual__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  background-color: white;
  padding: 16px;
  border-radius: 4px;
}

.featured-manual__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-snap-align: start;
  align-items: start;
}

/* .header-social img {
    transition: filter 0.3s ease;
} */

.header-social img:hover {
  filter: invert(18%) sepia(92%) saturate(7450%) hue-rotate(343deg)
    brightness(94%) contrast(105%);
}

/* 
.featured-manual__image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
} */
.manual_featured-img img {
  height: auto;
}
.featured-article-manual__title {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  line-height: 1.3;
}

.category-badge-small {
  background: #cfe9ef;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  padding: 4px 12px;
  display: inline-block;
  border-radius: 2px;
}
.category-badge-xs {
  background: #cfe9ef;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  padding: 4px 12px;
  display: inline-block;
  border-radius: 2px;
}
/*LOCAL TEASER*/

.local-teaser__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-btn {
  background: #fff;
  padding: 8px 16px;
  border: 1px solid #cacaca;
  border-radius: 4px;
  cursor: pointer;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
  font-family: "PublicSans";
}

.filter-btn.active {
  background: #cacaca;
}
.filter-btn:hover {
  background-color: #f5f5f5;
}
.local-teaser__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.local-teaser__image img {
  width: 100%;
  border-radius: 4px;
  height: 270px;
  object-fit: cover;
}
.local-teaser__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.local-teaser__title {
  font-size: clamp(18px, 3vw + 10px, 20px);
  line-height: 120%;
  font-weight: 600;
  color: #111;
  text-decoration: none;
}

.local-teaser .container {
  padding: 32px 16px;
  background-color: #f5f5f5;
}

/*FOOTER*/

.site-footer {
  margin-top: 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 33px;
  padding-bottom: 40px;
  border-bottom: 1px solid #505050;
  color: #fff;
  padding: 24px 16px;
  background-color: #1a1a1a;
  border-radius: 4px 4px 0 0;
}

.footer__logo {
  width: 270px;
  margin-bottom: 24px;
}

.footer__desc p {
  font-size: 14px;
  line-height: 156%;
  margin: 0 0 8px 0;
  font-weight: 400;
}

.footer__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid #505050;
  padding-bottom: 16px;
  margin-bottom: 16px;
  display: block;
}
ul.footer__nav,
ul#menu-footer-bottom-links {
  list-style-type: none;
  margin: 0px;
  padding: 0px;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
ul#menu-footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer__nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 220%;
}
p.footer__copyright {
    margin: 0px;
}
.footer__bottom {
  padding: 24px 16px;
  background-color: #1a1a1a;
  text-align: right;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.footer__social {
  display: flex;
  gap: 32px;
  margin-top: 26px;
}

.footer__social-icon {
  width: 20px;
  height: 20px;
  opacity: 0.9;
  transition: 0.2s;
}

.footer__social-icon:hover {
  opacity: 1;
}

li.menu-item a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  line-height: 156%;
}

.footer__menu:last-child .footer__nav {
  columns: 2;
  -webkit-columns: 2;
  -moz-columns: 2;
  column-gap: 40px;
}

.footer__nav li {
  break-inside: avoid;
  margin-bottom: 8px;
}
/* LOKALES footer menu in two columns */
.footer__menu:last-child .footer__nav {
  display: block;
  column-count: 2;
  column-gap: 40px;
  max-width: 480px;
}

.footer__menu:last-child .footer__nav > li {
  break-inside: avoid; /* avoid breaking items across columns */
  margin-bottom: 8px;
}

/*CATEGORY PAGE */
.cat-intro {
  margin-top: 32px;
  border-top: 6px solid #f5f5f5;
  padding: 0px;
}

.cat-intro h3 {
  font-size: clamp(20px, 3vw + 10px, 24px);
  line-height: 120%;
  font-weight: 600;
  margin-bottom: 16px;
}

.cat-intro p {
  color: #555;
  font-size: 16px;
  font-size: clamp(16px, 3vw + 10px, 18px);
  line-height: 156%;
}
.cat-grid {
  margin-top: 40px;
}
.cat-grid .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.cat-grid .grid-item img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-radius: 4px;
}

.cat-grid .grid-item h2 {
  margin: 8px 0 0 0;
  font-size: 20px;
  font-size: clamp(18px, 1vw + 8px, 20px);

  font-weight: 600;
  line-height: 120%;
  color: #111111;
}
.grid-item a {
  text-decoration: none;
}
#load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 100px auto 32px;
  background: none;
  border: none;
  color: #e7063b;
  font-size: clamp(18px, 1vw + 8px, 18px);
  font-weight: 600;
  cursor: pointer;
  font-family: "PublicSans";
  border-bottom: 6px solid #f5f5f5;
  width: 100%;
  padding-bottom: 40px;
}

.category .top-news__grid .category-badge,
.category .top-news__grid .category-badge-small {
  display: none !important;
}

.load-more-arrow {
  width: 14px;
  height: 14px;
  animation: bounce 1.4s infinite ease-in-out;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

.cat-faq {
  background: #f5f5f5;
  padding: 64px 32px;
  border-radius: 4px;
}
section.cat-faq-section.container {
  margin-top: 32px;
}

.cat-faq > span {
    display: block;           
    text-align: center;
    margin-bottom: 32px;       
    font-size: clamp(24px, 3vw + 10px, 32px);
    font-weight: 600;
    color: #1a1a1a;
    line-height: 120%;
}


.faq-item {
  background: #fff;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #eee;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 32px 28px;
  font-size: clamp(18px, 1vw + 8px, 20px);
  line-height: 120%;
  font-weight: 600;
  border: none;
  background: none;
  position: relative;
  cursor: pointer;
  font-family: "PublicSans";
}
.faq-answer p {
  margin: 0px;
  padding: 0px;
}

.faq-question::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 43px;
  width: 16px;
  height: 16px;
  background-image: url("/wp-content/themes/topaktuell/assets/images/down-arrow-red.svg");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0px 32px 32px 32px;
  font-size: clamp(16px, 1vw + 8px, 18px);

  color: #444;
  line-height: 156%;
  font-weight: 400;
}

.faq-item.active .faq-answer {
  display: block;
}

.cat-bottom p {
  margin: 0;
  font-size: clamp(16px, 1vw + 8px, 18px);
  line-height: 156%;
  color: #1a1a1a;
  padding-bottom: 18px;
}

.cat-bottom {
  padding: 32px 16px;
}

/*404*/
.error-404 {
  text-align: center;
  padding: 176px 16px;
  max-width: 720px;
  margin: 0 auto;
}

.error-404 h1 {
  font-size: clamp(26px, 3vw + 8px, 36px);
  font-weight: 600;
  line-height: 120%;
  color: #111;
  margin-bottom: 28px;
}

.error-404 p {
  font-size: clamp(16px, 1vw + 8px, 20px);
  line-height: 156%;
  color: #1a1a1a;
  margin-bottom: 28px;
}

.error-404 .back-home-btn {
  display: inline-block;
  padding: 13px 32px;
  border: 1px solid #1a1a1a;
  border-radius: 2px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: clamp(16px, 1vw + 8px, 18px);
  font-weight: 600;
  line-height: 120%;
  transition: background 0.2s ease, color 0.2s ease;
}

.error-404 .back-home-btn:hover {
  background: #e7063b;
  border: 1px solid #e7063b;
}

/*CUSTOM FORMATS*/
/* Grey “Inhalt” box */
.inhalt-box {
  background: #f5f5f5;
  padding: 32px;
  border-radius: 4px;
  margin: 28px 0;
}

/* Blue highlight */
.blue-highlight {
  background: #cfe9ef;
  padding: 32px;
  border-radius: 4px;
  margin: 28px 0;
}

.blue-highlight p,
.inhalt-box p {
  margin: 0 !important;
}

/*latest posts-tiny mce */
.inline-post-box {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid #eee;
}

.inline-post-image img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 4px;
}

.inline-post-category {
  font-size: 12px;
  font-weight: 700;
  background: #cfe9ef;
  padding: 4px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

.inline-post-content h4 {
  margin: 12px 0 6px 0;
  font-size: 18px;
  font-weight: 600;
}

.inline-post-readmore {
  font-weight: 600;
  text-decoration: none;
  color: #1a1a1a;
}

/*COMMENTS*/

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  border-top: 6px solid #f5f5f5;
  padding-top: 32px;
  margin-top: 32px;
}
.comments-header .comments__title {
  font-size: clamp(24px, 3vw + 10px, 32px);
  font-weight: 600;
  line-height: 120%;
  color: #1a1a1a;
  margin: 0;
}

.comments-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.comment-form-box {
  background: #f5f5f5;
  padding: 32px 48px;
  margin-bottom: 40px;
  border-radius: 4px;
}
.comment-form-box > span {
  display: block;
  text-align: center;
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 120%;
  color: #1a1a1a;
}

div#respond {
    background-color: #F5F5F5;
    padding: 32px 48px;
    border-radius: 4px;
}

.comment-form-box div#respond{
padding: 0px;
}
a#cancel-comment-reply-link {
    color: #e7063b;
}
.comment-form-author input,
.comment-form-email input,
.comment-form-comment textarea {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid #cfe9ef;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  font-family: "PublicSans";
}
.comment-privacy input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border: 2px solid #cfe9ef;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
}

.comment-privacy input[type="checkbox"]:checked {
  background-color: #cfe9ef;
  border-color: #cfe9ef;
}

.comment-privacy input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  color: #111;
  font-size: 18px;
  font-weight: bold;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -58%);
}

.comment-form-comment textarea {
  height: 160px;
  margin: 0px;
}

.comment-privacy label {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin-top: 0px;
  gap: 15px;
  color: #505050;
  line-height: 156%;
}

.comment-submit-btn {
  background: #111;
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  display: block;
  margin: 16px auto 0;
  font-family: "PublicSans";
  border: 1px solid #111;
}
p.logged-in-as a {
  color: #e7063b;
}

p.form-submit {
  margin: 0 auto;
}

.comment-item {
  padding: 24px 0;
  border-bottom: 1px solid #eee;
}

.comment-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-text {
  grid-column: 2 / -1;
  margin-top: 4px;
  font-size: 18px;
  line-height: 156%;
  color: #1a1a1a;
}
.comment-text p {
  margin: 0px;
}

.comment-meta span {
  font-size: 14px;
  color: #505050;
}

.comment-reply a {
  text-decoration: none;
  font-weight: 600;
  margin-top: 8px;
  display: inline-block;
  font-size: 18px;
  color: #1a1a1a;
  line-height: 120%;
}
.comment-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-list-wrapper .children {
  margin-left: 40px;
  padding-left: 16px;
  border-left: 2px solid #f0f0f0;
}
.comment-list-wrapper .children .comment-item {
  border-bottom: none;
}
.comment-item.depth-2 {
  margin-left: 32px;
}
.comment-item.depth-3 {
  margin-left: 48px;
}

.comment-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px 8px;
}
.comment-top {
  display: contents;
}
.comment-avatar {
  grid-column: 1;
  grid-row: 1;
}
.comment-meta {
  grid-column: 2;
  grid-row: 1;
}
.comment-avatar img {
  border-radius: 50%;
}
.comment-meta strong {
  font-size: 18px;
}
.comment-meta span {
  display: block;
  margin-top: 2px;
}

.comment-reply {
  grid-column: 2 / -1;
}

.comment-list-wrapper .children {
  border-left: 1px solid #e7e7e7;
  margin-top: 12px;
  padding-left: 20px;
}

.comment-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: "PublicSans";
}
.comment-form-author,
.comment-form-email {
  flex: 1 1 calc(50% - 8px);
  margin: 0;
}
.comment-form-comment,
.comment-privacy {
  flex: 1 1 100%;
  margin: 0;
}

/*SINGLE POST*/
/* ============ SINGLE HEADER ============ */
.single-article-layout,
.page-content {
  width: 800px;
  margin: 0 auto;
}
.single-header {
  margin: 32px auto 28px auto;
  padding-bottom: 24px;
  border-bottom: 6px solid #f5f5f5;
}

/* TITLE */
h1.single-title {
  font-size: clamp(26px, 3vw + 10px, 36px);
  font-weight: 600;
  line-height: 120%;
  margin-top: 16px;
  margin-bottom: 28px;
  color: #111111;
}

.single-news-related .section-title {
    border-top: 6px solid #F5F5F5;
    padding-top: 32px;
}
.single-content {
    padding-top: 16px;
}

article.content-body p a {
    color: #E7063B;
}
#comments .comment-item:last-of-type {
  border-bottom: 0;
}


/* News grids */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 16px;
}
.section-title h2 , .section-title .top__title{
  margin: 0;
  font-size: clamp(20px, 3vw + 10px, 32px);
  font-weight: 600;
}
.news-grid {
  display: grid;
  gap: 32px 16px;
  margin-bottom: 32px;
  padding-bottom: 32px;
}

.single-news-latest .news-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.single-news-related .news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 6px solid #f5f5f5;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}
.news-title {
  font-weight: 600;
  line-height: 120%;
  text-decoration: none;
  color: #111;
  font-size: clamp(18px, 3vw + 10px, 20px);
}

/* ============ SINGLE HEADER ============ */
.single-header {
  margin: 32px auto 28px auto;
  padding-bottom: 24px;
  border-bottom: 6px solid #f5f5f5;
}

a.category-badge {
  text-decoration: none;
}

/* SUBTITLE / EXCERPT */
.single-excerpt {
  font-size: 18px;
  line-height: 156%;
  color: #1a1a1a;
  font-weight: 600;
  margin-bottom: 28px;
  margin-top: 0;
}
/* META ROW */
.single-meta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}
.single-featured img {
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
  height: auto;
}
figure.single-feature-figure {
  margin: 0;
}
figcaption.single-feature-caption {
  color: #505050;
  font-size: 16px;
  line-height: 156%;
  font-weight: 400;
  margin-top: 4px;
}
.single-featured p {
  font-size: 18px;
  line-height: 156%;
  color: #1a1a1a;
  margin-bottom: 18px;
}

a.back-btn {
  text-align: center;
  display: block;
  border: 1px solid #1a1a1a;
  border-radius: 2px;
  text-decoration: none;
  color: black;
  padding: 13px 0;
  font-size: clamp(16px, 3vw + 10px, 18px);
  font-weight: 600;
  line-height: 120%;
  margin-top: 28px;
}

a.back-btn:hover,
.comment-submit-btn:hover {
  background: #e7063b;
  border: 1px solid #e7063b;
  color: #fff;
}

.tags-container a {
  text-decoration: none !important;
  font-size: 14px;
  line-height: 120%;
  color: #1a1a1a;
  font-weight: 400;
  background-color: #f5f5f5;
  padding: 10px 16px;
  border-radius: 50px;
  border: 1px solid #f5f5f5;
}
.tags-container a:hover {
  border: 1px solid #cacaca;
}

.tags-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
  padding: 28px 0 0 0;
}

div#tag-posts {
  border-top: 6px solid #f5f5f5;
  padding-top: 32px;
}

/* DATE */
.meta-date {
  font-size: 16px;
  color: #505050;
}

/* AUTHOR */
.meta-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: clamp(16px, 3vw + 10px, 18px);
  text-decoration: none;
  color: #1a1a1a;
}

a.meta-author__name {
  font-weight: 600;
  font-size: clamp(16px, 3vw + 10px, 18px);
  text-decoration: none;
  color: #1a1a1a;
}
.meta-author img {
  border-radius: 50%;
}

/* COMMENTS */
.meta-comments {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 400;
  font-size: 16px;
}

.meta-comments img {
  width: 24px;
  height: 24px;
}
.content-body p {
  font-size: clamp(16px, 3vw + 10px, 18px);
  line-height: 156%;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0 0 18px 0;
}
.content-body h1 {
  font-size: clamp(20px, 3vw + 10px, 24px);
  font-weight: 600;
  color: #1a1a1a;
  line-height: 120%;
  margin: 28px 0;
}

.content-body h2,
.content-body h3 {
  font-size: clamp(20px, 3vw + 10px, 24px);
  font-weight: 600;
  color: #1a1a1a;
  line-height: 120%;
  margin: 28px 0;
}
.content-body a {
  text-decoration: none;
}

.content-body ul li,
.content-body ol li {
  font-size: 18px;
  margin-bottom: 18px;
  font-weight: 400;
  line-height: 156%;
  color: #1a1a1a;
}

/*CUSTOM LIST*/

.two-line-list-item {
  margin-bottom: 28px;
  font-size: clamp(16px, 3vw + 10px, 18px);
  padding-left: 0 !important;
  list-style: none !important;
  position: relative;
  line-height: 156%;
  color: #1a1a1a;
}

.two-line-list-item::before {
  content: "•";
  position: absolute;
  left: -22px;
  top: 0px;
  font-size: 22px;
  color: #111;
}

.two-line-list-item strong {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

/*TABLE OF CONTENTS*/
div#ez-toc-container {
  border: none;
  padding: 32px;
  border-radius: 4px;
  margin: 28px 0px;
  background-color:#F5F5F5
}
div#ez-toc-container .ez-toc-title {
  margin:0 0 16px 0;
  font-size: clamp(20px, 3vw + 10px, 24px);
  font-weight:600;
  color:#1A1A1A
}
/* Remove default bullets */
.ez-toc-list li {
  list-style: none !important;
  padding-left: 28px;
  position: relative;
  margin-bottom: 16px;
  font-size: clamp(16px, 3vw + 10px, 20px);
  font-weight: 600;
}

/* Add checkmark icon */
.ez-toc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  background-image: url("/wp-content/themes/topaktuell/assets/images/check.svg");
  background-size: contain;
  background-repeat: no-repeat;
}
#ez-toc-container a:visited {
  color: #1a1a1a !important;
}
#ez-toc-container a:hover {
  text-decoration: none !important;
}

ul.ez-toc-list.ez-toc-list-level-1 {
  margin-top: 16px !important;
  padding: 0;
}
#ez-toc-container a {
  color: #1a1a1a !important;
  text-decoration: none;
}

/* === Inline Related Article Box === */

.inline-related-box {
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.inline-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: stretch;
  gap: 32px;
  border: 1px solid #cacaca;
  border-radius: 4px;
}

/* Thumbnail */
.inline-thumb {
  display: block;
  overflow: hidden;
  border-radius: 4px;
}

.inline-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* Right block */
.inline-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  align-items: start;
  width: 70%;
}

/* Title */
.inline-title {
  font-size: clamp(12px, 3vw + 10px, 20px);
  font-weight: 600;
  color: #1a1a1a;
  line-height: 120%;
  text-decoration: none;
}

/* “Mehr lesen →” link */
.inline-more {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(12px, 3vw + 10px, 18px);
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  line-height: 120%;
}

.inline-more::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #1a1a1a;
  margin-top: 2px;
}
/*AUTHOR*/
.author .cat-grid {
  border-bottom: none;
}

img.author-header-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50px;
}

.mobile-only {
  display: none;
}

/*HEADER*/
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-search {
  position: relative;
}
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
}
.header-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search-results {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  display: none;
  overflow: hidden;
}
.search-results .result-item {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #111;
  text-decoration: none;
}
.search-results .result-item:hover {
  background: #f8f8f8;
}
.search-results .type {
  display: none;
}

.header-search form input[type="search"] {
  border: none;
  outline: none;
  box-shadow: none;
  flex: 1;
}
.header-search form:focus-within {
  border-color: #e7063b;
}

.header-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 100px;
  padding: 16px 16px 0 16px;
}

.header-logo h1,
.header-logo {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.header-social {
  display: flex;
  gap: 16px;
  background-color: #C44B6D;
  padding: 18px;
  border-radius: 4px;
  height: 56px;
}

.header-search form {
  display: flex;
  border: 1px solid #cacaca;
  border-radius: 4px;
  padding: 13px 18px;
}

.header-search .ajax-search-input::placeholder {
  color: #505050;
}

.header-search input {
  border: none;
  padding: 0px;
  flex: 1;
  font-size: 16px;
  color: #505050;
  font-weight: 400;
  font-family: "PublicSans";
}

.header-search button {
  background: none;
  border: none;
  cursor: pointer;
}

.header-social img {
  width: 20px;
  height: 20px;
}

.header-nav {
  position: relative;
}

.main-menu{
  display:flex;
  flex-wrap: wrap;
  gap: 16px 40px;         
  padding: 0 64px;
  list-style: none;
  background:#543158;
  border-radius:4px;

  justify-content: center; 
}

ul.sub-menu {
  list-style-type: none;
}

.main-menu a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.main-menu > li {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: -12px;
}
.main-menu > li.has-mega {
  position: static;
}
.mega li {
  z-index: 9999;
}

.main-menu > li > a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  line-height: 120%;
  position: relative;
  padding: 13px 12px;
}

.main-menu > li > a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0px;
  height: 5px;
  border-radius:2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}
.main-menu > li:hover > a::before,
.main-menu > li:focus-within > a::before,
.main-menu > li > a:focus-visible::before,
.main-menu > li.current-menu-item > a::before {
  transform: scaleX(1);
}

.main-menu > li.menu-item-has-children > a::after {
  content: "";
  width: 14px;
  height: 14px;
  background-image: url("/wp-content/themes/topaktuell/assets/images/down-arrow-white.svg");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.25s ease;
}

.main-menu > li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}
/* Base dropdown */
.main-menu .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  transform: translateY(0);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 10px 12px;
  z-index: 1000;
  min-width: 220px;
  max-width: 360px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.15s ease, transform 0.15s ease;
}
.main-menu .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

/* Extra buffer just for mega menus to avoid flicker on wide dropdown */
.main-menu > li.has-mega > .sub-menu.mega::before {
  left: -16px;
  right: -16px;
  top: -28px;
  height: 280px;
  width: 1100px;
  pointer-events: auto;
  z-index: 0;
}

.main-menu > li:hover > .sub-menu,
.main-menu > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.main-menu > li:hover > .sub-menu.mega,
.main-menu > li:focus-within > .sub-menu.mega {
  transform: translate(-50%, 0);
}

.main-menu .sub-menu.mega {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, max-content);
  grid-template-rows: repeat(4, auto);
  gap: 8px 18px;

  left: 50%;
  transform: translate(-50%, 0);
  width: min(960px, calc(100vw - 48px));
  max-width: calc(100vw - 32px);
  min-width: min(80vw, 960px);
}

/* Submenu links */
.main-menu .sub-menu li a {
  color: #111;
  padding: 8px 5px;
  display: block;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 4px;
}

.main-menu .sub-menu li a:hover {
  background: #f5f5f5;
}

/*BREADCRUMBS*/
.breadcrumbs span a {
  text-decoration: none;
  color: #1a1a1a;
}
.breadcrumbs span {
  text-decoration: none;
  font-family: "PublicSans";
  line-height: 156%;
  font-weight: 400;
  font-size: 14px;
  display: flex;
  gap: 6px;
}
.breadcrumbs .breadcrumb_last,
.breadcrumbs .breadcrumb_last a {
  color: #505050;
}

.breadcrumbs .breadcrumb-separator {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs .breadcrumb-separator img {
  width: 10px;
  height: auto;
  display: block;
}

.breadcrumbs {
  margin-bottom: 32px;
}

/*POPUP*/
#ios-install-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ios-install-popup[hidden] {
  display: none;
}

.ios-popup-content {
  background: #fff;
  color: #1a1a1a;
  padding: 24px;
  border-radius: 4px;
  max-width: 320px;
  width: 90%;
}

.ios-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
}

.bell-icon {
  width: 24px;
  height: 24px;
}

.share-icon {
  width: 20px;
  height: 20px;
}

.popup-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0px;
  flex-wrap: wrap;
}

.ios-popup-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
@media (max-width: 1228px) {
  .desktop-only {
    display: none !important;
  }

  /*TOP NEWS*/
  .top-news__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .top-news__main .category-badge {
    font-size: 14px;
  }

  .category-badge-xs {
  font-size: 10px;
}
  /*TOP 3 NEWEST*/
  .latest-three__item {
    /* grid-template-columns: 1fr; */
    gap: 8px;
  }
  .latest-three__item .latest-three__excerpt {
    display: none;
  }
  .latest-three__content .top-news__title a {
    font-size: 14px;
    line-height: 120%;
  }
  .latest-three__item a {
    height: 100%;
  }
  .latest-three__content .category-badge {
    font-size: 10px;
    line-height: 120%;
    padding: 3px 8px;
  }

  .latest-three__content {
    padding: 0 8px 0 0;
    gap: 8px;
  }
  /*FEATURED*/
  .featured-now .featured-now__grid {
    display: flex;
    overflow-x: auto;
  }
  .featured-now__title {
    margin-bottom: 8px;
  }
  .featured-now__item {
    min-width: 300px;
  }
  .featured-manual__grid,
  .local-teaser__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .local-teaser__image img {
    height: 220px;
  }
  .featured-article-manual__title {
    font-size: 12px;
  }
  .featured-manual__item .category-badge-small,
  .featured-now__item .category-badge-small,
  .inline-info .category-badge-small {
    font-size: 10px;
  }
  .featured-manual__item img {
    height: 219px;
  }
  .manual_featured-img img {
    height: 95px;
  }
  section.single-header .category-badge {
    font-size: 14px;
  }
  .local-teaser .featured-manual__header {
    flex-direction: column;
    align-items: start;
  }
  /*FEATURED POSTS - MANUAL, 6 PER ROW */
  .featured-manual__row {
    grid-template-columns: repeat(2, 1fr);
    padding: 8px;
    gap: 8px;
  }
  .featured-manual {
    padding: 16px;
  }
  .featured-manual__inner,
  .featured-now__item {
    padding: 8px;
  }
  .featured-manual__inner {
    margin-top: 0px;
  }
  /*FOOTER*/
  .site-footer {
    margin-top: 20px 0px;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 24px 16px;
  }
  .footer__bottom {
    padding: 16px;
  }
  .footer__bottom-inner {
    flex-direction: column;
  }
  .footer__logo {
    width: 100%;
    margin-bottom: 16px;
  }
  ul#menu-footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap:16px 24px
  }
  p.footer__copyright {
    margin-top: 16px;
}
  .footer__menu:last-child .footer__nav {
    display: flex;
    flex-direction: column;
  }

  /*CATEGORY TEASER*/
  .category-teaser__grid {
    gap: 20px;
  }
  .category-teaser__image img {
    height: 220px;
  }
  section.local-teaser {
    padding: 0 16px;
  }

  /*CATEGORY PAGE */
  .cat-grid .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  #load-more {
    margin: 60px auto 20px auto;
  }
  .cat-bottom {
    padding: 20px 16px 0 16px;
  }
  section.cat-faq-section {
    padding: 0;
  }
  .category section.cat-faq-section {
    padding: 0 16px;
  }
  .cat-faq {
    padding: 48px 8px;
  }
  .faq-question {
    padding: 8px 10px;
  }
  button.faq-question span {
    display: block;
    width: 80%;
    color: #1a1a1a;
  }

  .faq-question::after {
    top: 16px;
  }
  .faq-answer {
    padding: 28px 8px 10px 8px;
  }
  /*SINGLE POST*/
  .single-news-latest .news-grid {
    grid-template-columns: 1fr;
    margin-bottom: 0px;
    padding-bottom: 0px;
  }
  .single-news-related .news-grid {
    grid-template-columns: 1fr;
  }
  .single-article-layout,
  .page-content {
    width: 100%;
    padding: 0 16px;
  }
  .single-excerpt {
    font-size: 16px;
  }
  figcaption.single-feature-caption {
    font-size: 12px;
    line-height: 130%;
  }

  .single-news-related .section-title {
    padding-top: 20px;
}

  /* === Inline Related Article Box === */

  .inline-related-box {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .inline-card {
    grid-template-columns: 110px 1fr;
    gap: 8px;
  }
  .inline-more {
    display: none;
  }
  .inline-info {
    width: 100%;
    padding: 11px 0;
  }
  .inline-title {
    font-size: 12px;
  }
  div#ez-toc-container .ez-toc-title {
    font-size: 20px !important;
  }
  div#ez-toc-container {
    padding: 20px 8px !important;
  }
  div#ez-toc-container ul li,
  div#ez-toc-container ul li a {
    font-size: 16px !important;
    line-height: 120% !important;
  }
  .content-body h2,
  .content-body h3 {
    font-size: 20px;
  }
  .content-body p {
    font-size: 16px;
  }
  .inhalt-box,
  .blue-highlight {
    padding: 20px 16px;
  }
  .news-title {
    font-size: 18px;
  }
  .comment-form-box {
    padding: 20px 8px;
  }
  .comment-submit-btn {
    width: 100%;
  }
  .form-submit {
    width: 100%;
  }

  .form-submit .comment-submit-btn,
  .form-submit input[type="submit"] {
    width: 100%;
    display: block;
  }
div#respond {
    padding: 20px 8px;
}
  .comment-privacy label {
    font-size: 12px;
    line-height: 156%;
    gap: 6px;
    align-items: start;
  }
  .comment-privacy input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }
  .comment-form {
    gap: 4px;
  }

  /*HEADER*/
  .mobile-only {
    display: block;
  }

  .site-header {
    position: relative;
  }

  body.menu-open .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    background: #fff;
  }

  .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 8px 16px 20px 16px;
  }
  body.menu-open {
    overflow: hidden;
  }

  .hamburger-btn {
    width: 40px;
    height: 40px;
    background: #111;
    border-radius: 4px;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    cursor: pointer;
  }

  .hamburger-btn span {
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 3px;
    transition: 0.3s ease;
  }

  .hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: #e7063b;
  }
  .hamburger-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: #e7063b;
  }

  .mobile-menu {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;

    background: #212121;
    z-index: 2500;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    display: none;
  }
  .mobile-menu-inner {
    padding: 20px;
  }
  body.menu-open {
    overflow: hidden;
    height: 100vh;
  }

  /* Shared styles for BOTH X buttons */
  .hamburger-btn.active,
  #mobile-open-search.active {
    position: relative;
    z-index: 3001;
    background: #fff;
  }
  .hamburger-btn.active::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 6px;
    background: #e7063b;
  }

  #mobile-open-search .search-icon {
    position: relative;
  }

  /* Connector */
  #mobile-open-search.active .search-icon::after {
    content: "";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 8px;
    background: #e7063b;
  }

  .mobile-menu,
  .mobile-search-panel {
    display: none;
  }

  .mobile-menu.is-open,
  .mobile-search-panel.is-open {
    display: block;
  }

  .mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-logo img {
    height: 40px;
  }

  .mobile-close {
    font-size: 34px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
  }

  .mobile-social {
    display: inline-flex;
    gap: 16px;
    background: #cfe9ef;
    padding: 18px;
    border-radius: 4px;
  }

  .mobile-search-panel {
    position: fixed;
    top: 51px;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    background: #e7063b;
    z-index: 2500;
  }

  .mobile-search-inner {
    padding: 20px;
  }

  .mobile-search-form {
    margin-top: 0px;
    display: flex;
    background: #fff;
    padding: 16px;
    border-radius: 10px;
  }

  .mobile-search-form input {
    flex: 1;
    border: none;
    font-size: 18px;
    background: transparent;
  }
  .mobile-menu-header {
    background: #e7063b;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-menu-header .mobile-logo img {
    height: 40px;
  }

  .mobile-search-btn img {
    width: 26px;
  }

  .mobile-close-btn {
    font-size: 32px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 10px;
  }

  .mobile-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
  }

  .mobile-menu-items > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .mobile-menu-items > li > a {
    padding: 16px 0px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    line-height: 120%;
    font-weight: 600;
    align-items: center;
  }

  .hamburger-btn.active {
    background: white;
    border: 1px solid #e7063b;
    border-radius: 4px;
  }

  .mobile-menu-items li.menu-item-has-children > a::after {
    content: "";
    background-image: url("/wp-content/themes/topaktuell/assets/images/down-arrow-white.svg");
    width: 14px;
    height: 14px;
    background-size: contain;
    background-repeat: no-repeat;
  }

  .mobile-menu-items li.open > a::after {
    transform: rotate(180deg);
  }

  .mobile-menu-items .sub-menu {
    display: none;
    padding-left: 0px;
    padding-bottom: 16px;
  }

  .mobile-menu-items li.open > .sub-menu {
    display: block;
  }

  button#mobile-open-search.active {
    border: 1px solid red;
    border-radius: 4px;
  }

  form.mobile-search-form button {
    background: transparent;
    border: none;
  }

  #mobile-open-search {
    position: relative;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #mobile-open-search::before,
  #mobile-open-search::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 2px;
    background: #e7063b;
    border-radius: 2px;
    transition: 0.1s ease;
    opacity: 0;
    transform: rotate(0deg);
  }

  #mobile-open-search.active::before {
    opacity: 1;
    transform: rotate(45deg);
  }

  #mobile-open-search.active::after {
    opacity: 1;
    transform: rotate(-45deg);
  }
  .social-mobile-container {
    background-color: #e7063b;
    padding: 20px 16px;
  }
  .mobile-menu-container {
    padding: 20px 36px;
  }

  .header-logo img {
    width: 190px;
    height: auto;
  }
  .mobile-right-container {
    display: flex;
    gap: 16px;
  }

  .divider {
    margin: 20px 0 !important;
  }

  /*TAG PAGE*/
  .tag .cat-grid {
    margin-top: 20px;
  }
  div#tag-posts {
    padding-top: 20px;
  }
}
