/* --- Seitenzahlen (Paginierung) --- */
.wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: .1em;
}

.wp-block-query-pagination-numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.2em;
	padding: .3em .2em;
	line-height: 1.3;
}

.wp-block-query-pagination-numbers .page-numbers.current {
	font-weight: 700;
	text-decoration: none;
}

.wp-block-query-pagination-numbers .page-numbers.dots {
	opacity: .45;
}

.wp-block-query-pagination-numbers a.page-numbers {
	text-underline-offset: 3px;
}

.wp-block-query-pagination-numbers a.page-numbers:hover {
}

.wp-block-query-pagination-numbers a.page-numbers:focus-visible {
	outline: 2px solid var(--wp--preset--color--theme-4);
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.wp-block-query-pagination-numbers {
		gap: 0;
	}
	
	.wp-block-query-pagination-numbers .page-numbers {
		min-width: 1.85em;
		padding: .3em .05em;
		font-size: .95rem;
	}
}

/* --- Ende Seitenzahlen --- */

/* --- Startseiten-Banner --- */
.wp-block-image.start-banner { display: none; }
body.home:not(.paged) .wp-block-image.start-banner { display: block; }
/* --- Ende Startseiten-Banner --- */

/* --- Ueberschriften in Beitraegen --- */
.wp-block-post-content h2,
.entry-content h2 {
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.75rem) !important;
  line-height: 1.2 !important;
}
.wp-block-post-content h3,
.entry-content h3 {
  font-size: clamp(1.2rem, 1.1rem + .4vw, 1.375rem) !important;
  line-height: 1.3 !important;
}
.wp-block-post-content h4,
.entry-content h4 {
  font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem) !important;
  line-height: 1.35 !important;
}
.wp-block-post-content h5,
.wp-block-post-content h6,
.entry-content h5,
.entry-content h6 {
  font-size: 1rem !important;
  line-height: 1.4 !important;
}
/* --- Ende Ueberschriften --- */
/* --- Rezept-Rails (Zubehoer links, Roulette rechts) --- */
/* Grundform: im normalen Fluss (Handy, schmale Fenster) */
.amz-rail { margin: 0 0 28px 0; }
.amz-card { margin: 0 0 22px 0; }
.amz-card-img { display: block; width: 100%; max-width: 150px; height: auto;
  margin: 0 auto 10px auto; border: 0; }
.amz-card-name { margin: 0 0 4px 0; line-height: 1.3; }
.amz-card-meta { margin: 0 0 8px 0; font-size: 13px; color: #6b6b52; line-height: 1.35; }
.amz-card-desc { margin: 0 0 8px 0; font-size: 14px; line-height: 1.45; }
.amz-card-cta { margin: 0; font-size: 14px; }
.amz-fine { font-size: 12px; color: #6b6b52; line-height: 1.4; }
.rezept-roulette-rail { display: none; }
.roulette-mobile { display: none; }

/* Handy/Tablet: Roulette unter dem Rezept, zwei Kacheln nebeneinander */
@media (max-width: 1199px) {
  .rezept-roulette-rail,
  .roulette-mobile {
    display: block;
    position: static;
    margin: 8px 0 28px 0;
    padding: 12px;
    background: #fff;
    border: 2px solid #7a8b3d;
    border-radius: 16px;
  }
  .roulette-mobile { margin-bottom: 32px; }

  /* Beitrag 3223 hat die Roulette schon im Text, direkt vor den Produkten */
  body.postid-3223 .rz-wrap > .rezept-roulette-rail { display: none; }

  .rezept-roulette-rail .wp-block-post-template,
  .roulette-mobile .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px;
  }
  .rezept-roulette-rail .wp-block-post-featured-image,
  .roulette-mobile .wp-block-post-featured-image { margin: 0; }
  .rezept-roulette-rail .wp-block-post-featured-image img,
  .roulette-mobile .wp-block-post-featured-image img { width: 100%; height: auto; display: block; }
  .rezept-roulette-rail .wp-block-post-title,
  .roulette-mobile .wp-block-post-title { margin: 8px 0 0 0; font-weight: 600; }
  .rezept-roulette-rail .wp-block-post-title a,
  .roulette-mobile .wp-block-post-title a { text-decoration: none; }
}

@media (min-width: 1200px) {
  .wp-block-post-content { position: relative; }
  .rz-wrap { position: relative; }

  .amz-rail {
    position: absolute;
    top: 0;
    left: calc(50% - 586px);
    width: 260px;
    margin: 0;
    padding: 14px;
    box-sizing: border-box;
    background: #fffdf4;
    border: 1px solid #e8dfc6;
    border-radius: 14px;
  }
  .amz-rail .amz-rail-title {
    font-size: 18px !important;
    line-height: 1.2 !important;
    margin: 0 0 12px 0 !important;
  }
  .amz-rail .amz-card { margin-bottom: 20px; }
  .amz-rail .amz-card-desc a { text-decoration-color: rgba(58, 36, 23, .28); }

  .rezept-roulette-rail {
    display: block;
    position: absolute;
    top: 0;
    right: calc(50% - 586px);
    width: 260px;
    box-sizing: border-box;
    padding: 12px;
    background: #fff;
    border: 2px solid #7a8b3d;
    border-radius: 16px;
  }
  .rezept-roulette-rail .wp-block-post-template { gap: 14px; }
  .rezept-roulette-rail .wp-block-post-featured-image { margin: 0; }
  .rezept-roulette-rail .wp-block-post-featured-image img { width: 100%; height: auto; display: block; }
  .rezept-roulette-rail .wp-block-post-title { margin: 8px 0 0 0; font-weight: 600; }
  .rezept-roulette-rail .wp-block-post-title a { text-decoration: none; }
}
/* --- Ende Rezept-Rails --- */