:root {
  --thgpm-blue: #a59190;
  --thgpm-text: #000000;
  --thgpm-muted: #7d8190;
  --thgpm-green: #a59190;
  --thgpm-border: #edf0f5;
  --thgpm-gap: 24px;
}

.thgpm-page,
.thgpm-featured,
.thgpm-grid,
.thgpm-big,
.thgpm-recommended-inner {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.thgpm-page { padding: 0 20px; }

.thgpm-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}

.thgpm-featured-image img,
.thgpm-img {
  display: block;
  width: 100%;
  height: auto;
}

.thgpm-featured-content h2,
.thgpm-featured-content h2 a {
  margin: 0 0 12px;
  color: var(--thgpm-text);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
}

.thgpm-featured-content p {
  margin: 18px 0 20px;
  color: var(--thgpm-text);
  font-size: 15px;
  line-height: 1.7;
}

.thgpm-meta,
.thgpm-date {
  color: var(--thgpm-muted);
  font-size: 11px;
  line-height: 1;
}

.thgpm-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--thgpm-green);
  border: 1px solid var(--thgpm-green);
  background: #fff;
  padding: 5px 7px 4px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.thgpm-grid {
  display: grid;
  gap: var(--thgpm-gap);
  margin-bottom: 32px;
}
.thgpm-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.thgpm-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.thgpm-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.thgpm-card {
  background: #fff;
  border: 1px solid var(--thgpm-border);
  overflow: hidden;
  min-width: 0;
}

.thgpm-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ffffff;
}

.thgpm-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.thgpm-card:hover .thgpm-card-image img { transform: scale(1.035); }

.thgpm-card-body { padding: 14px 14px 16px; }
.thgpm-card-title { margin: 7px 0 18px; font-size: 17px; line-height: 1.25; }
.thgpm-card-title a { color: var(--thgpm-text); text-decoration: none; }
.thgpm-card-title a:hover,
.thgpm-featured-content h2 a:hover { color: var(--thgpm-green); }

.thgpm-big {
  margin-top: 28px;
  margin-bottom: 0;
}
.thgpm-big-link {
  position: relative;
  display: block;
  min-height: 390px;
  overflow: hidden;
  background: #111;
  text-decoration: none;
}
.thgpm-big img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  transition: transform .25s ease;
}
.thgpm-big:hover img { transform: scale(1.025); }
.thgpm-big-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,0) 100%);
}
.thgpm-big-overlay {
  position: absolute;
  z-index: 2;
  left: 28px;
  bottom: 26px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.thgpm-big .thgpm-meta,
.thgpm-big .thgpm-date { color: rgba(255,255,255,.78); }
.thgpm-big-title {
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
  font-weight: 900;
  max-width: 760px;
}

.thgpm-recommended {
  width: 100%;
  margin-top: 0;
  background: var(--thgpm-blue);
  padding: 34px 20px 42px;
}
.thgpm-recommended-inner h2 {
  color: #fff;
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}
.thgpm-slider-viewport { overflow: hidden; }
.thgpm-slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 72px) / 4);
  gap: 24px;
  transition: transform .25s ease;
}
.thgpm-rec-card { border: none; }
.thgpm-rec-card .thgpm-card-title { font-size: 16px; }
.thgpm-rec-card .thgpm-badge { color: #dd9d00; border-color: #dd9d00; }

.thgpm-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
}
.thgpm-slider-nav button,
.thgpm-slider-nav span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(255,255,255,.4);
  color: var(--thgpm-blue);
  font-size: 13px;
  line-height: 1;
}
.thgpm-slider-nav span {
  width: auto;
  padding: 0 8px;
  background: transparent;
  color: #fff;
}
.thgpm-slider-nav button:disabled { opacity: .35; cursor: not-allowed; }

@media (max-width: 900px) {
  .thgpm-featured { grid-template-columns: 1fr; gap: 28px; }
  .thgpm-cols-3, .thgpm-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thgpm-slider-track { grid-auto-columns: calc((100% - 24px) / 2); }
}

@media (max-width: 560px) {
  .thgpm-page { padding: 0 14px; }
  .thgpm-grid, .thgpm-cols-2, .thgpm-cols-3, .thgpm-cols-4 { grid-template-columns: 1fr; }
  .thgpm-big-link, .thgpm-big img { min-height: 320px; }
  .thgpm-big-overlay { left: 18px; right: 18px; bottom: 18px; }
  .thgpm-slider-track { grid-auto-columns: 82%; gap: 16px; }
  .thgpm-recommended { padding-left: 14px; padding-right: 14px; }
}

/* Kategorie-Archiv im Magazin-Look */
.thgpm-archive-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 38px 70px;
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 104px;
  background: #fff;
}

.thgpm-archive-sidebar {
  color: #30374a;
}

.thgpm-archive-search {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #cfd2d8;
  padding: 0 0 18px;
  margin-bottom: 48px;
}

.thgpm-archive-search span {
  font-size: 30px;
  line-height: 1;
  color: #637080;
  transform: rotate(-20deg);
}

.thgpm-archive-search input {
  width: 100%;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #30374a;
  font-size: 20px;
  background: transparent;
}

.thgpm-archive-search input::placeholder { color: #b9bec8; }

.thgpm-archive-sidebar h2 {
  margin: 0 0 28px;
  color: #30374a;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 600;
}

.thgpm-archive-catlist {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 34px;
}

.thgpm-archive-catlist a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px 7px;
  border: 1px solid #20b2ba;
  color: #1f2a3a;
  background: #fff;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none !important;
}

.thgpm-archive-catlist a:nth-child(2n) { border-color: #a59190; }
.thgpm-archive-catlist a:nth-child(3n) { border-color: #a59190; background: #52c76a; color: #fff; }
.thgpm-archive-catlist a:nth-child(4n) { border-color: #a59190; }
.thgpm-archive-catlist a:nth-child(5n) { border-color: #a59190; }
.thgpm-archive-catlist a:nth-child(6n) { border-color: #a59190; }
.thgpm-archive-catlist a.is-active { background: #52c76a; border-color: #000000; color: #fff; }

.thgpm-archive-years {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 26px;
}

.thgpm-archive-years a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #657084;
  font-size: 22px;
  line-height: 1;
  text-decoration: none !important;
}

.thgpm-archive-years span {
  width: 20px;
  height: 20px;
  border: 1px solid #cfd2d8;
  background: #fff;
}

.thgpm-archive-more {
  border: 0;
  background: transparent;
  padding: 0;
  color: #8b92a0;
  font-size: 14px;
}

.thgpm-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 30px;
}

.thgpm-archive-card {
  background: #fff;
  min-width: 0;
}

.thgpm-archive-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f4f7;
}

.thgpm-archive-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .25s ease;
}

.thgpm-archive-card:hover .thgpm-archive-image img { transform: scale(1.025); }

.thgpm-archive-body {
  padding: 20px 20px 22px;
  min-height: 190px;
}

.thgpm-archive-meta {
  display: flex;
  gap: 22px;
  align-items: center;
  color: #9a9eaa;
  font-size: 14px;
  line-height: 1;
  margin-bottom: 16px;
}

.thgpm-archive-title {
  margin: 0 0 28px;
  font-size: clamp(25px, 2.2vw, 31px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -.02em;
}

.thgpm-archive-title a {
  color: #30374a;
  text-decoration: none !important;
}

.thgpm-archive-title a:hover { color: var(--thgpm-green); }

.thgpm-archive-pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.thgpm-archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d8dbe2;
  color: #30374a;
  text-decoration: none !important;
}
.thgpm-archive-pagination .current { background: #30374a; color: #fff; }

@media (max-width: 1024px) {
  .thgpm-archive-wrap { grid-template-columns: 220px minmax(0, 1fr); gap: 42px; padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 820px) {
  .thgpm-archive-wrap { grid-template-columns: 1fr; gap: 34px; }
  .thgpm-archive-sidebar { order: 2; }
  .thgpm-archive-main { order: 1; }
  .thgpm-archive-catlist { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 620px) {
  .thgpm-archive-wrap { padding: 20px 14px 46px; }
  .thgpm-archive-grid { grid-template-columns: 1fr; }
  .thgpm-archive-body { min-height: 0; }
  .thgpm-archive-search input { font-size: 17px; }
}

/* v1.4: rechte Filterspalte + Single-Post-Ansicht */
.thgpm-sidebar-right {
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 38px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 255px;
  gap: 54px;
  background: #fff;
}

.thgpm-sidebar-right .thgpm-archive-sidebar {
  order: 2;
}

.thgpm-sidebar-right .thgpm-archive-main,
.thgpm-sidebar-right .thgpm-single-main {
  order: 1;
}

.thgpm-single-main {
  min-width: 0;
  max-width: 940px;
}

.thgpm-single-image {
  margin-bottom: 24px;
  background: #f3f4f7;
}

.thgpm-single-image img {
  width: 100%;
  height: auto;
  display: block;
}

.thgpm-single-header {
  margin: 0 0 22px;
}

.thgpm-single-date,
.thgpm-single-header .thgpm-date {
  display: block;
  margin-bottom: 12px;
  color: #8f95a3;
  font-size: 13px;
}

.thgpm-single-header h1 {
  margin: 0;
  color: #151a2d;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.03em;
}

.thgpm-single-content {
  color: #151a2d;
  font-size: 17px;
  line-height: 1.75;
  max-width: 760px;
}

.thgpm-single-content p {
  margin: 0 0 1.1em;
}

.thgpm-single-footer {
  margin-top: 30px;
}

.thgpm-post-nav {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid #edf0f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.thgpm-post-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid #d8dbe2;
  color: #30374a;
  background: #fff;
  text-decoration: none !important;
  font-weight: 700;
}

.thgpm-post-nav a:hover {
  border-color: var(--thgpm-green);
  color: var(--thgpm-green);
}

@media (min-width: 821px) {
  .thgpm-sidebar-right .thgpm-archive-sidebar {
    position: sticky;
    top: 30px;
    align-self: start;
  }
}

@media (max-width: 1024px) {
  .thgpm-sidebar-right { grid-template-columns: minmax(0, 1fr) 220px; gap: 34px; padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 820px) {
  .thgpm-sidebar-right { grid-template-columns: 1fr; gap: 34px; }
  .thgpm-sidebar-right .thgpm-archive-sidebar { order: 2; }
  .thgpm-sidebar-right .thgpm-archive-main,
  .thgpm-sidebar-right .thgpm-single-main { order: 1; }
}

@media (max-width: 620px) {
  .thgpm-sidebar-right { padding: 20px 14px 46px; }
  .thgpm-single-content { font-size: 16px; }
  .thgpm-post-nav { flex-direction: column; align-items: stretch; }
  .thgpm-post-nav a { justify-content: center; }
}

/* v1.5: rechte Kategorie-/Jahr-Spalte auch beim Shortcode [thg_post_page] */
.thgpm-home-wrap.thgpm-sidebar-right {
  align-items: start;
}

.thgpm-home-main.thgpm-page {
  max-width: none;
  padding: 0;
  min-width: 0;
}

.thgpm-home-main .thgpm-featured,
.thgpm-home-main .thgpm-grid,
.thgpm-home-main .thgpm-big,
.thgpm-home-main .thgpm-recommended-inner {
  max-width: none;
}

.thgpm-home-main .thgpm-recommended {
  margin-left: 0;
  margin-right: 0;
}
