/**
 * Pizza Julie — Normal content pages only (body.pj-normal-page)
 * Does not affect homepage, ordering, checkout, or order-type pages.
 */

body.pj-normal-page {
	--pj-page-red: #8b0f1a;
	--pj-page-red-dark: #160006;
	--pj-page-gold: #d4af37;
	--pj-page-gold-light: #e8d08a;
	--pj-page-cream: #faf6ef;
	--pj-page-cream-soft: #fff8ea;
	--pj-page-beige: #ede4d6;
	--pj-page-charcoal: #1f1a17;
	--pj-page-muted: #5c534c;
	--pj-page-white: #ffffff;
	--pj-page-shadow: 0 10px 28px rgba(22, 0, 6, 0.07), 0 2px 8px rgba(139, 15, 26, 0.04);
	--pj-page-radius: 16px;
	background: #faf6ef !important;
	background-color: #faf6ef !important;
	background-image: none !important;
	color: var(--pj-page-charcoal);
	overflow-x: hidden;
}

/* Premium cream background — show through Kadence page shells */
body.pj-normal-page #wrapper,
body.pj-normal-page #inner-wrap,
body.pj-normal-page .site,
body.pj-normal-page .site-main,
body.pj-normal-page #primary.content-area,
body.pj-normal-page .content-bg,
body.pj-normal-page.content-style-boxed .content-bg,
body.pj-normal-page.content-style-unboxed .site {
	background: transparent !important;
}

/* Page title hero — see Task 15 shared burgundy banner below */
body.pj-normal-page .entry-hero.page-hero-section .hero-section-overlay {
	display: none;
}

body.pj-normal-page .entry-hero.page-hero-section .entry-header.page-title {
	min-height: 0;
	margin: 0;
	padding: 0;
	text-align: center;
}

/* Centered content area */
body.pj-normal-page #primary.content-area,
body.pj-normal-page #primary .content-container.site-container,
body.pj-normal-page #primary .content-wrap {
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
}

body.pj-normal-page #primary .content-container.site-container {
	padding-left: 1rem;
	padding-right: 1rem;
}

body.pj-normal-page article.page.entry {
	margin-top: 0;
	border: none;
	background: transparent;
	box-shadow: none;
}

/* White content card */
body.pj-normal-page article.page .entry-content-wrap {
	margin-top: clamp(1.25rem, 3vw, 2rem);
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
	padding: 32px;
	border: 1px solid rgba(212, 175, 55, 0.16);
	border-radius: var(--pj-page-radius);
	background: var(--pj-page-white);
	box-shadow: var(--pj-page-shadow);
}

body.pj-normal-page article.page .entry-content,
body.pj-normal-page article.page .entry-content.single-content {
	max-width: none;
	margin: 0;
	padding: 0;
	color: var(--pj-page-charcoal);
	font-size: 1rem;
	line-height: 1.65;
}

/* Empty-page admin placeholder */
body.pj-normal-page .pj-page-placeholder {
	margin: 0;
	padding: 1.5rem 0.5rem;
	color: var(--pj-page-muted);
	font-size: 1rem;
	font-style: italic;
	line-height: 1.55;
	text-align: center;
}

/* Legal / content typography */
body.pj-normal-page .entry-content > :first-child {
	margin-top: 0;
}

body.pj-normal-page .entry-content > :last-child {
	margin-bottom: 0;
}

body.pj-normal-page .entry-content h2 {
	margin: 1.75rem 0 0.85rem;
	padding-bottom: 0.45rem;
	border-bottom: 2px solid rgba(212, 175, 55, 0.55);
	color: var(--pj-page-red);
	font-size: clamp(1.2rem, 3.8vw, 1.45rem);
	font-weight: 700;
	line-height: 1.3;
}

body.pj-normal-page .entry-content h2:first-child {
	margin-top: 0;
}

body.pj-normal-page .entry-content h3 {
	margin: 1.35rem 0 0.65rem;
	color: var(--pj-page-red-dark);
	font-size: clamp(1.05rem, 3.2vw, 1.2rem);
	font-weight: 700;
	line-height: 1.35;
}

body.pj-normal-page .entry-content p {
	margin: 0 0 1rem;
}

body.pj-normal-page .entry-content ul,
body.pj-normal-page .entry-content ol {
	margin: 0 0 1rem;
	padding-left: 1.35rem;
}

body.pj-normal-page .entry-content li {
	margin: 0.35rem 0;
}

body.pj-normal-page .entry-content li::marker {
	color: var(--pj-page-gold);
}

body.pj-normal-page .entry-content a {
	color: var(--pj-page-red);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(201, 162, 39, 0.55);
	text-underline-offset: 0.15em;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

body.pj-normal-page .entry-content a:hover,
body.pj-normal-page .entry-content a:focus-visible {
	color: var(--pj-page-red-dark);
	text-decoration-color: var(--pj-page-gold);
}

body.pj-normal-page .entry-content strong {
	color: var(--pj-page-charcoal);
	font-weight: 700;
}

body.pj-normal-page .entry-content table {
	width: 100%;
	margin: 0 0 1.25rem;
	border-collapse: collapse;
	font-size: 0.95rem;
	line-height: 1.5;
}

body.pj-normal-page .entry-content th,
body.pj-normal-page .entry-content td {
	padding: 0.65rem 0.75rem;
	border: 1px solid rgba(237, 228, 214, 0.95);
	text-align: left;
	vertical-align: top;
}

body.pj-normal-page .entry-content th {
	background: rgba(201, 162, 39, 0.1);
	color: var(--pj-page-red-dark);
	font-weight: 700;
}

body.pj-normal-page .entry-content blockquote {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	border-left: 3px solid var(--pj-page-gold);
	border-radius: 0 10px 10px 0;
	background: rgba(250, 246, 239, 0.85);
	color: var(--pj-page-muted);
}

/* Bestellverlauf — keep WPPizza markup functional, light shell polish only */
body.pj-normal-page .entry-content .wppizza-order-history,
body.pj-normal-page .entry-content .wppizza-login {
	max-width: 100%;
}

body.pj-normal-page .entry-content .wppizza-login-error,
body.pj-normal-page .entry-content .wppizza-order-error {
	border-left: 3px solid var(--pj-page-red);
	border-radius: 0 10px 10px 0;
	background: rgba(139, 26, 31, 0.06);
}

/* Display-only footer info (contact + address + opening hours) */
.pj-site-footer-info-wrap {
	padding: 1rem 1rem 0.25rem;
}

.pj-footer-info--site-footer {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin: 0 0 1.25rem;
}

.pj-footer-info--site-footer .pj-footer-info__block {
	padding: 1rem 1.05rem;
	border: 1px solid rgba(201, 162, 39, 0.28);
	border-radius: 14px;
	background: rgba(250, 246, 239, 0.72);
}

.pj-footer-info--site-footer .pj-footer-info__title,
.pj-opening-hours--site-footer .pj-opening-hours__title,
.pj-opening-hours--kontakt .pj-opening-hours__title {
	margin: 0 0 0.65rem;
	color: var(--pj-page-red-dark);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pj-footer-info--site-footer .pj-footer-info__list,
.pj-opening-hours--site-footer .pj-opening-hours__list,
.pj-opening-hours--kontakt .pj-opening-hours__list {
	margin: 0;
	max-width: 24rem;
}

.pj-footer-info--site-footer .pj-footer-info__row,
.pj-opening-hours--site-footer .pj-opening-hours__row,
.pj-opening-hours--kontakt .pj-opening-hours__row {
	display: grid;
	grid-template-columns: minmax(5.5rem, auto) minmax(0, 1fr);
	gap: 0.2rem 0.85rem;
	margin: 0;
}

.pj-footer-info--site-footer .pj-footer-info__row + .pj-footer-info__row,
.pj-opening-hours--site-footer .pj-opening-hours__row + .pj-opening-hours__row,
.pj-opening-hours--kontakt .pj-opening-hours__row + .pj-opening-hours__row {
	margin-top: 0.2rem;
}

.pj-footer-info--site-footer .pj-footer-info__row dt,
.pj-footer-info--site-footer .pj-footer-info__row dd,
.pj-opening-hours--site-footer .pj-opening-hours__row dt,
.pj-opening-hours--site-footer .pj-opening-hours__row dd,
.pj-opening-hours--kontakt .pj-opening-hours__row dt,
.pj-opening-hours--kontakt .pj-opening-hours__row dd {
	margin: 0;
	color: var(--pj-page-charcoal);
	font-size: 0.92rem;
	line-height: 1.45;
}

.pj-footer-info--site-footer .pj-footer-info__row dt,
.pj-opening-hours--site-footer .pj-opening-hours__row dt,
.pj-opening-hours--kontakt .pj-opening-hours__row dt {
	font-weight: 700;
}

.pj-footer-info--site-footer .pj-footer-info__row dd a {
	color: var(--pj-page-red-dark);
	font-weight: 700;
	text-decoration: none;
}

.pj-footer-info--site-footer .pj-footer-info__row dd a:hover {
	color: var(--pj-page-red);
}

.pj-opening-hours--site-footer,
.pj-opening-hours--kontakt {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

body.pj-order-type-page .pj-site-footer-info-wrap {
	padding-top: 0.5rem;
}

@media only screen and (min-width: 768px) {
	.pj-footer-info--site-footer {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem 1.25rem;
	}
}

@media only screen and (max-width: 767px) {
	body.pj-normal-page #primary .content-container.site-container {
		padding-left: 0.85rem;
		padding-right: 0.85rem;
	}

	body.pj-normal-page article.page .entry-content-wrap {
		padding: 18px;
		border-radius: 16px;
		margin-left: 0;
		margin-right: 0;
	}

	body.pj-normal-page .entry-content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.pj-normal-page .entry-content th,
	body.pj-normal-page .entry-content td {
		min-width: 8rem;
	}
}

/* Legal pages — same branded footer as homepage */
body.pj-legal-page {
	--pj-page-gold-light: #e8d08a;
}

/* ==========================================================================
   Legal + normal content pages — transparent Kadence shells
   Background + burgundy hero: Task 15 below
   ========================================================================== */

body.pj-legal-page,
body.pj-history-page,
body.pj-normal-page.page-agb,
body.pj-normal-page.page-impressum,
body.pj-normal-page.page-datenschutzerklarung,
body.pj-normal-page.page-datenschutzerklaerung,
body.pj-normal-page.page-bestellverlauf {
	background: #faf6ef !important;
	background-color: #faf6ef !important;
	background-image: none !important;
}

body.pj-legal-page #wrapper,
body.pj-legal-page #inner-wrap,
body.pj-legal-page .site,
body.pj-legal-page .site-main,
body.pj-legal-page #primary,
body.pj-legal-page #primary.content-area,
body.pj-legal-page .content-wrap,
body.pj-legal-page .content-bg,
body.pj-legal-page.content-style-boxed .content-bg,
body.pj-legal-page.content-style-unboxed .site,
body.pj-history-page #wrapper,
body.pj-history-page #inner-wrap,
body.pj-history-page .site,
body.pj-history-page .site-main,
body.pj-history-page #primary,
body.pj-history-page #primary.content-area,
body.pj-history-page .content-wrap,
body.pj-history-page .content-bg,
body.pj-history-page.content-style-boxed .content-bg,
body.pj-history-page.content-style-unboxed .site {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
}

body.pj-legal-page .entry-hero.page-hero-section .hero-section-overlay,
body.pj-history-page .entry-hero.page-hero-section .hero-section-overlay {
	display: none !important;
	opacity: 0 !important;
	background: transparent !important;
}

body.pj-legal-page .entry-hero.page-hero-section .entry-header.page-title,
body.pj-history-page .entry-hero.page-hero-section .entry-header.page-title {
	background: transparent !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: center;
}

/* Premium centered content card */
body.pj-legal-page article.page.entry,
body.pj-history-page article.page.entry {
	margin: 0 !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.pj-legal-page #primary .content-container.site-container,
body.pj-legal-page #primary .content-wrap,
body.pj-history-page #primary .content-container.site-container,
body.pj-history-page #primary .content-wrap {
	max-width: 980px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

body.pj-legal-page article.page .entry-content-wrap {
	max-width: 980px !important;
	margin: 56px auto 80px !important;
	padding: 42px 44px !important;
	border: 1px solid rgba(212, 175, 55, 0.2) !important;
	border-radius: 18px !important;
	background: #fffefb !important;
	box-shadow: 0 22px 60px rgba(60, 20, 10, 0.12) !important;
}

body.pj-legal-page article.page .entry-content,
body.pj-legal-page article.page .entry-content.single-content,
body.pj-history-page article.page .entry-content,
body.pj-history-page article.page .entry-content.single-content {
	background: transparent !important;
}

/* Legal headings inside card — exclude Mein Julie burgundy header bars */
body.pj-legal-page .entry-content h2,
body.pj-history-page .entry-content h2:not(.pj-mein-julie-section__title):not(.pj-mein-julie-intro__title) {
	color: #8b0f1a !important;
	border-bottom: 2px solid #d4af37 !important;
}

body.pj-history-page .pj-mein-julie-section__header .pj-mein-julie-section__title,
body.pj-history-page .pj-mein-julie-intro__title {
	color: #fff4e0 !important;
	border-bottom: none !important;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

body.pj-legal-page .entry-content h3,
body.pj-history-page .entry-content h3 {
	color: #8b0f1a !important;
}

@media only screen and (max-width: 767px) {
	body.pj-legal-page article.page .entry-content-wrap {
		margin: 16px !important;
		padding: 24px 18px !important;
		border-radius: 16px !important;
	}
}

body.pj-normal-page #colophon.site-footer,
body.pj-legal-page #colophon.site-footer,
body.pj-history-page #colophon.site-footer,
body.pj-order-page #colophon.site-footer,
body.pj-checkout-page:not(.pj-thankyou-page) #colophon.site-footer {
	display: none !important;
}

body.pj-normal-page .pj-home-footer,
body.pj-legal-page .pj-home-footer,
body.pj-history-page .pj-home-footer,
body.pj-order-page .pj-home-footer,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-home-footer {
	padding: clamp(1.75rem, 4vw, 2.25rem) 0 calc(1.75rem + env(safe-area-inset-bottom, 0));
	background: linear-gradient(180deg, #3a1215 0%, #2b1718 100%);
	color: rgba(255, 251, 244, 0.9);
}

body.pj-order-page,
body.pj-checkout-page:not(.pj-thankyou-page) {
	--pj-page-gold-light: #e8d08a;
}

body.pj-normal-page .pj-home-footer__inner,
body.pj-legal-page .pj-home-footer__inner,
body.pj-history-page .pj-home-footer__inner,
body.pj-order-page .pj-home-footer__inner,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-home-footer__inner {
	width: min(100%, 1200px);
	margin-inline: auto;
	padding-inline: clamp(1rem, 3vw, 1.5rem);
}

body.pj-normal-page .pj-footer-info--home-footer,
body.pj-legal-page .pj-footer-info--home-footer,
body.pj-history-page .pj-footer-info--home-footer,
body.pj-order-page .pj-footer-info--home-footer,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-footer-info--home-footer {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin-bottom: 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(201, 162, 39, 0.22);
}

body.pj-normal-page .pj-footer-info--home-footer .pj-footer-info__title,
body.pj-normal-page .pj-opening-hours--home-footer .pj-opening-hours__title,
body.pj-legal-page .pj-footer-info--home-footer .pj-footer-info__title,
body.pj-legal-page .pj-opening-hours--home-footer .pj-opening-hours__title,
body.pj-history-page .pj-footer-info--home-footer .pj-footer-info__title,
body.pj-history-page .pj-opening-hours--home-footer .pj-opening-hours__title,
body.pj-order-page .pj-footer-info--home-footer .pj-footer-info__title,
body.pj-order-page .pj-opening-hours--home-footer .pj-opening-hours__title,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-footer-info--home-footer .pj-footer-info__title,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-opening-hours--home-footer .pj-opening-hours__title {
	margin: 0 0 0.75rem;
	color: var(--pj-page-gold-light);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

body.pj-normal-page .pj-footer-info--home-footer .pj-footer-info__list,
body.pj-normal-page .pj-opening-hours--home-footer .pj-opening-hours__list,
body.pj-legal-page .pj-footer-info--home-footer .pj-footer-info__list,
body.pj-legal-page .pj-opening-hours--home-footer .pj-opening-hours__list,
body.pj-history-page .pj-footer-info--home-footer .pj-footer-info__list,
body.pj-history-page .pj-opening-hours--home-footer .pj-opening-hours__list,
body.pj-order-page .pj-footer-info--home-footer .pj-footer-info__list,
body.pj-order-page .pj-opening-hours--home-footer .pj-opening-hours__list,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-footer-info--home-footer .pj-footer-info__list,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-opening-hours--home-footer .pj-opening-hours__list {
	margin: 0;
	max-width: 28rem;
}

body.pj-normal-page .pj-footer-info--home-footer .pj-footer-info__row,
body.pj-normal-page .pj-opening-hours--home-footer .pj-opening-hours__row,
body.pj-legal-page .pj-footer-info--home-footer .pj-footer-info__row,
body.pj-legal-page .pj-opening-hours--home-footer .pj-opening-hours__row,
body.pj-history-page .pj-footer-info--home-footer .pj-footer-info__row,
body.pj-history-page .pj-opening-hours--home-footer .pj-opening-hours__row,
body.pj-order-page .pj-footer-info--home-footer .pj-footer-info__row,
body.pj-order-page .pj-opening-hours--home-footer .pj-opening-hours__row,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-footer-info--home-footer .pj-footer-info__row,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-opening-hours--home-footer .pj-opening-hours__row {
	display: grid;
	grid-template-columns: minmax(6.5rem, auto) minmax(0, 1fr);
	gap: 0.25rem 1rem;
	margin: 0;
}

body.pj-normal-page .pj-footer-info--home-footer .pj-footer-info__row + .pj-footer-info__row,
body.pj-normal-page .pj-opening-hours--home-footer .pj-opening-hours__row + .pj-opening-hours__row,
body.pj-legal-page .pj-footer-info--home-footer .pj-footer-info__row + .pj-footer-info__row,
body.pj-legal-page .pj-opening-hours--home-footer .pj-opening-hours__row + .pj-opening-hours__row,
body.pj-history-page .pj-footer-info--home-footer .pj-footer-info__row + .pj-footer-info__row,
body.pj-history-page .pj-opening-hours--home-footer .pj-opening-hours__row + .pj-opening-hours__row,
body.pj-order-page .pj-footer-info--home-footer .pj-footer-info__row + .pj-footer-info__row,
body.pj-order-page .pj-opening-hours--home-footer .pj-opening-hours__row + .pj-opening-hours__row,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-footer-info--home-footer .pj-footer-info__row + .pj-footer-info__row,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-opening-hours--home-footer .pj-opening-hours__row + .pj-opening-hours__row {
	margin-top: 0.25rem;
}

body.pj-normal-page .pj-footer-info--home-footer .pj-footer-info__row dt,
body.pj-normal-page .pj-footer-info--home-footer .pj-footer-info__row dd,
body.pj-normal-page .pj-opening-hours--home-footer .pj-opening-hours__row dt,
body.pj-normal-page .pj-opening-hours--home-footer .pj-opening-hours__row dd,
body.pj-legal-page .pj-footer-info--home-footer .pj-footer-info__row dt,
body.pj-legal-page .pj-footer-info--home-footer .pj-footer-info__row dd,
body.pj-legal-page .pj-opening-hours--home-footer .pj-opening-hours__row dt,
body.pj-legal-page .pj-opening-hours--home-footer .pj-opening-hours__row dd,
body.pj-history-page .pj-footer-info--home-footer .pj-footer-info__row dt,
body.pj-history-page .pj-footer-info--home-footer .pj-footer-info__row dd,
body.pj-history-page .pj-opening-hours--home-footer .pj-opening-hours__row dt,
body.pj-history-page .pj-opening-hours--home-footer .pj-opening-hours__row dd,
body.pj-order-page .pj-footer-info--home-footer .pj-footer-info__row dt,
body.pj-order-page .pj-footer-info--home-footer .pj-footer-info__row dd,
body.pj-order-page .pj-opening-hours--home-footer .pj-opening-hours__row dt,
body.pj-order-page .pj-opening-hours--home-footer .pj-opening-hours__row dd,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-footer-info--home-footer .pj-footer-info__row dt,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-footer-info--home-footer .pj-footer-info__row dd,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-opening-hours--home-footer .pj-opening-hours__row dt,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-opening-hours--home-footer .pj-opening-hours__row dd {
	margin: 0;
	color: rgba(255, 251, 244, 0.86);
	font-size: clamp(0.88rem, 2.4vw, 0.95rem);
	line-height: 1.45;
}

body.pj-normal-page .pj-footer-info--home-footer .pj-footer-info__row dt,
body.pj-normal-page .pj-opening-hours--home-footer .pj-opening-hours__row dt,
body.pj-legal-page .pj-footer-info--home-footer .pj-footer-info__row dt,
body.pj-legal-page .pj-opening-hours--home-footer .pj-opening-hours__row dt,
body.pj-history-page .pj-footer-info--home-footer .pj-footer-info__row dt,
body.pj-history-page .pj-opening-hours--home-footer .pj-opening-hours__row dt,
body.pj-order-page .pj-footer-info--home-footer .pj-footer-info__row dt,
body.pj-order-page .pj-opening-hours--home-footer .pj-opening-hours__row dt,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-footer-info--home-footer .pj-footer-info__row dt,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-opening-hours--home-footer .pj-opening-hours__row dt {
	font-weight: 800;
}

body.pj-normal-page .pj-footer-info--home-footer .pj-footer-info__row dd a,
body.pj-legal-page .pj-footer-info--home-footer .pj-footer-info__row dd a,
body.pj-history-page .pj-footer-info--home-footer .pj-footer-info__row dd a,
body.pj-order-page .pj-footer-info--home-footer .pj-footer-info__row dd a,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-footer-info--home-footer .pj-footer-info__row dd a {
	color: rgba(255, 251, 244, 0.92);
	font-weight: 700;
	text-decoration: none;
}

body.pj-normal-page .pj-footer-info--home-footer .pj-footer-info__row dd a:hover,
body.pj-legal-page .pj-footer-info--home-footer .pj-footer-info__row dd a:hover,
body.pj-history-page .pj-footer-info--home-footer .pj-footer-info__row dd a:hover,
body.pj-order-page .pj-footer-info--home-footer .pj-footer-info__row dd a:hover,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-footer-info--home-footer .pj-footer-info__row dd a:hover {
	color: var(--pj-page-gold-light);
}

body.pj-normal-page .pj-home-footer__nav,
body.pj-legal-page .pj-home-footer__nav,
body.pj-history-page .pj-home-footer__nav,
body.pj-order-page .pj-home-footer__nav,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-home-footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.25rem;
	margin-bottom: 0.85rem;
}

body.pj-normal-page .pj-home-footer__nav a,
body.pj-legal-page .pj-home-footer__nav a,
body.pj-history-page .pj-home-footer__nav a,
body.pj-order-page .pj-home-footer__nav a,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-home-footer__nav a {
	color: rgba(255, 251, 244, 0.92);
	font-size: clamp(0.9rem, 2.5vw, 0.98rem);
	font-weight: 700;
	text-decoration: none;
}

body.pj-normal-page .pj-home-footer__nav a:hover,
body.pj-legal-page .pj-home-footer__nav a:hover,
body.pj-history-page .pj-home-footer__nav a:hover,
body.pj-order-page .pj-home-footer__nav a:hover,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-home-footer__nav a:hover {
	color: var(--pj-page-gold-light);
}

body.pj-normal-page .pj-home-footer__copy,
body.pj-legal-page .pj-home-footer__copy,
body.pj-history-page .pj-home-footer__copy,
body.pj-order-page .pj-home-footer__copy,
body.pj-checkout-page:not(.pj-thankyou-page) .pj-home-footer__copy {
	margin: 0;
	color: rgba(255, 251, 244, 0.58);
	font-size: 0.85rem;
}

@media only screen and (min-width: 768px) {
	body.pj-normal-page .pj-footer-info--home-footer,
	body.pj-legal-page .pj-footer-info--home-footer,
	body.pj-history-page .pj-footer-info--home-footer,
	body.pj-order-page .pj-footer-info--home-footer,
	body.pj-checkout-page:not(.pj-thankyou-page) .pj-footer-info--home-footer {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.5rem 2rem;
	}
}

/* ==========================================================================
   Task 15 — Premium page shell (normal, legal, Bestellverlauf)
   Cream background + burgundy hero like /online-bestellen/
   Does not affect checkout, confirmation, or /online-bestellen/.
   ========================================================================== */

body.pj-normal-page .entry-hero.page-hero-section,
body.pj-legal-page .entry-hero.page-hero-section,
body.pj-history-page .entry-hero.page-hero-section {
	background: transparent !important;
	background-image: none !important;
	border-bottom: none !important;
	box-shadow: none !important;
	padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 3vw, 1.5rem) 0 !important;
}

body.pj-normal-page .entry-hero.page-hero-section .entry-hero-container-inner,
body.pj-legal-page .entry-hero.page-hero-section .entry-hero-container-inner,
body.pj-history-page .entry-hero.page-hero-section .entry-hero-container-inner {
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	width: 100%;
	max-width: 1080px;
	min-height: clamp(160px, 22vw, 220px);
	margin: 0 auto;
	padding: clamp(1.25rem, 3vw, 1.5rem) clamp(1.15rem, 3vw, 1.35rem) !important;
	border: none !important;
	border-radius: 14px;
	background-color: #6f1217 !important;
	background-image:
		radial-gradient(circle at 88% 42%, rgba(201, 162, 39, 0.22) 0%, transparent 42%),
		radial-gradient(circle at 78% 68%, rgba(255, 255, 255, 0.08) 0%, transparent 36%),
		linear-gradient(118deg, #4a0c10 0%, #6f1217 42%, #8b1a1f 100%) !important;
	box-shadow: 0 14px 36px rgba(31, 26, 23, 0.14) !important;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.pj-normal-page .entry-hero.page-hero-section .entry-hero-container-inner::before,
body.pj-normal-page .entry-hero.page-hero-section .entry-hero-container-inner::after,
body.pj-legal-page .entry-hero.page-hero-section .entry-hero-container-inner::before,
body.pj-legal-page .entry-hero.page-hero-section .entry-hero-container-inner::after,
body.pj-history-page .entry-hero.page-hero-section .entry-hero-container-inner::before,
body.pj-history-page .entry-hero.page-hero-section .entry-hero-container-inner::after {
	content: "";
	position: absolute;
	border-radius: 999px;
	pointer-events: none;
}

body.pj-normal-page .entry-hero.page-hero-section .entry-hero-container-inner::before,
body.pj-legal-page .entry-hero.page-hero-section .entry-hero-container-inner::before,
body.pj-history-page .entry-hero.page-hero-section .entry-hero-container-inner::before {
	top: -2.5rem;
	right: 8%;
	width: clamp(7rem, 18vw, 11rem);
	height: clamp(7rem, 18vw, 11rem);
	background: radial-gradient(circle, rgba(201, 162, 39, 0.28) 0%, transparent 68%);
}

body.pj-normal-page .entry-hero.page-hero-section .entry-hero-container-inner::after,
body.pj-legal-page .entry-hero.page-hero-section .entry-hero-container-inner::after,
body.pj-history-page .entry-hero.page-hero-section .entry-hero-container-inner::after {
	bottom: -3rem;
	left: 6%;
	width: clamp(8rem, 20vw, 12rem);
	height: clamp(8rem, 20vw, 12rem);
	background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, transparent 70%);
}

body.pj-normal-page .entry-hero.page-hero-section .entry-header.page-title,
body.pj-legal-page .entry-hero.page-hero-section .entry-header.page-title,
body.pj-history-page .entry-hero.page-hero-section .entry-header.page-title {
	position: relative;
	z-index: 1;
	text-align: center;
}

body.pj-normal-page .entry-hero.page-hero-section .entry-title,
body.pj-normal-page .entry-hero-container-inner .entry-title,
body.pj-legal-page .entry-hero.page-hero-section .entry-title,
body.pj-legal-page .entry-hero-container-inner .entry-title,
body.pj-history-page .entry-hero.page-hero-section .entry-title,
body.pj-history-page .entry-hero-container-inner .entry-title {
	display: inline-block;
	margin: 0 auto;
	padding-bottom: 0.55rem;
	border-bottom: 2px solid rgba(232, 208, 138, 0.75);
	color: #fff !important;
	font-size: clamp(1.75rem, 4.5vw, 2.35rem) !important;
	font-weight: 700 !important;
	line-height: 1.12;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 14px rgba(20, 5, 6, 0.28);
}

/* Mein Julie (Bestellverlauf) hero subtitle */
body.pj-history-page .entry-hero.page-hero-section .entry-title::after {
	content: "Ihr persönlicher Bereich für Bestellungen, Kundendaten und schnellen Zugriff auf Pizza Julie.";
	display: block;
	margin-top: 0.65rem;
	padding-top: 0;
	border-bottom: none;
	color: rgba(255, 255, 255, 0.94);
	font-size: clamp(0.95rem, 2.6vw, 1.05rem);
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: 0;
	text-shadow: 0 1px 8px rgba(20, 5, 6, 0.22);
}

/* Bestellverlauf — wider shell, transparent content wrap (WPPizza card inside) */
body.pj-history-page #primary .content-container.site-container,
body.pj-history-page #primary .content-wrap {
	max-width: 1080px !important;
	width: calc(100% - 48px);
	margin-left: auto !important;
	margin-right: auto !important;
}

body.pj-history-page article.page .entry-content-wrap {
	max-width: 1080px !important;
	margin: 42px auto 36px !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.pj-history-page article.page .entry-content,
body.pj-history-page article.page .entry-content.single-content {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

@media only screen and (max-width: 767px) {
	body.pj-normal-page .entry-hero.page-hero-section,
	body.pj-legal-page .entry-hero.page-hero-section,
	body.pj-history-page .entry-hero.page-hero-section {
		padding: 0 !important;
	}

	body.pj-normal-page .entry-hero.page-hero-section .entry-hero-container-inner,
	body.pj-legal-page .entry-hero.page-hero-section .entry-hero-container-inner,
	body.pj-history-page .entry-hero.page-hero-section .entry-hero-container-inner {
		min-height: 150px;
		border-radius: 0 0 14px 14px;
		padding: 1rem 1rem 1.1rem !important;
	}

	body.pj-history-page #primary .content-container.site-container,
	body.pj-history-page #primary .content-wrap {
		width: 100%;
		padding-left: 12px;
		padding-right: 12px;
	}

	body.pj-history-page article.page .entry-content-wrap {
		margin: 24px auto 28px !important;
		padding: 0 !important;
	}
}

/* ==========================================================================
   Task 18 — Mein Julie customer area (Bestellverlauf page)
   Logged-out intro + logged-in dashboard cards above WPPizza order history.
   ========================================================================== */

body.pj-history-page .pj-mein-julie {
	box-sizing: border-box;
	width: 100%;
	max-width: 1080px;
	margin: 0 auto 28px;
}

body.pj-history-page .pj-mein-julie-intro {
	box-sizing: border-box;
	margin: 0 0 22px;
	padding: 0;
	border: 1px solid rgba(212, 175, 55, 0.28);
	border-radius: 18px;
	background: #fffefb;
	box-shadow: 0 22px 60px rgba(60, 20, 10, 0.12);
	overflow: hidden;
	text-align: center;
}

body.pj-history-page .pj-mein-julie-intro__title {
	margin: 0;
	padding: 14px 18px;
	border-bottom: 2px solid rgba(212, 175, 55, 0.65) !important;
	background: #8b0f1a;
	color: #fff4e0 !important;
	font-size: clamp(17px, 2.4vw, 21px);
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

body.pj-history-page .pj-mein-julie-intro__text {
	margin: 0 auto;
	padding: 18px 22px 0;
	max-width: 640px;
	color: #2b1a16;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.55;
}

body.pj-history-page .pj-mein-julie-features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 0 0 22px;
	padding: 18px 22px 0;
	list-style: none;
}

body.pj-history-page .pj-mein-julie-features__item {
	box-sizing: border-box;
	margin: 0;
	padding: 16px 18px 16px 44px;
	border: 1px solid rgba(212, 175, 55, 0.28);
	border-radius: 18px;
	background: #fffefb;
	box-shadow: 0 12px 32px rgba(60, 20, 10, 0.08);
	color: #2b1a16;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	position: relative;
}

body.pj-history-page .pj-mein-julie-features__item::before {
	content: "";
	position: absolute;
	top: 18px;
	left: 18px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #d4af37;
	box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
}

body.pj-history-page .pj-mein-julie-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 0 22px 22px;
}

body.pj-history-page .pj-mein-julie-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 48px;
	padding: 0 26px;
	border: 1px solid rgba(212, 175, 55, 0.45);
	border-radius: 999px;
	background: #8b0f1a;
	color: #fff4e0 !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.2;
	text-decoration: none !important;
	box-shadow: 0 12px 28px rgba(139, 15, 26, 0.22);
	transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

body.pj-history-page .pj-mein-julie-btn:hover,
body.pj-history-page .pj-mein-julie-btn:focus {
	background: #6e0811;
	color: #fff4e0 !important;
	outline: none;
	box-shadow: 0 14px 32px rgba(139, 15, 26, 0.28);
}

body.pj-history-page .pj-mein-julie-btn--secondary {
	background: #fff8ea;
	color: #8b0f1a !important;
	border-color: rgba(212, 175, 55, 0.55);
	box-shadow: 0 8px 22px rgba(60, 20, 10, 0.08);
}

body.pj-history-page .pj-mein-julie-btn--secondary:hover,
body.pj-history-page .pj-mein-julie-btn--secondary:focus {
	background: #fff4e0;
	color: #6e0811 !important;
}

body.pj-history-page .pj-mein-julie-dashboard {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 0 0 18px;
}

body.pj-history-page .pj-mein-julie-card {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 24px 24px 22px;
	border: 1px solid rgba(212, 175, 55, 0.28);
	border-radius: 20px;
	background: #fffefb;
	box-shadow: 0 18px 48px rgba(60, 20, 10, 0.1);
}

body.pj-history-page .pj-mein-julie-card__title {
	margin: 0 0 10px;
	color: #8b0f1a;
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.25;
}

body.pj-history-page .pj-mein-julie-card__text {
	flex: 1 1 auto;
	margin: 0 0 18px;
	color: #2b1a16;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
}

body.pj-history-page .pj-mein-julie-card .pj-mein-julie-btn {
	width: 100%;
}

body.pj-history-page .pj-mein-julie-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 18px;
	margin: 0 0 28px;
}

body.pj-mein-julie-logged-in .pj-mein-julie--member .pj-mein-julie-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 28px;
}

body.pj-mein-julie-logged-in .pj-mein-julie-action-pill {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid rgba(212, 175, 55, 0.55);
	border-radius: 999px;
	background: #fff8ea;
	color: #8b0f1a !important;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
	text-decoration: none !important;
}

body.pj-mein-julie-logged-in .pj-mein-julie-action-pill:hover,
body.pj-mein-julie-logged-in .pj-mein-julie-action-pill:focus {
	background: #fff4e0;
	color: #6e0811 !important;
	outline: none;
}

body.pj-mein-julie-logged-in .pj-mein-julie-action-pill--danger {
	border-color: rgba(139, 15, 26, 0.35);
	background: rgba(139, 15, 26, 0.06);
	color: #8b0f1a !important;
}

body.pj-mein-julie-logged-in .pj-mein-julie-action-pill--danger:hover,
body.pj-mein-julie-logged-in .pj-mein-julie-action-pill--danger:focus {
	background: rgba(139, 15, 26, 0.1);
}

body.pj-history-page .pj-mein-julie-btn--danger {
	background: transparent;
	color: #8b0f1a !important;
	border: 2px solid rgba(139, 15, 26, 0.55);
	box-shadow: none;
}

body.pj-history-page .pj-mein-julie-btn--danger:hover,
body.pj-history-page .pj-mein-julie-btn--danger:focus {
	background: rgba(139, 15, 26, 0.08);
	color: #6e0811 !important;
	box-shadow: none;
}

body.pj-history-page .pj-mein-julie-meta a {
	color: #8b0f1a !important;
	font-size: 14px;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.pj-history-page .pj-mein-julie-meta a:hover,
body.pj-history-page .pj-mein-julie-meta a:focus {
	color: #6e0811 !important;
}

body.pj-history-page .pj-mein-julie-orders-heading {
	box-sizing: border-box;
	margin: 0 0 18px;
	padding: 0 4px;
}

body.pj-history-page .pj-mein-julie-orders-heading__title {
	margin: 0;
	color: #8b0f1a;
	font-size: clamp(1.25rem, 3.2vw, 1.55rem);
	font-weight: 800;
	line-height: 1.25;
}

@media only screen and (max-width: 767px) {
	body.pj-history-page .pj-mein-julie-intro {
		padding: 0;
		border-radius: 18px;
	}

	body.pj-history-page .pj-mein-julie-features {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	body.pj-history-page .pj-mein-julie-features__item {
		padding: 14px 16px 14px 40px;
		font-size: 14px;
	}

	body.pj-history-page .pj-mein-julie-actions {
		flex-direction: column;
		align-items: stretch;
	}

	body.pj-history-page .pj-mein-julie-actions .pj-mein-julie-btn {
		width: 100%;
	}

	body.pj-history-page .pj-mein-julie-dashboard {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	body.pj-history-page .pj-mein-julie-meta {
		flex-direction: column;
		gap: 8px;
		margin-bottom: 22px;
	}

	body.pj-mein-julie-logged-in .pj-mein-julie--member .pj-mein-julie-actions {
		grid-template-columns: 1fr;
		gap: 8px;
		margin-bottom: 22px;
	}
}

/* ==========================================================================
   Task 18 — Mein Julie inline login form polish (loads after Kadence/WPPizza)
   Scoped: body.pj-history-page only. Does not affect /wp-login.php or checkout.
   ========================================================================== */

body.pj-history-page #wppizza-orders-wrap-orderhistory .wppizza-login fieldset.wppizza-fieldset.wppizza-login-fieldset {
	border: none !important;
	border-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-width: 0 !important;
}

body.pj-history-page #wppizza-orders-wrap-orderhistory .wppizza-login .wppizza-login-form,
body.pj-history-page #wppizza-orders-wrap-orderhistory .wppizza-login #loginform {
	width: 100%;
	max-width: 420px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 10px 0;
}

body.pj-history-page #wppizza-orders-wrap-orderhistory .wppizza-login #loginform p.login-username,
body.pj-history-page #wppizza-orders-wrap-orderhistory .wppizza-login #loginform p.login-password,
body.pj-history-page #wppizza-orders-wrap-orderhistory .wppizza-login #loginform p.login-submit {
	display: block !important;
	width: 100% !important;
	float: none !important;
}

body.pj-history-page #wppizza-orders-wrap-orderhistory .wppizza-login #loginform input[name="log"],
body.pj-history-page #wppizza-orders-wrap-orderhistory .wppizza-login #loginform input[name="pwd"],
body.pj-history-page #wppizza-orders-wrap-orderhistory .wppizza-login #loginform #user_login,
body.pj-history-page #wppizza-orders-wrap-orderhistory .wppizza-login #loginform #user_pass {
	width: 100% !important;
	max-width: 100% !important;
	height: 50px !important;
}

body.pj-history-page #wppizza-orders-wrap-orderhistory .wppizza-login #loginform input#wp-submit.button.button-primary,
body.pj-history-page #wppizza-orders-wrap-orderhistory .wppizza-login #loginform input[type="submit"] {
	background: #8b0f1a !important;
	background-color: #8b0f1a !important;
	background-image: none !important;
	border: 1px solid rgba(212, 175, 55, 0.45) !important;
	border-radius: 999px !important;
	color: #fff4e0 !important;
}

body.pj-history-page #wppizza-orders-wrap-orderhistory .wppizza-login #loginform input#wp-submit.button.button-primary:hover,
body.pj-history-page #wppizza-orders-wrap-orderhistory .wppizza-login #loginform input#wp-submit.button.button-primary:focus {
	background: #6e0811 !important;
	background-color: #6e0811 !important;
}

body.pj-history-page #wppizza-orders-wrap-orderhistory .wppizza-login .wppizza-login-option a.wppizza-login-cancel {
	padding: 7px 14px !important;
	display: none !important;
}

body.pj-history-page #wppizza-orders-wrap-orderhistory .wppizza-login:has(fieldset.wppizza-login-fieldset[style*="display: block"]) .wppizza-login-option a.wppizza-login-cancel {
	display: inline-flex !important;
}

body.pj-mein-julie-logged-out #wppizza-orders-wrap-orderhistory .wppizza-login .wppizza-login-option {
	display: none !important;
}

body.pj-mein-julie-logged-out #wppizza-orders-wrap-orderhistory .wppizza-login:has(fieldset.wppizza-login-fieldset[style*="display: block"]) .wppizza-login-option {
	display: flex !important;
	justify-content: center;
}

/* Task 30 — Mein Julie logged-out mobile login scroll offset (sticky header) */
@media only screen and (max-width: 767px) {
	body.pj-mein-julie-logged-out #wppizza-orders-wrap-orderhistory .wppizza-login,
	body.pj-mein-julie-logged-out #wppizza-orders-wrap-orderhistory .wppizza-login fieldset.wppizza-login-fieldset {
		scroll-margin-top: 110px;
	}
}

body.pj-history-page #wppizza-orders-wrap-orderhistory .wppizza-login .wppizza-login-lostpw {
	margin-left: auto;
	margin-right: auto;
}

@media only screen and (max-width: 767px) {
	body.pj-history-page #wppizza-orders-wrap-orderhistory .wppizza-login .wppizza-login-form,
	body.pj-history-page #wppizza-orders-wrap-orderhistory .wppizza-login #loginform {
		max-width: 100%;
	}
}

/* ==========================================================================
   Task 19 — Mein Julie frontend customer profile
   Scoped: body.pj-history-page logged-in Mein Julie only.
   ========================================================================== */

/* Task 22 — Mein Julie dashboard: exclusive hidden sections (JS + server default) */
.pj-section-hidden {
	display: none !important;
}

/* Logged-in safety net: hide WPPizza order block until section is opened */
body.pj-mein-julie-logged-in #wppizza-orders-wrap-orderhistory,
body.pj-mein-julie-logged-in #wppizza-noorders-orderhistory {
	display: none !important;
}

body.pj-mein-julie-logged-in #pj-meine-bestellungen:not(.pj-section-hidden) #wppizza-orders-wrap-orderhistory,
body.pj-mein-julie-logged-in #pj-meine-bestellungen:not(.pj-section-hidden) #wppizza-noorders-orderhistory {
	display: block !important;
}

body.pj-mein-julie-logged-in article.page .entry-content-wrap {
	margin-top: 56px !important;
}

body.pj-mein-julie-logged-in .pj-mein-julie--member {
	padding-top: 12px;
}

body.pj-mein-julie-logged-in #pj-mein-julie-dashboard,
body.pj-mein-julie-logged-in .pj-mein-julie-dashboard {
	scroll-margin-top: 110px;
}

body.pj-history-page .pj-mein-julie-dashboard-notice {
	margin: 0 0 18px;
}

body.pj-history-page .pj-mein-julie-notice--dismissed {
	display: none !important;
}

body.pj-history-page .pj-mein-julie-section {
	box-sizing: border-box;
	width: 100%;
	max-width: 960px;
	margin: 34px auto 0;
	padding: 0;
	border: 1px solid rgba(212, 175, 55, 0.28);
	border-radius: 18px;
	background: #fffefb;
	box-shadow: 0 22px 60px rgba(60, 20, 10, 0.12);
	overflow: hidden;
	scroll-margin-top: 110px;
}

body.pj-history-page .pj-mein-julie-section__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0;
	padding: 14px 18px;
	border: none;
	border-bottom: 2px solid rgba(212, 175, 55, 0.65);
	border-radius: 18px 18px 0 0;
	background: #8b0f1a;
}

body.pj-history-page .pj-mein-julie-section__title {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	color: #fff4e0 !important;
	border-bottom: none !important;
	font-size: clamp(17px, 2.1vw, 21px);
	font-weight: 900;
	line-height: 1.2;
}

body.pj-history-page .pj-mein-julie-section__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 6px 12px;
	border: 1px solid rgba(212, 175, 55, 0.65);
	border-radius: 999px;
	background: #fff8ea;
	color: #8b0f1a;
	font-family: inherit;
	font-size: 12px;
	font-weight: 900;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(60, 20, 10, 0.08);
}

body.pj-history-page .pj-mein-julie-section__close:hover,
body.pj-history-page .pj-mein-julie-section__close:focus {
	background: #fff4e0;
	color: #6e0811;
	outline: none;
}

body.pj-history-page .pj-mein-julie-section__body {
	min-width: 0;
	padding: 18px 22px 22px;
}

body.pj-history-page .pj-mein-julie-orders-scroll {
	overflow-x: auto;
	max-width: 100%;
	-webkit-overflow-scrolling: touch;
}

body.pj-history-page .pj-mein-julie-delete__warning {
	margin: 0 0 18px;
	padding: 14px 16px;
	border: 1px solid rgba(139, 15, 26, 0.2);
	border-radius: 14px;
	background: rgba(139, 15, 26, 0.06);
	color: #2b1a16;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.55;
}

body.pj-history-page .pj-mein-julie-delete__confirm {
	margin: 0 0 16px;
}

body.pj-history-page .pj-mein-julie-delete__checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: #2b1a16;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	cursor: pointer;
}

body.pj-history-page .pj-mein-julie-delete__checkbox input {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: #8b0f1a;
}

body.pj-history-page .pj-mein-julie-profile__grid--single {
	grid-template-columns: 1fr;
	max-width: 520px;
}

body.pj-mein-julie-logged-out .pj-mein-julie--guest > .pj-mein-julie-notice {
	margin: 0 0 18px;
}

body.pj-history-page .pj-mein-julie-profile.pj-mein-julie-section {
	max-width: 960px;
	margin-top: 34px;
}

body.pj-history-page .pj-mein-julie-profile {
	box-sizing: border-box;
	width: 100%;
}

body.pj-history-page .pj-mein-julie-profile__title {
	margin: 0 0 22px;
	padding-bottom: 10px;
	border-bottom: 2px solid rgba(212, 175, 55, 0.75);
	color: #8b0f1a;
	font-size: 24px;
	font-weight: 900;
	line-height: 1.2;
}

body.pj-history-page .pj-mein-julie-profile.pj-mein-julie-section .pj-mein-julie-profile__title {
	display: none;
}

body.pj-history-page .pj-mein-julie-profile__toolbar {
	display: flex;
	justify-content: flex-end;
	margin: 0 0 14px;
}

body.pj-history-page .pj-mein-julie-profile__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 14px;
	border: 1px solid rgba(212, 175, 55, 0.55);
	border-radius: 999px;
	background: #fff8ea;
	color: #8b0f1a !important;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.25;
	text-decoration: none !important;
}

body.pj-history-page .pj-mein-julie-profile__close:hover,
body.pj-history-page .pj-mein-julie-profile__close:focus {
	background: #fff4e0;
	color: #6e0811 !important;
	outline: none;
}

body.pj-history-page .pj-mein-julie-notice {
	margin: 0 0 18px;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
}

body.pj-history-page .pj-mein-julie-notice--success {
	border: 1px solid rgba(212, 175, 55, 0.45);
	background: rgba(212, 175, 55, 0.12);
	color: #2b1a16;
}

body.pj-history-page .pj-mein-julie-notice--error {
	border: 1px solid rgba(139, 15, 26, 0.28);
	background: rgba(139, 15, 26, 0.08);
	color: #8b0f1a;
}

body.pj-history-page .pj-mein-julie-profile__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 18px;
	margin: 0 0 22px;
}

body.pj-history-page .pj-mein-julie-profile__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

body.pj-history-page .pj-mein-julie-profile__field--full {
	grid-column: 1 / -1;
}

body.pj-history-page .pj-mein-julie-profile__field label {
	color: #2b1a16;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

body.pj-history-page .pj-mein-julie-profile__field input[type="text"],
body.pj-history-page .pj-mein-julie-profile__field input[type="email"],
body.pj-history-page .pj-mein-julie-profile__field input[type="tel"],
body.pj-history-page .pj-mein-julie-profile__field input[type="password"] {
	box-sizing: border-box;
	width: 100%;
	height: 50px;
	padding: 0 14px;
	border: 1px solid rgba(139, 15, 26, 0.22);
	border-radius: 12px;
	background: #fff;
	color: #1f1a17;
	font-family: inherit;
	font-size: 15px;
	line-height: normal;
}

body.pj-history-page .pj-mein-julie-profile__field input:focus {
	border-color: #d4af37;
	outline: none;
	box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}

body.pj-history-page .pj-mein-julie-profile__password {
	margin: 0 0 22px;
	padding-top: 22px;
	border-top: 1px solid rgba(212, 175, 55, 0.22);
}

body.pj-history-page .pj-mein-julie-profile__password-title {
	margin: 0 0 8px;
	color: #8b0f1a;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
}

body.pj-history-page .pj-mein-julie-profile__password-hint {
	margin: 0 0 16px;
	color: #6b5a4d;
	font-size: 14px;
	line-height: 1.45;
}

body.pj-history-page .pj-mein-julie-profile__grid--password {
	margin-bottom: 0;
}

body.pj-history-page .pj-mein-julie-profile__actions {
	display: flex;
	justify-content: flex-start;
}

body.pj-history-page .pj-mein-julie-profile__submit {
	min-width: 200px;
	height: 50px;
	padding: 0 28px;
}

@media only screen and (max-width: 767px) {
	body.pj-mein-julie-logged-in article.page .entry-content-wrap {
		margin-top: 32px !important;
	}

	body.pj-mein-julie-logged-in article.page .entry-content,
	body.pj-mein-julie-logged-in article.page .entry-content.single-content {
		overflow-x: hidden;
	}

	body.pj-history-page .pj-mein-julie-section {
		box-sizing: border-box;
		width: calc(100% - 24px);
		max-width: none;
		margin: 22px auto;
		padding: 0;
		border-radius: 18px;
		background: #fffefb;
		border: 1px solid rgba(212, 175, 55, 0.28);
		box-shadow: 0 16px 42px rgba(60, 20, 10, 0.12);
		overflow: hidden;
	}

	body.pj-history-page .pj-mein-julie-section__header {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 10px;
		padding: 12px 14px;
	}

	body.pj-history-page .pj-mein-julie-section__title {
		font-size: 17px;
		color: #fff4e0 !important;
	}

	body.pj-history-page .pj-mein-julie-section__close {
		width: auto;
		min-width: 0;
		padding: 5px 10px;
		font-size: 11px;
	}

	body.pj-history-page .pj-mein-julie-section__body {
		padding: 16px 18px 18px;
	}

	body.pj-history-page .pj-mein-julie-intro__title {
		padding: 12px 14px;
		font-size: 17px;
		color: #fff4e0 !important;
	}

	body.pj-history-page .pj-mein-julie-intro__text {
		padding: 16px 18px 0;
	}

	body.pj-history-page .pj-mein-julie-features {
		padding: 16px 18px 0;
	}

	body.pj-history-page .pj-mein-julie-actions {
		padding: 0 18px 18px;
	}

	body.pj-history-page .pj-mein-julie-profile {
		padding: 0;
		border-radius: 0;
	}

	body.pj-history-page .pj-mein-julie-profile__grid,
	body.pj-history-page .pj-mein-julie-profile__grid--password {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	body.pj-history-page .pj-mein-julie-profile__actions {
		justify-content: stretch;
	}

	body.pj-history-page .pj-mein-julie-profile__submit {
		width: 100%;
		min-width: 0;
	}
}
