/* wohnvia Plattform – Partnerverzeichnis, Formulare */

.wv-partnerliste, .wv-kategorien, .wv-partnerkopf, .wv-details, .wv-formular, .wv-erstberatung {
	--wv-gruen: var(--wp--preset--color--primary, #0A5A2D);
	--wv-gruen-dunkel: var(--wp--preset--color--primary-dark, #063F1F);
	--wv-gruen-hell: var(--wp--preset--color--primary-soft, #E7F0EA);
	--wv-sand: var(--wp--preset--color--sand, #F5F2EA);
	--wv-text: var(--wp--preset--color--contrast, #2C2E2D);
	--wv-grau: var(--wp--preset--color--muted, #5E6661);
	--wv-linie: var(--wp--preset--color--line, #DFE3DF);
	--wv-weiss: var(--wp--preset--color--base, #fff);
	--wv-schrift-titel: var(--wp--preset--font-family--heading, inherit);
}

.wv-icon { width: 1.5rem; height: 1.5rem; flex: none; }
.wv-icon--s { width: 1.05rem; height: 1.05rem; }
.wv-icon--l { width: 2.4rem; height: 2.4rem; }

/* Buttons */
.wv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
	background: var(--wv-gruen); color: #fff !important; text-decoration: none !important;
	font-family: var(--wv-schrift-titel); font-weight: 600; font-size: .95rem; line-height: 1.2;
	padding: .7rem 1.25rem; border-radius: 999px; border: 0; cursor: pointer;
	transition: background-color .15s ease, transform .15s ease;
}
.wv-btn:hover { background: var(--wv-gruen-dunkel); }
.wv-btn:active { transform: translateY(1px); }
.wv-btn:focus-visible { outline: 2px solid var(--wv-gruen); outline-offset: 3px; }
.wv-btn--hell { background: var(--wv-weiss); color: var(--wv-gruen) !important; box-shadow: inset 0 0 0 2px var(--wv-gruen); }
.wv-btn--hell:hover { background: var(--wv-gruen-hell); }
.wv-btn--gross { width: 100%; padding: .95rem 1.4rem; font-size: 1.02rem; margin-top: .5rem; }
.wv-link { display: inline-flex; align-items: center; gap: .3rem; color: var(--wv-gruen); font-weight: 600; text-decoration: none; font-size: .95rem; }
.wv-link:hover { text-decoration: underline; }

/* Bereiche-Kacheln */
.wv-kategorien { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 1rem; }
.wv-kategorie {
	display: flex; flex-direction: column; gap: .35rem; padding: 1.5rem; border-radius: 14px;
	background: var(--wv-weiss); color: var(--wv-text); text-decoration: none;
	border: 1px solid var(--wv-linie);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.wv-kategorie:hover { transform: translateY(-3px); border-color: var(--wv-gruen); box-shadow: 0 18px 40px rgba(10,40,20,.12); color: var(--wv-text); }
.wv-kategorie__icon { width: 3rem; height: 3rem; border-radius: 12px; display: grid; place-items: center; background: var(--wv-gruen-hell); color: var(--wv-gruen); margin-bottom: .6rem; }
.wv-kategorie:hover .wv-kategorie__icon { background: var(--wv-gruen); color: #fff; }
.wv-kategorie__name { font-family: var(--wv-schrift-titel); font-weight: 600; font-size: 1.12rem; line-height: 1.3; }
.wv-kategorie__text { color: var(--wv-grau); font-size: .95rem; line-height: 1.5; }
.wv-kategorie__mehr { margin-top: auto; padding-top: .6rem; display: inline-flex; align-items: center; gap: .35rem; color: var(--wv-gruen); font-weight: 600; font-size: .9rem; }

/* Filter */
.wv-filter {
	display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
	padding: .75rem; background: var(--wv-sand); border-radius: 16px; margin-bottom: 1.25rem;
}
.wv-filter__titel { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--wv-schrift-titel); font-weight: 600; font-size: .9rem; padding: 0 .4rem; color: var(--wv-gruen); }
.wv-filter__feld { flex: 1 1 180px; margin: 0; }
.wv-filter__suche { flex: 2 1 220px; }
.wv-filter select, .wv-filter input {
	width: 100%; height: 2.8rem; padding: 0 .9rem; border: 1px solid var(--wv-linie); border-radius: 999px;
	background-color: #fff; font: inherit; font-size: .95rem; color: var(--wv-text);
}
.wv-filter select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6661' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 1rem; padding-right: 2.2rem; }
.wv-filter .wv-btn { height: 2.8rem; }
.wv-filter__reset { font-size: .9rem; color: var(--wv-grau); padding: 0 .4rem; }
.wv-ergebnis { color: var(--wv-grau); font-size: .92rem; margin: 0 0 1rem; }

/* Partner-Karten */
.wv-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.wv-karte {
	position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem;
	background: var(--wv-weiss); border: 1px solid var(--wv-linie); border-radius: 14px;
	box-shadow: 0 1px 2px rgba(10,40,20,.05);
	transition: box-shadow .2s ease, transform .2s ease;
}
.wv-karte:hover { box-shadow: 0 18px 40px rgba(10,40,20,.11); transform: translateY(-2px); }
.wv-karte__kopf { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: .35rem; }
.wv-karte__titel { font-size: 1.15rem !important; margin: 0 !important; line-height: 1.3; }
.wv-karte__titel a { color: var(--wv-text); text-decoration: none; }
.wv-karte__titel a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.wv-karte__titel a:focus-visible { outline: none; }
.wv-karte__titel a:focus-visible::after { outline: 2px solid var(--wv-gruen); outline-offset: 2px; }
.wv-karte__ort { display: flex; align-items: center; gap: .3rem; color: var(--wv-grau); font-size: .9rem; margin: 0; }
.wv-karte__text { color: var(--wv-grau); font-size: .95rem; line-height: 1.55; margin: .2rem 0 0; }
.wv-karte__aktionen { margin-top: auto; padding-top: .9rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; position: relative; z-index: 1; }

.wv-chips { list-style: none; padding: 0; margin: .15rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.wv-chips li { font-size: .78rem; font-weight: 600; padding: .22rem .6rem; border-radius: 999px; background: var(--wv-gruen-hell); color: var(--wv-gruen); }

.wv-logo-box {
	width: 3.5rem; height: 3.5rem; border-radius: 12px; overflow: hidden; flex: none;
	display: grid; place-items: center; background: #fff; border: 1px solid var(--wv-linie);
}
.wv-logo-box img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.wv-logo-box--initialen {
	background: var(--wv-gruen); border-color: var(--wv-gruen); color: #fff;
	font-family: var(--wv-schrift-titel); font-weight: 700; font-size: 1.1rem; letter-spacing: .02em;
}
.wv-badge { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .2rem .55rem; border-radius: 6px; vertical-align: middle; }
.wv-badge--beispiel { background: #FFF4D6; color: #8A5A00; border: 1px solid #F1D48A; }

.wv-seiten { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; }
.wv-seite { min-width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--wv-linie); text-decoration: none; color: var(--wv-text); font-weight: 600; }
.wv-seite.is-aktiv { background: var(--wv-gruen); color: #fff; border-color: var(--wv-gruen); }
.wv-leer { padding: 2rem; border: 1px dashed var(--wv-linie); border-radius: 14px; text-align: center; background: #fff; }

/* Partner-Detail */
.wv-zurueck { display: inline-flex; align-items: center; gap: .35rem; color: var(--wv-grau); text-decoration: none; font-size: .9rem; margin-bottom: 1.25rem; }
.wv-zurueck:hover { color: var(--wv-gruen); }
.wv-partnerkopf__inhalt { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.wv-partnerkopf .wv-logo-box { width: 6rem; height: 6rem; border-radius: 18px; }
.wv-partnerkopf .wv-logo-box--initialen { font-size: 1.9rem; }
.wv-partnerkopf__text { flex: 1 1 320px; }
.wv-partnerkopf__text .wv-eyebrow { margin: 0 0 .3rem; }
.wv-partnerkopf__titel { margin: 0 0 .35rem !important; font-size: var(--wp--preset--font-size--xx-large, 2.4rem); }
.wv-partnerkopf__aktionen { display: flex; gap: .6rem; flex-wrap: wrap; }

.wv-details__titel { font-size: var(--wp--preset--font-size--x-large, 1.6rem) !important; margin-top: 2.25rem !important; }
.wv-leistungen, .wv-kontakt { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.wv-leistungen { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.wv-leistungen li, .wv-kontakt li { display: flex; gap: .55rem; align-items: flex-start; }
.wv-leistungen li { background: var(--wv-sand); padding: .7rem .9rem; border-radius: 10px; }
.wv-leistungen .wv-icon, .wv-kontakt .wv-icon { color: var(--wv-gruen); margin-top: .22rem; }

/* Formulare */
.wv-formular { display: grid; gap: .95rem; }
.wv-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem; }
@media (max-width: 560px) { .wv-reihe { grid-template-columns: 1fr; } }
.wv-feld label { display: block; font-family: var(--wv-schrift-titel); font-weight: 500; font-size: .88rem; margin-bottom: .3rem; color: var(--wv-text); }
.wv-feld input, .wv-feld select, .wv-feld textarea {
	width: 100%; box-sizing: border-box; padding: .72rem .85rem; font: inherit; font-size: 1rem; color: var(--wv-text);
	border: 1px solid #C9D0CA; border-radius: 10px; background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.wv-feld select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6661' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 1rem; padding-right: 2.3rem; }
.wv-feld textarea { resize: vertical; min-height: 7rem; }
.wv-feld input:focus, .wv-feld select:focus, .wv-feld textarea:focus { outline: none; border-color: var(--wv-gruen); box-shadow: 0 0 0 3px rgba(10,90,45,.15); }
.wv-feld.has-fehler input, .wv-feld.has-fehler select, .wv-feld.has-fehler textarea { border-color: #B3261E; }
.wv-feld--check label { display: flex; gap: .6rem; font-family: inherit; font-weight: 400; font-size: .9rem; line-height: 1.5; color: var(--wv-grau); }
.wv-feld--check input { width: 1.15rem; height: 1.15rem; margin-top: .18rem; accent-color: var(--wv-gruen); flex: none; }
.wv-feld--check.has-fehler label { color: #B3261E; }
.wv-klein { font-size: .84rem; color: var(--wv-grau); margin: 0; }
.wv-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.wv-fehlerbox { background: #FCEDEC; border: 1px solid #F1B9B5; color: #7A1A14; border-radius: 10px; padding: .9rem 1.1rem; font-size: .92rem; }
.wv-fehlerbox ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.wv-erfolg { text-align: center; padding: 1.5rem 1rem; background: var(--wv-gruen-hell, #E7F0EA); border-radius: 14px; color: var(--wp--preset--color--contrast, #2C2E2D); }
.wv-erfolg .wv-icon { color: #fff; background: var(--wp--preset--color--primary, #0A5A2D); border-radius: 50%; padding: .5rem; width: 3rem; height: 3rem; box-sizing: border-box; }
.wv-erfolg p { margin: .5rem 0; }

/* Erstberatung */
.wv-kalender__hinweis { text-align: center; padding: 1.5rem; border: 1px dashed var(--wv-linie); border-radius: 14px; background: var(--wv-sand); }
.wv-kalender__hinweis .wv-icon { color: var(--wv-gruen); }
.wv-kalender__hinweis p { margin: .4rem 0; }
.wv-kalender__hinweis .wv-btn { margin-top: .6rem; }
.wv-kalender iframe { width: 100%; min-height: 700px; border: 0; border-radius: 14px; }
.wv-oder { display: flex; align-items: center; gap: 1rem; color: var(--wv-grau); font-size: .9rem; margin: 1.5rem 0; }
.wv-oder::before, .wv-oder::after { content: ""; flex: 1; height: 1px; background: var(--wv-linie); }

/* Hinweis-Kasten (z. B. Datenschutz-Vorlage) */
.wv-hinweis { background: #FFF4D6; border: 1px solid #F1D48A; border-radius: 10px; padding: 1rem 1.2rem; color: #5C3D00; }

/* Platzhalter im Editor */
.wv-platzhalter { display: flex; flex-direction: column; gap: .25rem; padding: 1.25rem; border: 1px dashed #9BBDA5; border-radius: 12px; background: #F4F8F5; color: #2C2E2D; font-size: .92rem; }
.wv-platzhalter strong { color: #0A5A2D; }

.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
