/* ==========================================================================
   Ribadeneyra — shared chrome for the corporate pages (about, careers, news,
   account, Impressum, Datenschutz). The landing page keeps its own bespoke
   styles; everything here is the lighter shell those pages share.
   Depends on brand.css for the tokens.
   ========================================================================== */

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

body {
  margin: 0;
  background: var(--rb-page);
  color: var(--rb-ink);
  font: 16px/1.65 var(--rb-sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
p, ul, ol { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--rb-page) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rb-line);
}
.site-in { display: flex; align-items: center; gap: 26px; height: 66px; }
.site-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.site-brand img { height: 38px; width: auto; display: block; }
.site-brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.site-brand-txt b { font-family: var(--rb-serif); font-size: 17px; letter-spacing: .05em; color: var(--rb-navy-700); }
.site-brand-txt span { font-size: 9.5px; letter-spacing: .19em; color: var(--rb-ink-3); text-transform: uppercase; }
.site-links { display: flex; gap: 24px; font-size: 14.5px; font-weight: 500; }
.site-links a { text-decoration: none; color: var(--rb-ink-2); }
.site-links a:hover, .site-links a[aria-current="page"] { color: var(--rb-navy-600); }
.site-cta { display: flex; gap: 10px; align-items: center; }
.site-burger {
  display: none; background: none; border: 1px solid var(--rb-line-2);
  border-radius: var(--rb-r-sm); padding: 7px 9px; cursor: pointer; color: inherit;
}
@media (max-width: 900px) {
  .site-links { display: none; }
  .site-links.open {
    display: flex; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--rb-surface);
    border-bottom: 1px solid var(--rb-line); padding: 8px 24px 16px;
  }
  .site-links.open a { padding: 11px 0; border-bottom: 1px solid var(--rb-line); }
  .site-burger { display: block; }
  .site-cta .rb-btn-ghost { display: none; }
}

/* ---------- page head ---------- */
.page-head { padding: 62px 0 28px; }
.page-head h1 {
  font-family: var(--rb-serif);
  font-size: clamp(30px, 4.4vw, 46px);
  color: var(--rb-navy-800);
  margin-top: 10px;
}
.page-head .lede { margin-top: 16px; font-size: 18px; color: var(--rb-ink-2); max-width: 46em; }

/* ---------- prose ---------- */
.prose { padding-bottom: 72px; }
.prose h2 {
  font-family: var(--rb-serif); font-size: 24px; color: var(--rb-navy-800);
  margin: 40px 0 12px; padding-top: 8px;
}
.prose h3 { font-size: 17px; color: var(--rb-navy-700); margin: 26px 0 8px; }
.prose p { margin: 12px 0; color: var(--rb-ink-2); }
.prose ul, .prose ol { margin: 12px 0; padding-left: 22px; color: var(--rb-ink-2); }
.prose li { margin: 6px 0; }
.prose a { color: var(--rb-navy-600); }
/* A link styled as a button keeps the button's colours inside prose. */
.prose a.rb-btn-primary { color: var(--rb-btn-fg); }
.prose a.rb-btn-gold { color: var(--rb-navy-900); }
.prose a.rb-btn-ghost { color: var(--rb-ink); }
.prose strong { color: var(--rb-ink); }
.prose hr { border: 0; border-top: 1px solid var(--rb-line); margin: 40px 0; }
.prose blockquote {
  margin: 20px 0; padding: 4px 0 4px 18px;
  border-left: 3px solid var(--rb-gold-500); color: var(--rb-ink-2); font-style: italic;
}
.prose code {
  font: 13.5px var(--rb-mono); background: var(--rb-surface-2);
  border: 1px solid var(--rb-line); border-radius: 4px; padding: 1px 5px;
}
.prose pre {
  background: var(--rb-surface-2); border: 1px solid var(--rb-line);
  border-radius: var(--rb-r); padding: 14px 16px; overflow-x: auto;
}
.prose pre code { background: none; border: 0; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--rb-line); padding: 8px 11px; text-align: left; vertical-align: top; }
.prose th { background: var(--rb-surface-2); font-weight: 600; color: var(--rb-navy-800); }

/* ---------- two-column legal layout (DE | EN) ---------- */
.bicol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; align-items: start; }
.bicol > section { min-width: 0; }
.bicol-label {
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--rb-ink-3); padding-bottom: 10px; border-bottom: 1px solid var(--rb-line);
  margin-bottom: 4px;
}
@media (max-width: 820px) { .bicol { grid-template-columns: 1fr; gap: 0; } }

/* ---------- placeholder marker ---------- */
.todo {
  display: inline-block; background: var(--rb-warn-bg); color: var(--rb-warn);
  border: 1px dashed currentColor; border-radius: 4px;
  padding: 0 6px; font-size: 13px; font-weight: 600; font-family: var(--rb-mono);
}
.todo-banner {
  margin: 20px 0; padding: 14px 18px; border-radius: var(--rb-r);
  background: var(--rb-warn-bg); color: var(--rb-warn);
  border: 1px solid currentColor; font-size: 14px; font-weight: 500;
}

/* ---------- cards / grids ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card-pad { padding: 24px; }
.card-pad h3 { font-size: 18px; color: var(--rb-navy-800); }
.card-pad p { margin-top: 9px; font-size: 14.5px; color: var(--rb-ink-2); }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--rb-line);
  padding: 36px 0; font-size: 13.5px; color: var(--rb-ink-3);
}
.site-foot { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--rb-navy-600); }

/* ---------- news ---------- */
.post-meta { font-size: 13.5px; color: var(--rb-ink-3); margin-top: 14px; }
.post-tags { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.post-tags span {
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rb-gold-700); background: var(--rb-gold-50);
  border: 1px solid var(--rb-gold-200); border-radius: 100px; padding: 3px 10px;
}
.post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.post-card {
  padding: 24px; text-decoration: none; display: flex; flex-direction: column;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.post-card:hover { box-shadow: var(--rb-shadow-2); transform: translateY(-2px); border-color: var(--rb-navy-300); }
.post-card .post-meta { margin: 0 0 8px; }
.post-card h2 { font-family: var(--rb-serif); font-size: 21px; color: var(--rb-navy-800); margin: 0; }
.post-summary { margin-top: 10px; font-size: 14.5px; color: var(--rb-ink-2); flex: 1; }
.post-more { margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--rb-navy-600); }

article.prose > h1:first-child { margin-top: 0; }
article.prose img { border-radius: var(--rb-r); border: 1px solid var(--rb-line); }

.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--rb-line);
  font-size: 14.5px;
}
.post-nav a {
  display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; color: var(--rb-navy-700); font-weight: 600;
}
.post-nav a.next { text-align: right; }
.post-nav a span { font-size: 12px; font-weight: 500; color: var(--rb-ink-3); }
.post-nav a:hover { color: var(--rb-navy-600); }
@media (max-width: 620px) { .post-nav { grid-template-columns: 1fr; } }

/* --- leadership profiles (about.html) --------------------------------------
   Two hero profiles: a portrait beside a role stack, a short standfirst and
   the track record. The portrait is a placeholder frame until real photographs
   exist — replacing it is swapping one <img> in, nothing else. */
.profiles { display: grid; gap: 46px; margin-top: 26px; }
.profile {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 32px;
  align-items: start;
  padding-top: 34px;
  border-top: 1px solid var(--rb-line);
}
.profile:first-child { border-top: 0; padding-top: 0; }

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--rb-radius, 10px);
  overflow: hidden;
  background: linear-gradient(160deg, var(--rb-fill-800), var(--rb-fill-600));
  box-shadow: var(--rb-shadow-2);
  display: grid;
  place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-ph {
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  padding: 18px;
  color: #fff;
}
.portrait-mono {
  font-family: var(--rb-serif);
  font-size: 46px;
  letter-spacing: .06em;
  line-height: 1;
  opacity: .92;
}
.portrait-ph small {
  font-size: 10.5px;
  letter-spacing: .17em;
  text-transform: uppercase;
  opacity: .62;
}

.profile-name { font-family: var(--rb-serif); font-size: 26px; color: var(--rb-navy-800); margin: 0; }
.profile-line { margin: 6px 0 0; font-size: 15px; color: var(--rb-navy-600); font-weight: 500; }
.profile-roles { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 7px; }
.profile-roles li { font-size: 14.5px; color: var(--rb-ink-2); padding-left: 15px; position: relative; }
.profile-roles li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--rb-navy-300);
}
.profile-roles b { color: var(--rb-ink); font-weight: 600; }

.metrics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.metric {
  flex: 1 1 120px;
  border: 1px solid var(--rb-line);
  border-radius: 9px;
  background: var(--rb-surface-2);
  padding: 11px 13px;
}
.metric b { display: block; font-family: var(--rb-serif); font-size: 21px; color: var(--rb-navy-800); }
.metric span { display: block; margin-top: 3px; font-size: 11.5px; letter-spacing: .04em; color: var(--rb-ink-3); }

.tagrow { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tagrow span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--rb-line);
  color: var(--rb-ink-2);
  background: var(--rb-surface);
}

@media (max-width: 720px) {
  .profile { grid-template-columns: 1fr; gap: 22px; }
  .portrait { max-width: 230px; }
}
