/* ==========================================================
   VogelArt – Kontakt (page 325) & Impressum (page 162)
   Modern layout in the VogelArt colours: black, teal, grey.
   ========================================================== */

:root {
	--va-teal: #1b97a7;
	--va-teal-dark: #157a87;
	--va-black: #231f20;
	--va-grey: #a7a8aa;
	--va-light: #f4f5f5;
	--va-line: #dcdedf;
}

/* ---------- Container ---------- */
.page-id-325 #primary,
.page-id-162 #primary {
	box-sizing: border-box;
	max-width: 760px;
	margin: 0 auto;
	padding: 40px 24px 140px !important; /* bottom: room for fixed footer */
}

.page-id-325 .post-325,
.page-id-162 .post-162 {
	width: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	text-align: left;
}

.page-id-325 .entry-content,
.page-id-162 .entry-content {
	font-family: MyriadPro-Cond, "Arial Narrow", sans-serif;
	font-size: 18px;
	line-height: 1.55;
	color: var(--va-black);
}

.page-id-325 .entry-content p,
.page-id-162 .entry-content p {
	font-size: 18px;
	line-height: 1.55;
	margin: 0 0 1.1em;
}

/* empty &nbsp; paragraphs from the editor */
.page-id-325 .entry-content > p:empty,
.page-id-162 .entry-content > p:empty {
	display: none;
}

/* Section title with teal bar – echoes the line under the logo */
.page-id-325 .entry-content > h2.va-title,
.page-id-325 .entry-content > h2 > strong {
	display: block;
	font-family: MyriadPro-BoldCond, "Arial Narrow", sans-serif;
	font-weight: normal;
	font-size: 30px;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--va-black);
	padding-bottom: 12px;
	margin-bottom: 24px;
	position: relative;
}
.page-id-325 .entry-content > h2.va-title::after,
.page-id-325 .entry-content > h2 > strong::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 56px;
	height: 4px;
	background: var(--va-teal);
}

/* ==========================================================
   KONTAKT
   ========================================================== */

/* Direct-contact card (added by functions.php) */
.va-contact-card {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	margin: 0 0 48px;
	border-top: 4px solid var(--va-black);
	background: var(--va-light);
}
.va-contact-card a,
.va-contact-card div {
	display: block;
	padding: 16px 20px;
	border-bottom: 1px solid var(--va-line);
	text-decoration: none;
	font-size: 20px;
	color: var(--va-black);
}
.va-contact-card span {
	display: block;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--va-teal);
	margin-bottom: 2px;
}
.va-contact-card a:hover,
.va-contact-card a:focus {
	background: #fff;
	color: var(--va-teal);
}

/* Each form block */
.page-id-325 .entry-content > h2.va-title { margin: 0 0 24px; }
.page-id-325 .entry-content > h2 {
	margin: 0 0 56px;
	font-size: inherit;
	font-weight: normal;
	line-height: 1.4;
}
.page-id-325 .entry-content > h2 > br { display: none; }

/* Labels: normal weight instead of inherited h2 style */
.page-id-325 .wpcf7,
.page-id-325 .wpcf7 label {
	font-family: MyriadPro-Cond, "Arial Narrow", sans-serif;
	font-weight: normal;
	font-size: 15px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #555;
}
.page-id-325 .wpcf7 p { margin: 0 0 20px; }
.page-id-325 .wpcf7 label br { display: none; }
.page-id-325 .wpcf7 label { display: block; }

/* Inputs */
.page-id-325 .wpcf7 input[type="text"],
.page-id-325 .wpcf7 input[type="email"],
.page-id-325 .wpcf7 input[type="tel"],
.page-id-325 .wpcf7 select,
.page-id-325 .wpcf7 textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 14px 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 16px; /* 16px stops iOS from zooming in */
	letter-spacing: normal;
	text-transform: none;
	color: var(--va-black);
	background: #fff;
	border: 1px solid var(--va-line);
	border-bottom: 2px solid var(--va-black);
	border-radius: 0;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s, box-shadow .2s;
}
.page-id-325 .wpcf7 select {
	background-image: linear-gradient(45deg, transparent 50%, var(--va-black) 50%),
	                  linear-gradient(135deg, var(--va-black) 50%, transparent 50%);
	background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
	background-size: 6px 6px;
	background-repeat: no-repeat;
	padding-right: 44px;
}
.page-id-325 .wpcf7 textarea {
	min-height: 160px;
	resize: vertical;
}
.page-id-325 .wpcf7 input:focus,
.page-id-325 .wpcf7 select:focus,
.page-id-325 .wpcf7 textarea:focus {
	outline: none;
	border-color: var(--va-teal);
	box-shadow: 0 0 0 3px rgba(27, 151, 167, .15);
}

/* Submit button – square like the logo */
.page-id-325 .wpcf7 input[type="submit"] {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	padding: 16px 32px;
	font-family: MyriadPro-BoldCond, "Arial Narrow", sans-serif;
	font-size: 20px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #fff;
	background: var(--va-teal);
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: background .2s;
}
.page-id-325 .wpcf7 input[type="submit"]:hover,
.page-id-325 .wpcf7 input[type="submit"]:focus {
	background: var(--va-black);
}
.page-id-325 .wpcf7-spinner { display: block; margin: 12px auto 0; }

/* Validation messages */
.page-id-325 .wpcf7-not-valid-tip {
	font-size: 14px;
	letter-spacing: normal;
	text-transform: none;
	margin-top: 4px;
}
.page-id-325 .wpcf7 form .wpcf7-response-output {
	margin: 8px 0 0;
	padding: 12px 16px;
	font-size: 15px;
	letter-spacing: normal;
	text-transform: none;
	border-width: 0 0 0 4px;
}

/* Old hint "…Kontaktdaten im Impressum" – replaced by the card */
.page-id-325 .entry-content > p:has(> strong) { display: none; }

/* ==========================================================
   IMPRESSUM
   ========================================================== */
.page-id-162 .entry-content > p {
	text-align: left !important;
	padding: 0 0 20px;
	margin: 0 0 20px;
	border-bottom: 1px solid var(--va-line);
	overflow-wrap: anywhere;
}
.page-id-162 .entry-content > p > strong:first-child {
	display: block;
	font-family: MyriadPro-BoldCond, "Arial Narrow", sans-serif;
	font-weight: normal;
	font-size: 15px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--va-teal);
	margin-bottom: 6px;
}
.page-id-162 .entry-content > p > strong:first-child br { display: none; }

/* First block (company) as a highlighted card */
.page-id-162 .entry-content > p:first-child {
	background: var(--va-light);
	border-top: 4px solid var(--va-black);
	border-bottom: 0;
	padding: 20px;
	font-size: 20px;
}

/* "Datenschutzerklärung" = big section title */
.page-id-162 .entry-content > p:has(> strong:only-child) {
	border-bottom: 0;
	margin-top: 40px;
	padding-bottom: 0;
}
.page-id-162 .entry-content > p:has(> strong:only-child) > strong {
	font-size: 30px;
	letter-spacing: 0.02em;
	color: var(--va-black);
	padding-bottom: 12px;
	position: relative;
}
.page-id-162 .entry-content > p:has(> strong:only-child) > strong::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 56px;
	height: 4px;
	background: var(--va-teal);
}

.page-id-162 .entry-content > p:last-of-type {
	border-bottom: 0;
	color: var(--va-grey);
	font-size: 14px;
}

/* Links (phone numbers etc.) in brand colour instead of default blue */
.page-id-325 .entry-content a,
.page-id-162 .entry-content a {
	color: var(--va-teal);
	text-decoration: none;
	border-bottom: 1px solid rgba(27, 151, 167, .35);
	font-size: inherit;
	font-family: inherit;
}
.page-id-325 .va-contact-card a { border-bottom: 1px solid var(--va-line); color: var(--va-black); }

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
	.page-id-325 #primary,
	.page-id-162 #primary {
		padding: 56px 24px 160px !important;
	}
	.va-contact-card {
		grid-template-columns: repeat(3, 1fr);
	}
	.va-contact-card a,
	.va-contact-card div {
		border-bottom: 0;
		border-right: 1px solid var(--va-line);
	}
	.page-id-325 .wpcf7 input[type="submit"] { width: auto; }
}
