/* REINKE International – Baustellenseite
   Gestaltung angelehnt an die bisherige Website: schwarzer Kopf, großes Bildmotiv,
   fette Versal-Headlines, schwarze Rahmen-Kacheln, Akzentfarbe aus dem Logo. */

:root {
	--black: #000;
	--ink: #111;
	--muted: #5f5f5f;
	--line: #d6d6d6;
	--paper: #fff;
	--accent: #f44d1f;      /* Orange aus dem REINKE-Logo */
	--accent-dark: #c93a12; /* für Text auf Weiß (Kontrast) */
	--font: helvetica, "helvetica", "helvetica neue", arial, sans-serif;
	--container: 960px;
	--gutter: 24px;
}

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }
a:focus-visible, .tile a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 10;
	background: var(--paper); color: var(--ink); padding: 8px 14px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* --- Kopf ------------------------------------------------------------- */

.site-header { background: var(--black); color: #fff; }
.header-inner {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	min-height: 64px;
}
.brand { display: block; padding: 12px 0; }
.brand img { height: 36px; width: auto; }
.header-phone {
	font-size: 14px; font-weight: 700; text-decoration: none; letter-spacing: .02em;
	white-space: nowrap;
}
.header-phone:hover { color: var(--accent); }

/* --- Titelbild -------------------------------------------------------- */

.hero { background: #0d2552; }
.hero picture, .hero img, .hero-placeholder {
	width: 100%;
	height: clamp(240px, 40vw, 580px);
}
.hero img { object-fit: cover; }

/* Platzhalter bis zum Upload: Nachthimmel über Sand wie im bisherigen Motiv */
.hero-placeholder {
	position: relative;
	display: flex; align-items: center; justify-content: center;
	background:
		linear-gradient(180deg, #071737 0%, #0f2f6b 38%, #2a5ea6 62%, #8eaed3 74%, #d8ccb4 74.4%, #c9b693 88%, #b9a37c 100%);
}
.hero-hint {
	background: rgba(0,0,0,.65); color: #fff; padding: 10px 16px;
	font-size: 15px; font-weight: 700; border: 1px dashed rgba(255,255,255,.6);
}

/* --- Inhalt ----------------------------------------------------------- */

.main { padding-top: 48px; padding-bottom: 64px; }

.kicker {
	display: flex; flex-wrap: wrap; gap: 4px 14px;
	margin: 0 0 18px;
	font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.kicker span:first-child { color: var(--accent-dark); }
.kicker span:first-child::before {
	content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px;
	background: var(--accent); vertical-align: 0;
}
.kicker span + span { color: var(--muted); }

h1, .h1 {
	margin: 0 0 .5em;
	font-size: clamp(26px, 3.4vw, 34px);
	line-height: 1.12;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -.005em;
}

.intro {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	margin-bottom: 44px;
}
.intro-col[lang="en"] { color: #333; }
.intro-col[lang="en"] .h1 { color: var(--muted); }

.rte > :first-child { margin-top: 0; }
.rte > :last-child { margin-bottom: 0; }
.rte h2 { font-size: 19px; text-transform: uppercase; margin: 2em 0 .5em; line-height: 1.25; }
.rte h3 { font-size: 17px; margin: 1.6em 0 .4em; }
.rte a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rte a:hover { color: var(--accent-dark); }

/* Kontakt-Kacheln (wie die Rahmenboxen der bisherigen Startseite) */
.tiles {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.tile a {
	display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
	height: 100%;
	padding: 34px 18px 30px;
	border: 2px solid var(--black);
	text-align: center; text-decoration: none;
	transition: border-color .15s, color .15s;
}
.tile .icon { width: 64px; height: 58px; fill: var(--black); margin-bottom: 20px; transition: fill .15s; }
.tile-label { display: block; font-weight: 700; font-size: 16px; line-height: 1.3; margin-bottom: 14px; }
.tile-label span { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }
.tile-link {
	margin-top: auto;
	text-decoration: underline; text-underline-offset: 3px;
	font-size: 16px; overflow-wrap: anywhere;
}
.tile a:hover { border-color: var(--accent); }
.tile a:hover .icon { fill: var(--accent); }
.tile a:hover .tile-link { color: var(--accent-dark); }

/* Textseiten */
.tpl-basic-page .main > * { max-width: 760px; }
.back { margin: 0 0 28px; font-size: 14px; }
.back a { text-decoration: none; color: var(--muted); }
.back a:hover { color: var(--accent-dark); }
.logos { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.logos img { height: 56px; width: auto; }

/* --- Fuß -------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
	padding-top: 18px; padding-bottom: 28px;
	font-size: 13px; color: var(--muted);
}
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 18px; }
.footer-inner a { text-decoration: none; color: var(--ink); }
.footer-inner a:hover, .footer-inner a[aria-current] { color: var(--accent-dark); text-decoration: underline; }

/* --- Mobil ------------------------------------------------------------ */

@media (max-width: 760px) {
	.intro { grid-template-columns: 1fr; gap: 28px; }
	.intro-col[lang="en"] { border-top: 1px solid var(--line); padding-top: 28px; }
	.tiles { grid-template-columns: 1fr; gap: 14px; }
	.tile a { flex-direction: row; text-align: left; padding: 18px; gap: 16px; align-items: center; flex-wrap: wrap; }
	.tile .icon { width: 40px; height: 36px; margin: 0; flex: none; }
	.tile-label { margin: 0; flex: 1 1 60%; }
	.tile-link { margin: 0; flex-basis: 100%; padding-left: 56px; }
	.main { padding-top: 36px; }
}

@media (max-width: 420px) {
	:root { --gutter: 16px; }
	.brand img { height: 28px; }
	.header-phone { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media print {
	.site-header { background: none; color: #000; }
	.brand img { filter: invert(1); }
	.hero, .skip-link { display: none; }
}
