/*
 Theme Name: Villa Mobile (GeneratePress Child)
 Template:   generatepress
 Version:    0.1
*/

@font-face { font-family: 'Roboto'; font-weight: 400; font-display: swap;
  src: url('fonts/Roboto-Regular.woff2') format('woff2'), url('fonts/Roboto-Regular.woff') format('woff'); }
@font-face { font-family: 'Roboto Condensed'; font-weight: 400; font-display: swap;
  src: url('fonts/Roboto-Condensed-Regular.woff2') format('woff2'), url('fonts/Roboto-Condensed-Regular.woff') format('woff'); }
@font-face { font-family: 'PT Sans'; font-weight: 400; font-display: swap;
  src: url('fonts/PT-Sans-Regular.woff2') format('woff2'), url('fonts/PT-Sans-Regular.woff') format('woff'); }
@font-face { font-family: 'Oswald'; font-weight: 400; font-display: swap;
  src: url('fonts/Oswald-Regular.woff2') format('woff2'), url('fonts/Oswald-Regular.woff') format('woff'); }

/* Bunter Streifen-Footer wie bisher */
.site-info {
	min-height: 170px;
	background: url('footer_background.png') repeat-x;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
}
.site-info a { color: #fff; }
.footer-links { list-style: none; margin: 0; display: flex; gap: 0 .5em; font-size: 14px; }
.footer-links li + li::before { content: '|'; margin-right: .5em; color: #fff; }

/* ---------- Seiten-Bausteine (Klassen an GenerateBlocks-Containern) ---------- */

/* Volle Breite ohne Innenabstand für Seiten aus Sektionen */
.vm-sektionen .inside-article { padding: 0; }
.vm-sektionen .entry-content { margin-top: 0; }

/* Kachel: weiß, grüner 5-px-Rahmen, runde Ecken */
.vm-kachel {
	background: var(--base-3);
	border: 5px solid var(--accent);
	border-radius: 20px;
	padding: 20px;
}
.vm-kachel h2 { font-size: 36px; margin-bottom: 20px; }
.vm-kachel p { margin-bottom: 15px; }

.vm-button {
	display: block;
	background: var(--accent-2);
	color: #fff;
	text-align: center;
	text-transform: uppercase;
	font-family: 'Roboto Condensed', sans-serif;
	font-weight: 700;
	font-size: 14px;
	padding: 8px 12px;
	transition: transform .16s;
}
.vm-button:hover, .vm-button:focus { color: #fff; transform: scale(1.1); }

/* Startseite: Kopfbild mit drei Kacheln */
.vm-hero {
	background: url('/wp-content/uploads/2018/10/Villa-Mobile-Headerbild-Startseite.jpeg') center / cover;
	padding: 40px 16px 90px;
}
.vm-hero-grid {
	max-width: 1150px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
}

/* Raum-Logo-Slider (ersetzt LayerSlider): Logos blenden nacheinander ein */
.vm-kachel-slider { display: flex; align-items: center; justify-content: center; }
.vm-raumlogos { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; }
.vm-raumlogos a {
	position: absolute;
	inset: 0;
	opacity: 0;
	animation: vm-raumlogo 16s infinite;
}
.vm-raumlogos img { width: 100%; height: 100%; }
.vm-raumlogos a:nth-child(2) { animation-delay: 2s; }
.vm-raumlogos a:nth-child(3) { animation-delay: 4s; }
.vm-raumlogos a:nth-child(4) { animation-delay: 6s; }
.vm-raumlogos a:nth-child(5) { animation-delay: 8s; }
.vm-raumlogos a:nth-child(6) { animation-delay: 10s; }
.vm-raumlogos a:nth-child(7) { animation-delay: 12s; }
.vm-raumlogos a:nth-child(8) { animation-delay: 14s; }
@keyframes vm-raumlogo {
	0%     { opacity: 0; transform: translateX(30%); z-index: 1; }
	3%     { opacity: 1; transform: none; }
	12.5%  { opacity: 1; transform: none; z-index: 1; }
	15.5%  { opacity: 0; transform: translateX(-30%); z-index: 0; }
	100%   { opacity: 0; z-index: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.vm-raumlogos a { animation: none; }
	.vm-raumlogos a:first-child { opacity: 1; }
}

/* Aktuelles: Beitragsliste mit Kalender-Symbol */
.vm-aktuelles .wp-block-latest-posts { margin: 0; }
.vm-aktuelles .wp-block-latest-posts li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 14px;
	font-size: 24px;
	line-height: 1.4;
}
.vm-aktuelles .wp-block-latest-posts li::before {
	content: '';
	position: absolute;
	left: 0;
	top: .3em;
	width: 22px;
	height: 22px;
	background: var(--accent-2);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2zM5 9h14v11H5zm2 2v2h2v-2zm4 0v2h2v-2zm4 0v2h2v-2zm-8 4v2h2v-2zm4 0v2h2v-2zm4 0v2h2v-2z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2zM5 9h14v11H5zm2 2v2h2v-2zm4 0v2h2v-2zm4 0v2h2v-2zm-8 4v2h2v-2zm4 0v2h2v-2zm4 0v2h2v-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Grünes Band mit weißer Textbox und runden Bildern */
.vm-band { background: var(--accent); padding: 20px 16px 30px; }
.vm-band-grid {
	max-width: 1230px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 15px;
	align-items: start;
}
.vm-box { background: var(--base-3); border-radius: 20px; padding: 20px 30px; }
.vm-box h1 { margin-bottom: 25px; }
.vm-box h2 { margin-top: 30px; }
.vm-liste { margin-left: 1.2em; font-size: 18px; }
.vm-kreise { display: flex; flex-direction: column; align-items: center; gap: 25px; }
.vm-kreis { margin: 0; transition: transform .16s; }
.vm-kreis:hover { transform: scale(1.2); }
.vm-kreis img {
	display: block;
	width: 330px;
	max-width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 50%;
	border: 5px solid var(--base-3);
}
.vm-kreis-hoch img { width: 270px; aspect-ratio: 3 / 4; }

@media (max-width: 1024px) {
	.vm-hero-grid, .vm-band-grid { grid-template-columns: 1fr; max-width: 560px; }
}

/* ---------- Unterseiten ---------- */
.vm-breadcrumb { background: var(--accent); color: #fff; font-family: 'Roboto Condensed', sans-serif; font-size: 14px; padding: 8px 0; }
.vm-breadcrumb .grid-container { padding: 0 40px; }
.vm-breadcrumb a, .vm-breadcrumb a:hover { color: #fff; }
.vm-breadcrumb .vm-sep { margin: 0 .3em; }

.entry-title { border-left: 3px solid var(--accent); padding-left: 8px; line-height: 1.1; }

/* Zentrierte Zwischenüberschrift mit grünem Strich (wie „Unsere Partner“) */
.vm-titel-mitte { text-align: center; margin-top: 40px; }
.vm-titel-mitte::after { content: ''; display: block; width: 40px; height: 3px; background: var(--accent); margin: 20px auto 40px; }

/* Zwei Spalten */
.vm-zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; }
.vm-zweispaltig p { font-size: 18px; }

/* Team-Liste (Mitarbeiter) */
.mitarbeiter_list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 30px; }
.vm-person { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; align-items: start; font-size: 16px; }
.vm-person-bild { display: block; transition: transform .16s; }
.vm-person-bild:hover { transform: scale(1.2); position: relative; z-index: 2; }
.vm-person-bild img { display: block; width: 100%; height: auto; border: 5px solid var(--accent); border-radius: 20px; }
.vm-person-name { font-size: 24px; margin: -5px 0 10px; }
.vm-person-name a { color: inherit; }
.vm-person-name a:hover { color: var(--accent); }
.vm-person-text p { margin-bottom: 10px; }
.vm-person-text h3 { font-family: inherit; font-size: inherit; margin: 0 0 5px; }
.vm-person-text ul { margin: 0 0 0 1.2em; }

@media (max-width: 768px) {
	.mitarbeiter_list, .vm-zweispaltig { grid-template-columns: 1fr; }
	.vm-breadcrumb .grid-container { padding: 0 16px; }
}

/* Footer-Links rechts im Streifen */
.site-info .inside-site-info { width: 100%; }
.site-info .copyright-bar { width: 100%; }
.footer-links { justify-content: flex-end; }

/* Seitenleiste */
.widget-title { font-family: 'Roboto Condensed', sans-serif; font-size: 24px; text-transform: uppercase; margin-bottom: 15px; }
.sidebar .widget { padding: 0 0 0 20px; font-size: 18px; }
.sidebar .widget p { margin-bottom: 15px; }

/* Beitragsbild (Seiten, Mitarbeiter, Beiträge) mit grünem Rahmen */
.featured-image img { border: 5px solid var(--accent); border-radius: 20px; box-sizing: border-box; }

/* ---------- Praxis-Seite: farbige Raum-Kästen ---------- */
.vm-praxis-intro { align-items: start; margin-bottom: 30px; }
.vm-raum-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.vm-raum-icons figure { margin: 0; transition: transform .16s; }
.vm-raum-icons figure:hover { transform: scale(1.1); }
.vm-raum-icons img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }

.vm-raum {
	background: var(--raumfarbe, var(--accent));
	border-radius: 20px;
	padding: 20px;
	margin-bottom: 30px;
	display: grid;
	grid-template-columns: 1fr 3fr;
	gap: 20px;
	align-items: center;
	scroll-margin-top: 20px;
}
.vm-raum-icon figure { margin: 0; }
.vm-raum-icon img { display: block; max-width: 180px; max-height: 180px; width: auto; margin: 0 auto; border-radius: 10px; }
.vm-raum-text { grid-column: 2; background: var(--base-3); border-radius: 10px; padding: 15px 20px; }
.vm-raum-text h2 { font-size: 36px; margin: 0 0 5px; }
.vm-raum-text h3 { font-size: 20px; margin: 0 0 5px; }
.vm-raum-text p { margin: 0; font-size: 16px; }
.vm-raum-bild { grid-column: 1 / -1; }
.vm-raum-bild figure { margin: 0; }
.vm-raum-bild img { display: block; width: 100%; height: auto; border-radius: 10px; }

.vm-raum-sekretariat   { --raumfarbe: var(--sekretariat); }
.vm-raum-seepferdchen  { --raumfarbe: var(--seepferdchen); }
.vm-raum-bewegung      { --raumfarbe: var(--bewegung); }
.vm-raum-warten        { --raumfarbe: var(--warten); }
.vm-raum-tiger         { --raumfarbe: var(--tiger); }
.vm-raum-maulwurf      { --raumfarbe: var(--maulwurf); }
.vm-raum-pony          { --raumfarbe: var(--pony); }
.vm-raum-delphin       { --raumfarbe: var(--delphin); }
.vm-raum-schmetterling { --raumfarbe: var(--schmetterling); }
.vm-raum-libelle       { --raumfarbe: var(--libelle); }
.vm-raum-eisvogel      { --raumfarbe: var(--eisvogel); }
.vm-raum-stille        { --raumfarbe: var(--stille); }

.vm-geschoss { margin: 40px 0 20px; }
.vm-geschoss h2 { margin-bottom: 0; }
.vm-geschoss p { font-size: 16px; }

@media (max-width: 768px) {
	.vm-raum { grid-template-columns: 1fr; }
	.vm-raum-text { grid-column: auto; }
	.vm-raum-icon img { max-width: 120px; max-height: 120px; }
	.vm-raum-text h2 { font-size: 28px; }
}

/* ---------- Leistungen ---------- */
.vm-trenner { margin: 40px 0; border-color: #e6e6e6; }
.ccchildpages { margin-bottom: 20px; }
.simple .ccchildpage {
	background: linear-gradient(#c4c4c4, #ececec);
	border-radius: 20px;
	padding: 20px 15px;
	text-align: center;
}
.simple .ccchildpage h3 { font-size: 20px; line-height: 1.2; margin-bottom: 15px; }
.simple .ccchildpage h3 a { color: var(--contrast); font-size: inherit; }
.simple .ccchildpage img { border-color: var(--accent); }
/* Beitragsbild bündig mit dem Text (gleicher Innenabstand wie .inside-article) */
.page-header-image.grid-container { max-width: 1200px; margin: 0 auto; padding: 40px 40px 0; box-sizing: border-box; }
.ccchildpages + h3, .ccchildpages ~ .gb-text { margin-top: 30px; }
@media (max-width: 768px) {
	.page-header-image.grid-container { padding: 30px 30px 0; }
}

/* ---------- Blog (News & Termine) ---------- */
.vm-banner { height: 450px; background: center / cover no-repeat; }
.vm-archiv-titel { font-size: 42px; line-height: 1.2; margin: 0 0 34px; border-left: 3px solid var(--accent); padding-left: 8px; }
.blog .inside-article { display: grid; grid-template-columns: 85px 1fr; column-gap: 15px; align-items: start; }
.blog .inside-article > * { grid-column: 2; }
.blog .inside-article > .vm-datum { grid-column: 1; grid-row: 1 / span 3; }
.blog .site-main > article { margin-bottom: 60px; }
.vm-datum {
	width: 85px;
	padding: 20px 0;
	background: var(--accent-2);
	border-radius: 10px;
	color: #fff;
	font-family: 'PT Sans', sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 22px;
	text-align: center;
	text-transform: uppercase;
}
.vm-datum span { display: block; }
.vm-datum-monat { font-size: 16px; }
.blog .entry-title { border: 0; padding: 0; font-family: 'PT Sans', sans-serif; font-weight: 700; font-size: 28px; margin-bottom: 5px; }
.blog .entry-title a { color: #737373; }
.blog .entry-title a:hover { color: var(--accent); }
.blog .entry-summary { margin-top: 0; }
.read-more { font-weight: 700; color: #3d5711; }
.vm-button-inline { display: inline-block; font-size: 18px; padding: 10px 20px; }

@media (max-width: 768px) {
	.vm-banner { height: 220px; }
	.vm-archiv-titel { font-size: 32px; margin-bottom: 20px; }
}

/* ---------- Anfahrt & Kontakt ---------- */
.vm-karte { line-height: 0; }
.vm-karte iframe { display: block; width: 100%; height: 450px; }
.vm-karte .brlbs-cmpnt-content-blocker { line-height: normal; }
.vm-kontakt { align-items: start; }
.vm-kontakt h2 { margin-top: 0; }
.vm-kontakt h2 + h3 { font-size: 26px; }
.vm-kontakt p + h2 { margin-top: 30px; }

/* Kontaktformular 7: wie im alten Theme */
div.wpcf7 { background: #f5f5f5; border: 2px solid #eee; border-radius: 4px; padding: 20px 10px 10px; }
.wpcf7 label { display: block; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea, .wpcf7 select { width: 100%; background: #fff; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7-submit { width: 100%; text-transform: uppercase; }
.wpcf7-form .wpcf7-not-valid-tip { font-size: 14px; }

/* ---------- Infos (FAQ) ---------- */
.vm-faq li { margin-bottom: 15px; }
