/*
 * Interzoo App: theme styles.
 *
 * Type and spacing follow the system of the Interzoo Academy theme: font sizes and spacing steps come
 * from theme.json presets, sections are separated by --iza-section, intros by step 60 (48 px), side
 * margin is the "edge" preset. Smallest text is 15 px (never below 14). Nothing is round (Interzoo CI).
 * Breakpoints: up to 1024 px tablet, up to 767 px phone.
 */

:root {
	--iza-gruen: var(--wp--preset--color--primary, #005d3e);
	--iza-magenta: var(--wp--preset--color--accent, #bd1b8d);
	--iza-text: var(--wp--preset--color--text, #222);
	--iza-text-weich: var(--wp--preset--color--text-soft, #2d2d2d);
	--iza-linie: var(--wp--preset--color--line, #e0e0e0);
	--iza-rand: var(--wp--preset--spacing--edge, clamp(1.25rem, 5vw, 5rem));
	--iza-band: 4rem;
	--iza-section: 5rem;
	--iza-kopf-hoehe: 80px;
	--iza-ease: cubic-bezier(.2, .9, .2, 1);
	--s10: var(--wp--preset--spacing--10, .5rem);
	--s20: var(--wp--preset--spacing--20, .75rem);
	--s30: var(--wp--preset--spacing--30, 1rem);
	--s40: var(--wp--preset--spacing--40, 1.5rem);
	--s50: var(--wp--preset--spacing--50, 2rem);
	--s60: var(--wp--preset--spacing--60, 3rem);
	--s70: var(--wp--preset--spacing--70, 4rem);
	--s80: var(--wp--preset--spacing--80, 5rem);
	--fs-small: var(--wp--preset--font-size--small, .9375rem);
	--fs-body: var(--wp--preset--font-size--body, 1.0625rem);
	--fs-card: var(--wp--preset--font-size--card, 1.125rem);
	--fs-sub: var(--wp--preset--font-size--sub, 1.375rem);
	--fs-section: var(--wp--preset--font-size--section, clamp(1.75rem, 3vw, 2.25rem));
	--fs-title: var(--wp--preset--font-size--title, clamp(1.8rem, 1.2rem + 2vw, 2.6rem));
}

@media (min-width: 768px) {
	:root {
		--iza-band: 5rem;
		--iza-section: 7rem;
	}
}

@media (min-width: 1025px) {
	:root {
		--iza-kopf-hoehe: 96px;
	}
}

html {
	scroll-behavior: smooth;
}

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

body {
	margin: 0;
	overflow-x: clip;
}

img {
	max-width: 100%;
	height: auto;
}

.wp-block-image {
	margin: 0;
}

/* Linked images: no inline line box around the image. */
.wp-block-image > a,
.wp-block-image img {
	display: block;
}

:where(a, button, summary):focus-visible {
	outline: 2px solid var(--iza-magenta);
	outline-offset: 3px;
}

/* Paragraphs carry no margin of their own; spacing comes from the containers. Running text keeps
   one line of air between paragraphs. :last-child is needed against the core flow-layout rule. */
.iza-inhalt p,
.iza-inhalt p:last-child {
	margin: 0;
}

.iza-inhalt p + p,
.iza-inhalt p + p:last-child {
	margin-top: 1em;
}

.iza-inhalt :is(h1, h2, h3, h4, h5, h6) {
	margin: 0;
}

.iza-inhalt a:hover,
.iza-inhalt a:focus-visible {
	text-decoration: underline;
}

:where(.iza-inhalt) [id] {
	scroll-margin-top: var(--iza-kopf-hoehe);
}

/* Boxed sections: side margin from the edge preset, content at most --iza-box wide. */
.iza-sektion {
	--iza-box: 1200px;
	box-sizing: border-box;
	padding-inline: max(var(--iza-rand), calc((100% - var(--iza-box)) / 2));
}

/* ------------------------------------------------------------------ Header */

.iza-kopfbereich {
	position: sticky;
	top: 0;
	z-index: 9999;
	background: rgba(255, 255, 255, .7);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
}

.admin-bar .iza-kopfbereich {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	.admin-bar .iza-kopfbereich {
		top: 0;
	}
}

.iza-kopf {
	box-sizing: border-box;
	padding: var(--s10) max(var(--iza-rand), calc((100% - 1312px) / 2));
	gap: 0;
	position: relative;
}

.iza-kopf > .iza-logo {
	flex: 0 0 auto;
	width: 220px;
}

.iza-kopf > .iza-logo img {
	width: 220px;
}

.iza-menue {
	flex: 0 0 65%;
	min-height: 80px;
	box-sizing: border-box;
	padding-right: var(--s40);
}

.iza-menue .wp-block-navigation__container {
	flex: 0 0 auto;
	width: auto;
	padding: 0;
	gap: var(--s40);
}

.iza-menue .wp-block-navigation-item__content {
	position: relative;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5;
	text-transform: capitalize;
	color: var(--iza-text);
	text-decoration: none;
	padding: 0;
}

.iza-menue .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: currentColor;
	opacity: 0;
	transition: opacity .3s;
}

.iza-menue .wp-block-navigation-item__content:hover,
.iza-menue .wp-block-navigation-item__content:focus-visible {
	color: var(--iza-gruen);
}

.iza-menue .wp-block-navigation-item__content:hover::after,
.iza-menue .wp-block-navigation-item__content:focus-visible::after,
.iza-menue .current-menu-item > .wp-block-navigation-item__content::after {
	opacity: 1;
}

.iza-menue .current-menu-item > .wp-block-navigation-item__content {
	color: var(--iza-magenta);
}

.iza-menue__knopf {
	display: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--iza-gruen);
	cursor: pointer;
}

.iza-menue__knopf svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
}

.iza-menue__zu,
.iza-menue__knopf[aria-expanded="true"] .iza-menue__auf {
	display: none;
}

.iza-menue__knopf[aria-expanded="true"] .iza-menue__zu {
	display: block;
}

.iza-sprache {
	flex: 0 0 15%;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	margin: 0;
	min-height: 80px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--iza-gruen);
}

.iza-sprache a {
	display: inline-flex;
	align-items: center;
	color: var(--iza-gruen);
	font-weight: 600;
	text-decoration: none;
}

/* Globe belongs to the first link. */
.iza-sprache a:first-child::before {
	content: "";
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	margin-right: 14px;
	background: url("../img/globus.svg") center / contain no-repeat;
}

.iza-sprache a:hover,
.iza-sprache a:focus-visible {
	text-decoration: underline;
}

@media (max-width: 1024px) {
	.iza-kopf {
		padding-block: 0;
		justify-content: space-around;
	}

	.iza-kopf > .iza-logo {
		padding-right: 56px;
	}

	.iza-menue {
		flex: 0 0 35%;
		justify-content: flex-end;
		position: static;
	}

	.iza-menue__knopf {
		display: inline-flex;
	}

	.iza-menue .wp-block-navigation__container {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: calc(100% - 3px);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin: 0;
		padding: 0;
		background: var(--wp--preset--color--light-grey, #f3f3f3);
		z-index: 2;
	}

	.iza-menue.is-offen .wp-block-navigation__container {
		display: flex;
	}

	.iza-menue .wp-block-navigation-item {
		width: 100%;
	}

	.iza-menue .wp-block-navigation-item__content {
		display: block;
		width: 100%;
		box-sizing: border-box;
		padding: var(--s20) var(--s40);
		font-weight: 500;
	}

	.iza-menue .wp-block-navigation-item__content::after {
		display: none;
	}

	.iza-menue .current-menu-item > .wp-block-navigation-item__content {
		background: #fff;
		color: var(--iza-text);
	}

	.iza-sprache {
		flex-basis: 24%;
	}
}

@media (max-width: 767px) {
	/* Logo 200 px, nav 20 %, languages 40 %: they shrink together. */
	.iza-kopf > .iza-logo {
		flex: 0 1 200px;
		width: auto;
		min-width: 0;
		padding-right: 0;
		padding-left: 5px;
	}

	.iza-kopf > .iza-logo img {
		width: 100%;
	}

	.iza-menue {
		flex: 0 1 20%;
		justify-content: center;
		padding-right: 0;
	}

	.iza-menue .wp-block-navigation-item__content {
		padding: var(--s20) var(--s30);
	}

	.iza-menue__knopf svg {
		width: 22px;
		height: 22px;
	}

	.iza-sprache {
		flex: 0 1 40%;
		justify-content: flex-start;
		min-height: 36px;
	}

	.iza-sprache a:first-child::before {
		flex-basis: 24px;
		width: 24px;
		height: 24px;
		margin-right: var(--s20);
	}
}

/* ------------------------------------------------------------------ Type on the start page */

.iza-titel {
	font-weight: 800;
	line-height: 1.15;
	color: var(--iza-gruen);
}

h1.iza-titel {
	font-size: var(--fs-title);
}

h2.iza-titel {
	font-size: var(--fs-section);
}

.iza-lead {
	font-size: var(--fs-card);
	line-height: 1.65;
	color: var(--iza-text-weich);
}

/* ------------------------------------------------------------------ Hero */

.iza-hero {
	padding-top: var(--iza-band);
	padding-bottom: var(--iza-band);
	overflow: hidden;
}

.iza-hero__text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--s40);
	padding-bottom: var(--s60);
	text-align: center;
}

.iza-hero__text .iza-titel {
	max-width: 24ch;
}

.iza-hero__text .iza-lead {
	max-width: 44rem;
}

.iza-badges {
	display: flex;
	align-self: stretch;
	justify-content: center;
	align-items: center;
	gap: var(--s30);
	padding-top: var(--s10);
}

.iza-phones {
	position: relative;
	height: 340px;
	margin-inline: var(--s40);
	overflow: hidden;
	background: #fff;
}

.iza-phones::after,
.iza-phones::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
}

.iza-phones::after {
	height: 65%;
	z-index: 5;
	background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, .95) 20%, rgba(255, 255, 255, .7) 45%, rgba(255, 255, 255, .3) 70%, rgba(255, 255, 255, 0) 100%);
}

.iza-phones::before {
	height: 28%;
	z-index: 6;
	background: linear-gradient(to top, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, .3) 50%, rgba(255, 255, 255, 0) 100%);
}

.iza-phones .iza-phone {
	--r: 0deg;
	--s: 1;
	position: absolute;
	left: 50%;
	width: 220px;
	filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .18));
	transform: rotate(var(--r)) scale(var(--s));
	animation: iza-hoch 800ms ease-out both;
}

.iza-phones .iza-phone img {
	width: 100%;
}

.iza-phones .iza-phone--left {
	--r: -10deg;
	--s: .99;
	z-index: 2;
	top: 90px;
	margin-left: -250px;
	animation-delay: 60ms;
}

.iza-phones .iza-phone--center {
	--s: 1.08;
	z-index: 4;
	top: 50px;
	margin-left: -110px;
	animation-delay: 150ms;
}

.iza-phones .iza-phone--right {
	--r: 10deg;
	--s: 1.01;
	z-index: 3;
	top: 78px;
	margin-left: 30px;
	animation-delay: 240ms;
}

@keyframes iza-hoch {
	from {
		opacity: 0;
		transform: translateY(100px) rotate(var(--r)) scale(var(--s));
	}

	to {
		opacity: 1;
		transform: translateY(0) rotate(var(--r)) scale(var(--s));
	}
}

@media (prefers-reduced-motion: reduce) {
	.iza-phones .iza-phone {
		animation: none;
	}
}

/* ------------------------------------------------------------------ Section intros */

.iza-intro {
	padding-bottom: var(--s60);
}

.iza-intro .iza-innen {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--s40);
	text-align: center;
}

.iza-intro .iza-titel {
	max-width: 28ch;
}

.iza-intro .iza-lead {
	max-width: 44rem;
}

/* ------------------------------------------------------------------ Three cards */

.iza-karten-sektion {
	--iza-box: 1312px;
	padding-bottom: var(--iza-section);
}

.iza-karten {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--s40);
}

.iza-karte {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--s30);
	box-sizing: border-box;
	padding: var(--s50);
	border: 1px solid var(--iza-gruen);
	background: #fff;
	color: var(--iza-text);
	overflow: hidden;
	transition: color .375s ease, border-color .375s ease, transform .3s ease;
}

.iza-karte::after {
	content: "";
	position: absolute;
	inset: -1px;
	background: var(--iza-gruen);
	clip-path: circle(0% at 0% 100%);
	transition: clip-path .9s var(--iza-ease);
	will-change: clip-path;
	z-index: 0;
}

.iza-karte > * {
	position: relative;
	z-index: 1;
}

.iza-karte__icon {
	margin-bottom: var(--s10);
}

.iza-karte__icon img {
	width: 72px;
	height: 72px;
	transition: filter .375s ease;
}

.iza-karte .iza-karte__titel {
	font-size: var(--fs-sub);
	font-weight: 800;
	line-height: 1.15;
	color: var(--iza-gruen);
	transition: color .375s ease;
}

.iza-karte p {
	color: inherit;
}

.iza-karte:hover,
.iza-karte:focus-within {
	color: #fff;
	transform: translateY(-2px);
}

.iza-karte:hover::after,
.iza-karte:focus-within::after {
	clip-path: circle(180% at 0% 100%);
}

.iza-karte:hover .iza-karte__titel,
.iza-karte:focus-within .iza-karte__titel {
	color: #fff;
}

.iza-karte:hover .iza-karte__icon img,
.iza-karte:focus-within .iza-karte__icon img {
	filter: brightness(0) invert(1);
}

@media (prefers-reduced-motion: reduce) {
	.iza-karte,
	.iza-karte::after {
		transition: none;
	}
}

/* ------------------------------------------------------------------ Text and image rows (QR code) */

.iza-zeile .iza-innen {
	display: flex;
	align-items: flex-start;
}

.iza-zeile--1 {
	padding-bottom: var(--s70);
	overflow: hidden;
}

.iza-zeile__text {
	flex: 0 0 50%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: var(--s40);
	padding-right: var(--s70);
}

.iza-zeile__text .iza-text {
	max-width: 34rem;
	color: var(--iza-text-weich);
}

.iza-zeile__bild {
	flex: 0 0 50%;
}

.iza-zeile--1 .iza-zeile__bild .wp-block-image {
	width: 70%;
	margin-inline: auto;
}

.iza-zeile--2 .iza-zeile__bild .wp-block-image {
	width: 76%;
}

.iza-zeile__bild img,
.iza-overlay img {
	width: 100%;
}

/* Overlay image: hand with phone over the QR code of row 2. No side padding, only the 1200 px box. */
.iza-overlay-sektion {
	padding-inline: max(0px, calc((100% - 1200px) / 2));
	padding-bottom: var(--iza-section);
}

/* Higher specificity than the core rule ":root :where(.is-layout-flow) > :first-child". */
.iza-overlay-sektion .iza-innen > .iza-overlay {
	position: relative;
	z-index: 10;
	width: 70%;
	margin: -40% auto 0;
}

/* Fade-in (images in the QR section) */
.iza-js .iza-einblenden {
	opacity: 0;
}

.iza-js .iza-einblenden.is-sichtbar {
	animation: iza-einblenden 2s 150ms both;
}

.iza-js .iza-einblenden--hoch.is-sichtbar {
	animation-name: iza-einblenden-hoch;
	animation-delay: 0s;
}

@keyframes iza-einblenden {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes iza-einblenden-hoch {
	from {
		opacity: 0;
		transform: translate3d(0, 100%, 0);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* ------------------------------------------------------------------ FAQ */

.iza-faq {
	--iza-box: 1312px;
	padding-bottom: var(--iza-section);
}

.iza-faq .iza-innen {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.iza-faq .iza-faq__titel {
	font-size: var(--fs-section);
}

.iza-faq .iza-faq__intro {
	margin-top: var(--s30);
	font-size: var(--fs-card);
	text-align: center;
	color: var(--iza-text-weich);
}

.iza-faq__liste {
	display: flex;
	flex-direction: column;
	gap: var(--s30);
	width: 100%;
	margin-top: var(--s50);
}

.iza-faq__item {
	margin: 0;
	border: 1px solid var(--iza-gruen);
	background: #fff;
}

.iza-faq__item > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s30);
	padding: var(--s30) var(--s40);
	font-size: var(--fs-card);
	font-weight: 700;
	line-height: 1.4;
	color: var(--iza-gruen);
	background: #fff;
	cursor: pointer;
	list-style: none;
	transition: background-color .3s, color .3s;
}

.iza-faq__item > summary::-webkit-details-marker {
	display: none;
}

.iza-faq__item > summary::after {
	content: "";
	flex: 0 0 1.25rem;
	width: 1.25rem;
	height: 1.25rem;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .25s var(--iza-ease);
}

.iza-faq__item[open] > summary::after {
	transform: rotate(45deg);
}

.iza-faq__item > summary:hover,
.iza-faq__item > summary:focus-visible,
.iza-faq__item[open] > summary {
	background: var(--iza-gruen);
	color: #fff;
}

.iza-faq__item > :not(summary) {
	padding-inline: var(--s40);
}

.iza-faq__item > :not(summary):first-of-type {
	padding-top: var(--s40);
}

.iza-faq__item > :not(summary):last-child {
	padding-bottom: var(--s40);
}

/* ------------------------------------------------------------------ Legal pages */

.iza-recht {
	padding-top: var(--iza-band);
	padding-bottom: var(--iza-section);
}

.iza-recht__text {
	max-width: 52rem;
}

.iza-recht .iza-recht__titel {
	font-size: var(--fs-title);
	margin-bottom: var(--s50);
}

.iza-recht__text h2 {
	font-size: 1.5rem;
	margin: var(--s60) 0 var(--s20);
}

.iza-recht__text h3 {
	font-size: 1.25rem;
	margin: var(--s50) 0 var(--s10);
}

.iza-recht__text :is(h4, h5, h6) {
	font-size: var(--fs-body);
	font-weight: 700;
	margin: var(--s40) 0 var(--s10);
}

.iza-recht__text .iza-recht__titel + :is(h2, h3) {
	margin-top: 0;
}

.iza-recht__text p {
	margin: 0 0 var(--s30);
}

.iza-recht__text :is(ul, ol) {
	margin: 0 0 var(--s30);
	padding-left: 1.25em;
}

.iza-recht__text li + li {
	margin-top: .25em;
}

.iza-recht__text .iza-adresse {
	margin-bottom: var(--s10);
}

/* ------------------------------------------------------------------ Footer */

.iza-kontakt {
	--iza-box: 1312px;
	box-sizing: border-box;
	padding: 0 max(var(--iza-rand), calc((100% - 1312px) / 2)) var(--s60);
}

.iza-kontakt .iza-kontakt__titel {
	margin: 0;
	font-size: var(--fs-section);
	font-weight: 800;
	line-height: 1.15;
	color: var(--iza-gruen);
}

.iza-kontakt .iza-kontakt__intro {
	margin: var(--s30) 0 0;
	color: var(--iza-text);
}

.iza-person {
	gap: var(--s40);
	margin-top: var(--s50);
}

.iza-person__text p {
	margin: 0;
	line-height: 1.4;
	color: var(--iza-text-weich);
}

.iza-person__text .iza-person__name {
	font-size: var(--fs-sub);
	font-weight: 800;
	line-height: 1.15;
	color: var(--iza-gruen);
}

.iza-person__text .iza-person__rolle {
	margin-top: var(--s10);
	font-size: var(--fs-small);
	font-weight: 600;
}

.iza-person__text .iza-person__mail {
	margin-top: var(--s30);
}

.iza-person__text a {
	color: inherit;
	font-weight: 400;
	text-decoration: none;
}

.iza-person__text a:hover,
.iza-person__text a:focus-visible {
	text-decoration: underline;
}

.iza-fuss {
	box-sizing: border-box;
	padding: var(--s60) max(var(--iza-rand), calc((100% - 1312px) / 2)) var(--s40);
	background: var(--iza-gruen);
	color: #fff;
}

.iza-fuss p {
	margin: 0;
	color: #fff;
}

.iza-fuss__spalten {
	display: flex;
	gap: var(--s40);
	margin-bottom: var(--s60);
}

.iza-fuss__spalten > * {
	flex: 1 1 0;
	min-width: 0;
}

.iza-fuss__marke p {
	margin-top: var(--s30);
	font-size: var(--fs-small);
	line-height: 1.5;
}

.iza-fuss__qr .wp-block-image {
	margin-top: -180px;
	padding-bottom: var(--s10);
}

.iza-fuss__qr img {
	width: 100%;
	box-sizing: border-box;
	border: 2px solid var(--iza-gruen);
}

.iza-fuss .iza-fuss__qr-text {
	text-align: center;
	font-size: var(--fs-body);
	font-weight: 700;
}

.iza-fuss__leiste {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s40);
}

.iza-fuss .iza-copyright {
	flex: 0 1 50%;
	font-size: var(--fs-small);
	font-weight: 300;
	line-height: 1.4;
}

.iza-social {
	display: flex;
	gap: var(--s30);
	margin-left: auto;
}

.iza-social img {
	width: 36px;
}

.iza-fuss .iza-rechtliches {
	display: flex;
	font-size: var(--fs-small);
	font-weight: 300;
}

.iza-rechtliches a {
	position: relative;
	color: #fff;
	font-weight: 300;
	text-decoration: none;
}

.iza-rechtliches a + a {
	margin-left: var(--s30);
}

.iza-rechtliches a + a::before {
	content: "";
	position: absolute;
	left: calc(var(--s30) / -2);
	top: 15%;
	height: 70%;
	border-left: 1px solid rgba(255, 255, 255, .6);
}

.iza-rechtliches a:hover,
.iza-rechtliches a:focus-visible {
	text-decoration: underline;
}

/* ------------------------------------------------------------------ Feature carousel */

.iza-funktionen-sektion {
	padding-bottom: var(--iza-section);
}

.iza-funktionen {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--s80);
}

.iza-funktionen__karten {
	flex: 0 1 34rem;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--s30);
}

.iza-funktionen__liste {
	position: relative;
	width: 100%;
	height: 30rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.iza-funktion {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	display: flex;
	align-items: center;
	gap: var(--s40);
	box-sizing: border-box;
	padding: var(--s40) var(--s50);
	border: 2px solid var(--iza-linie);
	background: #fff;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-50%) scale(.8);
	transition: transform .45s var(--iza-ease), opacity .45s ease, border-color .45s ease, box-shadow .45s ease;
}

.iza-funktion.is-oben,
.iza-funktion.is-unten {
	opacity: .4;
	pointer-events: auto;
	cursor: pointer;
	z-index: 2;
}

.iza-funktion.is-oben {
	transform: translateY(calc(-50% - 10rem)) scale(.9);
}

.iza-funktion.is-unten {
	transform: translateY(calc(-50% + 10rem)) scale(.9);
}

.iza-funktion.is-mitte {
	opacity: 1;
	pointer-events: auto;
	z-index: 3;
	border-color: var(--iza-gruen);
	box-shadow: 0 0 40px rgba(0, 0, 0, .15);
	transform: translateY(-50%);
}

.iza-funktion__icon {
	flex: 0 0 96px;
	width: 96px;
	height: 96px;
}

.iza-funktion__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.iza-funktion__text {
	flex: 1;
	min-width: 0;
}

.iza-funktion__titel {
	margin: 0;
	font-size: var(--fs-sub);
	font-weight: 800;
	line-height: 1.15;
	color: var(--iza-gruen);
}

.iza-funktion .iza-funktion__beschreibung {
	margin: var(--s10) 0 0;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--iza-text);
}

/* Without JavaScript: the cards one below the other. */
.iza-funktionen:not(.is-bereit) .iza-funktionen__liste {
	height: auto;
	display: grid;
	gap: var(--s30);
}

.iza-funktionen:not(.is-bereit) .iza-funktion {
	position: relative;
	top: auto;
	opacity: 1;
	transform: none;
}

.iza-funktionen:not(.is-bereit) :is(.iza-funktionen__pfeil, .iza-funktionen__pause) {
	display: none;
}

.iza-funktionen__unten {
	position: relative;
	display: flex;
	justify-content: center;
}

.iza-funktionen__pfeil {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	padding: 0;
	border: 0;
	background: #fff;
	color: var(--iza-gruen);
	cursor: pointer;
	transition: background-color .25s, transform .25s;
}

.iza-funktionen__pfeil:hover {
	background: var(--wp--preset--color--light-grey, #f3f3f3);
	transform: scale(1.08);
}

.iza-funktionen__pfeil svg {
	width: 48px;
	height: 48px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Small pause control next to the lower arrow (automatic switching must be stoppable). */
.iza-funktionen__pause {
	position: absolute;
	left: calc(50% + 48px);
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--iza-gruen);
	opacity: .6;
	cursor: pointer;
	transition: opacity .2s;
}

.iza-funktionen__pause:hover,
.iza-funktionen__pause:focus-visible {
	opacity: 1;
}

.iza-funktionen__pause[hidden] {
	display: none;
}

.iza-funktionen__pause svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.iza-funktionen__start-icon {
	fill: currentColor;
	stroke: none;
}

.iza-funktionen__start-icon,
.iza-funktionen__pause[aria-pressed="true"] .iza-funktionen__pause-icon {
	display: none;
}

.iza-funktionen__pause[aria-pressed="true"] .iza-funktionen__start-icon {
	display: block;
}

.iza-funktionen__telefon {
	position: relative;
	flex: 0 0 320px;
	width: 320px;
	aspect-ratio: 461 / 962;
	filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .25));
}

.iza-funktionen__screens {
	position: absolute;
	top: 1.5%;
	left: 3%;
	width: 94%;
	height: 97%;
	overflow: hidden;
	border-radius: 2.4rem;
	background: #f3f3f3;
}

.iza-funktionen__screen {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .4s ease;
}

.iza-funktionen__screen.is-aktiv {
	opacity: 1;
}

.iza-funktionen__screen img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.iza-funktionen__rahmen {
	position: relative;
	z-index: 2;
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.iza-funktion,
	.iza-funktionen__screen {
		transition: none;
	}
}

/* Tablet and phone: phone on top, the middle card below it, the next two stacked behind. */
@media (max-width: 1024px) {
	.iza-funktionen-sektion {
		padding-inline: var(--s30);
	}

	.iza-funktionen {
		flex-direction: column;
		gap: 0;
	}

	.iza-funktionen__telefon {
		order: 1;
		flex: 0 0 auto;
		width: min(72vw, 280px);
	}

	.iza-funktionen__karten {
		order: 2;
		flex: 0 0 auto;
		width: 100%;
		max-width: 400px;
		margin-top: -40px;
		position: relative;
		z-index: 4;
		gap: 0;
	}

	.iza-funktionen__pfeil--hoch {
		display: none;
	}

	.iza-funktionen__liste {
		height: auto;
		padding-bottom: 28px;
	}

	/* The cards behind take exactly the size of the middle one, so their edges always peek out below. */
	.iza-funktion {
		top: 0;
		bottom: 28px;
		left: 5%;
		right: 5%;
		overflow: hidden;
		gap: var(--s30);
		padding: var(--s30) var(--s40);
		transform: none;
		transition: opacity .4s ease, filter .4s ease, transform .4s ease;
	}

	.iza-funktion.is-mitte {
		position: relative;
		left: auto;
		right: auto;
		margin-inline: 5%;
		transform: none;
		box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
	}

	.iza-funktion.is-oben {
		opacity: .6;
		z-index: 2;
		border-color: var(--iza-gruen);
		filter: blur(1px);
		pointer-events: none;
		transform: translateY(12px) scale(.95);
	}

	.iza-funktion.is-unten {
		opacity: .3;
		z-index: 1;
		border-color: var(--iza-gruen);
		filter: blur(2px);
		pointer-events: none;
		transform: translateY(24px) scale(.9);
	}

	.iza-funktion__icon {
		flex-basis: 48px;
		width: 48px;
		height: 48px;
	}

	.iza-funktion__titel {
		font-size: var(--fs-body);
	}

	.iza-funktion .iza-funktion__beschreibung {
		margin-top: 4px;
		font-size: var(--fs-small);
		line-height: 1.45;
	}

	.iza-funktionen__pfeil {
		width: 56px;
		height: 56px;
	}

	.iza-funktionen__pfeil svg {
		width: 34px;
		height: 34px;
	}

	.iza-funktionen__pause {
		left: calc(50% + 34px);
	}
}

/* ------------------------------------------------------------------ Tablet */

@media (max-width: 1024px) {
	.iza-karten-sektion {
		padding-inline: var(--s30);
	}

	.iza-karte {
		padding: var(--s40);
	}

	.iza-zeile .iza-innen {
		flex-direction: column;
		gap: var(--s50);
	}

	.iza-zeile__text,
	.iza-zeile__bild {
		flex-basis: auto;
		width: 100%;
		padding-right: 0;
	}

	.iza-zeile__text .iza-text {
		max-width: none;
	}

	.iza-zeile--2 .iza-zeile__bild .wp-block-image {
		width: 70%;
		margin-inline: auto;
	}

	.iza-overlay-sektion .iza-innen > .iza-overlay {
		width: 75%;
		margin: -53% 0 0 auto;
	}

	.iza-faq {
		padding-inline: var(--s30);
	}

	.iza-fuss__spalten {
		flex-wrap: wrap;
		row-gap: var(--s50);
	}

	.iza-fuss__spalten > * {
		flex: 0 0 calc(50% - var(--s40) / 2);
	}

	.iza-fuss__qr .wp-block-image {
		margin-top: 0;
		width: 50%;
	}

	.iza-fuss .iza-fuss__qr-text {
		text-align: left;
	}

	.iza-fuss__leiste {
		flex-wrap: wrap;
	}
}

/* ------------------------------------------------------------------ Phone */

@media (max-width: 767px) {
	.iza-hero {
		padding-top: var(--s50);
	}

	.iza-hero__text {
		gap: var(--s30);
		padding-bottom: var(--s40);
	}

	.iza-badges {
		justify-content: space-evenly;
		gap: var(--s10);
	}

	.iza-badges .wp-block-image,
	.iza-badges .wp-block-image img {
		width: 150px;
	}

	.iza-phones {
		height: 320px;
		margin-inline: 0;
	}

	.iza-karten-sektion {
		padding-inline: var(--iza-rand);
	}

	.iza-karten {
		grid-template-columns: minmax(0, 1fr);
	}

	.iza-zeile__text .iza-titel {
		text-align: center;
	}

	.iza-zeile--2 .iza-zeile__text .iza-titel {
		text-align: left;
	}

	.iza-zeile--2 .iza-zeile__bild .wp-block-image {
		width: 80%;
	}

	.iza-overlay-sektion .iza-innen > .iza-overlay {
		width: 90%;
		margin: -60% 0 0 -15%;
	}

	.iza-faq {
		padding-inline: var(--iza-rand);
	}

	.iza-person {
		flex-direction: column;
		align-items: flex-start;
	}

	.iza-fuss__spalten > * {
		flex: 0 0 100%;
	}

	.iza-fuss__qr .wp-block-image {
		width: 176px;
	}

	.iza-fuss__leiste {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--s30);
	}

	.iza-social {
		margin-left: 0;
	}
}

/* Phones in the hero, smaller screens (values of the former HTML widget) */
@media (max-width: 900px) {
	.iza-phones {
		height: 420px;
	}

	.iza-phones .iza-phone {
		width: 200px;
	}

	.iza-phones .iza-phone--left {
		top: 110px;
		margin-left: -210px;
	}

	.iza-phones .iza-phone--center {
		top: 70px;
		margin-left: -100px;
	}

	.iza-phones .iza-phone--right {
		top: 98px;
		margin-left: 10px;
	}
}

@media (max-width: 600px) {
	.iza-phones {
		height: 380px;
	}

	.iza-phones .iza-phone {
		width: 160px;
	}

	.iza-phones .iza-phone--left {
		--r: -8deg;
		top: 100px;
		margin-left: -170px;
	}

	.iza-phones .iza-phone--center {
		--s: 1.05;
		top: 65px;
		margin-left: -80px;
	}

	.iza-phones .iza-phone--right {
		--r: 8deg;
		top: 88px;
		margin-left: 10px;
	}
}

@media (max-width: 420px) {
	.iza-phones {
		height: 320px;
	}

	.iza-phones .iza-phone {
		width: 130px;
	}

	.iza-phones .iza-phone--left {
		top: 90px;
		margin-left: -140px;
	}

	.iza-phones .iza-phone--center {
		top: 55px;
		margin-left: -65px;
	}

	.iza-phones .iza-phone--right {
		top: 78px;
		margin-left: 10px;
	}
}
