/* Cookie-Consent – Farben und Schrift der Website (Raleway, Rot #820617, Dunkelgrau #393e4a) */

.mk-consent {
	--cc-accent: #820617;
	--cc-accent-strong: #6a0512;
	--cc-accent-soft: rgba(130, 6, 23, 0.06);
	--cc-ink: #393e4a;
	--cc-muted: #6b7080;
	--cc-border: #e2e2e2;
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(57, 62, 74, 0.6);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	font-family: Raleway, sans-serif;
}
.mk-consent[hidden] { display: none; }
.mk-consent.is-open { animation: mk-consent-fade .25s ease; }

.mk-consent__card {
	position: relative;
	width: 100%;
	max-width: 540px;
	background: #fff;
	color: var(--cc-ink);
	border-radius: 18px;
	padding: 32px 30px 26px;
	box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.45);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	outline: none;
}
.mk-consent.is-open .mk-consent__card { animation: mk-consent-pop .3s cubic-bezier(.16, 1, .3, 1); }

.mk-consent__logo { position: absolute; top: 24px; right: 26px; width: 117px; height: 30px; }
.mk-consent__logo-img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: right center; }

.mk-consent__title {
	font-size: 22px;
	line-height: 1.25;
	font-weight: 900;
	margin: 0 130px 12px 0;
	text-transform: none;
}
.mk-consent__body { font-size: 15px; line-height: 1.6; color: #4b5060; margin: 0; text-align: left; }
.mk-consent__links { margin: 12px 0 22px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; text-align: left; }
.mk-consent__link { color: var(--cc-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; opacity: 1; }
.mk-consent__link:hover { color: var(--cc-accent-strong); opacity: 1; }

.mk-consent__actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

.mk-consent__btn {
	font: inherit;
	font-family: Raleway, sans-serif;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	min-height: 50px;
	padding: 12px 14px;
	border-radius: 25px;
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--cc-accent);
	transition: background-color .15s, color .15s, transform .15s;
	-webkit-appearance: none;
	appearance: none;
	line-height: 1.2;
}
.mk-consent__btn--solid { background: var(--cc-accent); color: #fff; }
.mk-consent__btn--solid:hover { background: var(--cc-accent-strong); transform: translateY(-1px); }
.mk-consent__btn--outline { background: #fff; color: var(--cc-accent-strong); }
.mk-consent__btn--outline:hover { background: var(--cc-accent-soft); }
.mk-consent__btn:focus-visible { outline: 2px solid var(--cc-accent); outline-offset: 2px; }

.mk-consent__settings[hidden], .mk-consent__intro[hidden] { display: none; }

.mk-consent__rows { display: flex; flex-direction: column; gap: 14px; margin: 4px 0 22px; }
.mk-consent__row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 6px 16px;
	padding: 16px;
	border: 1px solid var(--cc-border);
	border-radius: 12px;
	text-align: left;
}
.mk-consent__row-title { font-weight: 900; font-size: 15px; align-self: center; }
.mk-consent__row-desc { grid-column: 1 / 2; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--cc-muted); text-align: left; }

.mk-consent__switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.mk-consent__switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mk-consent__slider { position: absolute; inset: 0; border-radius: 999px; background: #c9ccd4; transition: background-color .2s; }
.mk-consent__slider::before {
	content: "";
	position: absolute;
	top: 3px; left: 3px;
	width: 20px; height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
	transition: transform .2s;
}
.mk-consent__switch input:checked + .mk-consent__slider { background: var(--cc-accent); }
.mk-consent__switch input:checked + .mk-consent__slider::before { transform: translateX(20px); }
.mk-consent__switch input:disabled { cursor: not-allowed; }
.mk-consent__switch input:disabled + .mk-consent__slider { background: var(--cc-accent); opacity: .55; }
.mk-consent__switch input:focus-visible + .mk-consent__slider { outline: 2px solid var(--cc-accent); outline-offset: 2px; }

.mk-consent__settings-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.mk-consent__settings-actions .mk-consent__btn--solid { grid-column: 2; }

/* Schwebender Button zum erneuten Öffnen */
.mk-consent-reopen {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 9998;
	width: 46px;
	height: 46px;
	padding: 0;
	border-radius: 50%;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #820617;
	border: 1px solid #e2e2e2;
	box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .35);
	transition: transform .15s, box-shadow .15s;
	-webkit-appearance: none;
	appearance: none;
}
.mk-consent-reopen[hidden] { display: none; }
.mk-consent-reopen:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .45); }
.mk-consent-reopen:focus-visible { outline: 2px solid #820617; outline-offset: 2px; }
.mk-consent-reopen svg { display: block; width: 24px; height: 24px; }
.mk-consent-reopen__tip {
	position: absolute;
	left: 56px;
	top: 50%;
	transform: translateY(-50%);
	white-space: nowrap;
	background: #393e4a;
	color: #fff;
	font-family: Raleway, sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	padding: 6px 10px;
	border-radius: 8px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s;
}
.mk-consent-reopen:hover .mk-consent-reopen__tip, .mk-consent-reopen:focus-visible .mk-consent-reopen__tip { opacity: 1; }

.mk-consent-lock { overflow: hidden; }

@keyframes mk-consent-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mk-consent-pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 560px) {
	.mk-consent { padding: 12px; align-items: flex-end; }
	.mk-consent__card { padding: 24px 20px 20px; max-height: calc(100vh - 24px); }
	.mk-consent__title { margin-right: 90px; font-size: 19px; }
	.mk-consent__logo { top: 20px; right: 16px; width: 82px; height: 21px; }
	.mk-consent__actions { grid-template-columns: 1fr; }
	.mk-consent__actions .mk-consent__btn--allow { order: -1; }
	.mk-consent__settings-actions { grid-template-columns: 1fr; }
	.mk-consent__settings-actions .mk-consent__btn--solid { grid-column: 1; order: -1; }
	.mk-consent__btn { min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	.mk-consent.is-open, .mk-consent.is-open .mk-consent__card { animation: none; }
	.mk-consent__btn, .mk-consent-reopen, .mk-consent__slider::before { transition: none; }
}
