/*
 * polnischeunternehmen.de
 *
 * Hand-written, no framework, no external requests. Everything a browser needs
 * arrives from this domain: German privacy law treats a font or script fetched
 * from someone else's server as handing a visitor's address to a third party.
 *
 * Mobile first, and no JavaScript anywhere — the site is a catalogue, and a
 * catalogue that renders instantly on a phone in a half-built house beats one
 * that animates.
 *
 * Both colour schemes are defined. A visitor whose system is set to dark gets
 * dark; nothing to toggle, nothing to remember.
 */

:root {
	color-scheme: light dark;

	--brand: #1d4ed8;
	--brand-strong: #1e40af;
	--brand-tint: #eff4ff;
	--accent: #ea580c;

	--ink: #0f172a;
	--ink-soft: #475569;
	--ink-faint: #64748b;

	--paper: #ffffff;
	--wash: #f8fafc;
	--line: #e2e8f0;
	--line-strong: #cbd5e1;

	--ok: #047857;
	--ok-tint: #ecfdf5;
	--warn: #b45309;
	--warn-tint: #fffbeb;
	--bad: #b91c1c;
	--bad-tint: #fef2f2;

	--radius: 12px;
	--radius-sm: 8px;
	--radius-pill: 999px;

	--shadow-sm: 0 1px 2px rgb(15 23 42 / .06), 0 1px 3px rgb(15 23 42 / .04);
	--shadow-md: 0 4px 6px -1px rgb(15 23 42 / .07), 0 2px 4px -2px rgb(15 23 42 / .05);
	--shadow-lg: 0 12px 24px -8px rgb(15 23 42 / .14), 0 4px 8px -4px rgb(15 23 42 / .06);

	--wrap: 72rem;
	--step: clamp(1rem, .92rem + .4vw, 1.0625rem);
}

@media (prefers-color-scheme: dark) {
	:root {
		--brand: #93b4ff;
		--brand-strong: #bfd2ff;
		--brand-tint: #16233d;
		--accent: #fb923c;

		--ink: #e8edf5;
		--ink-soft: #a8b5c7;
		--ink-faint: #8494a8;

		--paper: #131a26;
		--wash: #0b111a;
		--line: #24303f;
		--line-strong: #33425a;

		--ok: #34d399;
		--ok-tint: #0d2b22;
		--warn: #fbbf24;
		--warn-tint: #2b210c;
		--bad: #f87171;
		--bad-tint: #2c1416;

		--shadow-sm: 0 1px 2px rgb(0 0 0 / .5);
		--shadow-md: 0 4px 10px -2px rgb(0 0 0 / .55);
		--shadow-lg: 0 16px 32px -12px rgb(0 0 0 / .7);
	}
}

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--wash);
	color: var(--ink);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: var(--step);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

h1, h2, h3 {
	line-height: 1.15;
	letter-spacing: -.02em;
	margin: 0 0 .5em;
	font-weight: 700;
}
h1 { font-size: clamp(1.85rem, 1.3rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
h3 { font-size: 1.0625rem; }
p { margin: 0 0 1em; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brand-strong); }

:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
	border-radius: 4px;
}

img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
	left: 1rem; top: 1rem; z-index: 20;
	background: var(--paper);
	padding: .6rem .9rem;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
}

/* header ------------------------------------------------------------------ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .6rem 1.75rem;
	padding-top: .85rem;
	padding-bottom: .85rem;
}
.brand { margin: 0; font-size: 1.0625rem; letter-spacing: -.02em; }
.brand a { color: var(--ink); text-decoration: none; }
.brand strong { color: var(--brand); }

.nav { flex: 1 1 100%; order: 3; }
.nav ul {
	display: flex; flex-wrap: wrap; gap: .15rem .35rem;
	list-style: none; margin: 0; padding: 0;
}
.nav a {
	display: inline-block;
	padding: .35rem .7rem;
	border-radius: var(--radius-pill);
	color: var(--ink-soft);
	font-weight: 500;
	text-decoration: none;
	transition: background-color .15s, color .15s;
}
.nav a:hover { background: var(--brand-tint); color: var(--brand-strong); }
.nav .is-current > a { background: var(--brand-tint); color: var(--brand-strong); font-weight: 600; }

.langs { display: flex; gap: .3rem; margin-left: auto; }
.langs a {
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .05em;
	padding: .25rem .55rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	color: var(--ink-soft);
	text-decoration: none;
	transition: background-color .15s, color .15s, border-color .15s;
}
.langs a:hover { border-color: var(--brand); color: var(--brand); }
.langs a.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Shown only to a logged-in editor while the site is closed to visitors. */
.closed-bar {
	margin: 0;
	padding: .6rem 1.25rem;
	background: var(--warn-tint);
	border-bottom: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
	color: var(--warn);
	font-size: .875rem;
	font-weight: 600;
	text-align: center;
}
.closed-bar a { color: inherit; }

/* main -------------------------------------------------------------------- */

main { flex: 1 0 auto; padding: 1.75rem 1.25rem 4rem; }

.crumbs { font-size: .8125rem; color: var(--ink-faint); margin-bottom: 1.25rem; }
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs a::after { content: "›"; margin: 0 .4rem; color: var(--line-strong); }

.section { margin: 3rem 0 0; }
.section > h2 { margin-bottom: 1rem; }

.panel, .prose, .hero, .card, .form, .steps li, .company__head {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.prose { padding: 1.5rem 1.75rem; box-shadow: var(--shadow-sm); }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose code { font-size: .9em; background: var(--wash); padding: .1em .35em; border-radius: 4px; }

.empty {
	background: var(--paper);
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
	padding: 2rem 1.25rem;
	color: var(--ink-faint);
	text-align: center;
}

.lead-in { color: var(--ink-soft); font-size: 1.0625rem; max-width: 46rem; }

/* hero and search --------------------------------------------------------- */

.hero {
	position: relative;
	overflow: hidden;
	padding: 2.5rem 1.75rem;
	box-shadow: var(--shadow-md);
	background:
		radial-gradient(90rem 30rem at 15% -20%, var(--brand-tint), transparent 60%),
		var(--paper);
}
.hero h1 { max-width: 20ch; }
.hero__lead { color: var(--ink-soft); font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); max-width: 52ch; }

.search {
	display: flex;
	flex-wrap: wrap;
	gap: .9rem 1rem;
	align-items: flex-end;
	margin: 1.75rem 0 0;
}
.search__field { display: flex; flex-direction: column; flex: 1 1 13rem; margin: 0; gap: .35rem; }
.search__field label { font-size: .8125rem; font-weight: 600; color: var(--ink-soft); }
.search__check { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .9rem; color: var(--ink-soft); }
.search__submit { margin: 0; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
	font: inherit;
	color: var(--ink);
	background: var(--paper);
	padding: .6rem .75rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	width: 100%;
	transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-faint); }
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}
textarea { resize: vertical; min-height: 8rem; }

button, .button {
	display: inline-block;
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	padding: .7rem 1.4rem;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	background: var(--brand);
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	box-shadow: var(--shadow-sm);
	transition: background-color .15s, transform .06s, box-shadow .15s;
}
button:hover, .button:hover { background: var(--brand-strong); color: #fff; box-shadow: var(--shadow-md); }
button:active, .button:active { transform: translateY(1px); }

.button--ghost {
	background: transparent;
	color: var(--brand);
	border-color: var(--line-strong);
	box-shadow: none;
}
.button--ghost:hover { background: var(--brand-tint); color: var(--brand-strong); }

.results-count { color: var(--ink-faint); font-size: .875rem; }
.more { margin-top: 1.25rem; }

/* company cards ----------------------------------------------------------- */

.grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }

.card {
	display: flex;
	gap: 1rem;
	padding: 1.25rem;
	box-shadow: var(--shadow-sm);
	transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card:hover {
	box-shadow: var(--shadow-lg);
	border-color: var(--line-strong);
	transform: translateY(-2px);
}
.card__media { flex: 0 0 auto; }
.card__media img { border-radius: var(--radius-sm); object-fit: contain; background: var(--wash); }
.card__body { min-width: 0; }
.card__title { margin-bottom: .35rem; font-size: 1.125rem; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--brand); }
.card__badges { margin: 0 0 .5rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.card__trades { margin: 0 0 .5rem; font-size: .8125rem; color: var(--ink-faint); }
.card__summary { margin: 0 0 .6rem; color: var(--ink-soft); }
.card__meta { margin: 0; font-size: .8125rem; color: var(--ink-faint); }

.badge {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: .25rem .6rem;
	border-radius: var(--radius-pill);
	border: 1px solid transparent;
}
.badge--verified { color: var(--ok); background: var(--ok-tint); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.badge--premium { color: var(--warn); background: var(--warn-tint); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }

/* tiles ------------------------------------------------------------------- */

.tiles { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.tiles a {
	display: block;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	padding: .5rem 1rem;
	color: var(--ink-soft);
	font-weight: 500;
	text-decoration: none;
	transition: border-color .15s, color .15s, background-color .15s;
}
.tiles a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.tiles .is-current a { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-tint); font-weight: 600; }

.tiles--wide { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.tiles--wide a { border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: var(--shadow-sm); }
.tiles--wide a:hover { box-shadow: var(--shadow-md); }
.tiles__label { display: block; font-weight: 600; color: var(--ink); }
.tiles--wide a:hover .tiles__label { color: var(--brand); }
.tiles__count { display: block; font-size: .8125rem; color: var(--ink-faint); }

.regions { list-style: none; margin: 0; padding: 0; }
.regions > li { margin-bottom: 2rem; }
.regions h2 { font-size: 1.2rem; margin-bottom: .75rem; }

.taglist { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .75rem; }
.tag {
	font-size: .8125rem;
	padding: .3rem .75rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--wash);
	color: var(--ink-soft);
	text-decoration: none;
	transition: border-color .15s, color .15s;
}
.tag:hover { border-color: var(--brand); color: var(--brand); }

/* company profile --------------------------------------------------------- */

.company__head {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	padding: 1.75rem;
	box-shadow: var(--shadow-md);
}
.company__head > div { flex: 1 1 18rem; }
.company__logo { object-fit: contain; border-radius: var(--radius-sm); background: var(--wash); }
.company__summary { color: var(--ink-soft); font-size: 1.0625rem; }
.cta { margin: 1.25rem 0 0; }

.facts {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: .6rem 1.5rem;
	margin: 0;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.25rem 1.5rem;
	box-shadow: var(--shadow-sm);
}
.facts dt { font-weight: 600; color: var(--ink-faint); font-size: .875rem; }
.facts dd { margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.gallery img { border-radius: var(--radius); width: 100%; object-fit: cover; box-shadow: var(--shadow-sm); }

/* steps and trust --------------------------------------------------------- */

.steps ol {
	display: grid; gap: 1.1rem; grid-template-columns: 1fr;
	list-style: none; margin: 0; padding: 0; counter-reset: step;
}
.steps li { padding: 1.5rem; counter-increment: step; box-shadow: var(--shadow-sm); }
.steps h3 { display: flex; align-items: center; gap: .65rem; }
.steps h3::before {
	content: counter(step);
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 1.9rem;
	height: 1.9rem;
	border-radius: var(--radius-pill);
	background: var(--brand);
	color: #fff;
	font-size: .8125rem;
	font-weight: 700;
}
.steps p { margin: 0; color: var(--ink-soft); }

.trust ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.trust li {
	position: relative;
	padding-left: 1.9rem;
	color: var(--ink-soft);
}
.trust li::before {
	content: "";
	position: absolute;
	left: 0; top: .5em;
	width: 1.1rem; height: .55rem;
	border-left: 2px solid var(--ok);
	border-bottom: 2px solid var(--ok);
	transform: rotate(-45deg);
}

/* enquiry form ------------------------------------------------------------ */

.form { padding: 1.75rem; margin-top: 1.75rem; max-width: 50rem; box-shadow: var(--shadow-md); }
.form__row { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
.form__row .field { flex: 1 1 12rem; }

.field { display: flex; flex-direction: column; gap: .35rem; margin: 0 0 1.25rem; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink-soft); }
.field--bad input, .field--bad select, .field--bad textarea { border-color: var(--bad); }
.field--bad input:focus, .field--bad select:focus, .field--bad textarea:focus {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 20%, transparent);
}
.field__error { font-size: .8125rem; color: var(--bad); font-weight: 500; }

.field--check label { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .9375rem; color: var(--ink-soft); }
.field--check input { width: auto; margin-top: .3rem; flex: 0 0 auto; }

.form__submit { margin: .5rem 0 0; }
.form__note { margin: 1rem 0 0; font-size: .8125rem; color: var(--ink-faint); }

/* The honeypot. Out of sight and out of the tab order, but still in the
   document so that a script filling every field in trips over it. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
	border-radius: var(--radius);
	border: 1px solid transparent;
	padding: 1rem 1.25rem;
	margin: 1.25rem 0;
}
.notice > :last-child { margin-bottom: 0; }
.notice--ok { background: var(--ok-tint); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.notice--error { background: var(--bad-tint); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }

/* pagination -------------------------------------------------------------- */

.MarkupPagerNav { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 1.75rem 0 0; padding: 0; }
.MarkupPagerNav a, .MarkupPagerNav span {
	display: block;
	padding: .45rem .85rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--paper);
	color: var(--ink-soft);
	text-decoration: none;
	transition: border-color .15s, color .15s;
}
.MarkupPagerNav a:hover { border-color: var(--brand); color: var(--brand); }
.MarkupPagerNavOn a, .MarkupPagerNavOn span { background: var(--brand); border-color: var(--brand); color: #fff; }

/* footer ------------------------------------------------------------------ */

.site-footer { flex: 0 0 auto; background: var(--paper); border-top: 1px solid var(--line); }
.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 2rem;
	justify-content: space-between;
	align-items: center;
	padding-top: 1.75rem;
	padding-bottom: 1.75rem;
	font-size: .875rem;
	color: var(--ink-faint);
}
.site-footer__note { margin: 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }

/* wider screens ----------------------------------------------------------- */

@media (min-width: 48rem) {
	.nav { flex: 0 1 auto; order: 0; }
	.grid { grid-template-columns: repeat(2, 1fr); }
	.tiles--wide { grid-template-columns: repeat(2, 1fr); }
	.steps ol { grid-template-columns: repeat(3, 1fr); }
	.trust ul { grid-template-columns: repeat(3, 1fr); }
	.hero { padding: 3.5rem 3rem; }
	main { padding-top: 2.5rem; }
}

@media (min-width: 64rem) {
	.grid { grid-template-columns: repeat(3, 1fr); }
	.tiles--wide { grid-template-columns: repeat(3, 1fr); }
	.card { flex-direction: column; }
	.card__media img { width: 100%; height: 7rem; }
}

/* Respect a visitor who has asked for less movement. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
	.card:hover { transform: none; }
}
