/**
 * Default pages — boxed shell (1140px), top-bar clearance, soft O-pattern, white content card.
 * Mirrors Mein Konto / Shop-Intro chrome + .toboo-panel cards.
 */

body.page-template-default {
	background: #121a30;
}

.toboo-page-shell {
	--pagecolor: #121a30;
	position: relative;
	z-index: 2;
	/* Clear the absolute top-bar (mirrors .toboo-shop-intro / account shell). */
	padding-top: clamp(12rem, 18vw, 16rem);
	padding-bottom: 4rem;
	background: transparent;
	color: #fff;
	overflow: visible;
	min-height: min(100vh, 56rem);
}

/* Stack: BG pattern (0) → colored O’s (1) → title + card text (2). */

.toboo-page-shell > * {
	position: relative;
	z-index: 1;
}

.toboo-page-shell__inner {
	width: 100%;
	max-width: var(--tw-container, 1140px);
	margin: 0 auto;
	padding: 0 var(--toboo-edge-x, 4%);
	box-sizing: border-box;
}

.toboo-page-shell__content .toboo-page-header {
	margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
	text-align: left;
}

.toboo-page-shell__content .toboo-page-header__title {
	margin: 0;
	font-size: clamp(1.85rem, 3.2vw, 2.5rem);
	line-height: 1.15;
	font-weight: 700;
	color: var(--tw-secondary, #1e1e21);
}

/* Card stage — room around the card so side O’s aren’t clipped by the shell. */
.toboo-page-shell__card-wrap {
	/* Room for satellite O’s that sit fully outside the card. */
	--toboo-o-pad-y: clamp(2.25rem, 5.5vw, 4rem);
	--toboo-o-pad-x: clamp(2.5rem, 6.5vw, 4.5rem);
	position: relative;
	width: min(100%, calc(48rem + 2 * var(--toboo-o-pad-x)));
	margin: 0 auto;
	padding: var(--toboo-o-pad-y) var(--toboo-o-pad-x);
	box-sizing: border-box;
}

/* Anchor box = card edges (inside the peek padding). */
.toboo-page-shell__os {
	position: absolute;
	top: var(--toboo-o-pad-y);
	right: var(--toboo-o-pad-x);
	bottom: var(--toboo-o-pad-y);
	left: var(--toboo-o-pad-x);
	z-index: 1;
	pointer-events: none;
	overflow: visible;
}

.toboo-page-shell__o {
	--toboo-o-base: clamp(3.5rem, 10vw, 6rem);
	--toboo-o-push-x: 0px;
	--toboo-o-push-y: 0px;
	position: absolute;
	display: block;
	width: calc(var(--toboo-o-base) * var(--toboo-o-size, 1));
	line-height: 0;
	/* Keep contact with the card: max half-size out, vary how deep they sit on the rim. */
	transform:
		translate(
			calc(-50% + var(--toboo-o-nudge-x, 0px) + var(--toboo-o-push-x)),
			calc(-50% + var(--toboo-o-nudge-y, 0px) + var(--toboo-o-push-y))
		)
		rotate(var(--toboo-o-rot, 0deg));
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
	.toboo-page-shell__o {
		transition: none;
		will-change: auto;
	}
}

/* Pop-in (same keyframes as shop-intro ooooo). */
@keyframes toboo-page-o-pop {
	0% {
		opacity: 0;
		transform: scale(0.55);
	}
	55% {
		opacity: 1;
		transform: scale(1.12);
	}
	78% {
		opacity: 1;
		transform: scale(0.97);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

.toboo-page-shell__o-pop {
	display: block;
	width: 100%;
	line-height: 0;
	transform-origin: center center;
	opacity: 0;
	transform: scale(0.55);
}

.toboo-page-shell__o.is-in .toboo-page-shell__o-pop {
	animation: toboo-page-o-pop 0.75s cubic-bezier(0.33, 1, 0.68, 1) both;
	animation-delay: var(--toboo-o-reveal-delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
	.toboo-page-shell__o-pop {
		opacity: 1;
		transform: none;
		animation: none;
	}
}

.toboo-page-shell__o svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.toboo-page-shell__o path {
	fill: var(--toboo-o-fill, var(--wp--preset--color--o-lila, #7a3cff));
}

/* Content card — same surface language as account / checkout panels. */
.toboo-page-shell .toboo-page-card.toboo-panel {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 48rem;
	margin: 0 auto;
	border: 0;
	border-radius: var(--tw-radius-card, 2.5rem);
	corner-shape: squircle;
	background: #fff;
	color: var(--tw-secondary, #1e1e21);
	overflow: hidden;
	box-sizing: border-box;
}

@media (max-width: 575.98px) {
	.toboo-page-shell__card-wrap {
		--toboo-o-pad-y: 1.85rem;
		--toboo-o-pad-x: 1.85rem;
		overflow-x: clip;
	}

	.toboo-page-shell__card-wrap .toboo-page-shell__o {
		--toboo-o-base: clamp(2.35rem, 7.5vw, 3.75rem);
	}
}

.toboo-page-shell .toboo-page-card .toboo-panel__inner {
	padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
	background: #fff;
	color: var(--tw-secondary, #1e1e21);
}

/* ------------------------------------------------------------------ */
/* Content rhythm (headings, copy, lists) — global-styles is dequeued */
/* ------------------------------------------------------------------ */
.toboo-page-shell__content {
	--toboo-page-gap: 1rem;
	font-size: 1rem;
	line-height: 1.6;
}

.toboo-page-shell__content,
.toboo-page-shell__content p,
.toboo-page-shell__content li,
.toboo-page-shell__content h2,
.toboo-page-shell__content h3,
.toboo-page-shell__content h4 {
	color: var(--tw-secondary, #1e1e21);
}

.toboo-page-shell__content > *:first-child,
.toboo-page-shell__content .tw-a11y-statement__content > *:first-child {
	margin-top: 0;
}

.toboo-page-shell__content > *:last-child,
.toboo-page-shell__content .tw-a11y-statement__content > *:last-child {
	margin-bottom: 0;
}

.toboo-page-shell__content p,
.toboo-page-shell__content .tw-a11y-statement__content p {
	margin: 0 0 var(--toboo-page-gap);
}

.toboo-page-shell__content h2,
.toboo-page-shell__content .tw-a11y-statement__title,
.toboo-page-shell__content .toboo-methods-info__heading,
.toboo-page-shell__content .toboo-methods-info__zone-title {
	margin: 1.75rem 0 0.75rem;
	font-size: clamp(1.25rem, 2vw, 1.45rem);
	line-height: 1.25;
	font-weight: 700;
}

.toboo-page-shell__content h3,
.toboo-page-shell__content .toboo-methods-info__method-name {
	margin: 1.15rem 0 0.35rem;
	font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.2rem);
	line-height: 1.35;
	font-weight: 650;
}

.toboo-page-shell__content h4 {
	margin: 1rem 0 0.35rem;
	font-size: clamp(0.95rem, 0.9rem + 0.35vw, 1.05rem);
	line-height: 1.35;
	font-weight: 650;
}

.toboo-page-shell__content > h2:first-child,
.toboo-page-shell__content > .tw-a11y-statement__part:first-child .tw-a11y-statement__title,
.toboo-page-shell__content > .toboo-methods-info--combined > .toboo-methods-info__section:first-child .toboo-methods-info__heading,
.toboo-page-shell__content > .toboo-methods-info > .toboo-methods-info__heading:first-child,
.toboo-page-shell__content > .toboo-methods-info .toboo-methods-info__zone:first-child .toboo-methods-info__zone-title {
	margin-top: 0;
}

.toboo-page-shell__content ul,
.toboo-page-shell__content ol,
.toboo-page-shell__content .tw-a11y-statement__list {
	margin: 0 0 1.15rem;
	padding-left: 1.35rem;
}

.toboo-page-shell__content ul:not(.toboo-methods-info__list):not(.tw-a11y-statement__list--barriers) {
	list-style: disc;
}

.toboo-page-shell__content ol {
	list-style: decimal;
}

.toboo-page-shell__content .tw-a11y-statement__list--barriers,
.toboo-page-shell__content .toboo-methods-info__list {
	list-style: none;
	padding-left: 0;
}

.toboo-page-shell__content li {
	margin: 0 0 0.4rem;
	padding-left: 0.15rem;
}

.toboo-page-shell__content li:last-child {
	margin-bottom: 0;
}

.toboo-page-shell__content li > ul,
.toboo-page-shell__content li > ol {
	margin: 0.4rem 0 0.15rem;
}

.toboo-page-shell__content .tw-a11y-statement__part + .tw-a11y-statement__part {
	margin-top: 1.75rem;
}

/* Inline prose links — see inline-links.css */
/* Buttons in page cards (Toboo hell/dunkel CTA — global-styles off)  */
/* ------------------------------------------------------------------ */
.toboo-page-shell__content .wp-element-button,
.toboo-page-shell__content .wp-block-button__link,
.toboo-page-shell__content .button:not(.wp-block-button),
.toboo-page-shell__content .tw-a11y-widget-restore__btn {
	--toboo-btn-bg: var(--wp--preset--color--hell, #b5d91f);
	--toboo-btn-fg: var(--wp--preset--color--dunkel, #0d1101);
	--toboo-btn-edge: color-mix(in srgb, var(--toboo-btn-bg) 72%, #000);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	box-sizing: border-box;
	min-height: 2.75rem;
	padding: 0.85rem 1.25rem;
	border: 0;
	border-left: 2px solid var(--toboo-btn-edge);
	border-bottom: 2px solid var(--toboo-btn-edge);
	border-radius: var(--tw-radius-card, 2.5rem);
	corner-shape: squircle;
	background: var(--toboo-btn-bg);
	color: var(--toboo-btn-fg);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	appearance: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.toboo-page-shell__content .wp-element-button:hover,
.toboo-page-shell__content .wp-element-button:focus-visible,
.toboo-page-shell__content .wp-block-button__link:hover,
.toboo-page-shell__content .wp-block-button__link:focus-visible,
.toboo-page-shell__content .button:not(.wp-block-button):hover,
.toboo-page-shell__content .button:not(.wp-block-button):focus-visible,
.toboo-page-shell__content .tw-a11y-widget-restore__btn:hover,
.toboo-page-shell__content .tw-a11y-widget-restore__btn:focus-visible {
	--toboo-btn-bg: color-mix(in srgb, var(--wp--preset--color--hell, #b5d91f) 88%, white);
	background: var(--toboo-btn-bg);
	color: var(--toboo-btn-fg);
	border-left-color: var(--toboo-btn-edge);
	border-bottom-color: var(--toboo-btn-edge);
	text-decoration: none;
}

.toboo-page-shell__content .wp-element-button:focus-visible,
.toboo-page-shell__content .wp-block-button__link:focus-visible,
.toboo-page-shell__content .tw-a11y-widget-restore__btn:focus-visible {
	outline: 2px solid var(--toboo-green-text, var(--wp--preset--color--green-text, #586b08));
	outline-offset: 2px;
}

.toboo-page-shell__content .wp-block-buttons {
	margin: 0 0 1.15rem;
}

.toboo-page-shell__content .tw-a11y-widget-restore {
	margin-top: 1.25rem;
	padding: 1rem 1.15rem;
	border: 0;
	border-radius: var(--tw-radius-card, 2.5rem);
	corner-shape: squircle;
	background: var(--tw-light, #e9edf0);
}

.toboo-page-shell__content .tw-a11y-widget-restore p {
	margin: 0 0 0.85rem;
}

/* Payment / shipping shortcodes inside the white card. */
.toboo-page-shell .toboo-methods-info__heading,
.toboo-page-shell .toboo-methods-info__title,
.toboo-page-shell .toboo-methods-info__zone-title,
.toboo-page-shell .toboo-methods-info__method-name {
	color: var(--tw-secondary, #1e1e21);
}

.toboo-page-shell .toboo-methods-info__section + .toboo-methods-info__section {
	margin-top: 2rem;
}

.toboo-page-shell .toboo-methods-info__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.toboo-page-shell .toboo-methods-info__item,
.toboo-page-shell .toboo-methods-info__item:last-child {
	border-bottom: 0;
}

.toboo-page-shell .toboo-methods-info__meta,
.toboo-page-shell .toboo-methods-info__desc,
.toboo-page-shell .toboo-methods-info__note,
.toboo-page-shell .toboo-methods-info__empty {
	color: color-mix(in srgb, var(--tw-secondary, #1e1e21) 78%, transparent);
}

.toboo-page-shell .toboo-methods-info__note {
	margin-top: 1rem;
}

/* ------------------------------------------------------------------ */
/* Über-uns page — portrait + lead intro                               */
/* ------------------------------------------------------------------ */
.toboo-page-shell__content .toboo-about-page__intro {
	gap: clamp(1.25rem, 3vw, 2rem);
	margin-bottom: 0.25rem;
}

.toboo-page-shell__content .toboo-about-page__lead {
	margin: 0;
	font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
	line-height: 1.55;
	font-weight: 500;
	color: color-mix(in srgb, var(--tw-secondary, #1e1e21) 88%, transparent);
}

.toboo-page-shell__content .toboo-about-page__portrait {
	margin: 0;
}

.toboo-page-shell__content .toboo-about-page__portrait img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--tw-radius-card, 2.5rem);
	corner-shape: squircle;
}

@media (max-width: 639.98px) {
	.toboo-page-shell__content .toboo-about-page__intro {
		flex-direction: column;
	}

	.toboo-page-shell__content .toboo-about-page__portrait-col,
	.toboo-page-shell__content .toboo-about-page__lead-col {
		flex-basis: 100% !important;
	}

	.toboo-page-shell__content .toboo-about-page__portrait {
		max-width: 12rem;
	}
}
