/* MINADI Kontakt – im Stil der Schnellbestellung */

.mko,
.mko-inline-knopf {
	--mko-akzent: #f2559f;
	--mko-box: #25d366;
	--mko-box-text: #0c2414;
	--mko-logo: #ff5fae;
	--mko-grund: #1f1f21;
	--mko-flaeche: #2d2d30;
	--mko-flaeche-hover: #333337;
	--mko-linie: #38383c;
	--mko-linie-stark: #5a5a60;
	--mko-text: #ffffff;
	--mko-text-2: #e4e4e7;
	--mko-gedimmt: #a7a7ad;
	--mko-leise: #9a9aa1;
	--mko-fehler: #ff8a8a;
	--mko-schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mko-unten: 24px;
	--mko-seite: 24px;
}

.mko {
	position: fixed;
	z-index: 99990;
	bottom: calc(var(--mko-unten) + env(safe-area-inset-bottom, 0px));
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	font-family: var(--mko-schrift);
	font-size: 15px;
	line-height: 1.45;
	color: var(--mko-text);
	text-align: left;
	pointer-events: none;
}
.mko--rechts { right: var(--mko-seite); }
.mko--links { left: var(--mko-seite); align-items: flex-start; }
.mko > * { pointer-events: auto; }
.mko *, .mko *::before, .mko *::after { box-sizing: border-box; }
.mko :focus-visible { outline: 2px solid var(--mko-akzent); outline-offset: 2px; }
.mko [hidden] { display: none !important; }
.mko h2, .mko p { margin: 0; padding: 0; font-family: inherit; letter-spacing: normal; text-transform: none; }

/* ---------- Schwebender Button ---------- */
.mko .mko-knopf {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	margin: 0;
	padding: 0 22px 0 18px;
	border: 1px solid var(--mko-linie-stark);
	border-radius: 26px;
	background: var(--mko-flaeche);
	color: var(--mko-text);
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
	transition: border-color .15s ease, background-color .15s ease;
}
.mko .mko-knopf:hover { border-color: var(--mko-akzent); background: var(--mko-flaeche-hover); }
.mko-knopf-icon { display: inline-flex; color: var(--mko-akzent); }
.mko-knopf-icon--zu { display: none; }
.mko.ist-offen .mko-knopf-icon--auf { display: none; }
.mko.ist-offen .mko-knopf-icon--zu { display: inline-flex; }

/* ---------- Fenster ---------- */
.mko-panel {
	width: 420px;
	max-width: calc(100vw - 2 * var(--mko-seite));
	max-height: calc(100vh - var(--mko-unten) - 92px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 18px 22px 22px;
	background: var(--mko-grund);
	border: 1px solid var(--mko-linie);
	border-radius: 20px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .16s ease, transform .16s ease;
}
.mko.ist-offen .mko-panel { opacity: 1; transform: none; }

.mko-kopf {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin-bottom: 10px;
}
.mko-marke {
	font-weight: 300;
	font-size: 34px;
	line-height: 1;
	letter-spacing: .32em;
	padding-left: .32em;
	color: var(--mko-logo);
}
.mko .mko-zu,
.mko .mko-zurueck {
	position: absolute;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: -20px 0 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--mko-gedimmt);
	cursor: pointer;
}
.mko .mko-zu { right: -8px; }
.mko .mko-zurueck { left: -8px; }
.mko .mko-zu:hover,
.mko .mko-zurueck:hover { color: var(--mko-text); background: var(--mko-flaeche); }

.mko-intro {
	text-align: center;
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--mko-linie);
}
.mko .mko-titel { font-size: 21px; font-weight: 600; line-height: 1.25; color: var(--mko-text); }
.mko .mko-titel:focus { outline: none; }
.mko .mko-untertitel { margin-top: 6px; font-size: 14px; color: var(--mko-gedimmt); }

/* ---------- Auswahl ---------- */
.mko-optionen { display: flex; flex-direction: column; gap: 10px; }
.mko .mko-option {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 72px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--mko-linie);
	border-radius: 14px;
	background: var(--mko-flaeche);
	color: var(--mko-text);
	font: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.mko .mko-option:hover { border-color: var(--mko-akzent); background: var(--mko-flaeche-hover); color: var(--mko-text); }
.mko .mko-option > svg { flex: none; color: var(--mko-leise); }
.mko .mko-option:hover > svg { color: var(--mko-akzent); }
.mko-option-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--mko-grund);
	border: 1px solid var(--mko-linie);
	color: var(--mko-akzent);
}
.mko-option-icon--wa { color: #25d366; }
.mko-option-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.mko-option-titel { font-size: 16px; font-weight: 600; }
.mko-option-beschr { font-size: 13px; color: var(--mko-leise); }
.mko .mko-hotline { margin-top: 16px; font-size: 12.5px; text-align: center; color: var(--mko-leise); }

/* ---------- Formular (wie Schnellbestellung) ---------- */
.mko-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.mko-reihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mko-reihe--schmal { grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); }
.mko-feld { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.mko-label { font-size: 13.5px; font-weight: 600; color: var(--mko-akzent); }
.mko .mko-feld input,
.mko .mko-feld select,
.mko .mko-feld textarea {
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: var(--mko-flaeche);
	color: var(--mko-text);
	font: inherit;
	font-size: 15px;
	line-height: 1.4;
	box-shadow: none;
	outline: 0;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color .15s ease;
}
.mko .mko-feld textarea { min-height: 110px; resize: vertical; }
.mko .mko-feld select {
	padding-right: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a9aa1' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}
.mko .mko-feld select option { background: var(--mko-grund); color: var(--mko-text); }
.mko .mko-feld input::placeholder,
.mko .mko-feld textarea::placeholder { color: #7d7d85; opacity: 1; }
.mko .mko-feld input:focus,
.mko .mko-feld select:focus,
.mko .mko-feld textarea:focus { border-color: var(--mko-akzent); }
.mko .mko-feld.ist-fehler input,
.mko .mko-feld.ist-fehler textarea { border-color: var(--mko-fehler); }

/* Honeypot: für Menschen unsichtbar */
.mko-falle {
	position: absolute !important;
	left: -10000px !important;
	width: 1px; height: 1px;
	overflow: hidden;
}

.mko-check { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 2px 0 0; cursor: pointer; font-size: 13px; color: var(--mko-gedimmt); }
.mko-check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.mko-check-box {
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border: 1.5px solid var(--mko-linie-stark);
	border-radius: 6px;
	background: var(--mko-flaeche);
}
.mko-check input:checked + .mko-check-box {
	border-color: var(--mko-akzent);
	background: var(--mko-akzent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.mko-check input:focus-visible + .mko-check-box { outline: 2px solid var(--mko-akzent); outline-offset: 2px; }
.mko-check.ist-fehler .mko-check-box { border-color: var(--mko-fehler); }
.mko .mko-check a { color: var(--mko-text); text-decoration: underline; }
.mko .mko-check a:hover { color: var(--mko-akzent); }

.mko .mko-fehler { font-size: 13.5px; color: var(--mko-fehler); }

.mko .mko-senden {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	margin: 4px 0 0;
	padding: 0 24px;
	border: 1px solid #ffffff;
	border-radius: 26px;
	background: #ffffff;
	color: var(--mko-grund);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .15s ease, opacity .15s ease;
}
.mko .mko-senden:hover { background: #e4e4e7; border-color: #e4e4e7; }
.mko .mko-senden[disabled] { opacity: .6; cursor: progress; }
.mko .mko-senden--rand { background: transparent; color: var(--mko-text); border-color: var(--mko-linie-stark); }
.mko .mko-senden--rand:hover { background: var(--mko-flaeche); border-color: var(--mko-akzent); }

/* ---------- Danke ---------- */
.mko-danke { text-align: center; padding: 8px 0 2px; }
.mko-danke-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 14px;
	border-radius: 50%;
	border: 1.5px solid var(--mko-akzent);
	color: var(--mko-akzent);
}
.mko-danke .mko-untertitel { margin: 8px 0 18px; }

/* ---------- Angeheftet unter der Schnellbestellung (gleicher Aufbau wie #msb) ---------- */
.mko--angeheftet {
	position: static;
	display: block;
	pointer-events: auto;
	--mko-top: 120px;
	--mko-right: 20px;
	--mko-tab-top: 300px;
	--mko-panel-top: 120px;
	--mko-breite: 240px;
}
.admin-bar .mko--angeheftet { --mko-top: 152px; --mko-panel-top: 152px; }

.mko--angeheftet .mko-knopf { display: none; }

/* Kleine Box */
.mko--angeheftet .mko-mini {
	position: fixed;
	top: var(--mko-top);
	right: var(--mko-right);
	z-index: 99997;
	transition: opacity .2s ease, transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear 0s;
}
.mko--angeheftet.ist-offen .mko-mini { opacity: 0; pointer-events: none; }
.mko--angeheftet.ist-eingefahren .mko-mini {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(calc(100% + var(--mko-right) + 20px));
	transition: opacity .2s ease, transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s;
}
.mko .mko-teaser {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	width: var(--mko-breite);
	margin: 0;
	padding: 14px 18px 15px;
	background: var(--mko-grund);
	color: var(--mko-text);
	border: 1px solid var(--mko-linie);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
	font: inherit;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.mko .mko-teaser:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0, 0, 0, .36); }
.mko .mko-teaser:focus-visible { outline: 2px solid var(--mko-box); outline-offset: 3px; }
.mko-logo-klein { margin-bottom: 4px; font-size: 13px; font-weight: 300; line-height: 1; letter-spacing: .3em; color: var(--mko-logo); }
.mko-teaser-text { font-size: 14px; font-weight: 600; color: var(--mko-text); }
.mko-teaser-cta { font-size: 13px; font-weight: 600; color: var(--mko-box); }
.mko .mko-teaser:hover .mko-teaser-cta { text-decoration: underline; text-underline-offset: 3px; }
.mko .mko-mini-zu {
	position: absolute;
	top: 7px;
	right: 7px;
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--mko-gedimmt);
	font: 400 20px/26px var(--mko-schrift);
	text-transform: none;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.mko .mko-mini-zu:hover { color: var(--mko-text); background: var(--mko-flaeche); }

/* Reiter am rechten Rand (eingeklappt), wie „Schnellbestellung“ */
.mko .mko-tab {
	position: fixed;
	top: var(--mko-tab-top);
	right: 0;
	z-index: 99997;
	margin: 0;
	padding: 16px 10px;
	border: 0;
	border-radius: 12px 0 0 12px;
	background: var(--mko-box);
	color: var(--mko-box-text);
	box-shadow: -4px 6px 18px rgba(0, 0, 0, .22);
	font: 600 13px/1 var(--mko-schrift);
	letter-spacing: .04em;
	text-transform: none;
	cursor: pointer;
	transform: translateX(110%);
	visibility: hidden;
	transition: transform .3s cubic-bezier(.2, .8, .2, 1), padding .15s ease, visibility 0s linear .3s;
}
.mko .mko-tab span { display: block; writing-mode: vertical-rl; transform: rotate(180deg); }
.mko.ist-eingefahren .mko-tab {
	transform: none;
	visibility: visible;
	transition: transform .3s cubic-bezier(.2, .8, .2, 1) .15s, padding .15s ease, visibility 0s;
}
.mko .mko-tab:hover { padding-right: 14px; }
.mko .mko-tab:focus-visible { outline: 2px solid var(--mko-box-text); outline-offset: -4px; }
.mko--angeheftet.ist-offen .mko-tab { opacity: 0; pointer-events: none; }

/* Fenster: gleiche Stelle und Animation wie das Bestellformular */
.mko--angeheftet .mko-overlay {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(0, 0, 0, .35);
	opacity: 0;
	transition: opacity .25s ease;
}
.mko--angeheftet.ist-offen .mko-overlay { opacity: 1; }
.mko--angeheftet .mko-panel {
	position: fixed;
	top: var(--mko-panel-top);
	right: var(--mko-right);
	z-index: 99999;
	width: min(440px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100vh - var(--mko-panel-top) - 20px);
	padding: 22px 24px 22px;
	border: 0;
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
	transform-origin: top right;
	transform: scale(.55);
	opacity: 0;
	transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}
.mko--angeheftet.ist-offen .mko-panel { transform: scale(1); opacity: 1; }

/* Während die Schnellbestellung offen ist, tritt der Kontakt zurück */
.mko.ist-verdeckt .mko-mini,
.mko.ist-verdeckt .mko-tab { opacity: 0; visibility: hidden; pointer-events: none; }
.mko.ohne-animation .mko-mini,
.mko.ohne-animation .mko-tab { transition: none !important; }

/* ---------- Button für Menüs/Seiten ([minadi_kontakt]) ---------- */
.mko-inline-knopf {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--mko-akzent);
	border-radius: 12px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.mko-inline-knopf svg { color: var(--mko-akzent); }

/* ---------- Handy ---------- */
@media (max-width: 600px) {
	.mko { --mko-seite: 16px; --mko-unten: 16px; }
	.mko--angeheftet { --mko-top: 80px; --mko-right: 12px; --mko-panel-top: 80px; --mko-breite: 200px; }
	.admin-bar .mko--angeheftet { --mko-top: 126px; --mko-panel-top: 126px; }
	.mko .mko-teaser { padding: 11px 14px 12px; }
	.mko-teaser-text { font-size: 13px; }
	.mko .mko-knopf { width: 56px; min-height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
	.mko-knopf-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.mko--schwebend .mko-panel {
		position: fixed;
		left: 8px;
		right: 8px;
		bottom: calc(84px + env(safe-area-inset-bottom, 0px));
		width: auto;
		max-width: none;
		max-height: calc(100vh - 100px);
		padding: 16px 16px 18px;
	}
	.mko--angeheftet .mko-panel { width: calc(100vw - 24px); padding: 20px 18px 18px; }
	.mko-marke { font-size: 28px; }
	.mko-reihe { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.mko-panel, .mko .mko-knopf, .mko .mko-option, .mko-mini, .mko .mko-tab, .mko .mko-teaser, .mko-overlay { transition: none !important; }
}
