:root {

	--poolrechner-bottom-bar-h: calc(78px + env(safe-area-inset-bottom));
	--poolrechner-header-h: 60px;
	--poolrechner-z-header: 100;
	--poolrechner-z-bottom-bar: 600;
}

@media (min-width: 960px) {
	:root {
		--poolrechner-bottom-bar-h: 0px;
		--poolrechner-header-h: 68px;
	}
}

body.poolrechner-has-bottom-bar {
	padding-bottom: var(--poolrechner-bottom-bar-h);
}

html {
	scroll-padding-top: calc(var(--poolrechner-header-h) + var(--wp--custom--space--24));
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

.poolrechner-site-header {
	position: sticky;
	top: 0;
	z-index: var(--poolrechner-z-header);
	background: var(--wp--preset--color--chrome);
	border-bottom: 1px solid var(--wp--custom--chrome--border, var(--wp--preset--color--border));
	min-height: var(--poolrechner-header-h);
}

.poolrechner-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.poolrechner-brand svg {
	width: 26px;
	height: 26px;
	color: var(--wp--preset--color--primary);
	flex: none;
}

.poolrechner-nav {
	display: none;
}

@media (min-width: 960px) {
	.poolrechner-nav {
		display: block;
	}

	.poolrechner-nav-list {
		display: flex;
		align-items: center;
		gap: 1.625rem;
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.poolrechner-nav-link {
		display: block;
		font-size: var(--wp--custom--text--14, 0.875rem);
		font-weight: 500;
		line-height: 1;
		text-decoration: none;
		color: var(--wp--preset--color--contrast-2);
		transition: color 0.15s ease;
	}

	@media (hover: hover) {
		.poolrechner-nav-link:hover {
			color: var(--wp--preset--color--foreground);
		}
	}

	.poolrechner-nav-link.is-current {
		font-weight: 700;
		color: var(--wp--preset--color--foreground);
		border-bottom: 2px solid var(--wp--preset--color--accent);
		padding: var(--wp--custom--space--24) 0;
	}
}

.poolrechner-scheme-switch {
	display: none;
}

html[data-theme] .poolrechner-scheme-switch {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--sm);
	color: var(--wp--preset--color--contrast-2);
	cursor: pointer;
	padding: 0;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

@media (hover: hover) {
	.poolrechner-scheme-switch:hover {
		background: var(--wp--preset--color--base-3);
		border-color: var(--wp--preset--color--accent);
		color: var(--wp--preset--color--foreground);
	}
}

.poolrechner-scheme-switch svg {
	width: 19px;
	height: 19px;
	display: block;
}

.poolrechner-scheme-switch-icon {
	display: none;
}

html[data-theme="light"] .poolrechner-scheme-switch-moon,
html[data-theme="dark"] .poolrechner-scheme-switch-sun {
	display: block;
}

.poolrechner-bottom-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: var(--poolrechner-z-bottom-bar);
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	align-items: stretch;
	height: var(--poolrechner-bottom-bar-h);
	padding-bottom: env(safe-area-inset-bottom);
	background: var(--wp--preset--color--chrome);
	border-top: 1px solid var(--wp--custom--chrome--border, var(--wp--preset--color--border));
	transition: transform 0.25s ease;
}

.poolrechner-bottom-bar-hidden {
	transform: translateY(var(--poolrechner-bottom-bar-h));
}

.poolrechner-bottom-bar-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-decoration: none;
	color: var(--wp--preset--color--contrast-3);
	font-size: var(--wp--custom--text--11, 0.6875rem);
	font-weight: 600;
	line-height: 1;
}

.poolrechner-bottom-bar-item.is-current {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}

.poolrechner-bottom-bar-icon {
	width: 22px;
	height: 22px;
	display: block;
}

@media (min-width: 960px) {
	.poolrechner-bottom-bar {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.poolrechner-bottom-bar {
		transition: none;
	}
}

:root {

	--poolrechner-fab-gap: var(--wp--custom--space--16);

	--hm-helper-btn-size: 44px;
	--hm-helper-btn-icon-size: 19px;
	--hm-helper-btn-gap: var(--wp--custom--space--12);
	--hm-helper-btn-inset-inline-end: var(--poolrechner-fab-gap);
	--hm-helper-btn-radius: var(--wp--custom--radius--pill);

	--hm-helper-btn-inset-block-end: calc(var(--poolrechner-fab-gap) + env(safe-area-inset-bottom));

	--hm-helper-btn-bg: var(--wp--preset--color--primary);
	--hm-helper-btn-fg: var(--wp--custom--on--primary);
	--hm-helper-btn-shadow: var(--wp--custom--shadow--glow);

	--hm-helper-badge-bg: #c8382a;
	--hm-helper-badge-fg: #fff;
	--hm-helper-badge-font-size: var(--wp--custom--text--11);
}

@media (min-width: 960px) {

	:root {
		--hm-helper-btn-size: 60px;
		--hm-helper-btn-icon-size: 22px;
	}
}

body.poolrechner-has-bottom-bar {
	--hm-helper-btn-inset-block-end: calc(var(--poolrechner-fab-gap) + var(--poolrechner-bottom-bar-h));
}

body.poolrechner-has-bottom-bar:has(.poolrechner-bottom-bar-hidden) {
	--hm-helper-btn-inset-block-end: calc(var(--poolrechner-fab-gap) + env(safe-area-inset-bottom));
}

.btn-back-to-top {
	--hm-helper-btn-bg: var(--wp--preset--color--base);
	--hm-helper-btn-fg: var(--wp--preset--color--contrast-2);
	--hm-helper-btn-border: var(--wp--preset--color--border);
	--hm-helper-btn-shadow: var(--wp--custom--shadow--panel);

	transition:
		opacity 0.25s ease,
		visibility 0.25s,
		inset-block-end 0.25s ease,
		background 0.15s ease,
		border-color 0.15s ease,
		transform 0.1s ease;
}

.btn-hm-comments {
	transition:
		inset-block-end 0.25s ease,
		transform 0.1s ease;
}

.btn-back-to-top:hover {
	--hm-helper-btn-bg: var(--wp--preset--color--base-3);
	--hm-helper-btn-border: var(--wp--preset--color--accent);
}

.btn-back-to-top:hover,
.btn-hm-comments:hover {
	transform: translateY(-2px);
}

.btn-back-to-top:active,
.btn-hm-comments:active {
	transform: translateY(1px);
}

.btn-back-to-top:focus-visible,
.btn-hm-comments:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

	.btn-back-to-top,
	.btn-hm-comments {
		transition: none;
	}

	.btn-back-to-top:hover,
	.btn-hm-comments:hover,
	.btn-back-to-top:active,
	.btn-hm-comments:active {
		transform: none;
	}
}

.poolrechner-app-main {
	padding-top: var(--wp--custom--space--24);
	padding-bottom: var(--wp--custom--space--32);
}

.poolrechner-app-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--custom--space--28);
	align-items: start;
}

@media (min-width: 960px) {
	.poolrechner-app-grid {
		grid-template-columns: minmax(0, 1fr) var(--wp--custom--width--sidebar);
	}
}

@media (min-width: 960px) {
	.poolrechner-app-grid-narrow {
		grid-template-columns: minmax(0, var(--wp--style--global--content-size, 720px)) var(--wp--custom--width--sidebar);
	}
}

.poolrechner-blog-grid,
.poolrechner-article-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--custom--space--32);
	align-items: start;
}

@media (min-width: 960px) {
	.poolrechner-blog-grid,
	.poolrechner-article-grid {
		grid-template-columns: minmax(0, 1fr) var(--wp--custom--width--sidebar);
	}
}

@media (min-width: 1200px) {
	.poolrechner-has-toc .poolrechner-article-grid {
		grid-template-columns: var(--wp--custom--width--toc) minmax(0, 1fr) var(--wp--custom--width--sidebar);
	}
}

.poolrechner-toc {
	display: none;
}

@media (min-width: 1200px) {
	.poolrechner-toc {
		display: block;
		position: sticky;
		top: calc(var(--poolrechner-header-h) + var(--wp--custom--space--24));
		max-height: calc(100vh - var(--poolrechner-header-h) - var(--wp--custom--space--48));
		overflow-y: auto;
		overscroll-behavior: contain;
	}
}

.poolrechner-sidebar {
	display: none;
}

@media (min-width: 960px) {
	.poolrechner-sidebar {
		display: flex;
		flex-direction: column;
		gap: var(--wp--custom--space--16);
		position: sticky;
		top: calc(var(--poolrechner-header-h) + var(--wp--custom--space--24));
	}
}

.poolrechner-hero {
	background: var(--wp--preset--color--chrome);
	border-bottom: 1px solid var(--wp--custom--chrome--border, var(--wp--preset--color--border));
	padding-top: var(--wp--custom--space--32);
	padding-bottom: var(--wp--custom--space--32);
}

.poolrechner-hero-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wp--custom--space--16);
}

.poolrechner-hero-checklist li {
	display: flex;
	gap: var(--wp--custom--space--12);
	align-items: flex-start;
	font-size: var(--wp--custom--text--15, 0.9375rem);
	font-weight: 500;
	line-height: 1.4;
	color: var(--wp--preset--color--contrast-2);
}

.poolrechner-hero-checklist li::before {
	content: "\2713";
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	flex: none;
}

.poolrechner-hero .wp-block-buttons {
	flex-direction: column;
	align-items: stretch;
}

.poolrechner-hero .wp-block-buttons .wp-block-button {
	width: 100%;
}

.poolrechner-hero .wp-block-buttons .wp-block-button__link {
	width: 100%;
	text-align: center;
}

@media (min-width: 960px) {
	.poolrechner-hero .wp-block-buttons {
		flex-direction: row;
		align-items: center;
	}

	.poolrechner-hero .wp-block-buttons .wp-block-button {
		width: auto;
	}

	.poolrechner-hero .wp-block-buttons .wp-block-button__link {
		width: auto;
	}
}

.poolrechner-placeholder {
	border: 1px dashed var(--wp--preset--color--border-strong);
	background: var(--wp--preset--color--base);
	min-height: 200px;
	display: flex;
	align-items: flex-end;
	padding: 1.125rem;
	color: var(--wp--preset--color--contrast-3);
}

.poolrechner-ad-slot {
	display: grid;
	place-items: center;
	gap: 0.5rem;
	border: 1px dashed var(--wp--preset--color--border-strong);
	background: var(--wp--preset--color--chrome);
	color: var(--wp--preset--color--contrast-3);
	text-align: center;
	min-height: 250px;
	padding: 1rem;
}

.poolrechner-ad-slot-banner {
	min-height: 90px;
}

:root {
	--hm-user-radius-sm: var(--wp--custom--radius--sm);
	--hm-user-radius-md: var(--wp--custom--radius--md);
	--hm-user-radius-lg: var(--wp--custom--radius--lg);
	--hm-user-shadow-panel: var(--wp--custom--shadow--panel);
	--hm-user-border-hairline: var(--wp--preset--color--border);
	--hm-user-border-card: var(--wp--preset--color--border);

	--hm-user-border-input: var(--wp--preset--color--border-strong);

	--hm-user-error-bg: var(--wp--preset--color--base);
	--hm-user-error-text: var(--wp--custom--ink--critical);
	--hm-user-success-bg: var(--wp--preset--color--base);
	--hm-user-success-text: var(--wp--custom--ink--ok);
	--hm-user-info-bg: var(--wp--preset--color--base);
	--hm-user-info-text: var(--wp--custom--ink--warning);
	--hm-user-info-line: var(--wp--custom--line--warning);

	--hm-user-accent: var(--wp--custom--ink--critical);
}

.hm-user-btn-primary,
.hm-user-btn-primary:hover {
	color: var(--wp--custom--on--primary);
}

.hm-user-btn-danger,
.hm-user-btn-danger:hover {
	color: var(--wp--custom--on--critical);
}

.hm-user-btn-accent {
	border-color: var(--wp--custom--edge--critical);
}

.poolrechner-account-trigger {
	position: relative;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--sm);
	color: var(--wp--preset--color--contrast-2);
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.poolrechner-account-trigger:hover,
.poolrechner-account-trigger[aria-expanded="true"] {
	background: var(--wp--preset--color--base-3);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--foreground);
}

.poolrechner-account-trigger:focus-visible {
	outline: 2px solid var(--wp--custom--focus--ring);
	outline-offset: 3px;
}

.poolrechner-account-symbol svg {
	width: 20px;
	height: 20px;
	display: block;
}

.poolrechner-account-initials {
	font-size: var(--wp--custom--text--12, 0.75rem);
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--accent);
}

.poolrechner-account-trigger.has-initials .poolrechner-account-symbol {
	display: none;
}

html[data-theme] body.poolrechner-has-account-menu .poolrechner-header-tools .poolrechner-scheme-switch {
	display: none;
}

@media (min-width: 960px) {
	html[data-theme] body.poolrechner-has-account-menu .poolrechner-header-tools .poolrechner-scheme-switch {
		display: grid;
	}

	html[data-theme] .poolrechner-account-tools .poolrechner-scheme-switch {
		display: none;
	}
}

.poolrechner-account-panel {
	position: fixed;
	inset: 0;
	z-index: calc(var(--poolrechner-z-bottom-bar) + 10);
}

.poolrechner-account-panel[hidden] {
	display: none;
}

html.poolrechner-account-open,
html.poolrechner-account-open body {
	overflow: hidden;
}

@media (min-width: 960px) {
	html.poolrechner-account-open,
	html.poolrechner-account-open body {
		overflow: visible;
	}
}

.poolrechner-account-scrim {
	position: absolute;
	inset: 0;
	background: rgb(0 0 0 / 45%);
}

.poolrechner-account-sheet {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	width: min(320px, 86vw);
	display: flex;
	flex-direction: column;
	gap: var(--wp--custom--space--16);
	padding: var(--wp--custom--space--20);
	background: var(--wp--preset--color--base);
	border-inline-start: 1px solid var(--wp--preset--color--border);
	box-shadow: var(--wp--custom--shadow--dialog);
	overflow-y: auto;

	overscroll-behavior: contain;
}

.poolrechner-account-close {
	align-self: flex-end;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	background: transparent;
	border: 0;
	border-radius: var(--wp--custom--radius--sm);
	color: var(--wp--preset--color--contrast-2);
	cursor: pointer;
	padding: 0;
}

@media (hover: hover) {
	.poolrechner-account-close:hover {
		background: var(--wp--preset--color--base-3);
		color: var(--wp--preset--color--foreground);
	}
}

.poolrechner-account-close svg {
	width: 19px;
	height: 19px;
	display: block;
}

.poolrechner-account-entries {
	display: flex;
	flex-direction: column;
	gap: var(--wp--custom--space--4);
}

.poolrechner-account-name {
	margin: 0 0 var(--wp--custom--space--8);
	font-size: var(--wp--custom--text--15, 0.9375rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--wp--preset--color--foreground);
}

.poolrechner-account-entry {
	display: block;
	padding: var(--wp--custom--space--12);
	border-radius: var(--wp--custom--radius--sm);
	font-size: var(--wp--custom--text--15, 0.9375rem);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
	transition: background 0.15s ease, color 0.15s ease;
}

@media (hover: hover) {
	.poolrechner-account-entry:hover {
		background: var(--wp--preset--color--base-3);
		color: var(--wp--preset--color--foreground);
	}
}

.poolrechner-account-entry-strong {
	background: var(--wp--preset--color--primary);
	color: var(--wp--custom--on--primary);
	font-weight: 800;
	text-align: center;
}

@media (hover: hover) {
	.poolrechner-account-entry-strong:hover {
		background: var(--wp--preset--color--primary-hover);
		color: var(--wp--custom--on--primary);
	}
}

.poolrechner-account-entry-quiet {
	color: var(--wp--preset--color--contrast-3);
	font-weight: 500;
}

.poolrechner-account-tools {
	display: flex;
	align-items: center;
	gap: var(--wp--custom--space--12);
	padding-top: var(--wp--custom--space--12);
	border-top: 1px solid var(--wp--preset--color--border);
}

.poolrechner-account-tools-label {
	font-size: var(--wp--custom--text--14, 0.875rem);
	color: var(--wp--preset--color--contrast-2);
}

.poolrechner-account-meta {
	margin: auto 0 0;
	padding: var(--wp--custom--space--12) 0 0;
	border-top: 1px solid var(--wp--preset--color--border);
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--custom--space--12);
}

.poolrechner-account-meta a {
	font-size: var(--wp--custom--text--13, 0.8125rem);
	color: var(--wp--preset--color--contrast-3);
	text-decoration: none;
}

@media (hover: hover) {
	.poolrechner-account-meta a:hover {
		color: var(--wp--preset--color--foreground);
		text-decoration: underline;
	}
}

@media (min-width: 960px) {

	.poolrechner-account-panel {
		inset: var(--poolrechner-header-h) 0 auto auto;
	}

	.poolrechner-account-scrim,
	.poolrechner-account-close,
	.poolrechner-account-tools,
	.poolrechner-account-meta {
		display: none;
	}

	.poolrechner-account-sheet {
		position: static;
		width: 260px;
		margin-inline-end: var(--wp--custom--space--16);
		gap: var(--wp--custom--space--8);
		padding: var(--wp--custom--space--12);
		border: 1px solid var(--wp--preset--color--border);
		border-radius: var(--wp--custom--radius--md);
		box-shadow: var(--wp--custom--shadow--panel);
	}
}

.poolrechner-site-footer {
	display: none;
}

body:not(.poolrechner-has-account-menu) .poolrechner-site-footer {
	display: block;
}

@media (min-width: 960px) {
	.poolrechner-site-footer {
		display: block;
	}
}

.poolrechner-footer-columns {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--custom--space--48);
}

.poolrechner-footer-title {
	margin: 0 0 var(--wp--custom--space--12);
	font-size: var(--wp--custom--text--12, 0.75rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast-3);
}

.poolrechner-footer-column ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wp--custom--space--8);
}

.poolrechner-footer-column a {
	font-size: var(--wp--custom--text--14, 0.875rem);
	color: var(--wp--preset--color--contrast-2);
	text-decoration: none;
}

@media (hover: hover) {
	.poolrechner-footer-column a:hover {
		color: var(--wp--preset--color--foreground);
		text-decoration: underline;
	}
}
