/*
 * Mission Medizin — App-Bausteine. Werte aus dem Styleguide (Teil 2, 3, 5):
 * Karten weiß, Radius 14, Rand Sand 200, Schatten md; Text Navy 900,
 * Nebentext Navy 700; Primärknopf Vermilion 600, Sekundär Rahmen Navy 600,
 * Höhe 44; Fokusring 3 px 30 % Vermilion. Fortschritt ist die eine Stelle,
 * an der Vermilion 500 als Fläche richtig ist.
 */

.mm-pwa-hinweis,
.mm-pwa-kurs,
.mm-pwa-push {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: #232F3F;
	background: #FFFFFF;
	border: 1px solid #EFE6DC;
	border-radius: 14px;
	box-sizing: border-box;
}

.mm-pwa-hinweis *,
.mm-pwa-kurs *,
.mm-pwa-push * {
	box-sizing: border-box;
}

.mm-pwa-kicker {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #4F5E72;
}

.mm-pwa-titel {
	margin: 0 0 4px;
	font-size: 17px;
	line-height: 1.32;
	font-weight: 600;
	color: #232F3F;
}

.mm-pwa-sub {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #4F5E72;
}

.mm-pwa-aktionen {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	align-items: center;
	margin-top: 12px;
}

/* Knöpfe */

.mm-pwa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 10px;
	font: 600 15px/1 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 120ms cubic-bezier(0.2, 0.7, 0.2, 1), border-color 120ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mm-pwa-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 66, 3, 0.30);
}

.mm-pwa-btn-primaer {
	background: #D63500;
	border: 1px solid #D63500;
	color: #FFFFFF;
}

.mm-pwa-btn-primaer:hover {
	background: #AB2800;
	border-color: #AB2800;
	color: #FFFFFF;
}

.mm-pwa-btn-sekundaer {
	background: #FFFFFF;
	border: 1px solid #6B7A8E;
	color: #232F3F;
}

.mm-pwa-btn-sekundaer:hover {
	border-color: #4F5E72;
	background: #F9F3EB;
	color: #232F3F;
}

.mm-pwa-btn-leise {
	background: transparent;
	border: 1px solid transparent;
	color: #4F5E72;
	padding: 0 12px;
}

.mm-pwa-btn-leise:hover {
	color: #232F3F;
	background: #F9F3EB;
}

.mm-pwa-btn[disabled] {
	background: #DFD5C9;
	border-color: #DFD5C9;
	color: #8796A9;
	cursor: not-allowed;
}

/* Installationshinweis: unten am Handy, wie ein Blatt, das hereinschiebt */

.mm-pwa-hinweis {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: 12px;
	bottom: calc(12px + env(safe-area-inset-bottom));
	z-index: 500;
	display: flex;
	gap: 14px;
	padding: 16px;
	box-shadow: 0 2px 4px rgba(35, 47, 63, 0.05), 0 16px 40px rgba(35, 47, 63, 0.08);
	transform: translateY(24px);
	opacity: 0;
	transition: transform 280ms cubic-bezier(0, 0, 0.2, 1), opacity 280ms cubic-bezier(0, 0, 0.2, 1);
}

.mm-pwa-hinweis-da {
	transform: none;
	opacity: 1;
}

.mm-pwa-hinweis-icon {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 10px;
}

.mm-pwa-hinweis-text {
	flex: 1 1 auto;
	min-width: 0;
}

.mm-pwa-teilen {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 1px 6px;
	border: 1px solid #D4DDE9;
	border-radius: 6px;
	color: #232F3F;
	white-space: nowrap;
	vertical-align: -3px;
}

@media (prefers-reduced-motion: reduce) {
	.mm-pwa-hinweis {
		transition: none;
		transform: none;
	}
}

/* Download-Kasten auf der Kursseite */

.mm-pwa-kurs {
	padding: 16px 20px;
	margin: 0 0 24px;
	box-shadow: 0 1px 2px rgba(35, 47, 63, 0.06);
}

.mm-pwa-kurs-kopf {
	display: flex;
	align-items: center;
	gap: 8px;
}

.mm-pwa-kurs-kopf .mm-pwa-titel {
	margin-bottom: 0;
}

.mm-pwa-kurs .mm-pwa-kurs-kopf + .mm-pwa-sub {
	margin-top: 4px;
}

.mm-pwa-punkt {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: #246E3A;
	flex: 0 0 10px;
}

.mm-pwa-balken {
	height: 6px;
	margin-top: 12px;
	border-radius: 999px;
	background: #EFE6DC;
	overflow: hidden;
}

.mm-pwa-balken > span {
	display: block;
	height: 100%;
	background: #FF4203;
	border-radius: 999px;
	transition: width 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
	.mm-pwa-hinweis {
		left: auto;
		right: 24px;
		bottom: 24px;
		max-width: 480px;
	}
}

/* Das Theme setzt Absätze im Inhaltsbereich auf die Leseschrift und eigene Abstände —
   die Bausteine sind Oberfläche, nicht Lehrtext, und bleiben in Inter. */

.mm-pwa-kurs p,
.mm-pwa-push p,
.mm-pwa-hinweis p {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	margin-bottom: 4px;
}

.mm-pwa-kurs .mm-pwa-sub,
.mm-pwa-push .mm-pwa-sub,
.mm-pwa-hinweis .mm-pwa-sub {
	font-size: 14px;
	line-height: 1.55;
}

/* Das Theme und die Topic-Cards greifen mit höherer Spezifität auf Absätze und Links im
   Inhaltsbereich zu (Leseschrift 19 px, Linkfarbe Vermilion). Für die drei Bausteine ist das
   falsch — sie sind Oberfläche. Deshalb hier ausdrücklich mit !important. */

.mm-pwa-kurs,
.mm-pwa-kurs p,
.mm-pwa-kurs a,
.mm-pwa-push,
.mm-pwa-push p,
.mm-pwa-hinweis,
.mm-pwa-hinweis p {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
}

.mm-pwa-titel {
	font-size: 17px !important;
	line-height: 1.32 !important;
	margin: 0 0 4px !important;
}

.mm-pwa-sub {
	font-size: 14px !important;
	line-height: 1.55 !important;
	margin: 0 !important;
	color: #4F5E72 !important;
}

.mm-pwa-kicker {
	font-size: 12px !important;
	margin: 0 0 4px !important;
}

a.mm-pwa-btn-leise,
.mm-pwa-btn-leise {
	color: #4F5E72 !important;
	text-decoration: none !important;
}

a.mm-pwa-btn-leise:hover,
.mm-pwa-btn-leise:hover {
	color: #232F3F !important;
}
