/*
Theme Name: galaniprojects
Theme URI: https://galaniprojects.de/
Description: Child Theme für den galaniprojects Blog auf Basis von Twenty Twenty-Five.
Author: galaniprojects GmbH
Author URI: https://galaniprojects.de/
Template: twentytwentyfive
Version: 2.0.0
Text Domain: galaniprojects
*/

:root {
  --gp-orange: #ff6600;
  --gp-teal: #0e455e;
  --gp-dark: #292929;
  --gp-white: #ffffff;
  --gp-panel: rgba(255, 255, 255, 0.88);
  --gp-panel-soft: rgba(255, 255, 255, 0.72);
  --gp-line: rgba(14, 69, 94, 0.12);
  --gp-shadow: 0 14px 34px rgba(45, 57, 73, 0.10);
  --gp-radius: 22px;
  --gp-radius-small: 15px;
  --gp-content: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background: #f7f6f3;
  color: var(--gp-dark);
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background: url("/wp-content/uploads/2026/10/galaniprojects-hero-bg-01.png") center / cover no-repeat;
}

.wp-site-blocks {
  background: transparent;
}

/* =========================================================
   Header
   ========================================================= */

.gp-site-header {
  position: relative;
  z-index: 100;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gp-site-header__inner {
  box-sizing: border-box;
  width: min(calc(100% - 3rem), var(--gp-content));
  min-height: 66px;
  margin-inline: auto;
  padding-block: 0.7rem;
}

.gp-site-brand {
  flex: 0 0 auto;
  line-height: 0;
}

.gp-site-brand img {
  display: block;
  width: min(175px, 36vw);
  height: auto;
}

.gp-primary-nav {
  margin-left: auto;
}

.gp-primary-nav .wp-block-navigation__container {
  gap: clamp(0.7rem, 1.2vw, 1.25rem);
}

.gp-primary-nav .wp-block-navigation-item__content {
  position: relative;
  padding: 0.4rem 0;
  color: var(--gp-dark);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.gp-primary-nav .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.05rem;
  left: 0;
  height: 2px;
  background: var(--gp-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.gp-primary-nav .wp-block-navigation-item__content:hover,
.gp-primary-nav .gp-blog-link > .wp-block-navigation-item__content {
  color: var(--gp-orange);
}

.gp-primary-nav .wp-block-navigation-item__content:hover::after,
.gp-primary-nav .gp-blog-link > .wp-block-navigation-item__content::after {
  transform: scaleX(1);
}

/* =========================================================
   Startseite – Typografie / Grundstruktur
   Größen orientieren sich am bestehenden Live-Blog.
   ========================================================= */

.gp-blog-home {
  font-size: 1rem;
}

.gp-blog-hero {
  min-height: 132px;
  display: grid;
  place-items: center;
}

.gp-blog-hero__inner {
  width: min(calc(100% - 3rem), var(--gp-content));
  margin-inline: auto;
  text-align: center;
}

.gp-blog-hero h1 {
  display: inline-block;
  margin: 0;
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 22px rgba(45, 57, 73, 0.07);
  color: var(--gp-orange);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.15;
}

.gp-blog-content {
  width: min(calc(100% - 3rem), var(--gp-content));
  margin-inline: auto;
  padding: 2rem 0 4rem;
}

/* =========================================================
   Featured 5 – 25 / 50 / 25
   Live-Reihenfolge: 1+4 / 2 / 3+5
   ========================================================= */

.gp-featured {
  display: grid;
  grid-template-columns: 25fr 50fr 25fr;
  gap: 1.8rem;
  align-items: start;
  margin-bottom: 4rem;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--gp-radius);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--gp-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gp-featured__column {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.gp-featured-card,
.gp-featured-main {
  min-width: 0;
}

.gp-featured-card__image,
.gp-featured-main__image,
.gp-post-card__image,
.gp-compact-card__image {
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.gp-featured-card img,
.gp-featured-main img,
.gp-post-card img,
.gp-compact-card img {
  display: block;
  width: 100%;
  height: auto;
}

.gp-featured-card__title {
  margin: 0.55rem 0 0.35rem;
  font-size: 1.146rem;
  font-weight: 400;
  line-height: 1.18;
}

.gp-featured-main__title {
  margin: 0.7rem 0 0.45rem;
  font-size: clamp(1.146rem, 1.146rem + (1vw - 0.2rem) * 1.028, 1.8rem);
  font-weight: 400;
  line-height: 1.1;
}

.gp-featured-card__title a,
.gp-featured-main__title a,
.gp-post-card__title a,
.gp-compact-card__title a {
  color: var(--gp-orange);
  text-decoration: none;
}

.gp-featured-card__excerpt,
.gp-featured-main__excerpt {
  color: var(--gp-dark);
  font-size: 17.5053px;
  font-weight: 400;
  line-height: 25.3827px;
}

.gp-featured-card__excerpt p,
.gp-featured-main__excerpt p {
  margin: 0;
}

.gp-featured-card__more,
.gp-featured-main__more {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--gp-teal);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: underline;
}

/* =========================================================
   6 Beiträge – 3 Spalten
   ========================================================= */

.gp-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.1rem 2rem;
  margin-bottom: 3.8rem;
}

.gp-post-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--gp-radius-small);
  background: var(--gp-panel);
  box-shadow: 0 9px 25px rgba(45, 57, 73, 0.08);
}

.gp-post-card__title {
  margin: 0.65rem 0 0.4rem;
  font-size: 1.146rem;
  font-weight: 400;
  line-height: 1.18;
}

.gp-post-card__meta {
  color: var(--gp-teal);
  font-size: 0.70rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.gp-post-card__meta a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   12 Beiträge – 4 Spalten
   ========================================================= */

.gp-post-grid--compact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.2rem 1.6rem;
  margin-bottom: 3rem;
}

.gp-compact-card {
  min-width: 0;
}

.gp-compact-card__title {
  margin: 0.55rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.18;
}

.gp-compact-card__meta {
  color: var(--gp-teal);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.gp-compact-card__meta a {
  color: inherit;
  text-decoration: none;
}

.gp-post-grid--archive {
  margin-top: 1rem;
}

/* =========================================================
   Pagination
   ========================================================= */

.gp-pagination {
  margin: 1.5rem 0 2.2rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--gp-radius-small);
  background: rgba(255, 255, 255, 0.72);
}

.gp-pagination ul {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gp-pagination li:last-child {
  margin-left: auto;
}

.gp-pagination a,
.gp-pagination span {
  color: var(--gp-teal);
  font-size: 0.78rem;
  text-decoration: none;
}

.gp-pagination .current {
  color: var(--gp-orange);
  font-weight: 600;
}

/* =========================================================
   Tags + Kategorien
   ========================================================= */

.gp-taxonomy-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
  padding: 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--gp-radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--gp-shadow);
}

.gp-tag-cloud {
  line-height: 1.55;
}

.gp-tag-cloud a {
  color: var(--gp-teal);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.gp-tag-cloud a:hover,
.gp-category-list a:hover {
  color: var(--gp-orange);
}

.gp-category-list ul {
  margin: 0;
  padding-left: 1.15rem;
}

.gp-category-list li {
  margin-bottom: 0.25rem;
  color: var(--gp-dark);
  font-size: 0.9rem;
  line-height: 1.3;
}

.gp-category-list a {
  color: var(--gp-orange);
  text-decoration: none;
}

/* =========================================================
   Footer
   ========================================================= */

.gp-site-footer {
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gp-site-footer__inner {
  width: min(calc(100% - 3rem), var(--gp-content));
  margin-inline: auto;
  padding: 3rem 0 2rem;
}

.gp-site-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
}

.gp-site-footer__brand img {
  display: block;
  width: 150px;
  height: auto;
  margin-bottom: 1rem;
}

.gp-site-footer__claim {
  max-width: 500px;
  color: var(--gp-dark);
  font-size: 0.82rem;
  line-height: 1.45;
}

.gp-site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: flex-end;
}

.gp-site-footer__nav a {
  color: var(--gp-dark);
  font-size: 0.75rem;
  text-decoration: none;
}

.gp-site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--gp-line);
  color: #777;
  font-size: 0.68rem;
  text-align: center;
}

/* =========================================================
   Single Post – existing readable light treatment
   ========================================================= */

.gp-single {
  width: min(calc(100% - 3rem), 980px);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 5vw, 5rem);
}

.gp-single__card {
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--gp-radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--gp-shadow);
  color: var(--gp-dark);
}

.gp-single__title {
  margin-top: 0;
  color: var(--gp-orange);
}

.gp-single__content,
.gp-single__content p,
.gp-single__content li,
.gp-single__content h1,
.gp-single__content h2,
.gp-single__content h3,
.gp-single__content h4,
.gp-single__content h5,
.gp-single__content h6 {
  color: var(--gp-dark);
}

.gp-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Legacy dark blocks from former Site Editor styles */
.gp-single__content .wp-block-group.has-background,
.gp-single__content .wp-block-group[style*="background-color:#292929"],
.gp-single__content .wp-block-group[style*="background-color: #292929"] {
  background: rgba(255, 255, 255, 0.78) !important;
  color: var(--gp-dark) !important;
  border-color: rgba(14, 69, 94, 0.14) !important;
  border-radius: 14px;
}

.gp-single__content .wp-block-group.has-background p,
.gp-single__content .wp-block-group.has-background li,
.gp-single__content .wp-block-group.has-background h1,
.gp-single__content .wp-block-group.has-background h2,
.gp-single__content .wp-block-group.has-background h3,
.gp-single__content .wp-block-group.has-background h4,
.gp-single__content .wp-block-group.has-background h5,
.gp-single__content .wp-block-group.has-background h6 {
  color: var(--gp-dark) !important;
}

.gp-single__content .wp-block-group[style*="border-style:dashed"],
.gp-single__content .wp-block-group[style*="border-style: dashed"],
.gp-single__content .has-custom-gp-border-color {
  border-style: solid !important;
  border-width: 1px !important;
  border-color: rgba(14, 69, 94, 0.14) !important;
}

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

@media (max-width: 960px) {
  .gp-featured {
    grid-template-columns: 1fr 1fr;
  }

  .gp-featured__center {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .gp-post-grid,
  .gp-post-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gp-taxonomy-area {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body::before {
    position: absolute;
  }

  .gp-site-header__inner,
  .gp-blog-hero__inner,
  .gp-blog-content,
  .gp-site-footer__inner,
  .gp-single {
    width: min(calc(100% - 2rem), var(--gp-content));
  }

  .gp-featured,
  .gp-post-grid,
  .gp-post-grid--compact {
    grid-template-columns: 1fr;
  }

  .gp-featured__center {
    grid-column: auto;
    grid-row: auto;
  }

  .gp-site-footer__top {
    display: block;
  }

  .gp-site-footer__nav {
    justify-content: flex-start;
    margin-top: 1.5rem;
  }
}


/* =========================================================
   STEP 21 – CLEAN RESET
   Basis: stabiler Schritt 16.
   Nur Hero-Card + fixe Navigation.
   Keine globalen Font-Overrides.
   ========================================================= */

/* Navigation bleibt optisch exakt wie in Schritt 16,
   wird aber oben fixiert. */
.gp-site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
}

body.admin-bar .gp-site-header {
  top: 32px;
}

/* Platz für die fixe Navigation */
.gp-blog-home {
  padding-top: 66px;
}

/* Blog-Hero: nur Card-Look der Homepage */
.gp-blog-hero {
  min-height: 0;
  padding: 70px 5% 40px;
  background: transparent;
}

.gp-blog-hero__inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  text-align: center;
}

/* WICHTIG:
   Schriftwerte bleiben aus Schritt 16.
   Wir ändern nur die Card, nicht die Typografie. */
.gp-blog-hero h1 {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--gp-orange);
}

@media screen and (max-width: 782px) {
  body.admin-bar .gp-site-header {
    top: 46px;
  }
}

@media screen and (max-width: 767px) {
  .gp-blog-home {
    padding-top: 66px;
  }

  .gp-blog-hero {
    padding: 40px 20px 24px;
  }

  .gp-blog-hero__inner {
    padding: 24px 20px;
  }
}


/* =========================================================
   STEP 22 – ALTERNATING BLOG SURFACES
   Referenz: galaniprojects.de
   light  = rgba(255,255,255,.33)
   strong = rgba(255,255,255,.66)
   ========================================================= */

:root {
  --gp-section-light: rgba(255, 255, 255, .33);
  --gp-section-strong: rgba(255, 255, 255, .66);
}

/* Der Blog-Titel startet nahezu ohne Overlay. */
.gp-blog-hero {
  background: rgba(255, 255, 255, 0);
}

/* Main darf nicht selbst eine große Fläche bilden. */
.gp-blog-content {
  width: 100%;
  max-width: none;
  padding: 0 0 4rem;
}

/* Full-width Section-Flächen wie auf galaniprojects.de */
.gp-home-surface {
  width: 100%;
  border-bottom: 1px solid rgba(47, 42, 44, .12);
}

.gp-home-surface--light {
  background-color: var(--gp-section-light);
}

.gp-home-surface--strong {
  background-color: var(--gp-section-strong);
}

/* Inhalt bleibt auf 1200px begrenzt. */
.gp-home-surface__inner {
  width: min(calc(100% - 3rem), var(--gp-content));
  margin-inline: auto;
  padding: 3rem 0;
}

/* Bestehende Blöcke behalten ihr eigenes Design,
   nur ihre Außenabstände wandern auf die Section. */
.gp-home-surface .gp-featured,
.gp-home-surface .gp-post-grid,
.gp-home-surface .gp-post-grid--compact,
.gp-home-surface .gp-pagination,
.gp-home-surface .gp-taxonomy-area {
  margin-top: 0;
  margin-bottom: 0;
}

/* Featured-Container nicht doppelt "milchig" machen:
   die starke Section liefert bereits die Fläche. */
.gp-home-surface--strong .gp-featured {
  background: rgba(255, 255, 255, .38);
}

/* Pagination sitzt in der leichten Section etwas kompakter. */
.gp-home-surface--light .gp-pagination {
  background: rgba(255, 255, 255, .55);
}

/* Taxonomy-Panel ebenfalls etwas zurücknehmen, weil die Section strong ist. */
.gp-home-surface--strong .gp-taxonomy-area {
  background: rgba(255, 255, 255, .48);
}

@media screen and (max-width: 767px) {
  .gp-home-surface__inner {
    width: min(calc(100% - 2rem), var(--gp-content));
    padding: 2rem 0;
  }
}


/* =========================================================
   STEP 23 – HERO: ZUSÄTZLICHE HINTERGRUNDEBENE ENTFERNT
   Das Section-Overlay bleibt bestehen.
   Nur die Card-Hintergrundfarbe / der Card-Verlauf wird entfernt.
   ========================================================= */

.gp-blog-hero__inner {
  background-color: transparent !important;
  background-image: none !important;
}


/* =========================================================
   STEP 24 – BILDER OHNE BORDER-RADIUS
   Entspricht der Bildoptik auf galaniprojects.de.
   ========================================================= */

.gp-featured-card__image,
.gp-featured-main__image,
.gp-post-card__image,
.gp-compact-card__image,
.gp-featured-card img,
.gp-featured-main img,
.gp-post-card img,
.gp-compact-card img,
.gp-single__featured img,
.gp-single__content img {
  border-radius: 0 !important;
}


/* =========================================================
   STEP 25 – BLOG-ÜBERSCHRIFT
   Typografie wie .h2-orange auf galaniprojects.de.
   Fläche / Overlay bleiben unverändert.
   ========================================================= */

.gp-blog-hero h1 {
  color: #ff6600;
  font-family: "Rubik", Arial, sans-serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: 0;
  text-shadow: none;
}

@media screen and (max-width: 767px) {
  .gp-blog-hero h1 {
    font-size: 40px;
  }
}

@media screen and (max-width: 479px) {
  .gp-blog-hero h1 {
    font-size: 30px;
    line-height: 100%;
  }
}


/* =========================================================
   STEP 26 – HERO: ZUSÄTZLICHE HINTERGRUNDEBENE ENTFERNT
   Basis: Schritt 25.
   Das Section-Overlay bleibt erhalten.
   Nur die innere Hintergrundfläche wird entfernt.
   ========================================================= */

.gp-blog-hero__inner {
  background-color: transparent !important;
  background-image: none !important;
}


/* =========================================================
   STEP 27 – FEATURED-BEREICH: GROSSE HINTERGRUNDBOX ENTFERNT
   Die Section-Fläche / das Overlay bleibt bestehen.
   Nur die zusätzliche große Fläche hinter den Teasern verschwindet.
   ========================================================= */

.gp-featured {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}


/* =========================================================
   STEP 28 – NAVIGATION WIE GALANIPROJECTS.DE
   Basis: vom Nutzer modifizierte style.css
   Nur Menü/Header-Navigation angepasst.
   ========================================================= */

/* Header-Oberfläche wie galaniprojects.de */
.gp-site-header {
  background-color: rgba(215, 232, 255, .55);
  border-bottom: 1px solid rgba(47, 42, 44, .12);
  box-shadow: 0 6px 20px rgba(58, 42, 36, .10);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* Navigation kompakt wie auf der Website */
.gp-primary-nav .wp-block-navigation__container {
  gap: 0;
}

.gp-primary-nav .wp-block-navigation-item {
  margin: 0;
}

.gp-primary-nav .wp-block-navigation-item__content {
  position: static;
  margin: 20px 5px;
  padding: 5px 10px;
  color: #2f2a2c;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: .25px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}

/* Alten Blog-Unterstrich komplett entfernen */
.gp-primary-nav .wp-block-navigation-item__content::after {
  content: none !important;
  display: none !important;
}

/* Kein Unterstrich – nur Orange bei Hover / aktiv */
.gp-primary-nav .wp-block-navigation-item__content:hover,
.gp-primary-nav .gp-blog-link > .wp-block-navigation-item__content,
.gp-primary-nav .wp-block-navigation-item__content[aria-current="page"] {
  color: #ff6600;
  text-decoration: none !important;
}

/* Fokus bleibt barrierefrei, aber ohne Unterstrich */
.gp-primary-nav .wp-block-navigation-item__content:focus-visible {
  color: #ff6600;
  border-radius: 4px;
  outline: 2px solid #ff6600;
  outline-offset: 3px;
}

/* Desktop-Abstufungen entsprechend galaniprojects.de */
@media screen and (min-width: 1280px) {
  .gp-primary-nav .wp-block-navigation-item__content {
    margin-left: 3px;
    margin-right: 3px;
    padding-left: 7px;
    padding-right: 7px;
    font-size: 15px;
  }
}

@media screen and (min-width: 992px) and (max-width: 1279px) {
  .gp-primary-nav .wp-block-navigation-item__content {
    margin-left: 2px;
    margin-right: 2px;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 14px;
    letter-spacing: 0;
  }
}

/* Mobile Navigation: keine Linie unter den Linktexten */
@media screen and (max-width: 991px) {
  .gp-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
    background-color: rgba(215, 232, 255, .96);
    border-top: 1px solid rgba(47, 42, 44, .12);
    border-bottom: 1px solid rgba(47, 42, 44, .12);
    box-shadow: 0 12px 24px rgba(58, 42, 36, .10);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .gp-primary-nav .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item__content {
    width: 100%;
    margin: 0;
    padding: 13px 12px;
    font-size: 17px;
    line-height: 1.3;
    text-align: left;
    text-decoration: none !important;
  }
}


/* =========================================================
   STEP 30 – SINGLE ARTICLE
   Anmutung näher am aktuellen Live-Blog:
   ruhigere Lesespalte, größere Typografie, klare Abstände.
   Betrifft ausschließlich einzelne Beiträge.
   ========================================================= */

/* Gesamter Artikelbereich */
.gp-single {
  width: min(calc(100% - 3rem), 980px);
  margin-inline: auto;
  padding-top: 4.5rem;
  padding-bottom: 5rem;
}

/* Helle Contentfläche im neuen galaniprojects-Look */
.gp-single__card {
  width: 100%;
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 2px solid rgba(255, 255, 255, .90);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 28px rgba(58, 42, 36, .10);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Header */
.gp-single__header {
  width: min(100%, 820px);
  margin: 0 auto 2.25rem;
}

.gp-single__title {
  margin: 0 0 1rem;
  color: var(--gp-orange);
  font-size: clamp(2.2rem, 2.5rem, 2.8rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

/* Meta deutlich zurücknehmen */
.gp-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .8rem;
  color: #716a6d;
  font-size: .86rem;
  line-height: 1.45;
}

.gp-single__meta a {
  color: #0e455e;
  text-decoration: underline;
  text-underline-offset: .15em;
}

/* Featured Image:
   groß, aber nicht breiter als die Artikel-Card */
.gp-single__featured {
  width: min(100%, 900px);
  margin: 0 auto 2.5rem;
}

.gp-single__featured img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0 !important;
}

/* Eigentliche Lesespalte */
.gp-single__content {
  margin-inline: auto;
  color: var(--gp-dark);
  font-size: 18px;
  line-height: 1.62;
  padding: 0;
}

/* WordPress constrained-layout nicht enger machen lassen */
.gp-single__content > * {
  max-width: 100% !important;
}

/* Absätze */
.gp-single__content p {
  margin-top: 0;
  margin-bottom: 1.35em;
  color: var(--gp-dark);
  font-size: inherit;
  line-height: inherit;
}

/* Überschriften im Artikel */
.gp-single__content h2 {
  margin: 2.2em 0 .65em;
  color: var(--gp-dark);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.2;
}

.gp-single__content h3 {
  margin: 1.9em 0 .6em;
  color: var(--gp-orange);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.3;
}

.gp-single__content h4 {
  margin: 1.7em 0 .5em;
  font-size: 1.15rem;
  line-height: 1.35;
}

/* Listen wie im Live-Blog klar vom Fließtext absetzen */
.gp-single__content ul,
.gp-single__content ol {
  margin: .25em 0 1.4em;
  padding-left: 1.5em;
}

.gp-single__content li {
  margin-bottom: .32em;
  color: var(--gp-dark);
  font-size: 18px;
  line-height: 1.55;
}

/* Links */
.gp-single__content a {
  color: var(--gp-orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}

/* Bilder und Figures innerhalb des Contents */
.gp-single__content figure {
  width: min(100%, 900px);
  margin: 2.4rem auto;
}

.gp-single__content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0 !important;
}

.gp-single__content figcaption {
  margin-top: .55rem;
  color: #716a6d;
  font-size: .8rem;
  line-height: 1.45;
}

/* Zitate */
.gp-single__content blockquote {
  margin: 2rem 0;
  padding: .25rem 0 .25rem 1.35rem;
  border-left: 3px solid var(--gp-orange);
  color: var(--gp-dark);
  font-size: 1.05em;
  line-height: 1.55;
}

/* Tags */
.gp-single__taxonomy {
  width: min(100%, 780px);
  margin: 2.75rem auto 0;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(47, 42, 44, .12);
  color: #716a6d;
  font-size: .82rem;
  line-height: 1.5;
}

.gp-single__taxonomy a {
  color: var(--gp-orange);
}

/* Vorheriger / nächster Beitrag */
.gp-single__nav {
  width: min(100%, 980px);
  margin: 1.5rem auto 0;
  padding: 1rem 1.25rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gp-single__nav .wp-block-post-navigation-link {
  font-size: .9rem;
  line-height: 1.4;
}

.gp-single__nav a {
  color: #0e455e;
}

/* Legacy-Blöcke aus alten Artikeln:
   hell, aber nicht mehr übermäßig dominant */
.gp-single__content .wp-block-group.has-background,
.gp-single__content .wp-block-group[style*="background-color:#292929"],
.gp-single__content .wp-block-group[style*="background-color: #292929"] {
  margin: 1.75rem 0;
  padding: 1.25rem 1.4rem !important;
  border: 1px solid rgba(47, 42, 44, .12) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, .58) !important;
  box-shadow: none !important;
}

/* Tablet */
@media screen and (max-width: 900px) {
  .gp-single {
    width: min(calc(100% - 2.5rem), 980px);
    padding-top: 3.5rem;
  }

  .gp-single__content {
    width: min(100%, 720px);
  }
}

/* Mobile */
@media screen and (max-width: 700px) {
  .gp-single {
    width: min(calc(100% - 2rem), 980px);
    padding-top: 2.25rem;
    padding-bottom: 3.5rem;
  }

  .gp-single__card {
    padding: 1.5rem 1.25rem 2rem;
    border-radius: 16px;
  }

  .gp-single__header {
    margin-bottom: 1.5rem;
  }

  .gp-single__title {
    font-size: 2rem;
    line-height: 1.12;
  }

  .gp-single__content {
    font-size: 17px;
    line-height: 1.58;
  }

  .gp-single__content li {
    font-size: 17px;
  }

  .gp-single__content h2 {
    margin-top: 1.8em;
    font-size: 1.55rem;
  }

  .gp-single__featured {
    margin-bottom: 1.75rem;
  }
}


/* =========================================================
   STEP 31 – FOOTER WIE GALANIPROJECTS.DE
   Struktur und Maße an Homepage-Footer angelehnt.
   ========================================================= */

.gp-site-footer {
  width: 100%;
  background: #31414c;
  color: #ffffff;
  border-top: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.gp-site-footer__inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 12px 24px 10px;
}

.gp-site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.gp-site-footer__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 320px;
}

.gp-site-footer__logo a {
  display: inline-block;
  line-height: 0;
}

.gp-site-footer__logo img {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
  margin: 0;
}

.gp-site-footer__spacer {
  flex: 1 1 auto;
}

.gp-site-footer__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: 600px;
  gap: 24px;
}

.gp-site-footer__nav a {
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  line-height: 150%;
  text-decoration: none;
}

.gp-site-footer__nav a:hover,
.gp-site-footer__nav a:focus-visible {
  color: #ff6600;
}

.gp-site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin-top: 0;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  line-height: 150%;
  text-align: center;
}

@media screen and (max-width: 991px) {
  .gp-site-footer__top {
    flex-direction: column;
    align-items: center;
  }

  .gp-site-footer__logo,
  .gp-site-footer__nav {
    justify-content: center;
    max-width: none;
  }

  .gp-site-footer__spacer {
    display: none;
  }
}

@media screen and (max-width: 479px) {
  .gp-site-footer__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .gp-site-footer__logo img {
    width: 210px;
  }

  .gp-site-footer__nav a {
    font-size: 13px;
  }

  .gp-site-footer__bottom {
    font-size: 13px;
  }
}


/* =========================================================
   STEP 32 – FOOTER FEINSCHLIFF
   Mehr Luft um das Logo + keine Lücke vor dem Footer.
   ========================================================= */

/* Schlagwörter/Kategorien-Section direkt an den Footer anschließen */
.gp-blog-home .gp-blog-content {
  padding-bottom: 0;
}

/* Etwas mehr vertikale Luft für Logo und obere Footerzeile */
.gp-site-footer__top {
  padding-top: 16px;
  padding-bottom: 16px;
}


/* =========================================================
   STEP 36 – SAUBERE ABSTANDSLOGIK VOR DEM FOOTER
   1. Letzte Section bleibt innen symmetrisch.
   2. Nur der WordPress-Block-Gap vor dem Home-Footer entfällt.
   Keine negativen Margins.
   ========================================================= */

/* Die letzte Section behält oben und unten denselben Innenabstand. */
.gp-home-surface__inner {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* WordPress erzeugt zwischen Shortcode-Block und Footer-Template-Part
   einen eigenen Block-Gap (~1.2rem / ca. 19px). Nur diesen entfernen. */
.gp-home-footer-template {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}

@media screen and (max-width: 767px) {
  .gp-home-surface__inner {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}


/* =========================================================
   STEP 37 – EXAKTER ÜBERGANG BLOG → FOOTER
   Der Shortcode rendert direkt .gp-blog-home.
   Deshalb den tatsächlichen direkten Nachbarn ansprechen.
   ========================================================= */

.wp-site-blocks > .gp-blog-home + footer.wp-block-template-part,
.wp-site-blocks > .gp-blog-home + .wp-block-template-part {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}


/* =========================================================
   STEP 38 – KATEGORIE IM STIL DER ARTIKELANSICHT
   Betrifft nur Kategorie-Archive.
   ========================================================= */

.gp-category {
  width: min(calc(100% - 3rem), 980px);
  margin-inline: auto;
  padding-top: 4.5rem;
  padding-bottom: 5rem;
}

.gp-category__card {
  width: 100%;
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 2px solid rgba(255, 255, 255, .90);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 28px rgba(58, 42, 36, .10);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.gp-category__header {
  width: min(100%, 820px);
  margin: 0 auto 2.5rem;
}

.gp-category__title {
  margin: 0;
  color: var(--gp-dark);
  font-size: clamp(2.35rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.gp-category__description {
  margin-top: 1rem;
  color: var(--gp-dark);
  font-size: 18px;
  line-height: 1.62;
}

.gp-category__posts {
  width: min(100%, 820px);
  margin-inline: auto;
  padding: 0;
  list-style: none;
}

.gp-category-post {
  margin: 0;
  padding: 0 0 3rem;
}

.gp-category-post + .gp-category-post {
  padding-top: 3rem;
  border-top: 1px solid rgba(47, 42, 44, .14);
}

.gp-category-post__image {
  width: 100%;
  margin: 0 0 1.5rem;
}

.gp-category-post__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0 !important;
}

.gp-category-post__title {
  margin: 0 0 .8rem;
  color: var(--gp-orange);
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  font-weight: 500;
  line-height: 1.15;
}

.gp-category-post__title a {
  color: var(--gp-orange);
  text-decoration: none;
}

.gp-category-post__title a:hover {
  color: var(--gp-teal);
}

.gp-category-post__meta {
  gap: .35rem .8rem;
  margin-bottom: 1rem;
  color: #716a6d;
  font-size: .86rem;
  line-height: 1.45;
}

.gp-category-post__meta a {
  color: var(--gp-teal);
  text-decoration: underline;
  text-underline-offset: .15em;
}

.gp-category-post__excerpt {
  margin: 0;
  color: var(--gp-dark);
  font-size: 18px;
  line-height: 1.62;
}

.gp-category-post__excerpt p {
  margin: 0;
}

.gp-category-post__excerpt .wp-block-post-excerpt__more-link {
  display: inline-block;
  margin-top: .85rem;
  color: var(--gp-teal);
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.gp-category__pagination {
  width: min(100%, 820px);
  margin: 1rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(47, 42, 44, .14);
  color: var(--gp-teal);
  font-size: .9rem;
}

.gp-category__pagination a {
  color: var(--gp-teal);
  text-decoration: none;
}

.gp-category__pagination .current {
  color: var(--gp-orange);
  font-weight: 600;
}

@media screen and (max-width: 700px) {
  .gp-category {
    width: min(calc(100% - 2rem), 980px);
    padding-top: 2.25rem;
    padding-bottom: 3.5rem;
  }

  .gp-category__card {
    padding: 1.5rem 1.25rem 2rem;
    border-radius: 16px;
  }

  .gp-category__header {
    margin-bottom: 1.75rem;
  }

  .gp-category__title {
    font-size: 2rem;
    line-height: 1.12;
  }

  .gp-category-post {
    padding-bottom: 2.25rem;
  }

  .gp-category-post + .gp-category-post {
    padding-top: 2.25rem;
  }

  .gp-category-post__title {
    font-size: 1.55rem;
  }

  .gp-category-post__excerpt,
  .gp-category__description {
    font-size: 17px;
    line-height: 1.58;
  }
}


/* =========================================================
   STEP 39 – SCHLAGWÖRTER WIE KATEGORIEN + MEHR LUFT OBEN
   tag.html verwendet dieselbe Darstellung wie category.html.
   Beide Archive erhalten etwas mehr Abstand zum fixen Menü.
   ========================================================= */

body.category .gp-category,
body.tag .gp-category {
  padding-top: 6.5rem;
}

@media screen and (max-width: 700px) {
  body.category .gp-category,
  body.tag .gp-category {
    padding-top: 4.25rem;
  }
}


/* =========================================================
   STEP 42 – CLEAN RECOVERY
   Rückkehr auf den stabilen Block-Theme-Stand vor STEP 40.
   Einzige übernommene Änderung:
   Abstand der Single-Post-Ansicht zum fixen Header.
   Keine PHP-Template-Erzwingung.
   ========================================================= */

body.single .gp-single {
  margin-top: 66px;
  padding-top: 3rem;
}

@media screen and (max-width: 700px) {
  body.single .gp-single {
    margin-top: 66px;
    padding-top: 2rem;
  }
}


/* =========================================================
   STEP 43 – TAXONOMY-TITEL ALS EIGENE CARD
   Kategorie und Schlagwort: Titel optisch vom Beitrags-Archiv lösen.
   Keine Änderung an Artikel, Startseite oder Footer.
   ========================================================= */

body.category .gp-category,
body.tag .gp-category {
  padding-top: 5.5rem;
}

.gp-category__title-card {
  width: min(100%, 980px);
  margin: 0 auto 2rem;
  padding: 2.4rem 3rem;
  border: 2px solid rgba(255, 255, 255, .90);
  border-radius: 20px;
  background-color: rgba(255, 255, 255, .62);
  background-image: linear-gradient(
    225deg,
    rgba(186, 188, 190, .20) 20%,
    rgba(255, 255, 255, .68) 60%,
    rgba(255, 243, 236, .56) 100%
  );
  box-shadow: 0 8px 28px rgba(58, 42, 36, .10);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-align: center;
}

.gp-category__title-card .gp-category__header {
  width: 100%;
  margin: 0;
}

.gp-category__title-card .gp-category__title {
  margin: 0;
  color: var(--gp-dark);
  font-size: clamp(2.35rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.gp-category__title-card .gp-category__description {
  max-width: 760px;
  margin: 1rem auto 0;
  font-size: 18px;
  line-height: 1.55;
}

/* Die Beitrags-Card beginnt jetzt unabhängig unterhalb der Titel-Card. */
.gp-category > .gp-category__card {
  margin-top: 0;
}

@media screen and (max-width: 700px) {
  body.category .gp-category,
  body.tag .gp-category {
    padding-top: 4rem;
  }

  .gp-category__title-card {
    margin-bottom: 1.4rem;
    padding: 1.7rem 1.25rem;
    border-radius: 16px;
  }

  .gp-category__title-card .gp-category__title {
    font-size: 2rem;
    line-height: 1.12;
  }

  .gp-category__title-card .gp-category__description {
    font-size: 17px;
  }
}


/* =========================================================
   STEP 44 – ZWEIFARBIGER TAXONOMY-TITEL
   Optik wie die zweifarbigen Headlines auf galaniprojects.de,
   aber mit eigenen Blog-Klassen.
   ========================================================= */

.gp-taxonomy-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 .28em;
  margin: 0;
}

.gp-taxonomy-title__label,
.gp-taxonomy-title__term {
  margin: 0;
  padding: 0;
  font-family: "Rubik", Arial, sans-serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: 0;
}

.gp-taxonomy-title__label {
  color: #2f2a2c;
}

.gp-taxonomy-title__term {
  color: #ff6600;
}

.gp-category__title-card .gp-taxonomy-title__term {
  margin: 0;
}

@media screen and (max-width: 767px) {
  .gp-taxonomy-title__label,
  .gp-taxonomy-title__term {
    font-size: 40px;
  }
}

@media screen and (max-width: 479px) {
  .gp-taxonomy-title {
    gap: 0 .22em;
  }

  .gp-taxonomy-title__label,
  .gp-taxonomy-title__term {
    font-size: 30px;
    line-height: 100%;
  }
}


/* =========================================================
   STEP 45 – VORHERIGER / NÄCHSTER ALS EIGENE CARDS
   Beide Navigationen auf einer Linie, links/rechts ausgerichtet.
   Lange Beitragstitel werden mit … gekürzt.
   ========================================================= */

.gp-single__nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  width: min(100%, 980px);
  margin: 2rem auto 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.gp-single__nav .wp-block-post-navigation-link {
  min-width: 0;
  margin: 0;
  padding: 1rem 1.2rem;
  border: 2px solid rgba(255, 255, 255, .90);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 22px rgba(58, 42, 36, .08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.gp-single__nav .wp-block-post-navigation-link:first-child {
  text-align: left;
}

.gp-single__nav .wp-block-post-navigation-link:last-child {
  text-align: right;
}

.gp-single__nav .wp-block-post-navigation-link a {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #0e455e;
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-single__nav .wp-block-post-navigation-link a:hover,
.gp-single__nav .wp-block-post-navigation-link a:focus-visible {
  color: #ff6600;
}

@media screen and (max-width: 560px) {
  .gp-single__nav {
    grid-template-columns: 1fr;
  }

  .gp-single__nav .wp-block-post-navigation-link:last-child {
    text-align: left;
  }
}


/* =========================================================
   STEP 46 – VORHERIGER / NÄCHSTER AUF EINER GEMEINSAMEN CARD
   ========================================================= */

.gp-single__nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  width: min(100%, 980px);
  margin: 2rem auto 0;
  padding: 1rem 1.2rem;
  border: 2px solid rgba(255, 255, 255, .90);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 22px rgba(58, 42, 36, .08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Einzelne Navigationseinträge nicht mehr als eigene Cards darstellen */
.gp-single__nav .wp-block-post-navigation-link {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.gp-single__nav .wp-block-post-navigation-link:first-child {
  text-align: left;
}

.gp-single__nav .wp-block-post-navigation-link:last-child {
  text-align: right;
}

.gp-single__nav .wp-block-post-navigation-link a {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #0e455e;
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-single__nav .wp-block-post-navigation-link a:hover,
.gp-single__nav .wp-block-post-navigation-link a:focus-visible {
  color: #ff6600;
}

@media screen and (max-width: 560px) {
  .gp-single__nav {
    grid-template-columns: 1fr;
  }

  .gp-single__nav .wp-block-post-navigation-link:last-child {
    text-align: left;
  }
}


/* =========================================================
   STEP 47 – POST-NAVIGATION FEINSCHLIFF
   Größerer Text, mehr Abstand in der Mitte, sauberes Ellipsis.
   ========================================================= */

.gp-single__nav {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 2.5rem;
}

.gp-single__nav .wp-block-post-navigation-link {
  min-width: 0;
  overflow: hidden;
}

.gp-single__nav .wp-block-post-navigation-link:first-child {
  padding-right: 1rem;
}

.gp-single__nav .wp-block-post-navigation-link:last-child {
  padding-left: 1rem;
}

.gp-single__nav .wp-block-post-navigation-link a {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: #0e455e;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media screen and (max-width: 700px) {
  .gp-single__nav {
    column-gap: 1.5rem;
  }

  .gp-single__nav .wp-block-post-navigation-link a {
    font-size: 1rem;
  }
}

@media screen and (max-width: 560px) {
  .gp-single__nav {
    grid-template-columns: 1fr;
    row-gap: .8rem;
  }

  .gp-single__nav .wp-block-post-navigation-link:first-child,
  .gp-single__nav .wp-block-post-navigation-link:last-child {
    padding-left: 0;
    padding-right: 0;
  }
}

/* =========================================================
   STEP 54 – ARTIKEL-FUSS KONSOLIDIERT
   Bereinigt die alten STEP-48-bis-53-Overrides vollständig.
   Eine einzige Definition für Tags, Prev/Next und Weitere Beiträge.
   ========================================================= */

/* Äußerer Single-Bereich = Website-/Footerbreite */
body.single .gp-single {
  width: min(calc(100% - 3rem), 1200px);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 0;
}

/* Eigentliche Artikel-Card bleibt bewusst schmal */
body.single .gp-single__card {
  width: min(100%, 980px);
  margin-left: auto;
  margin-right: auto;
}

/* Schlagwörter als dezente Pills */
.gp-single__taxonomy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  width: min(100%, 780px);
  margin: 2.75rem auto 0;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(47, 42, 44, .12);
  color: #716a6d;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.5;
}

.gp-single__taxonomy .wp-block-post-terms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}

.gp-single__taxonomy .wp-block-post-terms__prefix {
  margin-right: .15rem;
}

.gp-single__taxonomy a {
  display: inline-flex;
  align-items: center;
  padding: .32rem .68rem;
  border: 1px solid rgba(14, 69, 94, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  color: #0e455e;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.gp-single__taxonomy a:hover,
.gp-single__taxonomy a:focus-visible {
  border-color: rgba(255, 102, 0, .45);
  color: #ff6600;
}

/* Previous / Next – volle Footerbreite, keine Card */
body.single .gp-single__nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 1rem auto;
  padding: 1rem;
  border: 0;
  border-bottom: 1px solid rgba(47, 42, 44, .20);
  border-top: 1px solid rgba(47, 42, 44, .20);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.single .gp-single__nav::after {
  display: none;
}

body.single .gp-single__nav .wp-block-post-navigation-link {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.single .gp-single__nav .wp-block-post-navigation-link:first-child {
  padding-right: 1rem;
  text-align: left;
}

body.single .gp-single__nav .wp-block-post-navigation-link:last-child {
  padding-left: 1rem;
  text-align: right;
}

body.single .gp-single__nav .wp-block-post-navigation-link a {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: #0e455e;
  font-size: .88rem;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: .12em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.single .gp-single__nav .wp-block-post-navigation-link a:hover,
body.single .gp-single__nav .wp-block-post-navigation-link a:focus-visible {
  color: #ff6600;
}

/* Weitere Beiträge – wie Live: keine Card, nur Liste auf Overlay */
body.single .gp-single-more {
  width: 100%;
  max-width: 1200px;
  margin: 1rem auto 1rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.gp-single-more__title {
  margin: 0 0 1rem;
  padding: 0;
  color: #ff6600;
  font-family: "Rubik", Arial, sans-serif;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.gp-single-more__list {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gp-single-more__item {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(47, 42, 44, .18);
}

.gp-single-more__item:first-child {
  border-top: 0;
}

.gp-single-more__item:last-child {
  border-bottom: 1px solid rgba(47, 42, 44, .18);
}

/* Entscheidend: EINE horizontale Zeile */
.gp-single-more__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: .9rem 0;
  color: #0e455e;
  text-decoration: none;
}

.gp-single-more__post-title {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #ff6600;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.gp-single-more__date {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  color: #716a6d;
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.gp-single-more__link:hover .gp-single-more__post-title,
.gp-single-more__link:focus-visible .gp-single-more__post-title {
  color: #0e455e;
}

@media screen and (max-width: 700px) {
  body.single .gp-single {
    width: min(calc(100% - 2rem), 1200px);
  }

  body.single .gp-single__card,
  body.single .gp-single__nav,
  body.single .gp-single-more {
    width: 100%;
  }

  body.single .gp-single__nav {
    gap: 1rem;
    margin-top: 2.5rem;
  }

  body.single .gp-single-more {
    margin-top: 4rem;
    margin-bottom: 3.5rem;
  }

  .gp-single-more__link {
    gap: 1rem;
  }

  .gp-single-more__post-title {
    font-size: .95rem;
  }

  .gp-single-more__date {
    font-size: .8rem;
  }
}

@media screen and (max-width: 560px) {
  body.single .gp-single__nav {
    grid-template-columns: 1fr;
    row-gap: .7rem;
  }

  body.single .gp-single__nav .wp-block-post-navigation-link:first-child,
  body.single .gp-single__nav .wp-block-post-navigation-link:last-child {
    padding: 0;
    text-align: left;
  }

  .gp-single-more__link {
    gap: .75rem;
  }

  .gp-single-more__date {
    font-size: .76rem;
  }
}


/* =========================================================
   STEP 56 – SINGLE FOOTER ALS EIGENE STRONG-OVERLAY-SECTION
   Vorheriger/Nächster + Weitere Beiträge liegen gemeinsam
   auf derselben starken Overlay-Fläche wie jede zweite Section.
   ========================================================= */

.gp-single-footer-surface {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.gp-single-footer-surface__inner {
  width: min(calc(100% - 3rem), 1200px);
  max-width: 1200px;
  margin-inline: auto;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.gp-single-footer-surface .gp-single__nav,
.gp-single-footer-surface .gp-single-more {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.gp-single-footer-surface .gp-single__nav {
  margin-top: 0;
}

.gp-single-footer-surface .gp-single-more {
  margin-bottom: 0;
}

@media screen and (max-width: 767px) {
  .gp-single-footer-surface__inner {
    width: min(calc(100% - 2rem), 1200px);
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}


/* =========================================================
   STEP 57 – FINAL POLISH
   1. Previous/Next: Pfeile und Text auf einer Linie.
   2. Keine Kommas zwischen Schlagwörtern.
   ========================================================= */

/* Previous / Next sauber vertikal ausrichten */
.gp-single__nav .wp-block-post-navigation-link a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  line-height: 1.35;
}

.gp-single__nav .wp-block-post-navigation-link:first-child a {
  justify-content: flex-start;
}

.gp-single__nav .wp-block-post-navigation-link:last-child a {
  justify-content: flex-end;
}

/* Schlagwort-Kommas ausblenden */
.gp-single__taxonomy .wp-block-post-terms__separator {
  display: none !important;
}

/* Fallback für Themes/Markup, die Separatoren als Textknoten mit Abstand erzeugen */
.gp-single__taxonomy .wp-block-post-terms {
  column-gap: .45rem;
  row-gap: .45rem;
}


/* =========================================================
   STEP 58 – POST-NAVIGATION EXAKT AUF EINER HÖHE
   Pfeile außen links/rechts, Text mittig in der jeweiligen Hälfte.
   ========================================================= */

.gp-single__nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 3rem;
}

.gp-single__nav .wp-block-post-navigation-link {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 2.6rem;
  margin: 0;
  padding: 0;
}

.gp-single__nav .wp-block-post-navigation-link:first-child {
  justify-content: flex-start;
  padding-left: 1.8rem;
  padding-right: 1rem;
  text-align: left;
}

.gp-single__nav .wp-block-post-navigation-link:last-child {
  justify-content: flex-end;
  padding-left: 1rem;
  padding-right: 1.8rem;
  text-align: right;
}

/* Eigene Pfeile exakt an den Außenkanten */
.gp-single__nav .wp-block-post-navigation-link:first-child::before {
  content: "←";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #0e455e;
  font-size: 1rem;
  line-height: 1;
}

.gp-single__nav .wp-block-post-navigation-link:last-child::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #0e455e;
  font-size: 1rem;
  line-height: 1;
}

.gp-single__nav .wp-block-post-navigation-link a {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media screen and (max-width: 560px) {
  .gp-single__nav {
    grid-template-columns: 1fr;
    row-gap: .8rem;
  }

  .gp-single__nav .wp-block-post-navigation-link:first-child,
  .gp-single__nav .wp-block-post-navigation-link:last-child {
    padding-left: 1.8rem;
    padding-right: 1.8rem;
    text-align: left;
    justify-content: flex-start;
  }

  .gp-single__nav .wp-block-post-navigation-link:last-child::after {
    right: auto;
    left: 0;
  }
}


/* =========================================================
   STEP 59 – POST-NAVIGATION OHNE ÜBERLAGERUNG
   Keine absolute Positionierung mehr.
   Links:  Pfeil | Text
   Rechts: Text  | Pfeil
   ========================================================= */

.gp-single__nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 3rem;
}

.gp-single__nav .wp-block-post-navigation-link {
  width: 100%;
  min-width: 0;
  min-height: 2.6rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* LINKS: Pfeil | Text */
.gp-single__nav .wp-block-post-navigation-link:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: .65rem;
  text-align: left;
}

/* RECHTS: Text | Pfeil */
.gp-single__nav .wp-block-post-navigation-link:last-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: .65rem;
  text-align: right;
}

/* Alte absolute Pfeile vollständig neutralisieren */
.gp-single__nav .wp-block-post-navigation-link:first-child::before,
.gp-single__nav .wp-block-post-navigation-link:last-child::after {
  position: static;
  inset: auto;
  transform: none;
  display: block;
  width: auto;
  height: auto;
  color: #0e455e;
  font-size: 1rem;
  line-height: 1;
}

/* Pfeile */
.gp-single__nav .wp-block-post-navigation-link:first-child::before {
  content: "←";
}

.gp-single__nav .wp-block-post-navigation-link:last-child::after {
  content: "→";
}

/* Text bleibt in seiner Spalte und kann sauber gekürzt werden */
.gp-single__nav .wp-block-post-navigation-link a {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-single__nav .wp-block-post-navigation-link:first-child a {
  text-align: left;
}

.gp-single__nav .wp-block-post-navigation-link:last-child a {
  text-align: right;
}

@media screen and (max-width: 560px) {
  .gp-single__nav {
    grid-template-columns: 1fr;
    row-gap: .8rem;
  }

  .gp-single__nav .wp-block-post-navigation-link:last-child {
    grid-template-columns: auto minmax(0, 1fr);
    text-align: left;
  }

  .gp-single__nav .wp-block-post-navigation-link:last-child::after {
    content: none;
  }

  .gp-single__nav .wp-block-post-navigation-link:last-child::before {
    content: "→";
    display: block;
    color: #0e455e;
    font-size: 1rem;
    line-height: 1;
  }

  .gp-single__nav .wp-block-post-navigation-link:last-child a {
    text-align: left;
  }
}

/* =========================================================
   FOOTER – GLOBALEN WORDPRESS BLOCK-GAP ENTFERNEN
   ========================================================= */

.wp-site-blocks > footer.wp-block-template-part {
  margin-block-start: 0;
}

