@import url('https://fonts.googleapis.com/css2?family=Anton&family=Oswald:wght@500;600;700&display=swap');

.mcd-va {
	--mcd: #c8102e;
	--bg: #e9e8e6;
	--bar: #f4f3f1;
	--input: #fdfdfd;
	--text: #1a1a1a;
	--muted: #6f6f6f;
	--bubble: #f4f3f1;
	--border: #dededa;
	--headline: 'Anton','Oswald','Arial Narrow',Impact,sans-serif;
	--label: 'Oswald','Arial Narrow',Arial,sans-serif;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	color: var(--text);
	box-sizing: border-box;
}
.mcd-va *, .mcd-va *::before, .mcd-va *::after { box-sizing: inherit; }
:where(.mcd-va) button, :where(.mcd-va) input, :where(.mcd-va) a {
	-webkit-appearance: none; appearance: none; font-family: inherit;
	line-height: normal; letter-spacing: normal; text-transform: none;
	box-shadow: none; min-height: 0; max-width: none; margin: 0;
}
:where(.mcd-va) button { border: 0; background: none; cursor: pointer; color: inherit; }

/* ---------- Launcher ---------- */
.mcd-va--floating .mcd-va__launcher {
	position: fixed !important; right: 24px !important; bottom: 24px !important;
	left: auto !important; top: auto !important;
	width: 62px !important; height: 62px !important; min-width: 0 !important;
	padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 50% !important;
	background: var(--mcd) !important; color: #fff !important; cursor: pointer;
	display: inline-flex !important; align-items: center !important; justify-content: center !important;
	box-shadow: 0 8px 26px rgba(0,0,0,.24) !important; z-index: 99999 !important;
	transition: transform .15s ease;
}
.mcd-va--floating .mcd-va__launcher:hover { transform: translateY(-2px); }
.mcd-va__launcher--labeled { width: auto !important; padding: 0 22px 0 18px !important; border-radius: 32px !important; gap: 10px; }
.mcd-va__launcher-label { font-weight: 600; font-size: 15px; white-space: nowrap; }
.mcd-va__launcher-img { width: 30px; height: 30px; object-fit: contain; }

/* ---------- Overlay (Vollbild) ---------- */
.mcd-va__overlay {
	position: fixed; inset: 0; z-index: 100000;
	background: var(--bg); opacity: 0; pointer-events: none;
	transition: opacity .22s ease;
	display: flex;
}
.mcd-va--floating.is-open .mcd-va__overlay { opacity: 1; pointer-events: auto; }
.mcd-va--floating.is-open .mcd-va__launcher { display: none !important; }
/* Vollbild-Overlay als Seiteninhalt (/verkaufsassistent/) – immer sichtbar */
.mcd-va--fullscreen .mcd-va__overlay { opacity: 1 !important; pointer-events: auto !important; }

/* ---------- App-Container ---------- */
.mcd-va__app { display: flex; flex-direction: column; width: 100%; height: 100%; }
.mcd-va--inline { display: block; }
.mcd-va--inline .mcd-va__app { background: var(--bg); }

/* ---------- Kopf-Leiste ---------- */
.mcd-va__bar {
	flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
	gap: 16px; margin: 16px 22px 0; padding: 10px 22px;
	background: var(--bar); border-radius: 40px; min-height: 64px;
}
.mcd-va__brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mcd-va__logo { height: 34px !important; width: auto !important; max-width: 190px !important; display: block; object-fit: contain; }
.mcd-va__brandtext { font-family: var(--headline); font-size: 20px; letter-spacing: .5px; }
.mcd-va__bar-actions { display: flex; align-items: center; gap: 12px; }
.mcd-va__bar-btn {
	display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 6px;
	font-family: var(--label); font-size: 13px; font-weight: 600; letter-spacing: .06em;
	text-transform: uppercase; color: var(--text) !important;
	border: 0 !important; border-radius: 0 !important; background: none !important; outline: none !important; box-shadow: none !important;
}
.mcd-va__close-x, .mcd-va__reset-ic {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--text);
}
.mcd-va__close-x:hover, .mcd-va__reset-ic:hover { background: #eceae7; }

/* ---------- Body ---------- */
.mcd-va__body { flex: 1 1 auto; min-height: 0; position: relative; display: flex; flex-direction: column; }

/* ---------- Start-Screen ---------- */
.mcd-va__start {
	flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; padding: 24px 22px; gap: 14px;
}
.mcd-va__start-title {
	font-family: var(--headline); text-transform: uppercase; letter-spacing: .5px; font-weight: 400;
	font-size: clamp(22px, 3vw, 40px); line-height: 1.06; color: var(--text); max-width: 18ch; margin: 0;
}
.mcd-va__start-sub { font-size: clamp(15px, 1.4vw, 19px); color: var(--text); margin: 0 0 14px; }
.mcd-va__quick { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; }
.mcd-va__quick-label { font-family: var(--label); font-weight: 600; color: var(--mcd); text-transform: none; font-size: 15px; }
.mcd-va__chip {
	border: 1.5px solid var(--mcd); background: transparent; color: var(--text) !important;
	border-radius: 24px; padding: 10px 18px; font-size: 14px; cursor: pointer; transition: background .12s, color .12s;
}
.mcd-va__chip:hover { background: var(--mcd) !important; color: #fff !important; }

/* ---------- Such-/Eingabeform (geteilt) ---------- */
.mcd-va__searchwrap { width: 100%; max-width: 1180px; margin: 6px auto 0; }
.mcd-va__form { display: flex; align-items: center; gap: 0; position: relative; }
.mcd-va__input {
	flex: 1 1 auto; width: 100%; border: 1px solid var(--border); background: var(--input);
	border-radius: 40px; padding: 20px 64px 20px 26px; font-size: 16px; color: var(--text); outline: none;
}
.mcd-va__input::placeholder { color: #9a9a96; }
.mcd-va__input:focus { border-color: var(--mcd); }
.mcd-va__send {
	position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
	background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--text);
}
.mcd-va__send:hover { background: var(--mcd); color: #fff; border-color: var(--mcd); }

/* ---------- Konversation ---------- */
.mcd-va__log {
	flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
	overscroll-behavior: contain; padding: 24px 22px 8px;
}
.mcd-va__inner { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.mcd-va__inputbar { flex: 0 0 auto; padding: 12px 22px 18px; }
.mcd-va__inputbar .mcd-va__searchwrap { margin-top: 0; }

.mcd-va__turn { display: flex; flex-direction: column; }
.mcd-va__turn--user { align-items: flex-end; }
.mcd-va__turn--bot { align-items: flex-start; }
.mcd-va__tag {
	display: inline-block; font-family: var(--label); font-weight: 600; font-size: 12px;
	letter-spacing: .06em; text-transform: uppercase; border-radius: 16px; padding: 4px 12px; margin-bottom: 10px;
}
.mcd-va__tag--user { background: #fff; color: var(--text); }
.mcd-va__tag--mcd { background: var(--mcd); color: #fff; }
.mcd-va__userbubble {
	background: var(--bubble); border-radius: 16px; padding: 16px 22px; max-width: 70%;
	font-size: 16px; white-space: pre-wrap; word-wrap: break-word;
}
.mcd-va__answer { max-width: 80%; }
.mcd-va__answer p { margin: 0 0 10px; white-space: pre-wrap; word-wrap: break-word; }
.mcd-va__answer p.mcd-va__lead { font-weight: 700; }

/* Typing */
.mcd-va__typing { display: inline-flex; gap: 5px; padding: 4px 0; }
.mcd-va__typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .5; animation: mcdva-b 1.2s infinite ease-in-out; }
.mcd-va__typing span:nth-child(2){ animation-delay:.2s } .mcd-va__typing span:nth-child(3){ animation-delay:.4s }
@keyframes mcdva-b { 0%,80%,100%{transform:translateY(0);opacity:.4} 40%{transform:translateY(-5px);opacity:1} }

/* ---------- CTA-Buttons ---------- */
.mcd-va__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.mcd-va__btn {
	display: inline-flex; align-items: center; gap: 10px; border-radius: 26px; padding: 12px 22px;
	font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; border: 1.5px solid var(--mcd);
}
.mcd-va__btn .mcd-va__chev { display: inline-flex; }
.mcd-va__btn { color: var(--text) !important; }
.mcd-va__btn--primary { background: var(--mcd) !important; color: #fff !important; }
.mcd-va__btn--primary:hover { filter: brightness(.93); }
.mcd-va__btn--ghost { background: transparent !important; color: var(--text) !important; border-color: #cfcfca; }
.mcd-va__btn--ghost:hover { border-color: var(--mcd); }

/* ---------- Produkt-Tiles ---------- */
.mcd-va__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; max-width: 760px; }
.mcd-va__tile { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; background: #fff; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
a.mcd-va__tile:hover { box-shadow: 0 8px 22px rgba(0,0,0,.1); transform: translateY(-2px); }
.mcd-va__tile-img { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16/9; background: #eef0f3 center/cover no-repeat; color: #b6bdc6; }
.mcd-va__tile-img--ph { background: repeating-linear-gradient(45deg,#eef0f3 0 10px,#e7eaee 10px 20px); }
.mcd-va__tile-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; }
.mcd-va__tile-title { font-weight: 700; font-size: 15px; }
.mcd-va__tile-desc { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mcd-va__tile-cta { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--mcd); }
@media (max-width: 540px){ .mcd-va__tiles { grid-template-columns: 1fr; } }

/* ---------- Ansprechpartner-Karte ---------- */
.mcd-va__contact-h { font-weight: 700; font-size: 15px; margin: 20px 0 10px; }
.mcd-va__contact {
	display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
	background: var(--bar); border-radius: 18px; padding: 20px 24px; max-width: 880px;
}
.mcd-va__avatar { width: 64px !important; height: 64px !important; max-width: 64px !important; border-radius: 50%; object-fit: cover; background: #ddd; flex: 0 0 auto; }
.mcd-va__contact-info { flex: 1 1 auto; min-width: 180px; }
.mcd-va__contact-role { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mcd); font-size: 15px; }
.mcd-va__contact-name { font-family: var(--headline); font-size: 20px; letter-spacing: .4px; }
.mcd-va__contact-actions { display: flex; align-items: center; gap: 10px; }
.mcd-va__mailbtn { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.mcd-va__mailbtn:hover { background: var(--mcd); color: #fff; border-color: var(--mcd); }
.mcd-va__contact-lines { font-size: 14px; color: var(--muted); margin-top: 4px; }
.mcd-va__contact-lines a { color: var(--mcd); text-decoration: none; }

/* ---------- Quellen ---------- */
.mcd-va__sources { margin-top: 12px; font-size: 13px; color: var(--muted); max-width: 760px; }
.mcd-va__sources summary { cursor: pointer; }
.mcd-va__sources ul { margin: 6px 0 0; padding-left: 18px; }
.mcd-va__sources a { color: var(--mcd); word-break: break-word; }

.mcd-va__disclaimer { text-align: center; font-size: 11px; color: var(--muted); padding: 0 22px 10px; }

@media (max-width: 700px){
	.mcd-va__bar { margin: 10px 12px 0; padding: 8px 14px; }
	.mcd-va__bar-btn span { display: none; }
	.mcd-va__userbubble, .mcd-va__answer { max-width: 100%; }
	.mcd-va__log, .mcd-va__inputbar { padding-left: 12px; padding-right: 12px; }
}
