/* =========================================================================
   MOOSMOOS Kundenfeedback  -  Premium-Grid im Markendesign
   Cormorant Garamond (Display) + Montserrat (Body)
   Gold #C9A84C  Moos #2C3818  Greige #F2EEE6  Near-Black #1A1A1A
   ========================================================================= */

.mf-wrap {
	--mf-gold:    #C9A84C;
	--mf-gold-dk: #A8862F;
	--mf-moss:    #2C3818;
	--mf-moss-dk: #1F2912;
	--mf-greige:  #F2EEE6;
	--mf-ink:     #1A1A1A;
	--mf-line:    rgba(44, 56, 24, 0.12);
	--mf-paper:   #FBFAF6;
	--mf-shadow:  0 18px 50px rgba(31, 41, 18, 0.10);

	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--mf-ink);
	background: var(--mf-greige);
	padding: clamp(40px, 6vw, 88px) clamp(16px, 4vw, 48px);
	box-sizing: border-box;
}
.mf-wrap *, .mf-wrap *::before, .mf-wrap *::after { box-sizing: border-box; }

/* ---- Kopfbereich ---- */
.mf-head {
	max-width: 760px;
	margin: 0 auto clamp(36px, 5vw, 64px);
	text-align: center;
}
.mf-eyebrow {
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--mf-gold-dk);
	margin: 0 0 18px;
	font-weight: 600;
}
.mf-title {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-weight: 500;
	font-size: clamp(28px, 4.4vw, 48px);
	line-height: 1.12;
	color: var(--mf-moss);
	margin: 0 0 18px;
	letter-spacing: 0.005em;
}
.mf-lead {
	font-size: clamp(15px, 1.6vw, 17px);
	line-height: 1.6;
	color: #51563f;
	margin: 0;
}

/* ---- Grid ---- */
.mf-grid {
	display: grid;
	gap: clamp(18px, 2.4vw, 30px);
	grid-template-columns: repeat(3, 1fr);
	max-width: 1200px;
	margin: 0 auto;
}
.mf-wrap[data-spalten="2"] .mf-grid { grid-template-columns: repeat(2, 1fr); }
.mf-wrap[data-spalten="4"] .mf-grid { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) { .mf-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 620px)  { .mf-grid { grid-template-columns: 1fr !important; } }

/* Mobil: volle Breite ausnutzen - kein seitlicher Rand, groessere Bilder */
@media (max-width: 620px) {
	.mf-wrap {
		padding-left: 0;
		padding-right: 0;
	}
	.mf-head {
		padding-left: 18px;
		padding-right: 18px;
	}
	.mf-grid {
		gap: 14px;
		max-width: 100%;
	}
	.mf-card {
		border-radius: 0;
		border-left: none;
		border-right: none;
	}
	.mf-card-img {
		aspect-ratio: 3 / 2;   /* etwas hoeher, da nun vollflaechig */
	}
	.mf-legal {
		padding-left: 18px;
		padding-right: 18px;
	}
}

.mf-hidden { display: none; }

/* ---- Karte ---- */
.mf-card {
	background: var(--mf-paper);
	border: 1px solid var(--mf-line);
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	cursor: pointer;
	transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
	            box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1),
	            border-color 0.8s ease;
	will-change: transform;
}
.mf-card:hover,
.mf-card:focus-visible {
	transform: translateY(-6px);
	box-shadow: var(--mf-shadow);
	border-color: rgba(201, 168, 76, 0.55);
	outline: none;
}
.mf-card:focus-visible { box-shadow: 0 0 0 3px rgba(201,168,76,.45), var(--mf-shadow); }

.mf-card-img {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e8e3d6;
}
.mf-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.mf-card:hover .mf-card-img img { transform: scale(1.05); }

.mf-card-noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--mf-moss), var(--mf-moss-dk));
}
.mf-card-noimg span {
	font-family: 'Cormorant Garamond', serif;
	letter-spacing: 0.3em;
	color: var(--mf-gold);
	font-size: 18px;
	padding-left: 0.3em;
}

.mf-card-body {
	padding: 22px 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 1;
}
.mf-quote {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 19px;
	line-height: 1.45;
	color: #2b2f22;
	margin: 0;
	position: relative;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mf-quote::before {
	content: "\201C";
	font-size: 30px;
	color: var(--mf-gold);
	line-height: 0;
	margin-right: 2px;
	vertical-align: -0.35em;
}
.mf-card-foot {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
	border-top: 1px solid var(--mf-line);
	padding-top: 14px;
}
.mf-author {
	font-weight: 600;
	font-size: 14px;
	color: var(--mf-moss);
	letter-spacing: 0.01em;
}
.mf-firma { font-size: 13px; color: #6a6f57; }
.mf-ort   { font-size: 12px; color: #93977f; letter-spacing: 0.04em; }

.mf-rate {
	margin-top: 6px;
	font-size: 13px;
	color: #51563f;
}
.mf-rate strong { color: var(--mf-gold-dk); font-size: 15px; }

/* ---- "Mehr laden" ---- */
.mf-more-wrap { text-align: center; margin-top: clamp(32px, 4vw, 52px); }
.mf-more {
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--mf-moss);
	background: transparent;
	border: 1.5px solid var(--mf-moss);
	padding: 15px 38px;
	border-radius: 2px;
	cursor: pointer;
	transition: background 0.5s ease, color 0.5s ease;
}
.mf-more:hover { background: var(--mf-moss); color: var(--mf-greige); }

/* ---- Rechtlicher Fuss (nur wenn Leasing aktiv) ---- */
.mf-legal {
	max-width: 880px;
	margin: clamp(40px, 5vw, 64px) auto 0;
	padding-top: 24px;
	border-top: 1px solid var(--mf-line);
	text-align: center;
}
.mf-zins { font-size: 13px; color: #51563f; margin: 0 0 8px; font-weight: 600; }
.mf-disclaimer { font-size: 11.5px; line-height: 1.6; color: #8a8e74; margin: 0; }

.mf-empty { text-align: center; color: #6a6f57; font-size: 16px; padding: 40px 0; }

/* =========================================================================
   Detail-Pop-up  (zentriert, deckend - kann nicht vom Sticky-Menue
   abgeschnitten werden, da es mittig im Viewport sitzt)
   ========================================================================= */
.mf-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(26, 26, 26, 0.62);
	backdrop-filter: blur(4px);
	z-index: 100000;
	opacity: 0;
	transition: opacity 0.4s ease;
}
.mf-modal-backdrop.mf-open { opacity: 1; }

.mf-modal {
	position: fixed;
	z-index: 100001;
	top: 200px;                        /* groesserer Abstand: Menue inkl. Logo ist hoch */
	left: 50%;
	width: min(860px, 94vw);           /* breiter fuer zweispaltiges Layout */
	max-height: calc(100vh - 230px);
	overflow: hidden;                  /* aeussere Box fix; rechte Spalte scrollt */
	background: #FBFAF6;
	border-radius: 8px;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
	transform: translateX(-50%) translateY(14px);
	opacity: 0;
	transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}
.mf-modal.mf-open {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

.mf-modal-close {
	position: absolute;
	top: 14px; right: 14px;
	width: 42px; height: 42px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.92);
	color: #2C3818;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	box-shadow: 0 2px 10px rgba(0,0,0,0.18);
	transition: background 0.3s ease, transform 0.3s ease;
}
.mf-modal-close:hover { background: #fff; transform: rotate(90deg); }

/* Zweispaltig: links Bild, rechts Text */
.mf-modal-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	max-height: calc(100vh - 230px);
}

.mf-modal-media {
	overflow: hidden;
	background: #e8e3d6;
	border-radius: 8px 0 0 8px;
	min-height: 100%;
}
.mf-modal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mf-modal-noimg {
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #2C3818, #1F2912);
	min-height: 360px;
}
.mf-modal-noimg span {
	font-family: 'Cormorant Garamond', serif;
	letter-spacing: 0.3em; color: #C9A84C; font-size: 22px; padding-left: 0.3em;
}

.mf-modal-content {
	padding: clamp(28px, 3vw, 40px);
	overflow-y: auto;                  /* nur die Textspalte scrollt */
	-webkit-overflow-scrolling: touch;
	display: flex;
	flex-direction: column;
}
.mf-modal-quote {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: clamp(21px, 2.4vw, 27px);
	line-height: 1.42;
	color: #2C3818;
	margin: 0 0 22px;
}
.mf-modal-quote::before { content: "\201C"; color: #C9A84C; }
.mf-modal-desc { font-size: 15px; line-height: 1.7; color: #44483a; margin: 0 0 26px; }

.mf-modal-meta {
	margin-top: auto;
	border-top: 1px solid rgba(44, 56, 24, 0.12);
	padding-top: 20px;
	display: flex; flex-direction: column; gap: 4px;
}
.mf-modal-author { font-family: 'Cormorant Garamond', serif; font-size: 23px; color: #2C3818; }
.mf-modal-firma  { font-size: 14px; color: #6a6f57; }
.mf-modal-row    { font-size: 13px; color: #93977f; letter-spacing: 0.03em; margin-top: 2px; }
.mf-modal-date   { color: #A8862F; font-weight: 600; }

.mf-modal-rate {
	margin-top: 18px;
	background: #F2EEE6;
	border: 1px solid rgba(44, 56, 24, 0.12);
	border-radius: 6px;
	padding: 16px 18px;
}
.mf-modal-rate-big { font-size: 22px; color: #A8862F; font-weight: 700; font-family: 'Montserrat', sans-serif; }
.mf-modal-rate small { display: block; color: #6a6f57; font-size: 12px; margin-top: 4px; line-height: 1.5; }

/* Mobil: gestapelt, Bild oben */
@media (max-width: 700px) {
	.mf-modal { top: 88px; width: 94vw; max-height: calc(100vh - 110px); overflow-y: auto; }
	.mf-modal-inner { grid-template-columns: 1fr; max-height: none; }
	.mf-modal-media { border-radius: 8px 8px 0 0; max-height: 300px; }
	.mf-modal-media img { max-height: 300px; }
	.mf-modal-noimg { min-height: 0; aspect-ratio: 16/9; }
	.mf-modal-content { overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
	.mf-card, .mf-card-img img, .mf-modal, .mf-modal-backdrop, .mf-more { transition: none !important; }
}

/* =========================================================================
   Einreichungsformular  (Stil analog MOOSMOOS-Map)
   ========================================================================= */
.mf-sub-wrap {
	max-width: 680px;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 40px);
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
	color: #1A1A1A;
}
.mf-sub-title {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: clamp(26px, 4vw, 36px);
	color: #2C3818;
	margin: 0 0 10px;
	font-weight: 500;
}
.mf-sub-lead { font-size: 15px; line-height: 1.6; color: #51563f; margin: 0 0 26px; }

.mf-sub-form { display: flex; flex-direction: column; gap: 18px; }
.mf-sub-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .mf-sub-row { grid-template-columns: 1fr; } }

.mf-sub-field { display: flex; flex-direction: column; }
.mf-sub-field label {
	font-size: 13px;
	font-weight: 600;
	color: #2C3818;
	margin-bottom: 6px;
	letter-spacing: 0.01em;
}
.mf-req { color: #A8862F; }

/* Eingabefelder - explizite Hoehe/line-height, damit nichts abgeschnitten wird */
.mf-sub-field input[type="text"],
.mf-sub-field input[type="email"],
.mf-sub-field textarea,
.mf-sub-field select {
	width: 100%;
	box-sizing: border-box;
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	line-height: 1.4;
	color: #1A1A1A;
	background: #FBFAF6;
	border: 1px solid rgba(44, 56, 24, 0.22);
	border-radius: 8px;
	padding: 12px 14px;
	min-height: 48px;            /* verhindert das Abschneiden des Select-Textes */
	appearance: none;
	-webkit-appearance: none;
}
.mf-sub-field textarea { min-height: 110px; resize: vertical; }
.mf-sub-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232C3818' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;         /* Platz fuer den Pfeil, Text wird nicht ueberdeckt */
}
.mf-sub-field input:focus,
.mf-sub-field textarea:focus,
.mf-sub-field select:focus {
	outline: none;
	border-color: #C9A84C;
	box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}
.mf-sub-hint { font-size: 12px; color: #8a8e74; margin-top: 6px; }
.mf-sub-hr { border: none; border-top: 1px solid rgba(44, 56, 24, 0.12); margin: 8px 0; }
.mf-sub-hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }

.mf-sub-submit {
	margin-top: 6px;
	padding: 16px;
	background: #2C3818;
	color: #F2EEE6;
	border: none;
	border-radius: 8px;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.4s ease;
}
.mf-sub-submit:hover { background: #3a4a22; }

.mf-sub-notice { padding: 14px 18px; border-radius: 8px; margin-bottom: 22px; font-size: 15px; }
.mf-sub-notice.mf-ok  { background: #eaf3e2; border-left: 4px solid #5a8a3a; color: #2c4a1a; }
.mf-sub-notice.mf-err { background: #fbe9e7; border-left: 4px solid #c0392b; color: #7a241b; }

/* Drag-and-Drop-Upload */
.mf-drop {
	border: 2px dashed rgba(44, 56, 24, 0.3);
	border-radius: 10px;
	background: #FBFAF6;
	padding: 26px 20px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.3s ease, background 0.3s ease;
}
.mf-drop.mf-dragover { border-color: #C9A84C; background: #FBF6E8; }
.mf-drop-inner { color: #6a6f57; pointer-events: none; }
.mf-drop-inner svg { color: #C9A84C; margin-bottom: 8px; }
.mf-drop-text { font-size: 15px; color: #2C3818; margin: 0 0 6px; font-weight: 600; }
.mf-drop-text span { font-weight: 400; color: #8a8e74; font-size: 13px; }
.mf-drop-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mf-drop-preview img { width: 76px; height: 76px; object-fit: cover; border-radius: 6px; border: 1px solid rgba(44,56,24,.18); }

/* =========================================================================
   Bild-Slider im Detail-Pop-up
   ========================================================================= */
.mf-slider { position: relative; }
.mf-slides { position: relative; width: 100%; height: 100%; min-height: 260px; }
.mf-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; }
.mf-slide-active { opacity: 1; position: relative; }
.mf-slider .mf-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mf-slide-nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 40px; height: 40px; border-radius: 50%;
	border: none; background: rgba(26,26,26,0.45); color: #fff;
	font-size: 24px; line-height: 1; cursor: pointer; z-index: 2;
	transition: background 0.3s ease;
}
.mf-slide-nav:hover { background: rgba(26,26,26,0.7); }
.mf-prev { left: 12px; }
.mf-next { right: 12px; }
.mf-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; z-index: 2; }
.mf-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,0.55); cursor: pointer; padding: 0; }
.mf-dot-active { background: #C9A84C; }

/* Auf Mobil sitzt der Slider oben gestapelt */
@media (max-width: 700px) {
	.mf-slides { min-height: 220px; max-height: 300px; }
}
