/* =============================================================
   Blog-Beitrag (single.php) — Nachbau Oxygen-Template 471
   "Blog-Beitrag" (Hero aus Template 133 wiederverwendet).
   Referenz: 471.css + universal.css
   Prefix: post- | Related-Slider nutzt .blog-* aus blog.css
   mit Modifier .single-related fuer die Abweichungen.
   ============================================================= */

/* --- Hero + Artikel (section-3-133) --- */
.post-hero {
  display: block;
  text-align: left;
  min-height: 100vh;
}

/* #section-3-133 > .ct-section-inner-wrap */
.post-hero > .section-inner {
  max-width: 100%;
  padding: 297px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

/* div_block-124-133 */
.post-hero-row {
  width: 100%;
  max-width: 1400px;
  padding-left: 50px;
  padding-right: 50px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: right;
}

/* div_block-125-133 */
.post-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* div_block-248-471 */
.post-meta {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-bottom: 16px;
  text-align: left;
}

/* text_block-249-471 */
.post-date {
  color: #fdfeff;
  text-transform: uppercase;
  font-style: italic;
  font-size: 15px;
  letter-spacing: .5px;
}

/* text_block-251-471 / universal .category-link */
.post-category {
  background-color: #32b4a2;
  color: #fdfeff;
  padding: 2px 10px;
  border-radius: 5px;
  font-style: italic;
  font-size: 12px;
  letter-spacing: .5px;
}

.post-category a {
  color: white !important;
}

.post-category span,
.post-date span {
  display: inline-block;
}

/* headline-126-133 */
.post-title {
  font-size: 80px;
  color: #fdfeff;
  margin-top: 0;
  margin-bottom: 12px;
  text-align: left;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 1px;
}

.post-title span {
  display: inline-block;
}

/* text_block-130-133 (.intro-text) */
.post-intro {
  font-size: 22px;
  color: #fdfeff;
  margin-bottom: 14px;
  text-align: left;
}

/* span-215-471 (.ct-span.oxy-stock-content-styles) */
.post-content {
  display: inline-block;
  text-decoration: inherit;
}

/* Gutenberg-Content: Original reset h1-h6 auf margin 0
   (oxygen-framework); Farbe/Groessen kommen dort aus den
   WP-Global-Styles (Element-Styles, fluide clamp-Presets) —
   hier 1:1 uebernommen. */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin: 0;
  color: #111111;
  font-weight: 400;
  line-height: 1.2;
}

.post-content h1 {
  font-size: clamp(2.5rem, 2.5rem + ((1vw - 0.2rem) * 1.283), 3.27rem);
  line-height: 1.15;
}

.post-content h2 {
  font-size: clamp(1.85rem, 1.85rem + ((1vw - 0.2rem) * 1.083), 2.5rem);
}

.post-content h3 {
  font-size: clamp(1.39rem, 1.39rem + ((1vw - 0.2rem) * 0.767), 1.85rem);
}

.post-content h4 {
  font-size: clamp(1.1rem, 1.1rem + ((1vw - 0.2rem) * 0.767), 1.5rem);
}

.post-content h5 {
  font-size: 1.05rem;
}

.post-content h6 {
  font-size: 0.9rem;
}

.post-content .wp-block-heading {
  font-weight: 400;
}

/* Gutenberg-Schriftgroessen-Presets: Original (8081) nutzt die fluiden
   WP-Presets (clamp) — der Nachbau gibt starre Werte aus, deshalb hier
   die Original-Werte 1:1 uebernommen (mit !important wie im Original). */
.post-content .has-small-font-size {
  font-size: 0.9rem !important;
}

.post-content .has-medium-font-size {
  font-size: 1.05rem !important;
}

.post-content .has-large-font-size {
  font-size: clamp(1.39rem, 1.39rem + ((1vw - 0.2rem) * 0.767), 1.85rem) !important;
}

.post-content .has-x-large-font-size {
  font-size: clamp(1.85rem, 1.85rem + ((1vw - 0.2rem) * 1.083), 2.5rem) !important;
}

.post-content .has-xx-large-font-size {
  font-size: clamp(2.5rem, 2.5rem + ((1vw - 0.2rem) * 1.283), 3.27rem) !important;
}

/* .oxy-stock-content-styles img (oxygen-framework) */
.post-content img {
  max-width: 100%;
  height: auto;
}

.post-content figure {
  margin: 1em 40px;
}

/* --- Related-Slider "Leopold Insights" (section-219-471) ---
   Markup/Basis-Styles = .blog-* aus blog.css; hier nur die
   Abweichungen des 471-Templates gegenueber der Startseite. */

/* #section-219-471 > inner: padding-top 127px (statt 85px) */
.blog-section.single-related > .section-inner {
  padding-top: 127px;
}

/* Startseite hat bottom:-200px (nur #section-8069-12) — hier Default */
.blog-section.single-related.has-blured-end:after {
  bottom: 0;
}

/* text_block-225-471: max-width 500px (statt 815px) */
.blog-section.single-related .blog-intro-text {
  max-width: 500px;
}

/* =============================================================
   Breakpoints (471.css)
   ============================================================= */

@media (max-width: 1920px) {
  .post-hero > .section-inner {
    padding-top: 287px;
  }
}

@media (max-width: 1399px) {
  .post-hero-row {
    text-align: right;
    align-items: flex-start;
    padding-top: 0;
  }

  .post-hero-content {
    margin-right: 0;
  }

  .post-title {
    font-size: 55px;
    text-align: left;
  }

  .post-intro {
    text-align: left;
  }
}

@media (max-width: 767px) {
  .post-hero > .section-inner {
    padding-top: 139px;
  }

  .post-hero-row {
    min-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 8px;
    text-align: left;
    align-items: center;
  }

  .post-hero-content {
    width: 100%;
    position: relative;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: center;
  }

  .post-title {
    margin-right: 0;
    text-align: center;
    font-size: 30px;
  }

  .post-intro {
    font-size: 20px;
    text-align: center;
  }
}

@media (max-width: 479px) {
  .post-hero-row {
    padding-left: 20px;
    padding-top: 0;
  }

  .post-hero-content {
    margin-right: 0;
    min-width: 100%;
    width: 100%;
    padding-right: 0;
    position: relative;
  }

  .post-title {
    font-size: 26px;
    margin-right: 0;
  }

  .post-intro {
    margin-right: 0;
    font-size: 18px;
  }
}

/* A11y: Slider-Pfeile sind im Single-Template echte <button> —
   nur UA-Button-Reste neutralisieren, Optik kommt unveraendert
   aus .blog-carousel-arrow (blog.css). */
.single-related .blog-carousel-arrow {
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
}
