/* ===========================================================================
   lg.contact — the contact page (/contact/, _pages/contact.php)
   ---------------------------------------------------------------------------
       .lg-contact
         .lg-contact__head                 title + lead
         .lg-contact__layout               two columns from 900px, else stacked
           section.lg-contact__card        the form (notices, fields, button)
           aside.lg-contact__card--imprint operator, logo tile, address, photos

   Cards, notices and fields follow the account page (lg.account.css) and the
   login modal, so the page reads as part of the same product. Colours are
   tokens only (css/tokens.css), which is all dark mode needs.
   =========================================================================== */

.lg-contact {
	padding: 0.5rem 0 2rem;
	font-family: var(--lg-font);
	color: var(--lg-text);
}

/* --- Head ---------------------------------------------------------------- */
.lg-contact__head {
	max-width: 46rem;
	margin-bottom: 1.75rem;
}

.lg-contact__title {
	margin: 0 0 0.5rem;
	color: var(--lg-text);
	font-family: var(--lg-font-heading);
	font-size: clamp(1.6rem, 1.25rem + 1vw, 2.1rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.lg-contact__lead {
	margin: 0;
	color: var(--lg-text-muted);
	font-size: 1.05rem;
	line-height: 1.55;
}

/* --- Layout -------------------------------------------------------------- */
.lg-contact__layout {
	display: grid;
	gap: 1.25rem;
	align-items: start;
}

/* Two columns from 720px. Between 720 and 960 the form takes a little more
   (about 55 : 45) and the imprint drops its photos (below) - at that width
   there is no room for both a 30% strip and readable company details. From
   960 the imprint is the wider one again: a message field needs no more
   than ~60 characters a line, and the imprint carries the photos. */
@media (min-width: 720px) {
	.lg-contact__layout {
		grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
		gap: 1.5rem;
	}
}

@media (min-width: 960px) {
	.lg-contact__layout {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
		gap: 1.75rem;
	}
}

/* --- Cards --------------------------------------------------------------- */
.lg-contact__card {
	padding: 1.6rem 1.75rem;
	border: 1px solid var(--lg-border);
	border-radius: var(--lg-radius-card);
	background: var(--lg-surface);
	box-shadow: 0 2px 10px rgba(var(--lg-shadow-rgb, 120, 98, 72), 0.06);
}

.lg-contact__card-title {
	margin: 0 0 0.3rem;
	color: var(--lg-text);
	font-family: var(--lg-font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
}

.lg-contact__intro {
	margin: 0 0 1.25rem;
	color: var(--lg-text-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

@media (max-width: 480px) {
	.lg-contact__card { padding: 1.25rem 1.15rem; }
}

/* --- Notices (sent / errors) --------------------------------------------- */
.lg-contact__notice {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 0 0 1.25rem;
	padding: 0.85rem 1rem;
	border-radius: var(--lg-radius);
	font-size: var(--lg-font-size-lead);
	line-height: 1.45;
}

.lg-contact__notice p { margin: 0; font-size: inherit; }
.lg-contact__notice ul { margin: 0; padding-left: 1.2rem; }
.lg-contact__notice li + li { margin-top: 0.25rem; }

.lg-contact__notice svg {
	flex: 0 0 auto;
	width: 1.2rem;
	height: 1.2rem;
	margin-top: 0.1rem;
}

.lg-contact__notice--ok  { background: var(--lg-ok-bg);  color: var(--lg-ok-text); }
.lg-contact__notice--bad { background: var(--lg-bad-bg); color: var(--lg-bad-text); }

/* --- Form ---------------------------------------------------------------- */
/* Scoped under .lg-contact__form: a.css has broad "form input" / ".form"
   rules, and the old page piled !important on top of them. Specific enough
   here to need none. */
.lg-contact__form label {
	display: block;
	margin: 1rem 0 0.4rem;
	padding: 0;
	color: var(--lg-text);
	font-size: 0.9rem;
	font-weight: 600;
}

.lg-contact__form label:first-child { margin-top: 0; }

.lg-contact__form input[type="email"],
.lg-contact__form select,
.lg-contact__form textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: var(--lg-control-padding);
	border: 1px solid var(--lg-border-input);
	border-radius: var(--lg-radius);
	background-color: var(--lg-surface);
	color: var(--lg-text);
	font-family: var(--lg-font);
	font-size: var(--lg-font-size-lead);
	line-height: 1.4;
	box-sizing: border-box;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lg-contact__form textarea {
	min-height: 10rem;
	resize: vertical;
}

.lg-contact__form ::placeholder {
	color: var(--lg-text-muted);
	opacity: 0.8;
}

/* The select as a field like the others: own chevron instead of the
   browser's, which differs per system and ignores the theme. */
.lg-contact__form select {
	padding-right: 2.5rem;
	appearance: none;
	-webkit-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='%238c8c96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.85rem center;
	background-size: 1.1rem;
	cursor: pointer;
}

.lg-contact__form input[type="email"]:focus,
.lg-contact__form select:focus,
.lg-contact__form textarea:focus {
	border-color: var(--lg-red);
	outline: none;
	box-shadow: 0 0 0 3px rgba(229, 88, 83, 0.15);
}

.lg-contact__turnstile {
	margin-top: 1rem;
}

.lg-contact__actions {
	margin-top: 1.25rem;
}

/* --- Imprint ------------------------------------------------------------- */
.lg-contact__operator {
	margin: 0 0 0.6rem;
	color: var(--lg-text-muted);
	font-size: 0.9rem;
}

/* Light: just the logo, flush left - its white JPEG ground sits on the white
   card unseen. Dark: the same white, but as a rounded tile with some
   padding, so it reads as meant rather than as a stray white rectangle. */
.lg-contact__logo {
	display: inline-flex;
	margin-bottom: 1.25rem;
}

:root[data-theme="dark"] .lg-contact__logo {
	padding: 0.6rem 0.9rem;
	border-radius: var(--lg-radius);
	background: #ffffff;
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .lg-contact__logo {
		padding: 0.6rem 0.9rem;
		border-radius: var(--lg-radius);
		background: #ffffff;
	}
}

.lg-contact__logo img {
	display: block;
	width: 200px;
	max-width: 100%;
	height: auto;
}

.lg-contact__address p {
	margin: 0 0 0.75rem;
	color: var(--lg-text-soft);
	font-size: 0.95rem;
	line-height: 1.55;
}

.lg-contact__address p:last-child { margin-bottom: 0; }

.lg-contact__address b {
	color: var(--lg-text);
	font-weight: 700;
}

.lg-contact__address a {
	color: var(--lg-red);
	text-decoration: none;
	font-weight: 600;
}

.lg-contact__address a:hover {
	text-decoration: underline;
}

/* --- Photo bubbles -------------------------------------------------------
   The two photos as the old page had them: on the card's corners, top right
   and bottom right, each running past the edges and cut off by them (the
   card clips, overflow:hidden). In the headline's organic blob shape
   (a.css .lg-hero__photo) rather than a circle - without its gold underlay,
   which the corners would cut off anyway.

   The card keeps its right 30% free (padding-right in percent of the
   column), so the text never runs under a photo at any width. Photo sizes
   are percent of the card too, capped, so they scale on a phone. */
.lg-contact__card--imprint {
	position: relative;
	overflow: hidden;
	padding-right: 30%;
}

/* Only a hook in the markup: the bubbles are placed against the card. */
.lg-contact__photos {
	height: 0;
	margin: 0;
}

.lg-contact__bubble {
	position: absolute;
	display: block;
	aspect-ratio: 1 / 1;
}

.lg-contact__bubble img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--lg-contact-blob);
}

.lg-contact__bubble--a {
	--lg-contact-blob: 32% 68% 58% 42% / 48% 34% 66% 52%;
	top: -32px;
	right: -32px;
	width: 34%;
	max-width: 180px;
}

/* Smaller and a little less far out, so the two corners are not mirror
   images of each other. */
.lg-contact__bubble--b {
	--lg-contact-blob: 58% 42% 38% 62% / 42% 58% 42% 58%;
	right: -24px;
	bottom: -30px;
	width: 29%;
	max-width: 150px;
}

/* Right-to-left editions (Arabic): the text starts on the right, so the
   photos and the free strip move to the left, as on the old page. */
.rtl .lg-contact__card--imprint {
	padding-right: 1.75rem;
	padding-left: 30%;
}

.rtl .lg-contact__bubble--a {
	right: auto;
	left: -32px;
}

.rtl .lg-contact__bubble--b {
	right: auto;
	left: -24px;
}

@media (max-width: 480px) {
	.rtl .lg-contact__card--imprint { padding-right: 1.15rem; }
}

/* --- Where the photos go ---------------------------------------------------
   Hidden in the narrow two-column range (720-959px) and on small phones
   (below 480px); the imprint then has the card's full width again, with
   the normal padding on both sides. Shown from 960px and between 480 and
   719px, where the stacked card is wide enough for the free strip. */
@media (min-width: 720px) and (max-width: 959.98px), (max-width: 479.98px) {
	.lg-contact__photos {
		display: none;
	}

	.lg-contact__card--imprint,
	.rtl .lg-contact__card--imprint {
		padding-right: 1.75rem;
		padding-left: 1.75rem;
	}
}

@media (max-width: 479.98px) {
	.lg-contact__card--imprint,
	.rtl .lg-contact__card--imprint {
		padding-right: 1.15rem;
		padding-left: 1.15rem;
	}
}
