/*
 * Shared stylesheet for the ecr-advisory.com placeholder site.
 * Deliberately uses system fonts only: no external font or CDN requests, so no
 * visitor data leaves Cloudflare (keeps the privacy notice short and accurate).
 */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #14213d;
  --muted: #5a6478;
  --accent: #d99a00;      /* crane yellow, matches the hero image */
  --accent-ink: #8a6200;  /* darker variant with sufficient contrast on light bg */
  --rule: #e2e5eb;
  --max: 40rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1524;
    --surface: #141d30;
    --text: #e8ecf3;
    --muted: #a3adbf;
    --accent: #f2b52a;
    --accent-ink: #f2b52a;
    --rule: #26314a;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent-ink); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* ---------- Landing page: full-bleed hero image with text overlay ----------
 * The photo fills the whole viewport and is the focal point; all text sits in a
 * compact block at the bottom, over a dark gradient that keeps it readable
 * without covering the cranes. Colours here are fixed (white on dark) because
 * they sit on the photo, independent of light/dark mode.
 */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* avoids jumping behind mobile browser toolbars */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  background: #1d4f91; /* sky-blue fallback while the image loads */
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 40%;
}

/* Bottom gradient for text legibility; stays clear of the upper image area. */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(10, 18, 36, 0.82), rgba(10, 18, 36, 0));
  pointer-events: none;
}

.hero__top,
.hero__bottom {
  position: relative;
  z-index: 1;
  padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem);
}

.hero a { color: #ffffff; }
.hero a:hover { color: #ffd46b; }

.brand {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(10, 18, 36, 0.45);
}
.brand span { color: var(--accent); }

.hero__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 3rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 600;
  max-width: 22ch;
}

.contact { margin: 0; font-style: normal; }
.contact p { margin: 0; }


/* ---------- Legal pages (Impressum, Datenschutz, 404) ---------- */

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 4rem) 1rem 4rem;
}

.page header { margin-bottom: 2.5rem; }
.page h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); }
.page h2 { margin: 2.25rem 0 0.5rem; font-size: 1.15rem; }
.page h3 { margin: 1.5rem 0 0.25rem; font-size: 1rem; }
.page p, .page ul { margin: 0 0 0.85rem; }
.page ul { padding-left: 1.25rem; }
.page address { font-style: normal; }
.page footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.back { font-size: 0.9rem; }
.muted { color: var(--muted); font-size: 0.9rem; }
