/* =========================================================================
   UP Management — stylesheet
   Senior boutique consultancy / interim leadership firm
   Design system: clean, spacious, conservative-modern.
   ========================================================================= */

/* ----- Design tokens ----- */
:root {
  --bg:            #ffffff;
  --bg-alt:        #f7f8fa;
  --bg-deep:       #11212b;   /* footer / dark band */
  --scrim-rgb:     17, 33, 43; /* portrait overlay scrim (matches --bg-deep) */
  --text:          #1f2933;
  --text-muted:    #6b7280;
  --accent:        #0f4c5c;   /* petrol — links, eyebrows, section accents */
  --accent-hover:  #1f5e73;
  --accent-soft:   #e8f0f2;
  --cta:           #d51b21;   /* logo "U" red — CTA buttons + hero dash only */
  --cta-hover:     #b3151a;
  --border:        #e5e7eb;
  --border-strong: #d3d8de;

  --container: 1180px;
  --radius:    12px;
  --radius-sm: 8px;

  --shadow-card: 0 1px 2px rgba(16, 33, 43, 0.04);
  --shadow-lift: 0 10px 30px rgba(16, 33, 43, 0.08);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;

  --space-section: clamp(4rem, 8vw, 7rem);
}

/* ----- Branded theme (muted UP red) — toggle with <html data-theme="brand">.
   Identical restraint to the petrol theme: same neutral backgrounds and the
   same navy dark bands — only the accent colour changes to a muted brick red. ----- */
:root[data-theme="brand"] {
  --accent:        #9e2b30;   /* muted UP red */
  --accent-hover:  #832328;
  --accent-soft:   #f1eaea;   /* barely-there neutral tint, not pink */
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.18;
  letter-spacing: -0.018em;
  font-weight: 650;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

ul { margin: 0; padding: 0; }

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

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: var(--space-section); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-head { max-width: 720px; margin-bottom: 2.8rem; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 0; }

.lead { font-size: 1.18rem; color: var(--text-muted); }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ----- Skip link ----- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.92rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--cta);
  color: #fff;
  border-color: var(--cta);
}
.btn--primary:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--cta); color: var(--cta); }
.btn--light {
  background: #fff;
  color: var(--cta);
  border-color: #fff;
}
.btn--light:hover { background: #fff; color: var(--cta-hover); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.arrow-link::after { content: "\2192"; transition: transform .18s ease; }
.arrow-link:hover::after { transform: translateX(3px); }

/* =========================================================================
   Header / navigation
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand .brand-up { color: var(--accent); }
.brand .brand-rest { color: var(--text); font-weight: 600; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-logo--icon { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
}
.nav-links a:hover { background: var(--bg-alt); color: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* CTA button inside the nav: keep button styling, override the generic
   .nav-links a colour rules (which otherwise win on specificity). */
.nav-links .nav-cta a.btn--primary,
.nav-links .nav-cta a.btn--primary:hover {
  color: #fff;
  background: var(--cta);
}
.nav-links .nav-cta a.btn--primary:hover { background: var(--cta-hover); }

.nav-cta { margin-left: 0.5rem; }

/* Language switch (EN/DE) */
.nav-lang a {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.34rem 0.56rem;
}
.nav-lang a:hover { color: var(--accent); border-color: var(--accent); background: transparent; }

/* Persistent CTA shown in the header bar on mobile (where the dropdown CTA
   is hidden). Lives outside .nav-links so it is always visible. */
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(120% 120% at 100% 0%, var(--accent-soft) 0%, rgba(232,240,242,0) 55%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
/* Landing hero fits a single screen on desktop, so the primary CTA stays
   above the fold. Uses min-height, so it still grows rather than clipping
   if content is unusually tall. */
@media (min-width: 901px) {
  .hero {
    min-height: calc(100vh - 73px);
    padding-block: 2.5rem;
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
/* Prevent grid blowout: allow columns to shrink below the portrait's
   intrinsic image width on narrow screens. */
.hero-grid > * { min-width: 0; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.hero-kicker::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--accent);
}
.hero h1 { margin-bottom: 1.1rem; }
.hero-sub { font-size: 1.22rem; color: var(--text); max-width: 38ch; margin-bottom: 1.2rem; }
.hero-support { font-size: 1rem; color: var(--text-muted); max-width: 54ch; margin-bottom: 1.9rem; }
.hero .btn-row { margin-bottom: 1.4rem; }
.hero-strapline {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  border-left: 2px solid var(--accent);
  padding-left: 0.9rem;
  max-width: 46ch;
  margin-bottom: 0.9rem;
}
.hero-motto {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-bottom: 0;
}

/* Hero side card */
.hero-card {
  background: var(--bg-deep);
  color: #e9eef1;
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow-lift);
}
.hero-card .hero-card-label {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fb3bd;
  margin-bottom: 1.4rem;
}
.hero-card dl { margin: 0; display: grid; gap: 1.25rem; }
.hero-card dt {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}
.hero-card dd { margin: 0.3rem 0 0; font-size: 0.92rem; color: #aebec6; }
.hero-card .hero-card-divider { height: 1px; background: rgba(255,255,255,0.1); }

.motto {
  font-weight: 600;
  color: var(--accent);
}

/* Hero portrait */
.hero-portrait {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;   /* keep the face high, crop at the torso */
  aspect-ratio: 3 / 4;
}
.hero-portrait figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.7rem 1.5rem;
  background: linear-gradient(to top,
    rgba(var(--scrim-rgb), 0.95) 0%,
    rgba(var(--scrim-rgb), 0.86) 34%,
    rgba(var(--scrim-rgb), 0.45) 70%,
    rgba(var(--scrim-rgb), 0) 100%);
  color: #fff;
}
.hero-portrait figcaption::before {
  content: "";
  display: block;
  width: 38px; height: 3px;
  border-radius: 2px;
  background: var(--cta);
  margin-bottom: 1rem;
}
.hp-statement {
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.34;
  color: #eef3f4;
  margin: 0 0 0.55rem;
  max-width: 30ch;
}
.hp-motto {
  font-size: clamp(1.8rem, 2.7vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: #fff;
  margin: 0 0 0.85rem;
}
.hp-name { font-size: 0.85rem; color: #b9c7cd; margin: 0; }
.hp-name strong { color: #fff; font-weight: 650; }

/* =========================================================================
   Stat band
   ========================================================================= */
.stat-band { background: var(--bg-deep); color: #e9eef1; }
.stat-band .container { padding-block: clamp(2.4rem, 4vw, 3.2rem); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 2rem;
}
.stat { padding-right: 1rem; }
.stat dt {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat dd { margin: 0; font-size: 0.92rem; color: #aebec6; }

/* =========================================================================
   Card media (image-backed highlight cards)
   ========================================================================= */
.highlight { padding: 0; overflow: hidden; }
.highlight-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.highlight-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.highlight:hover .highlight-media img { transform: scale(1.03); }
.highlight-media--brand {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 120% at 0% 0%, #1f5e73 0%, rgba(31,94,115,0) 60%),
    var(--bg-deep);
}
.highlight-media--brand span {
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  text-align: center;
  padding: 1rem;
}
.highlight-body { padding: 1.7rem 1.8rem 1.9rem; }
.highlight-body .tag { margin-bottom: 0.85rem; }
.highlight-body h3 { margin-bottom: 0.5rem; }
.highlight-body p { color: var(--text-muted); font-size: 0.97rem; margin: 0; }

/* =========================================================================
   Work gallery (Experience page)
   ========================================================================= */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.gallery figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-card);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.gallery figure:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.gallery .shot {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.gallery .shot img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { padding: 1.2rem 1.3rem 1.4rem; }
.gallery figcaption .g-title { font-weight: 650; font-size: 1.02rem; margin-bottom: 0.3rem; }
.gallery figcaption .g-desc { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.gallery figcaption .g-tag {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; display: block; margin-bottom: 0.45rem;
}

/* Profile photo (About) */
.profile-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 1.2rem;
  border: 1px solid var(--border);
}

/* =========================================================================
   Logo / experience strip
   ========================================================================= */
.logo-strip { border-block: 1px solid var(--border); background: var(--bg); }
.logo-strip .container { padding-block: 2.4rem; }
.logo-strip p {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.3rem;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.6rem 2.8rem;
}
.logo-row li {
  list-style: none;
  display: grid;
  place-items: center;
  height: 40px;
}
.logo-row img {
  max-height: 32px;
  max-width: 142px;
  width: auto;
  height: auto;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter .25s ease, opacity .25s ease;
}
.logo-row li:hover img { filter: none; opacity: 1; }

/* =========================================================================
   Cards & grids
   ========================================================================= */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card--hover:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 0; }
.card .card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}
.card .card-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

/* Situation list (ticked) */
.tick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 2rem; }
.tick {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.tick-icon {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.tick p { margin: 0; color: var(--text); font-size: 0.99rem; }

/* Bullet list with accent markers */
.bullets { list-style: none; }
.bullets li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
  color: var(--text);
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

/* =========================================================================
   Engagement model (Assess / Structure / Deliver)
   ========================================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step {
  padding: 2rem 1.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.step h3 { margin: 0.5rem 0 0.5rem; }
.step p { color: var(--text-muted); margin: 0; font-size: 0.98rem; }

/* =========================================================================
   Highlight / experience detail cards
   ========================================================================= */
.highlight {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem;
  background: var(--bg);
  box-shadow: var(--shadow-card);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.highlight:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.highlight .tag {
  align-self: flex-start;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.highlight h3 { margin-bottom: 0.55rem; }
.highlight p { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 0; }

/* =========================================================================
   Theme blocks (Experience page)
   ========================================================================= */
.theme {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--border);
}
.theme:first-of-type { border-top: none; }
.theme-head .theme-index {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.theme-head h2 { font-size: 1.5rem; margin: 0.4rem 0 0.7rem; }
.theme-head p { color: var(--text-muted); font-size: 0.98rem; margin: 0; }
.theme-items { display: grid; gap: 1.1rem; }
.theme-item {
  border-left: 2px solid var(--border-strong);
  padding-left: 1.3rem;
}
.theme-item h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.theme-item p { color: var(--text-muted); font-size: 0.96rem; margin: 0; }

/* =========================================================================
   Detailed services (Services page)
   ========================================================================= */
.service-block {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  gap: clamp(1.2rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--border);
}
.service-block:first-of-type { border-top: none; }
.service-block .service-no {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.service-block h2 { font-size: 1.55rem; margin: 0.5rem 0 0; }
.service-detail .service-row { margin-bottom: 1.3rem; }
.service-detail .service-row:last-child { margin-bottom: 0; }
.service-detail h4 {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.4rem;
}
.service-detail p { margin: 0; color: var(--text-muted); }
.service-detail .outcome { color: var(--text); font-weight: 500; }

/* =========================================================================
   Page hero (interior pages)
   ========================================================================= */
.page-hero {
  background:
    radial-gradient(110% 130% at 100% 0%, var(--accent-soft) 0%, rgba(232,240,242,0) 50%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(3rem, 6vw, 4.75rem);
}
.page-hero h1 { margin-bottom: 0.9rem; max-width: 16ch; }
.page-hero p { font-size: 1.18rem; color: var(--text-muted); max-width: 60ch; margin: 0; }

/* =========================================================================
   About
   ========================================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-grid p { color: var(--text); }
.profile-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem;
  background: var(--bg-alt);
  position: sticky;
  top: 96px;
}
.profile-card .monogram {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.profile-card h3 { margin-bottom: 0.1rem; }
.profile-card .role { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.3rem; }
.fact-list { list-style: none; }
.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}
.fact-list li span:first-child { color: var(--text-muted); }
.fact-list li span:last-child { font-weight: 600; text-align: right; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

/* =========================================================================
   Contact
   ========================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.contact-detail { list-style: none; display: grid; gap: 1.4rem; }
.contact-detail li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-detail .ci {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
}
.contact-detail .label {
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.15rem;
}
.contact-detail a, .contact-detail .val { font-weight: 600; color: var(--text); font-size: 1.05rem; }
.contact-detail a:hover { color: var(--accent); }

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.5rem);
  background: var(--bg-alt);
}

/* Forms */
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.4rem; }

/* =========================================================================
   Legal / Impressum
   ========================================================================= */
.legal { max-width: 760px; }
.legal h2 {
  font-size: 1.25rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.legal > h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal h3 { font-size: 1.02rem; margin-top: 1.3rem; margin-bottom: 0.3rem; }
.legal p { color: var(--text-muted); }
.legal address { font-style: normal; color: var(--text); line-height: 1.8; }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band {
  background: var(--bg-deep);
  color: #e9eef1;
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: #aebec6; max-width: 56ch; margin: 0 auto 1.8rem; font-size: 1.08rem; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--bg-deep);
  color: #aebec6;
  padding-block: 3.5rem 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand { color: #fff; font-size: 1.25rem; }
.footer-brand .brand .brand-up { color: #6fb0c0; }
.footer-brand .brand .brand-rest { color: #fff; }
.footer-brand-logo { display: inline-block; }
.footer-brand-logo img { height: 38px; width: auto; }
.footer-brand p { margin-top: 0.9rem; font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: #aebec6; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-contact a { display: inline-flex; align-items: center; gap: 0.55rem; }
.footer-contact svg { flex: none; opacity: 0.85; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 1.6rem;
  font-size: 0.85rem;
  color: #7e909a;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { order: -1; max-width: 420px; }
  .hero-portrait { width: 100%; max-width: 420px; margin-inline: auto; }
  .theme, .service-block, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-portrait { max-width: 420px; order: -1; }
}

@media (max-width: 720px) {
  .nav { gap: 0.5rem; justify-content: flex-start; flex-wrap: nowrap; padding-inline: 1rem; }
  .brand { flex: 0 1 auto; min-width: 0; }
  /* Keep the real wordmark on mobile (not the bare "UP" icon); cap it so the
     logo + CTA + menu toggle all fit across small phones. */
  .brand-logo--full { display: block; height: auto; max-height: 26px; max-width: 42vw; width: auto; }
  .brand-logo--icon { display: none; }
  .nav-toggle { display: flex; flex: 0 0 auto; }
  .nav-cta-mobile {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 1.5rem 1.2rem;
    box-shadow: var(--shadow-lift);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 0.6rem; }
  .nav-cta { margin-left: 0; }
  .nav-cta .btn { width: 100%; justify-content: center; margin-top: 0.4rem; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .tick-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; justify-content: center; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .brand-logo--full { max-width: 38vw; max-height: 24px; }
  .nav-cta-mobile { padding: 0.45rem 0.6rem; font-size: 0.72rem; }
  .nav-toggle { width: 40px; height: 40px; }
}

/* ----- Cookie-consent banner (EU/EEA visitors only) ----- */
#cc-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 300;
  background: #16242f;
  color: #e8eef1;
  border-radius: 12px;
  box-shadow: 0 12px 44px rgba(0,0,0,.32);
}
#cc-banner .cc-inner {
  max-width: 1120px;
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; flex-wrap: wrap;
  padding: 1rem 1.25rem;
}
#cc-banner .cc-text { margin: 0; font-size: 0.9rem; line-height: 1.5; max-width: 72ch; }
#cc-banner .cc-text a { color: #9fc7d2; text-decoration: underline; }
#cc-banner .cc-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
#cc-banner .cc-btn {
  border: 0; border-radius: 8px;
  padding: 0.6rem 1.15rem;
  font: inherit; font-size: 0.88rem; font-weight: 600;
  cursor: pointer;
}
#cc-banner .cc-accept { background: var(--cta); color: #fff; }
#cc-banner .cc-accept:hover { background: var(--cta-hover); }
#cc-banner .cc-decline { background: transparent; color: #cdd9df; border: 1px solid rgba(255,255,255,.28); }
#cc-banner .cc-decline:hover { border-color: rgba(255,255,255,.5); }
@media (max-width: 600px) {
  #cc-banner .cc-inner { flex-direction: column; align-items: stretch; }
  #cc-banner .cc-actions { justify-content: flex-end; }
}

/* ----- Motion preferences ----- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
