/* =========================================================
   VIVA Monaco – Seitenvorlagen (Nachbau Elementor-Pro-Vorlagen)
   ========================================================= */

/* ---------- Einzelbeitrag (#200) ---------- */
.vm-beitrag {
	--vm-spalte: 740px;
	--vm-rand: 20px;
	margin-top: -20px; /* wie bisher: Bild rückt 20px unter die Logo-Zone */
	color: #000;
}

.vm-beitrag > * {
	width: calc(100% - 2 * var(--vm-rand));
	max-width: var(--vm-spalte);
	margin-inline: auto;
}

.vm-beitrag__bild { margin-top: 0; margin-bottom: 0; }

.vm-beitrag .vm-beitrag__img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
}

.vm-beitrag__bildtext {
	margin: 0;
	text-align: right;
	font-size: 16px;
	line-height: 24px;
	color: #000;
}

.vm-beitrag__kategorien {
	display: flex;
	flex-wrap: wrap;
	gap: 0 12px;
	padding-top: clamp(22px, 3vw, 34px);
}

.vm-beitrag__kategorien a {
	color: #a00086;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.125em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color .2s;
}

.vm-beitrag__kategorien a:hover { color: #ff00ff; }

.vm-beitrag__kopf { padding-top: 8px; }

.vm-beitrag .vm-beitrag__titel {
	margin: 0 0 8px;
	padding: 0;
	color: #000;
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 42px;
	font-weight: 500;
	line-height: 1.16;
	text-transform: none;
	text-wrap: wrap;
	overflow-wrap: anywhere;
}

.vm-beitrag__vorspann {
	font-size: 18px;
	line-height: 1.5;
	color: #000;
}

.vm-beitrag__vorspann p { margin: 0; }

/* Teilen */
.vm-teilen {
	display: flex;
	align-items: center;
	margin-top: 20px;
	min-height: 41px;
	align-content: flex-start;
}

.vm-teilen__label {
	flex: 0 0 63px;
	font-family: Montserrat, sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 12px;
	color: #000;
	align-self: flex-start;
	padding-top: 9px;
}

.vm-teilen__liste {
	display: flex;
	gap: 9.67px;
	margin: 0;
	padding: 0;
	list-style: none;
	align-self: flex-start;
}

.vm-teilen__liste li { margin: 0; }

.vm-teilen__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 32px;
	color: #000;
	transition: transform .25s cubic-bezier(.2, .7, .3, 1), color .2s;
}

.vm-teilen__btn svg { width: 19.5px; height: 19.5px; fill: currentColor; }
.vm-teilen__btn:hover, .vm-teilen__btn:focus-visible { color: #ff00ff; transform: translateY(-2px); }

/* Inhalt */
.vm-beitrag > .vm-beitrag__inhalt {
	width: calc(100% - 2 * var(--vm-rand) + 20px);
	max-width: calc(var(--vm-spalte) + 20px);
	padding: 0 10px;
	box-sizing: border-box;
}

.vm-beitrag__inhalt:has(> .elementor) { padding-inline: 0; }
.vm-beitrag__inhalt :is(img, picture, figure, .wp-block-gallery) { max-inline-size: 100%; }
.vm-beitrag__inhalt :is(figure, .wp-block-gallery):is(.alignwide, .alignfull) { margin-inline: 0; }
.vm-beitrag__inhalt :is(figcaption, .wp-caption-text) { text-align: start !important; }

/* Autor */
.vm-autor {
	display: flex;
	gap: 0;
	padding: 30px 0;
	border-top: 1px solid #e5e5e5;
	border-bottom: 1px solid #e5e5e5;
	box-sizing: border-box;
}

.vm-autor__bild { flex: 0 0 156px; line-height: 0; }

.vm-autor .vm-autor__img {
	width: 146px;
	height: 146px;
	border-radius: 100px;
	object-fit: cover;
	transition: transform .4s cubic-bezier(.2, .7, .3, 1);
}

.vm-autor__bild:hover .vm-autor__img { transform: scale(1.04); }

.vm-autor__text { flex: 1 1 0; min-width: 0; padding: 0 10px; }

.vm-autor .vm-autor__name {
	margin: 0 0 6px;
	font-family: Montserrat, sans-serif;
	font-size: 24px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.9px;
	color: #011016;
}

.vm-autor__bio { font-size: 18px; line-height: 1.5; color: #000; margin-bottom: 7px; }
.vm-autor__bio p { margin: 0; }

.vm-autor__btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 3px;
	background: linear-gradient(#1a1a1a 0%, #060102 100%);
	color: #fff;
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
	transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s;
}

.vm-autor__btn:hover,
.vm-autor__btn:focus-visible {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

/* ---------- Archiv (#879) ---------- */
.vm-archiv__kopf { padding: 10px 10px; }

.vm-archiv .vm-archiv__titel {
	width: calc(100% - 20px);
	max-width: 880px;
	margin: 0 auto;
	padding: 0;
	color: #000;
	font-family: "Source Serif 4", Georgia, serif;
	font-size: clamp(36px, 6vw, 84px);
	font-weight: 500;
	line-height: 1.15;
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	hyphens: auto;
	overflow-wrap: anywhere;
}

.vm-archiv__kacheln { padding: 20px; }

@media (max-width: 767px) {
	.vm-archiv__kacheln { padding: 0; }
	.vm-beitrag .vm-beitrag__titel { font-size: 32px; }

	.vm-teilen { min-height: 52px; }
	.vm-teilen__label { flex-basis: 60px; padding-top: 15px; }
	.vm-teilen__liste { gap: 2px; }
	.vm-teilen__btn { width: 42px; height: 42px; }

	.vm-autor { flex-direction: column; padding: 30px 0; }
	.vm-autor__bild { flex-basis: auto; margin-bottom: 20px; }
	.vm-autor .vm-autor__img { width: 120px; height: 120px; }
	.vm-autor__text { padding: 0; }
	.vm-autor__bio { margin-bottom: -1px; }
}

/* ---------- Sonderrubriken (#904, #1104, #599, #1110) ---------- */
@font-face {
	font-family: "Displace20-Black";
	src: url("/wp-content/uploads/2022/03/Displace20-Black.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: "Displace20-Black";
	src: url("/wp-content/uploads/2022/03/Displace20-Medium.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

.vm-sonder { max-width: 900px; margin: 0 auto; color: #000; }
.vm-sonder .vm-sonder__banner { display: block; width: 100%; max-width: none; height: auto; }
.vm-sonder__kopf { padding-top: 30px; }

.vm-sonder .vm-sonder__titel {
	width: calc(100% - 20px);
	max-width: 880px;
	margin: 0 auto;
	padding: 0;
	color: #000;
	font-family: "Source Serif 4", Georgia, serif;
	font-size: clamp(36px, 6vw, 84px);
	font-weight: 500;
	line-height: 1.15;
	text-align: center;
	text-transform: none;
	hyphens: auto;
	overflow-wrap: anywhere;
}

.vm-sonder__intro { margin-top: 1px; font-size: 18px; line-height: 1.5; }
.vm-teilen--sonder { margin-top: 5px; }
.vm-sonder__intro + .vm-teilen--sonder { margin-top: 19px; }
.vm-teilen--sonder .vm-teilen__label { flex-basis: 76px; font-size: 14px; line-height: 14px; }

.vm-sonder__liste { padding-top: 20px; }
.vm-sonder__beitrag { padding: 10px; margin-bottom: 100px; }
.vm-sonder__beitrag:last-child { margin-bottom: 0; }

.vm-sonder .vm-sonder__bild { display: block; width: 100%; max-width: none; height: auto; }

.vm-sonder .vm-sonder__beitragstitel {
	margin: 20px 0 21px;
	padding: 0;
	color: #000;
	font-family: Montserrat, sans-serif;
	font-size: 40px;
	font-weight: 500;
	line-height: 1.16;
	text-transform: none;
}

.vm-sonder .vm-sonder__beitragstitel--serif { font-family: "Source Serif 4", Georgia, serif; margin: 20px 0 19px; }

.vm-sonder__inhalt { padding: 20px 0 0; font-size: 18px; line-height: 1.5; }
.vm-sonder__inhalt p { font-family: Outfit, system-ui, sans-serif; }
.vm-sonder--mont .vm-sonder__inhalt,
body.elementor-kit-5 .vm-sonder--mont:not(.vm-sonder--beitrag) .vm-sonder__inhalt .elementor :is(.elementor-widget-text-editor, p) { font-family: Montserrat, sans-serif; }
.vm-sonder--mont .vm-sonder__inhalt .wp-block-gallery { margin-bottom: 0; }

.vm-sonder__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1px;
	max-width: 740px;
	margin: 0 auto;
	padding-top: 64px;
}

.vm-sonder__meta a {
	padding-right: 12px;
	color: #a00086;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.125em;
	text-transform: uppercase;
	text-decoration: none;
}

.vm-sonder--beitrag .vm-teilen--sonder { margin: 5px 0 10px; }
.vm-sonder--beitrag .vm-sonder__kopf .vm-teilen--sonder { margin-bottom: 0; }

.vm-sonder--muenchen { margin-top: -20px; }
.vm-sonder--muenchen .vm-sonder__kopf .vm-sonder__titel {
	width: 100%;
	max-width: none;
	font-family: "Displace20-Black", Montserrat, sans-serif;
	font-size: 60px;
	font-weight: 300;
	line-height: 60px;
	text-align: left;
	text-transform: uppercase;
}
.vm-sonder--muenchen .vm-sonder__intro { margin-top: 0; }
.vm-sonder--muenchen .vm-sonder__kopf .vm-teilen--sonder { margin-top: 20px; min-height: 30px; }
.vm-sonder--muenchen .vm-sonder__meta { padding-top: 30px; height: 50px; box-sizing: border-box; align-items: center; }
.vm-sonder--muenchen .vm-sonder__bild--voll { margin-top: 19px; }
.vm-sonder--muenchen .vm-sonder__beitragstitel--serif { margin-bottom: 20px; }
.vm-sonder__bildtext { margin: 0; text-align: right; font-family: "Displace20-Black", Montserrat, sans-serif; font-size: 18px; }

/* Köpfe der Rubrik (ersetzt das ECS-Karussell) */
.vm-koepfe {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
	margin: 60px 0 0;
	padding: 0;
	list-style: none;
}
.vm-koepfe li { margin: 0; }
.vm-koepfe__link { display: flex; flex-direction: column; align-items: center; gap: 14px; color: #000; text-decoration: none; }
.vm-koepfe__bild { display: block; width: 150px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #f2f2f2; }
.vm-koepfe__bild img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
.vm-koepfe__link:hover .vm-koepfe__bild img, .vm-koepfe__link:focus-visible .vm-koepfe__bild img { transform: scale(1.08); }
.vm-koepfe__name { font-family: Montserrat, sans-serif; font-size: 16px; font-weight: 600; line-height: 1.25; text-align: center; transition: color .2s; }
.vm-koepfe__link:hover .vm-koepfe__name { color: #ff00ff; }
.vm-koepfe__link[aria-current] .vm-koepfe__name { color: #a00086; }

.vm-weiterlesen { margin-top: 100px; }
.vm-sonder--beitrag .vm-weiterlesen { margin-bottom: 73px; }
.vm-sonder--muenchen .vm-weiterlesen { margin: 100px 0 0; }

.vm-weiterlesen__titel {
	margin: 0 0 20px;
	color: #000;
	font-family: "Displace20-Black", Montserrat, sans-serif;
	font-size: 32px;
	font-weight: 400;
	line-height: 1;
	text-align: center;
}

@media (max-width: 767px) {
	.vm-sonder { padding: 0 10px; }
	.vm-koepfe { grid-template-columns: 1fr 1fr; row-gap: 24px; }
	.vm-koepfe__bild { width: 130px; }
	.vm-sonder--muenchen .vm-sonder__kopf .vm-sonder__titel { font-size: 40px; line-height: 40px; }
}

/* ---------- Info-Seiten (#1095) ---------- */
.vm-seite { padding: 10px 0 60px; color: #000; }
.vm-seite__innen { width: calc(100% - 20px); max-width: 880px; margin: 0 auto; }
.vm-seite__kopf { padding: 50px 10px; margin-bottom: 20px; }
.vm-seite .vm-seite__titel {
	margin: 0;
	padding: 0;
	color: #000;
	font-family: "Source Serif 4", Georgia, serif;
	font-size: clamp(28px, 5vw, 42px);
	font-weight: 500;
	line-height: 1.15;
	text-transform: none;
	overflow-wrap: anywhere;
}

/* ---------- Kontaktformular (ersetzt Elementor-Pro-Formular) ---------- */
.vm-kontakt { padding-top: 80px; }
.elementor-widget-container > .vm-kontakt { padding-top: 0; }
.vm-form__falle { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vm-form__felder { display: flex; flex-wrap: wrap; margin: 0 -5px -46px; }
.vm-form__feld { width: 100%; padding: 0 5px; margin-bottom: 46px; box-sizing: border-box; }
.vm-form__feld > label { display: block; padding: 0; color: #000; font-family: var(--viva-font-sans, Outfit, system-ui, sans-serif); font-size: 18px; line-height: 18px; font-weight: 400; }
.vm-form :is(input:not([type=hidden]), textarea) {
	display: block;
	width: 100%;
	margin: 0;
	padding: 8px 16px;
	box-sizing: border-box;
	border: 0;
	border-radius: 0;
	background: #ededed;
	color: #000;
	font-family: var(--viva-font-sans, Outfit, system-ui, sans-serif);
	font-size: 18px;
	line-height: 1.4;
	box-shadow: inset 0 0 0 1px transparent;
	transition: box-shadow .2s, background-color .2s;
}
.vm-form textarea { height: calc(5.6em + 10px); padding: 5px 14px; resize: vertical; }
.vm-form :is(input, textarea):focus { outline: 0; background: #f4f4f4; box-shadow: inset 0 0 0 2px #ff00ff; }
.vm-form__feld--captcha:not(:has(iframe)) { margin-bottom: 46px; min-height: 1px; }
.vm-form__fehler { display: block; color: #c00; font-size: 14px; line-height: 1.3; }
.vm-form__fehler:empty { display: none; }
.vm-form__feld.hat-fehler :is(input, textarea) { box-shadow: inset 0 0 0 2px #c00; }
.vm-form__knopf {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 40px;
	padding: 0 24px;
	border: 0;
	border-radius: 3px;
	background: #ff00ff;
	color: #fff;
	font-family: Montserrat, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s, opacity .2s;
}
.vm-form__knopf:hover, .vm-form__knopf:focus-visible { color: #fff; background: #ff00ff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 0, 255, .35); }
.vm-form__knopf:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.vm-form__meldung:empty { display: none; }
.vm-form__meldung { margin-top: 56px; font-size: 16px; line-height: 1.5; }
.vm-form__meldung.ist-ok { color: #2a8a3a; }
.vm-form__meldung.ist-fehler { color: #c00; }
