/* ============================================================
   Rolf Reinhardt — Independent Strategic Consulting
   Shared stylesheet. No frameworks, no third-party requests.
   System fonts + one self-hosted handwriting face (Caveat, OFL),
   so nothing phones home on load (DSGVO-clean).
   ============================================================ */

@font-face {
  font-family: 'Caveat';
  src: url('caveat.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette — "royal Purpur": faint-warm paper, ink near-black, a single
     imperial purple-red accent used sparingly. */
  --ink:        #14181a;
  --ink-soft:   #3a3338;
  --slate:      #5f5a5e;
  --slate-2:    #847e83;
  --paper:      #f4f1f2;
  --panel:      #ece7e9;
  --panel-2:    #ffffff;
  --line:       #ddd6da;
  --line-soft:  #e7e1e4;
  --plum:       #7b1e3c;   /* primary accent */
  --plum-deep:  #5e0233;   /* deep wine */
  --plum-soft:  #a8264f;   /* brighter ruby */
  --rose:       #e04a75;   /* light accent on dark */

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --hand:  "Caveat", "Segoe Script", "Bradley Hand", cursive;

  --container: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; }

/* ---------- handwriting accent (human-focus emphasis) ---------- */
.hand { font-family: var(--hand); color: var(--plum); font-weight: 400; font-size: 1.32em; line-height: 1; }
.hand-note { font-family: var(--hand); color: var(--plum); font-weight: 400; font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.25; letter-spacing: 0.01em; max-width: 26ch; }

/* ---------- layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--plum); margin: 0 0 1.4rem; display: flex; align-items: center; gap: 0.75rem; }
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: var(--plum); flex: none; }

.lede { color: var(--slate); font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 60ch; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); }
h2.section-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 1.1rem; max-width: 22ch; }

/* ---------- top navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.nav__inner { max-width: var(--container); margin-inline: auto; padding: 0.8rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.nav__brand svg { height: 27px; width: auto; display: block; }
.nav__brand .dot { color: var(--plum); }
.nav__links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--slate); transition: color 0.2s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--paper); background: var(--ink); padding: 0.55rem 0.95rem; border-radius: 2px; transition: background 0.2s ease; white-space: nowrap; }
.nav__cta:hover { background: var(--plum-deep); }
.nav__toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 2px; padding: 0.45rem 0.6rem; cursor: pointer; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-block; }
  .nav[data-open="true"] .nav__links { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 1.4rem var(--gutter); }
  .nav[data-open="true"] .nav__links a { font-size: 0.82rem; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) var(--section-y); }
.hero__bridge { display: flex; align-items: center; gap: 0.9rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); margin-bottom: 2.2rem; flex-wrap: wrap; }
.hero__bridge .term { color: var(--ink); white-space: nowrap; }
.hero__bridge .span { flex: 1 1 60px; min-width: 40px; height: 1px; background: var(--line); position: relative; }
.hero__bridge .span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--plum); }
.hero__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.05; letter-spacing: -0.018em; margin: 0 0 1.6rem; max-width: 18ch; }
.hero__title em { font-style: italic; color: var(--plum-deep); }
.hero__sub { color: var(--slate); font-size: clamp(1.05rem, 1.8vw, 1.28rem); max-width: 62ch; margin: 0 0 1.4rem; }
.hero__hand { margin: 0 0 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

.btn { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.85rem 1.3rem; border-radius: 2px; transition: all 0.2s ease; }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--plum-deep); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- problem grid ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.problems { margin-top: 2.8rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.problem { padding: 1.8rem 1.8rem 1.8rem 0; border-bottom: 1px solid var(--line); }
.problem:nth-child(odd) { padding-right: clamp(1.5rem, 4vw, 3rem); border-right: 1px solid var(--line); }
.problem:nth-child(even) { padding-left: clamp(1.5rem, 4vw, 3rem); }
.problem__no { font-family: var(--mono); font-size: 0.72rem; color: var(--plum); letter-spacing: 0.1em; }
.problem h3 { font-size: 1.22rem; margin: 0.5rem 0 0.6rem; line-height: 1.2; }
.problem p { margin: 0; color: var(--slate); font-size: 0.98rem; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } .problems { grid-template-columns: 1fr; } .problem, .problem:nth-child(odd) { padding: 1.5rem 0; border-right: none; } }

/* ---------- principles / how I work ---------- */
.principles { margin-top: 2.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.principle { padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.principle:nth-child(odd) { border-right: 1px solid var(--line); padding-right: clamp(1.5rem, 4vw, 3rem); }
.principle:nth-child(even) { padding-left: clamp(1.5rem, 4vw, 3rem); }
.principle__k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--plum); }
.principle h3 { font-size: 1.18rem; margin: 0.5rem 0; line-height: 1.2; }
.principle p { margin: 0; color: var(--slate); font-size: 0.96rem; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } .principle, .principle:nth-child(odd) { padding: 1.4rem 0; border-right: none; padding-right: 0; } .principle:nth-child(even) { padding-left: 0; } }

/* ---------- approach / tension ---------- */
.tension { margin-top: 3rem; display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.tension__col { background: var(--panel-2); border: 1px solid var(--line); border-radius: 3px; padding: 1.8rem; }
.tension__label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--plum); margin: 0 0 0.7rem; }
.tension__col h3 { font-size: 1.35rem; margin: 0 0 0.7rem; }
.tension__col p { margin: 0; color: var(--slate); font-size: 0.97rem; }
.tension__x { display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--slate-2); }
.tension__note { margin-top: 2.2rem; }
@media (max-width: 760px) { .tension { grid-template-columns: 1fr; } .tension__x { padding: 0.3rem 0; } }

/* ---------- services / value ladder ---------- */
.services { margin-top: 2.6rem; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 4.5rem 1fr; gap: clamp(1rem, 3vw, 2.2rem); padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.service__no { font-family: var(--mono); font-size: 0.95rem; color: var(--plum); letter-spacing: 0.05em; padding-top: 0.35rem; }
.service__title { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0 0 0.7rem; line-height: 1.15; }
.service__desc { margin: 0 0 1.1rem; color: var(--ink-soft); max-width: 64ch; }
.service__meta { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; }
.service__meta div { font-size: 0.88rem; color: var(--slate); max-width: 46ch; }
.service__meta .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-2); display: block; margin-bottom: 0.15rem; }
.services__note { margin-top: 1.8rem; font-size: 0.9rem; color: var(--slate); max-width: 70ch; }
@media (max-width: 640px) { .service { grid-template-columns: 1fr; gap: 0.5rem; } .service__no { padding-top: 0; } }

/* ---------- credibility ---------- */
.cred__markers { margin-top: 2.4rem; display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cred__marker { flex: 1 1 180px; padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.cred__marker .v { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); display: block; line-height: 1.1; }
.cred__marker .l { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); margin-top: 0.4rem; display: block; }

/* ---------- fit ---------- */
.fit { margin-top: 2.6rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.fit__col { padding: 1.8rem clamp(1.2rem, 3vw, 2rem) 1.8rem 0; border-bottom: 1px solid var(--line); }
.fit__col:not(:last-child) { border-right: 1px solid var(--line); padding-right: clamp(1.2rem, 3vw, 2rem); }
.fit__col:not(:first-child) { padding-left: clamp(1.2rem, 3vw, 2rem); }
.fit__col h3 { font-size: 1.18rem; margin: 0 0 0.6rem; }
.fit__col p { margin: 0; color: var(--slate); font-size: 0.95rem; }
.fit__not { margin-top: 2rem; padding: 1.3rem 1.5rem; border-left: 2px solid var(--plum); background: var(--panel); border-radius: 0 3px 3px 0; }
.fit__not strong { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--plum); display: block; margin-bottom: 0.4rem; }
.fit__not p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } .fit__col, .fit__col:not(:last-child), .fit__col:not(:first-child) { padding: 1.5rem 0; border-right: none; } }

/* ---------- contact ---------- */
.contact { background: var(--ink); color: var(--paper); }
.contact .eyebrow { color: var(--rose); }
.contact .eyebrow::before { background: var(--rose); }
.contact h2 { color: var(--paper); font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; margin: 0 0 1.1rem; max-width: 20ch; }
.contact p { color: #ccc4c8; max-width: 56ch; margin: 0 0 1.4rem; }
.contact .hand-note { color: var(--rose); margin: 0 0 2rem; }
.contact .btn--primary { background: var(--paper); color: var(--ink); }
.contact .btn--primary:hover { background: #ffffff; }
.contact__email { font-family: var(--mono); font-size: 0.86rem; letter-spacing: 0.04em; color: #a79aa0; margin-top: 1.6rem; }
.contact__email a { color: var(--paper); text-decoration: none; border-bottom: 1px solid #4d4348; }
.contact__email a:hover { border-color: var(--paper); }

/* ---------- footer ---------- */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: 3rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: 0.55rem; font-family: var(--serif); font-size: 1.1rem; }
.footer__brand svg { height: 24px; width: auto; }
.footer__brand .dot { color: var(--plum); }
.footer__role { font-size: 0.85rem; color: var(--slate); margin-top: 0.5rem; max-width: 34ch; }
.footer__addr { font-size: 0.85rem; color: var(--slate); font-style: normal; line-height: 1.6; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--slate); }
.footer__links a:hover { color: var(--ink); }
.footer__legal { width: 100%; border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.4rem; font-size: 0.76rem; color: var(--slate-2); }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 0.4rem; letter-spacing: -0.01em; }
.legal__stand { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-2); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.3rem; margin: 2.6rem 0 0.7rem; }
.legal h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; margin: 1.6rem 0 0.4rem; }
.legal p, .legal li { color: var(--ink-soft); font-size: 0.98rem; }
.legal address { font-style: normal; line-height: 1.7; color: var(--ink); }
.legal a { color: var(--plum-deep); }
.legal__note { border-left: 2px solid var(--plum); background: var(--panel); padding: 1.1rem 1.3rem; border-radius: 0 3px 3px 0; margin: 1.4rem 0; font-size: 0.9rem; color: var(--ink-soft); }
.legal__note strong { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--plum); display: block; margin-bottom: 0.35rem; }
.legal__back { display: inline-block; margin-bottom: 2rem; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--slate); }
.legal__back:hover { color: var(--ink); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
