/* Inhaltsbausteine (Klassen th-*): Reiter, Ablauf-Schritte, Kästen, Spalten, App-Hinweise.
   Eigene Regeln nach den gemessenen Werten der bisherigen Website; Farben aus dem Theme-Farbschema. */

.th-spacing-bottom { margin-bottom: var(--spacing, 1.25rem); }
.th-spacing-bottom-lg { margin-bottom: var(--spacing-lg, 1.875rem); }
.th-spacing-bottom-xl { margin-bottom: var(--spacing-xl, 3.125rem); }
.th-spacing-bottom-xxl { margin-bottom: var(--spacing-xxl, 5rem); }
.th-section-padding { padding: var(--spacing-xl, 3.125rem) 0; }
.th-rounded { border-radius: var(--b-radius-2, 1rem); }
.th-object-cover { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--b-radius-2, 1rem); }
.th-object-contain { display: block; width: 100%; height: auto; object-fit: contain; }
.th-flex-row { display: flex; flex-wrap: wrap; gap: var(--spacing, 1.25rem); align-items: center; }
.th-flex-column { display: flex; flex-direction: column; gap: var(--spacing, 1.25rem); }
.th-gap-xl { gap: var(--spacing-xl, 3.125rem); }
.th-text-wrap > :last-child, .th-box > :last-child { margin-bottom: 0; }

/* Kästen und Spalten */
.th-box, .th-bg-box {
	position: relative;
	margin: 0 0 var(--spacing-xl, 3.125rem);
	padding: var(--spacing, 1.25rem);
	background-color: oklch(98% 0.01 157.64);
	border-radius: var(--b-radius, 1.5rem);
}
.th-section-color-sur { background-color: oklch(96% 0.01 157.64); }
.th-section-color-main { background-color: oklch(45% 0.11 157.64); color: oklch(100% 0.055 157.64); }
.th-two-cols, .th-three-cols { display: grid; gap: var(--spacing-xl, 3.125rem); }
.th-two-cols { grid-template-columns: 1fr 1fr; }
.th-three-cols { grid-template-columns: repeat(3, 1fr); }
.th-two-cols:has(> :only-child), .th-three-cols:has(> :only-child) { grid-template-columns: 1fr; }
@media (max-width: 64rem) {
	.th-two-cols, .th-three-cols { grid-template-columns: 1fr; gap: var(--spacing, 1.25rem); }
	.th-flex-into-column { flex-direction: column; align-items: flex-start; }
}

/* Listen mit Haken */
.th-list { margin: 0 0 var(--spacing, 1.25rem); padding: 0; list-style: none; }
.th-list li { position: relative; padding-left: 30px; }
.th-list li::before {
	content: "";
	position: absolute;
	top: 10px;
	left: 0;
	width: 10px;
	height: 10px;
	background-color: currentColor;
	-webkit-mask: url(../icons/icon-check-1.svg) center / contain no-repeat;
	mask: url(../icons/icon-check-1.svg) center / contain no-repeat;
}

/* Symbol links neben Text/Link */
.th-icon-left { display: flex; align-items: center; gap: 10px; }
a.th-icon-left:not(.th-btn) { color: oklch(45% 0.11 157.64); }
.th-icon-top { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.th-icn {
	display: block;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask-position: center; mask-position: center;
	-webkit-mask-size: contain; mask-size: contain;
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.th-icon-left.clock::before, .th-icon-left.pin::before, .th-icon-left.shop::before {
	content: "";
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask-position: center; mask-position: center;
	-webkit-mask-size: contain; mask-size: contain;
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}

/* Knopf */
.th-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 25px;
	font-weight: 600;
	color: oklch(100% 0.055 157.64);
	background-color: oklch(45% 0.11 157.64);
	border-radius: var(--b-radius, 1.5rem);
	text-decoration: none;
}
.th-btn:hover, .th-btn:focus-visible { background-color: oklch(20% 0.1 157.64); color: oklch(100% 0.055 157.64); }

/* Reiter */
.th-tabbed-navigation-wrapper { position: relative; }
.th-tabbed-navigation {
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing, 1.25rem);
	margin: 0;
	padding: 0;
	list-style: none;
	background-color: oklch(96% 0.01 157.64);
	border-radius: 32px;
}
.th-btn-tabbed {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 20px;
	font-weight: 600;
	color: oklch(45% 0.01 157.64);
	border-radius: 32px;
	cursor: pointer;
	user-select: none;
}
.th-btn-tabbed:hover { color: oklch(45% 0.11 157.64); }
.th-btn-tabbed.current { color: oklch(100% 0.055 157.64); background-color: oklch(20% 0.1 157.64); }
.th-btn-tabbed:focus-visible { outline: 3px solid oklch(45% 0.11 157.64); outline-offset: 2px; }
.th-btn-tabbed.egk::before, .th-btn-tabbed.erezept::before, .th-btn-tabbed.erezept-app::before,
.th-btn-tabbed.cardlink::before, .th-btn-tabbed.shop::before, .th-btn-tabbed.app::before {
	content: "";
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask-position: center; mask-position: center;
	-webkit-mask-size: contain; mask-size: contain;
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.th-tab { padding: var(--spacing-xl, 3.125rem) 0; }
.th-tab:not(.current-tab) { display: none; }
@media (max-width: 40rem) {
	.th-tabbed-navigation { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
	.th-btn-tabbed { white-space: nowrap; }
}

/* Ablauf in Schritten */
.th-process-step {
	display: grid;
	grid-template-columns: 64px 1fr;
	grid-template-rows: auto 1fr;
	column-gap: 30px;
	row-gap: 30px;
	margin: 0 0 30px;
}
.th-process-step-icon {
	position: relative;
	grid-column: 1;
	grid-row: 1;
	width: 64px;
	height: 64px;
	background-color: oklch(45% 0.11 157.64);
	border-radius: 50%;
}
.th-process-step-icon::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: oklch(100% 0.055 157.64);
	-webkit-mask-position: center; mask-position: center;
	-webkit-mask-size: contain; mask-size: contain;
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	transform: scale(.6);
}
.th-process-step-content { grid-column: 2; grid-row: 1 / span 2; }
.th-process-step-content > p { margin: 0 0 10px; }
.th-process-step-seperator {
	grid-column: 1;
	grid-row: 2;
	justify-self: center;
	width: 4px;
	background-color: oklch(90% 0.01 157.64);
	border-radius: 2px;
}
.th-process-step:last-child .th-process-step-seperator { display: none; }
.th-process-step-pre-title { margin: 0; font-size: var(--font-size-xs, .9rem); font-weight: 600; text-transform: uppercase; }
.th-process-step-title { margin: 0 0 var(--spacing, 1.25rem) !important; font-size: var(--font-size-h4, 1.3rem); font-weight: 600; }
@media (max-width: 40rem) {
	.th-process-step { grid-template-columns: 44px 1fr; column-gap: 16px; }
	.th-process-step-icon { width: 44px; height: 44px; }
}

/* Apps: Symbol, Name, Store-Abzeichen */
.th-apps-wrap {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 10px var(--spacing, 1.25rem);
	margin: 0 0 var(--spacing, 1.25rem);
	align-items: center;
}
.th-apps-wrap:not(:has(.th-app-icon)) { grid-template-columns: 1fr; }
.th-app-icon { width: 80px; height: 80px; border-radius: 16px; }
.th-app-title { font-size: 1rem; font-weight: 600; }
.th-app-download-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.th-app-download {
	display: block;
	width: 144px;
	height: 43px;
	background: center / contain no-repeat;
}
.th-app-download.apple { background-image: url(../img/stores/app-store.svg); }
.th-app-download.playstore { background-image: url(../img/stores/google-play.png); background-size: 166px auto; }
.th-app-download::before, .th-app-download::after { display: none !important; }
.bild-ersatz { display: none; }
